When I follow the instructions in the GRUB manual for creating a GRUB boot disk: dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1 dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1 I get a geom error upon booting to the floppy. Any tips?
On Monday 02 August 2004 10:54 am, Steve Adams wrote:
When I follow the instructions in the GRUB manual for creating a GRUB boot disk:
dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
I get a geom error upon booting to the floppy.
Any tips?
I personally like to make a grub boot floppy that contains *everything*
required for grub to boot a system. Thus it should be a copy of
your /boot/grub files, but not the /boot files.
Using this floppy, you can easily test changes you might want to make to your
boot situation as well as take it to another system for booting.
The writeup below was originally written for a Caldera system but it should
also work for SuSE as far as an eye perusal tells me. The unusal method of
using grep to do the install is there to allow you to put comments into
the /etc/grub.conf file. Still should work without the comments.
(watch for the folded line in the /etc/grubfd.conf file below. The install
command should be one line followed by the 'quit' command on the following
line.
This writeup describes how to make bootable floppy disk with a self-contained
copy of GRUB on it. Such a boot floppy is very handy for:
1. Testing various configurations of GRUB and the booting of multiple
Operating Systems.
2. As a recovery diskette when GRUB has been destroyed by that 'other'
Operating System.
The following assumes that you are using Caldera eD2.4 and that all GRUB
components are kept in the /boot/grub directory. (ed: should work as is with
SuSE)
Note: The /etc/grub.conf file is used only to install grub and is not used by
grub directly. We will create a new version of this file.
1. Format a floppy disk in FAT format:
mkfs -V -t msdos /dev/fd0 <== use fd0 or fd1 as appropriate
2. Mount the floppy:
mount /dev/fd0 /mnt
3. Create a boot directory and a grub directory on the floppy:
mkdir /mnt/boot
mkdir /mnt/boot/grub
4. Copy all files from /boot/grub to the floppy:
cp -pa /boot/grub/* /mnt/boot/grub
5. Unmount the floppy disk:
umount /mnt
On Mon, 02 Aug 2004 10:54:30 -0400
Steve Adams
When I follow the instructions in the GRUB manual for creating a GRUB boot disk:
dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
I get a geom error upon booting to the floppy.
Any tips?
*********** Here is the one I use and works for me without fail.. Be sure to be super user. Put blank disk in 1.44MB drive. umount /media/floppy .. make sure it is not mounted. mke2fs /dev/fd0 mount /media/floppy mkdir /media/floppy/boot mkdir /media/floppy/boot/grub cp /boot/grub/stage1 /media/floppy/boot/grub/ cp /boot/grub/stage2 /media/floppy/boot/grub/ grub grub> root (fd0) grub> setup (fd0) grub> quit cp /boot/grub/menu.lst /media/floppy/boot/grub/ umount /media/floppy.. make sure that the buffer is flushed and written to floppy Leave floppy in drive .. reboot .. booting will be by floopy and look the same as on your harddisk. ********** Restore/install grub on first HD MBR. grub grub> find /boot/grub/stage1 .. will show all instances of grub if there is more than one linux OS . even if you have more than one H/drive. grub> root (hd0,0) .. if that is the one you want to use. grub> setup (hd0). grub> quit ******** Enjoy -- Johan Sch Registered Linux User #330034 May this be a good day for learning
On Mon, 2004-08-02 at 14:57, Johan Sch wrote:
On Mon, 02 Aug 2004 10:54:30 -0400 Steve Adams
wrote: When I follow the instructions in the GRUB manual for creating a GRUB boot disk:
dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
I get a geom error upon booting to the floppy.
Any tips?
Thanks to both Bruce Marshall and Johan Sch (sic) for step-by-step instructions on making a GRUB boot disk. Thanks also to all the respondents to another thread I started regarding file concatenation on a DOS/Windows platform. This is a great list.
Steve Adams wrote:
When I follow the instructions in the GRUB manual for creating a GRUB boot disk:
dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
I get a geom error upon booting to the floppy.
Any tips?
http://ameritech.net/users/gholmer/howdoi-GRUB-boot-floppy.html -- ================================================================== Glenn Holmer (Linux registered user #16682) ================================================================== We shall swim out to that brooding reef in the sea and dive down through black abysses to Cyclopean and many-columned Y'ha-nthlei, and in that lair of the Deep Ones we shall dwell amidst wonder and glory for ever. ================================================================== -H. P. Lovecraft, "The Shadow Over Innsmouth", 1931 ==================================================================
participants (4)
-
Bruce Marshall
-
Glenn Holmer
-
Johan Sch
-
Steve Adams