Re: Grub and FreeBSD 4.9
Tried that tried root (sd0,0) root (sd0,0,a) in both cases it finds the partition even knows the type then fails to mount it. Its not a worry for me though as the chainloader works just fine. Thanks for asking though. Steve - Original Message - From: "Cyrille Lefevre" > do you add ",a" in "root (hd0,0,a)" ? This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Grub and FreeBSD 4.9
"Steven Hartland" <[EMAIL PROTECTED]> wrote: > Just plain doesn't work here moans that it cant mount the FS > where as chainloader works fine. do you add ",a" in "root (hd0,0,a)" ? Cyrille Lefevre. -- mailto:[EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Grub and FreeBSD 4.9
db writes: > Hi all > > I'm trying to get grub working on my FreeBSD 4.9 test-box. > [...] Here's a description of how I did it, from the freebsd-current list in late Februrary 2003. It was part of an ongoing thread that you might find useful. g. George Hartzell writes: > Andrew Boothman writes: > > [...] > > OK Guys, I think I'm still a little confused here. > > > > I've just had a few botched installs of GRUB so I think I need a little more > > direction, if you could :) > > > > I've got GRUB on a floppy and it boots fine. If I type : > > rootnoverify (hd0,0) > > makeactive > > chainloader +1 > > boot > > > > I get Win2k booted no problem! > > > > So, following the instructions in the Grub Manual, I typed > > root(fd0) > > setup(hd0) > > > > I remove the floppy from the drive and reboot > > > > On boot I get "Loading GRUB... Please Wait..." but after that I get "GRUB > > Error 17" which according to the manual means that GRUB doesn't know how to > > load the selected partition. Even though when I boot from the floppy it > > starts no problem and I can type commands to get it to boot Win2k > > That told it to install GRUB into the beginning of (hd0) [e.g. the > Master Boot record], but configured it to use (fd0) as the root of the > place to find stuff. Since the floppy wasn't in when you booted, it > didn't do anything useful. > > There are some grub things that need to be on the disk that you give > the "root" designation too, e.g. "stage1", etc... > > I don't know how/where to install those files into an NTFS partition, > I assume that GRUB can read NTFS filesystems, and you could tuck them > there, but I don't know for sure. > > Here's what I'd do. > > Get yourself booted into freebsd any way that you can. > > PRINT OUT THE INFORMATION ABOUT YOUR BIOS PARTITION TABLE AND YOUR > FREEBSD DISKLABEL, AND SAVE IT. "fdisk -s" and "disklabel -r > diskname" are your friends > > Build grub from the ports tree and install it. It installs all of the > juicy bits into some directory in > /usr/local/share/grub/i386-freebsd/..., which doesn't seem to be a > place where grub can find it. I make a directory called /boot/grub > and copy all of them there. > > Start grub (e.g. boot from your grub floppy). Under the 5.0 systems, > GEOM is picky about letting you doink with disks that you have > mounted, so you either need the "let me shoot myself in the foot > sysctl patch > (ftp://ftp.jurai.net/users/winter/patches/geom-foot.patch) or boot > from something else (e.g. floppy, live cdrom, ...) > > Make sure that grub can see it's various interesting bits: > > grub> find /boot/grub/stage1 > > and it should say: > > (hd0,1,a) > > assuming that you have Something Else (e.g. windows) in the first > primary BIOS partition/slice, a set of FreeBSD slices in the second > primary BIOS partition/slice, and the /boot/grub stuff is in the first > ("a") BSD_DISKLABEL/slice. > > If you have the grub bits living in a Linux filesystem in the third > primary BIOS partition, it'd say (hd0,2). If you had them in a Linux > filesystem living in the first extended partition, it'd say (hd0,4), > etc > > That's the drive that you want to declare as your root, which just > configures the low level grub code that "setup" installs so that it > knows where to look for it's various useful bits. > > e.g. > > grub> root (hd0,1,a) > > Then you need to install grub onto somewhere where the computer will > trip over it and boot it. > > One possibility is to install it into the master boot record, which > would be: > > grub> setup (hd0) > > Here you boot process would be > > power on->bios->load the MBR which is really GRUB->grub loads its stage1,... > > Or you could leave a "normal" MBR at the beginning of the disk and > install GRUB into the beginning of the FreeBSD BIOS partition > (assuming that FreeBSD is in the second primary parition): > > grub> setup (hd0,1) > > If that's all that you do, thing's won't quite boot. You'll need to > also mark that partition active, so that the stock MBR code will jump > to it. I always do that by getting to this point, booting by hook or > by crook (e.g. a grub boot floppy, a bootable freebsd CD, a bootable > linux CD) and using some utility (e.g. partition magic from windows, > fdisk from windows, fdisk from freebsd, fdisk or cfdisk from linux) to > mark the partition active. I prefer partition magic because I believe > that it has the most robust partition table integrity checks, but > whatever you trust > > Now, your boot process will look like: > > power on->bios->"real" MBR which jumps to the active parition -> (next line) > > ... -> GRUB at the beginning of active partition -> GRUB stage1,... > > When grub get's up and running, it'll look for a file called menu.lst > (unless you override
Re: Grub and FreeBSD 4.9
Just plain doesn't work here moans that it cant mount the FS where as chainloader works fine. Steve - Original Message - From: "Cyrille Lefevre" > chainloader +1 is for windows friends :P > > some samples : > > title FreeBSD (primary - SCSI) > root (hd4,0,a) > kernel /boot/loader > > title FreeBSD (secondary - SCSI) > root (hd7,0,a) > kernel /boot/loader > > title FreeBSD 4.x (primary - IDE) > root (hd0,2,a) > kernel /boot/loader > > title Windows (primary) > rootnoverify (hd0,0) > chainloader +1 > # For loading DOS if Windows NT/2K is installed > # chainload /bootsect.dos > > title Windows (secondary) > map (hd0) (hd1) > map (hd1) (hd0) > rootnoverify (hd1,0) > chainloader +1 > > title FreeBSD (floppy) > root (fd0,a) > kernel /boot/loader > > title Install GRUB (primary - SCSI) > root(hd4,0,a) > setup (hd4,0) > > title Install GRUB (secondary - SCSI) > root(hd7,0,a) > setup (hd7,0) > > title Install GRUB (primary - IDE) > root(hd0,2,a) > setup (hd0,2) > > title Install GRUB (floppy) > root(fd0) > setup (fd0) > > Cyrille Lefevre. > -- > home: mailto:[EMAIL PROTECTED] > > This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Grub and FreeBSD 4.9
"Steven Hartland" <[EMAIL PROTECTED]> wrote: > chainloader is your friend here I found as u correctly state it doesn't > seem to support ffs drives even though the devs seem to say it does. chainloader +1 is for windows friends :P some samples : title FreeBSD (primary - SCSI) root (hd4,0,a) kernel /boot/loader title FreeBSD (secondary - SCSI) root (hd7,0,a) kernel /boot/loader title FreeBSD 4.x (primary - IDE) root (hd0,2,a) kernel /boot/loader title Windows (primary) rootnoverify (hd0,0) chainloader +1 # For loading DOS if Windows NT/2K is installed # chainload /bootsect.dos title Windows (secondary) map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1,0) chainloader +1 title FreeBSD (floppy) root (fd0,a) kernel /boot/loader title Install GRUB (primary - SCSI) root(hd4,0,a) setup (hd4,0) title Install GRUB (secondary - SCSI) root(hd7,0,a) setup (hd7,0) title Install GRUB (primary - IDE) root(hd0,2,a) setup (hd0,2) title Install GRUB (floppy) root(fd0) setup (fd0) Cyrille Lefevre. -- home: mailto:[EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Grub and FreeBSD 4.9
"db" <[EMAIL PROTECTED]> wrote: > > I'm trying to get grub working on my FreeBSD 4.9 test-box. So far I've done: > cd /usr/ports/sysutils/grub > make install clean > mkdir /boot/grub > cp /usr/local/share/grub-0.94/i386-freebsd/* /boot/grub/ > In /boot/grub I created a fil called menu.lst and wrote this in it: > default 0 # By default, boot the first entry. > timeout 5 # Boot automatically after 30 secs. > > title FreeBSD > root (hd0,0) root(hd0,0,a) would be better :) > kernel /boot/loader Cyrille Lefevre. -- home: mailto:[EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Grub and FreeBSD 4.9
On Wed, May 19, 2004 at 12:47:34PM +0100, Steven Hartland wrote: > Oh quite possibly I have the grub install on a linux partition. > just creating a small boot partition of a format that grub can load > should be good enough though. If someone else can find out > how to get grub to load read an ffs partition I'd be certainly > interested as well. mine works fine. i am with 5-current (UFS2, but it works with UFS1 also) install the grub port # mkdir /boot/grub # cp /usr/local/share/grub/i386-freebsd/* /boot/grub make a /boot/grub/menu.lst: ---begin menu.lst--- default=0 timeout=10 title FreeBSD root (hd0,1,a) kernel /boot/loader ---end menu.lst--- (adjust the root directive accordingly - mine is first hard disk, second slice, partition 'a') format a msdos diskette then install grub on it: # mount -t msdos /dev/fd0 /mnt # mkdir /mnt/grub # cp /boot/grub/* /mnt/grub/ # umount /mnt # grub grub> root (fd0) grub> setup (fd0) grub> quit reboot from the diskette: grub> root (hd0,1,a) # again, adjust accordingly grub> setup (hd0) # install in MBR then reboot and you should be all set PS. I'm typing this from memory, but this is pretty much how I install it -tacho -- 0x44fc3339 || [02b5 798b 4bd1 97fb f8db 72e4 dca4 be03 44fc 3339] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Grub and FreeBSD 4.9
Oh quite possibly I have the grub install on a linux partition. just creating a small boot partition of a format that grub can load should be good enough though. If someone else can find out how to get grub to load read an ffs partition I'd be certainly interested as well. Steve / K - Original Message - From: "db" <[EMAIL PROTECTED]> To: "Steven Hartland" <[EMAIL PROTECTED]> > If I boot with the bootdisk I can loade FreeBSD (with the chainloader), but if > I'm using grub on the disk I get: This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Grub and FreeBSD 4.9
On Wednesday 19 May 2004 12:43, you wrote: > chainloader is your friend here I found as u correctly state it doesn't > seem to support ffs drives even though the devs seem to say it does. If I boot with the bootdisk I can loade FreeBSD (with the chainloader), but if I'm using grub on the disk I get: -- GRUB loading stage1.5. GRUB loading, pelase wait... Error 18 -- I've edited the menu.lst to make sure FreeBSD is loaded with the chainloader, but I don't think that is the problem. Stage1.5 is not on the floppy, so maybe it is having problems finding it? If yes, do I have to reinstall FreeBSD and place /boot differently in order to make it work? br db ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Grub and FreeBSD 4.9
chainloader is your friend here I found as u correctly state it doesn't seem to support ffs drives even though the devs seem to say it does. Steve - Original Message - From: "db" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 19, 2004 11:41 AM Subject: Grub and FreeBSD 4.9 > Hi all > > I'm trying to get grub working on my FreeBSD 4.9 test-box. So far I've done: > cd /usr/ports/sysutils/grub > make install clean > mkdir /boot/grub > cp /usr/local/share/grub-0.94/i386-freebsd/* /boot/grub/ > In /boot/grub I created a fil called menu.lst and wrote this in it: > default 0 # By default, boot the first entry. > timeout 5 # Boot automatically after 30 secs. > > title FreeBSD > root (hd0,0) > kernel /boot/loader > > My box is just a test box with one harddisk, so I've made one huge / and then > given about 256 mb to swap. > > I've read that the safest way to install grub is by making a bootdisk, boot > and run setup, so I made the disk: > # cd /boot/grub > # dd if=stage1 of=/dev/afd0 bs=512 count=1 > 1+0 records in > 1+0 records out > # dd if=stage2 of=/dev/afd0 bs=512 seek=1 > 153+1 records in > 153+1 records out > And I booted on it just fine, but I can't install grub because it by default > dones't support ffs drives. I know there is a ffs_stage1_5 in /boot/grub, but > how do I use it? > > Anyway I rebooted in FreeBSD and ran "grub" and made the install > successfully, but then booting the system again I get an "error 18". So how > do I fix it? > > I've also tried getting network support built into grub, but I can't figure > out which driver to use (FreeBSD use de0), any ideas? > > Best regards > db > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"