Results 1 to 9 of 9

Thread: grub2 boot floppy?

  1. #1
    Join Date
    Apr 2007
    Location
    South Carolina
    Beans
    985
    Distro
    Ubuntu Studio 16.04 Xenial Xerus

    grub2 boot floppy?

    I'd like to make a bootable floppy that will get me to a grub prompt.
    I use to be able to:
    Code:
    sudo grub-mkrescue --overlay=/boot/grub --image-type=floppy grub2.img
    sudo dd if=grug2.img of=/dev/fd0
    and it would work fine but now the command doesn't work. Evidently the newer versions of grub2 changed the commands.
    It seems like its designed to make an iso file but not for making a file to fit on a floppy which I know is a little obselete.
    I'm using Ubuntu 12.04 but I've got 4 hard drives & 5 different versions of Ubuntu plus Windows & some other distros so its confusing enough to find the right Grub files to begin with.
    That's why i just want a boot floppy to get me to a grub prompt so i can manually get to where I want. I have one I made a couple years ago when grub2 first came out & it works but I'm trying to find the commands to reproduce it again. I know i could copy the floppy i already have but I'd really like to know how to make one from scratch.
    Any ideas?
    Gary

    I wish I knew what I used to know before I knew what I didn't know.

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: grub2 boot floppy?

    Is the typo in the commands you posted the issue(grug2), or did you just not copy correctly?

    I have floppy drive but have not used it more than once or twice, since I built system in 2006. But I have grub2 flash drives with ISO for installs and extra boot stanza to boot hard drives.

    I think there were issues on mounting floppy.
    http://ubuntuforums.org/showthread.php?t=1877488
    http://ubuntuforums.org/showthread.p...0#post11244050 post #2 coffeecat
    Mount floppy from command line - Nautilus often does not work
    udisks --mount /dev/fd0
    ls /dev/fd*
    System->Administration->Users and Groups->Advanced Settings->User Privileges and click on "Use floppy drives"
    Last edited by oldfred; September 7th, 2013 at 04:25 PM.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Apr 2007
    Location
    South Carolina
    Beans
    985
    Distro
    Ubuntu Studio 16.04 Xenial Xerus

    Re: grub2 boot floppy?

    Quote Originally Posted by oldfred View Post
    Is the typo in the commands you posted the issue(grug2), or did you just not copy correctly?
    ................
    No, that's just a typo but it has nothing to do with the problem. It's the first command "grub-mkrescue..." where I'm getting the error. I'm not even getting to the "dd..." command now.
    Something has changed in the grub-mkrescue command where those switches are no longer valid or at least the way I'm using them any more.
    Gary

    I wish I knew what I used to know before I knew what I didn't know.

  4. #4
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: grub2 boot floppy?

    My notes are slightly different, but I have never run it.

    https://launchpad.net/ubuntu/oneiric...grub-rescue-pc
    /usr/lib/grub-rescue/grub-rescue-floppy.img
    grub-mkrescue --image-type=floppy /tmp/grub-rescue.flp
    dd if=/tmp/grub-rescue.flp of=/dev/fd0 bs=1024

    Basically the grub-mkrescue copies Grub2 image into the specified file and you use the dd command to write the same onto a floppy. For a bootable Grub2 CD the instructions are

    Image still is here with 12.04:

    /usr/lib/grub-rescue/grub-rescue-floppy.img
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #5
    Join Date
    Apr 2007
    Location
    South Carolina
    Beans
    985
    Distro
    Ubuntu Studio 16.04 Xenial Xerus

    Re: grub2 boot floppy?

    The only thing that works for me so far is
    Code:
    sudo grub-mkrescue -o grub2.iso
    I haven't tried to burn a CD with it but it does make the file.
    With this code
    Code:
     sudo grub-mkrescue --image-type=floppy /tmp/grub-rescue.flp
    I get the error
    output file must be given
    Gary

    I wish I knew what I used to know before I knew what I didn't know.

  6. #6
    Join Date
    Mar 2009
    Location
    Earth
    Beans
    122
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: grub2 boot floppy?

    I have have been trying to create a boot floppy for a computer with CD but without boot option from CD as well.
    After downloading and compiling grub 2.00 and xorriso 1.3.2 you can use the command:

    grub-mkrescue --compress=xz -o /data1/ISO_IMAGE/Linux/grub-rescue.vfd

    but that still results in a 4.4Mb image, unusable for writing on a 1.4Mb floppy. The --diet and --image-type
    are no longer supported, so doing anything special (apart from compression) for floppy is unclear.

    I think I will concentrate how to get a grub2 image to boot from grub1 based floppy.

  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: grub2 boot floppy?

    Herman has some info on floppy drives with grub legacy & grub2.
    I prefer USB or CD drive which he also has info on his site.

    grub legacy
    http://members.iinet.net.au/~herman5...ppy_howto_make
    Grub2
    http://members.iinet.net/~herman546/...B2_Floppy_Disc
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  8. #8
    Join Date
    Mar 2009
    Location
    Earth
    Beans
    122
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: grub2 boot floppy?

    Have you tried any of that before you posted? At least the stuff http://members.iinet.net/~herman546/...B2_Floppy_Disc does not work.

    The first command with grub2 you will get the message that --overlay is an unrecognized option (on grub 2.0)

  9. #9
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: grub2 boot floppy?

    I have not used floppy disk for years. I much prefer flash drives. I use Herman's commands to create those.

    But is system is that old you may need grub legacy anyway?

    This thread said it worked with grub2 but it would have been an older version of grub2. I am suprised a parameter has been removed. Maybe it was just ignored in the older version?
    http://ubuntuforums.org/showthread.php?t=1305475
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •