Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: Master of Reality on 21 June 2002, 01:07

Title: BSD booting
Post by: Master of Reality on 21 June 2002, 01:07
I just installed FreeBSD on my computer on my second hd without letting it touch the MBR. I am using GRUB and didnt make a bootdisk when i installed BSD. What do I need to put in the GRUB.conf so that it will boot FreeBSD?

Also... What parition type do i put when trying to mount my FreeBSD partition from red hat? or is it possible?
Title: BSD booting
Post by: Master of Reality on 22 June 2002, 02:28
hmmmm.... maybe i should take off FreeBSD and put windows in its place?
Title: BSD booting
Post by: Nobber on 22 June 2002, 03:09
quote:
Originally posted by Master of Reality / Bob:
I just installed FreeBSD on my computer on my second hd without letting it touch the MBR. I am using GRUB and didnt make a bootdisk when i installed BSD. What do I need to put in the GRUB.conf so that it will boot FreeBSD?

Shame you're not using LILO, because then I might be able to help you. (You boot FreeBSD using LILO in exactly the same way as you'd boot Windows using LILO.)
 
quote:

Also... What parition type do i put when trying to mount my FreeBSD partition from red hat? or is it possible?


As far as I know, it isn't. FreeBSD does bizarre things with an extended partition. Slices and what-have-you. It's a mystery to me.
Title: BSD booting
Post by: Master of Reality on 22 June 2002, 06:49
okay.... how do i take off GRUB and put on LILO, then put my RedHat and FreeBSD bottable from LILO??
Title: BSD booting
Post by: Master of Reality on 22 June 2002, 07:51
if i just run 'lilo' will it overwrite GRUB?
Title: BSD booting
Post by: voidmain on 22 June 2002, 08:03
If you have Grub installed on /dev/hda and your lilo.conf is configured to also install on /dev/hda then yup, it'll overwrite Grub.

[ June 21, 2002: Message edited by: VoidMain ]

Title: BSD booting
Post by: Master of Reality on 22 June 2002, 08:19
Warning: device 0x0342 exceeds 1024 cylinder limit
Fatal: geo_comp_addr: Cylinder number is too big (2550 > 1023)
 
is the error I get when i run 'lilo'
does that mean I cant use LILO because something is too big?

[ June 21, 2002: Message edited by: Master of Reality / Bob ]

[ June 21, 2002: Message edited by: Master of Reality / Bob ]

Title: BSD booting
Post by: voidmain on 22 June 2002, 08:24
It means you should have created a small "/boot" partition at the beginning of your drive like I have suggested many times on this site.  Lilo does not like to have the kernel more than 1024 cylinders from the beginning of the disk.  I normally create a 50MB /boot partition as the first partition of every machine I install on.  Grub does not have this limitation (and neither do newer versions of LILO).
Title: BSD booting
Post by: Master of Reality on 22 June 2002, 08:38
I have a 31 MB /boot partition on /dev/hda
my root '/' partition is on /dev/hdb1
Title: BSD booting
Post by: Master of Reality on 22 June 2002, 08:40
this is my lilo.conf:
Code: [Select]
thats the wrong kernel isnt it?

[ June 21, 2002: Message edited by: Master of Reality / Bob ]

Title: BSD booting
Post by: Master of Reality on 22 June 2002, 08:45
.... I realize the problem.... My FreeBSD doesnt have its kernel in the boot partition. How can I get my FreeBSD kernel to the boot partition?
Title: BSD booting
Post by: voidmain on 22 June 2002, 21:17
Actually you shouldn't need the BSD kernel in /boot, as long as you installed the BSD boot loader on /dev/hdb2 your lilo.conf should be correct.  I can't tell you whether the kernel you have in your lilo file is correct, it has to match your kernel and initrd filenames in /boot (same names should be in the grub configuration file). Did you recompile?  *.*.*debug certainly would not be a default distro kernel.

Try changing /dev/hdb2 to /dev/hdb for the location of your BSD install in your lilo.conf and see if that will boot it (basically make LILO kick off the BSD equivelant loader). Maybe BSD installed it's loader there.

And this page might be of some help to you:
http://students.seattleu.edu/hodeleri/FreeBSD/boot.html (http://students.seattleu.edu/hodeleri/FreeBSD/boot.html)

And you can also mount your BSD partition in Linux if you want to look around at the configs:

# mkdir /mnt/bsd
# mount /dev/hdb2 /mnt/bsd -t ufs -o ufstype=44bsd

should do it.

[ June 22, 2002: Message edited by: VoidMain ]

Title: BSD booting
Post by: Master of Reality on 22 June 2002, 21:38
my BSD partition is on /dev/hdb3 which is about 21 GB into the drive. I didnt install the bootloader. I will read those pages

[ June 22, 2002: Message edited by: Master of Reality / Bob ]

Title: BSD booting
Post by: voidmain on 22 June 2002, 21:41
I'm not sure if the BSD loader has the 1024 cylinder issue but I would be willing to bet that it does not.  You should be able to install BSD on /dev/hdb3 but tell it to install the boot loader on /dev/hdb (or the BSD equivelant /dev/hdb).  Like I said, you should be able to mount the /dev/hdb3 partition and look at the boot loader configuration file and determine where you actually installed the boot loader.
Title: BSD booting
Post by: Master of Reality on 22 June 2002, 21:44
it wont let me mount it:
mount: wrong fs type, bad option, bad superblock on /dev/hdb3,
       or too many mounted file systems
       (could this be the IDE device where you in fact use
       ide-scsi so that sr0 or sda or so is needed?)

I went to that link, then clicked the link to 'home' and each time Mozilla 1.1a would crash. it didnt crash with konqueror.

[ June 22, 2002: Message edited by: Master of Reality / Bob ]

Title: BSD booting
Post by: voidmain on 22 June 2002, 10:00
Hmmm, the machine I have FreeBSD installed on here at home is in a VMware session so I couldn't test the mounting procedure but according to "man mount" that should have done it.  And my machines at work are all standalone BSD boxes.  As you can tell, I am not as familiar with the FreeBSD boot loader.  I'll have to do some more research (I hate to do another install although my main machine is configured similar to yours, I could shrink the partition on my second drive and do an install to that partition and see if I can duplicate and solve your issue.  But I don't think it's going to happen tonight, actually probably not at all this weekend as I have a fun packed weekend ahead.  Sorry I couldn't help you.  Maybe some of these "BSD Rules" types on here can help you out.
Title: BSD booting
Post by: Master of Reality on 22 June 2002, 10:26
If i used GRUB there would be no need for the kernel to be on the boot partition. But i already swwitched to LILO. How do i get GRUB back on?
Title: BSD booting
Post by: voidmain on 22 June 2002, 10:39
Doesn't "grub-install /dev/hda" do it?
Title: BSD booting
Post by: Master of Reality on 22 June 2002, 22:27
in GRUB.conf where i have to put in the HD. What would i put down for /dev/hdb3? (in my Reddhat Entry it says (hd0,0) for /dev/hda)
Title: BSD booting
Post by: Calum on 23 June 2002, 00:35
probably (hd1,2) check out this document here (http://www.mandrakeuser.org/docs/install/iboot2.html)
Title: BSD booting
Post by: Master of Reality on 23 June 2002, 00:53
Error22: No such partition
is the error i get when i used (hd1,2).

I should have added 'noverify' and 'chainloader +1' to the BSD entry, and installed the BSD bootloader on /dev/hb3, which i didnt. So i am fucked, unless i can figure out some way to install the FreeBSD bootloader. Maybe I will re-install FreeBSD.

[ June 22, 2002: Message edited by: Master of Reality / Bob ]

Title: BSD booting
Post by: Calum on 23 June 2002, 00:56
the numbers depend on how many SCSI and how many IDE drives you have, since GRUB reads them in a particular order, read the doc...
Title: BSD booting
Post by: Master of Reality on 19 October 2002, 02:22
quote:
Originally posted by VoidMain:
And you can also mount your BSD partition in Linux if you want to look around at the configs:

# mkdir /mnt/bsd
# mount /dev/hdb2 /mnt/bsd -t ufs -o ufstype=44bsd

should do it.
[ June 22, 2002: Message edited by: VoidMain ]


that doesnt work to mount my OpenBSD partition. Is there any reason why it wouldnt mount properly with taht command?

i used:
    # mount /dev/hdb3 /mnt/bsd -t ufs -o ufstype=44bsd
and it says:
    mount: wrong fs type, bad option, bad     superblock on /dev/hdb3,
           or too many mounted file systems
Title: BSD booting
Post by: voidmain on 19 October 2002, 03:27
What fstype are you using? And what partition type is it (code in "fdisk")?
Title: BSD booting
Post by: Master of Reality on 19 October 2002, 06:56
i dont know what fstype it is. Its partition type A6 (OpenBSD)
Title: BSD booting
Post by: voidmain on 19 October 2002, 07:26
Try adding a "-r" (read only) and see if that works:

# mount -r -t ufs -o ufstype=44bsd /dev/hdb3 /mnt/bsd

And of course make sure the /mnt/bsd directory exists (but I know you know that). That should for sure work with FreeBSD, maybe the new OpenBSD has changed it's file system but it's supposed to work.
Title: BSD booting
Post by: Master of Reality on 19 October 2002, 21:03
that doesnt work for FreeBSD or OpenBSD which are on separate computers and i am trying to access FreeBSD with Slackware and OpenBSD with Redhat.
Title: BSD booting
Post by: voidmain on 19 October 2002, 21:48
Don't know man, you'll have to do some more research. I don't have Linux and *BSD together on the same machine anywhere, except for my desktop where I have it running in a VMware session, but that doesn't help for what you are trying to do.