LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   How to copy grub onto floppy (https://www.linuxquestions.org/questions/suse-opensuse-60/how-to-copy-grub-onto-floppy-356497/)

caesium5 08-24-2005 09:44 AM

How to copy grub onto floppy
 
I had SuSE9.1 (personal edition) installed on a pc and access it by booting a floppy loaded with grub. Somehow this floppy failed to work.

I am not allowed to install grub onto this pc. Thus, I need to remake a floppy that allows me to boot up with grub and initiate SuSE9.1 from there.

I have the SuSE 9.1 CD, if that is of any help.
I have another pc loaded with SuSE9.2 (and the 5CD) and grub together in the hda.

Anyone have any practical idea how to copy grub into floppy?

bulliver 08-24-2005 03:32 PM

This is taken from section 3.1 "Creating a GRUB boot floppy" in the grub info manual:
Code:

To create a GRUB boot floppy, you need to take the files `stage1' and
`stage2' from the image directory, and write them to the first and the
second block of the floppy disk, respectively.

  *Caution:* This procedure will destroy any data currently stored on
the floppy.

  On a UNIX-like operating system, that is done with the following
commands:

    # cd /usr/lib/grub/i386-pc
    # dd if=stage1 of=/dev/fd0 bs=512 count=1
    1+0 records in
    1+0 records out
    # dd if=stage2 of=/dev/fd0 bs=512 seek=1
    153+1 records in
    153+1 records out
    #


caesium5 08-24-2005 07:22 PM

try once, but the floppy hangs when booted.

will try again :)


All times are GMT -5. The time now is 06:53 PM.