grub on 5.4
Am I missing something obvious? The HDD is'nt write protected or anything, the freebsd loader went in fine # ls /boot/grub/ device.map fat_stage1_5iso9660_stage1_5 menu.lst reiserfs_stage1_5 stage2 vstafs_stage1_5 e2fs_stage1_5 ffs_stage1_5jfs_stage1_5 minix_stage1_5 stage1 ufs2_stage1_5 xfs_stage1_5 # .. GNU GRUB version 0.95 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ] grub find /boot/loader (hd0,0,a) grub root (hd0,0) Filesystem type unknown, partition type 0xa5 grub root (hd0,0,a) Filesystem type is ufs2, partition type 0xa5 grub find /boot/grub/stage Possible files are: stage1 stage2 grub find /boot/grub/stage1 (hd0,0,a) grub setup (hd0) Checking if /boot/grub/stage1 exists... yes Checking if /boot/grub/stage2 exists... yes Checking if /boot/grub/ufs2_stage1_5 exists... yes Running embed /boot/grub/ufs2_stage1_5 (hd0)... failed (this is not fatal) Running embed /boot/grub/ufs2_stage1_5 (hd0,0,a)... failed (this is not fatal) Running install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.lst ... failed Error 29: Disk write error grub quit -- 'What have you done to the cat? It looks half-dead.' -- Schroedinger's wife Rasputin :: Jack of All Trades - Master of Nuns ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: grub on 5.4
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Apr 23, 2005 at 12:19:22AM +0100, Dick Davies wrote: Wow, that's a bit messed up - I need to boot off a different disk before I can write to the MBR? Someone mentioned a GEOM quirk, is that what's stopping me doing it from within freebsd? I wonder why boot0cfg doesn't have the same problem? You may create a bootable grub floppy with $ cd /boot/grub $ dd if=stage1 of=/dev/fd0 bs=512 count=1 $ dd if=stage2 of=/dev/fd0 bs=512 seek=1 Thanks, but if it's a freebsd thing I'll just install the MBR from one of the other OSes - do you know if I need our patched grub for the mbr to grok ufs2, or will a leenux one work? The usual one will work. title FreeBSD root (hd0,1,a) kernel /boot/loader If that doesn't work, you can do the chainloader +1 thingie, but it shouldn't be necessary--somewhere in either the early 5.x or at some point in CURRENT, the above syntax wasn't working with older versions of GRUB. Howevr, the current heh GRUB will work with the above syntax. (It had to do with older versions not recognizing the ufs2, but the issue has been fixed.) HTH - -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Cordelia: What is stalking nowadays, like, the third most popular sport among men? Angel: Fourth, after luge -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCaYjW+lTVdes0Z9YRAjYZAJ9aV/hXT6mowGT06unbFym9FK7adgCgvAx3 okPUg28Mn0v/Rogd7F/7Xpw= =HCz7 -END PGP SIGNATURE- ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: grub on 5.4
Dick Davies schrieb: grub find /boot/grub/stage1 (hd0,0,a) grub setup (hd0) Checking if /boot/grub/stage1 exists... yes Checking if /boot/grub/stage2 exists... yes Checking if /boot/grub/ufs2_stage1_5 exists... yes Running embed /boot/grub/ufs2_stage1_5 (hd0)... failed (this is not fatal) Running embed /boot/grub/ufs2_stage1_5 (hd0,0,a)... failed (this is not fatal) Running install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.lst ... failed Error 29: Disk write error grub quit It will work when you install grub after booting from floppy disk or CD. You may create a bootable grub floppy with $ cd /boot/grub $ dd if=stage1 of=/dev/fd0 bs=512 count=1 $ dd if=stage2 of=/dev/fd0 bs=512 seek=1 Uli Middelberg -- http://lists.freebsd.org/pipermail/freebsd-questions/2005-February/076136.html ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: grub on 5.4
* Uli Middelberg [EMAIL PROTECTED] [0447 20:47]: Dick Davies schrieb: grub find /boot/grub/stage1 (hd0,0,a) grub setup (hd0) Checking if /boot/grub/stage1 exists... yes Checking if /boot/grub/stage2 exists... yes Checking if /boot/grub/ufs2_stage1_5 exists... yes Running embed /boot/grub/ufs2_stage1_5 (hd0)... failed (this is not fatal) Running embed /boot/grub/ufs2_stage1_5 (hd0,0,a)... failed (this is not fatal) Running install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.lst ... failed Error 29: Disk write error grub quit It will work when you install grub after booting from floppy disk or CD. Wow, that's a bit messed up - I need to boot off a different disk before I can write to the MBR? Someone mentioned a GEOM quirk, is that what's stopping me doing it from within freebsd? I wonder why boot0cfg doesn't have the same problem? You may create a bootable grub floppy with $ cd /boot/grub $ dd if=stage1 of=/dev/fd0 bs=512 count=1 $ dd if=stage2 of=/dev/fd0 bs=512 seek=1 Thanks, but if it's a freebsd thing I'll just install the MBR from one of the other OSes - do you know if I need our patched grub for the mbr to grok ufs2, or will a leenux one work? -- 'Oh. Your. God.' -- Bender Rasputin :: Jack of All Trades - Master of Nuns ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: grub on 5.4
On Fri 22 Apr 05 03:14, Dick Davies [EMAIL PROTECTED] wrote: Am I missing something obvious? The HDD is'nt write protected or anything, the freebsd loader went in fine # ls /boot/grub/ device.map fat_stage1_5iso9660_stage1_5 menu.lst reiserfs_stage1_5 stage2 vstafs_stage1_5 e2fs_stage1_5 ffs_stage1_5 jfs_stage1_5minix_stage1_5 stage1 ufs2_stage1_5 xfs_stage1_5 # .. GNU GRUB version 0.95 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ] grub find /boot/loader (hd0,0,a) grub root (hd0,0) Filesystem type unknown, partition type 0xa5 grub root (hd0,0,a) Filesystem type is ufs2, partition type 0xa5 grub find /boot/grub/stage Possible files are: stage1 stage2 grub find /boot/grub/stage1 (hd0,0,a) grub setup (hd0) Checking if /boot/grub/stage1 exists... yes Checking if /boot/grub/stage2 exists... yes Checking if /boot/grub/ufs2_stage1_5 exists... yes Running embed /boot/grub/ufs2_stage1_5 (hd0)... failed (this is not fatal) Running embed /boot/grub/ufs2_stage1_5 (hd0,0,a)... failed (this is not fatal) Running install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.lst ... failed Error 29: Disk write error grub quit When I set up grub for the first time on this box I just edited menu.1st like so (this system boots fbsd, slackware and win2k, and I like a long timeout in case I'm away from the desk): # cat /boot/grub/menu.lst default=0 timeout=90 title FreeBSD 5.4-PR root (hd0,1,a) kernel /boot/loader title Slackware 10 root (hd2,0) kernel /boot/vmlinuz ro root=/dev/hdd1 title Windows 2000 Pro rootnoverify (hd0,0) makeactive chainloader +1 boot - jt ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: grub on 5.4
Dick Davies wrote: * Uli Middelberg [EMAIL PROTECTED] [0447 20:47]: Dick Davies schrieb: grub find /boot/grub/stage1 (hd0,0,a) grub setup (hd0) Checking if /boot/grub/stage1 exists... yes Checking if /boot/grub/stage2 exists... yes Checking if /boot/grub/ufs2_stage1_5 exists... yes Running embed /boot/grub/ufs2_stage1_5 (hd0)... failed (this is not fatal) Running embed /boot/grub/ufs2_stage1_5 (hd0,0,a)... failed (this is not fatal) Running install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.lst ... failed Error 29: Disk write error grub quit It will work when you install grub after booting from floppy disk or CD. Wow, that's a bit messed up - I need to boot off a different disk before I can write to the MBR? Someone mentioned a GEOM quirk, is that what's stopping me doing it from within freebsd? I wonder why boot0cfg doesn't have the same problem? You may create a bootable grub floppy with $ cd /boot/grub $ dd if=stage1 of=/dev/fd0 bs=512 count=1 $ dd if=stage2 of=/dev/fd0 bs=512 seek=1 Thanks, but if it's a freebsd thing I'll just install the MBR from one of the other OSes - do you know if I need our patched grub for the mbr to grok ufs2, or will a leenux one work? Setting the sysctl: kern.geom.debugflags=16 will allow you to write the bootsectors right from grub-install while having a live root filesystem mounted. -- = = Bryan D. LiesnerLeezSoft Communications, Inc. = = A subsidiary of LeezSoft Inc. = = [EMAIL PROTECTED]Home of the Gipper= = ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]