LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-27-2003, 05:33 PM   #1
blackx
LQ Newbie
 
Registered: May 2003
Posts: 14

Rep: Reputation: 0
make grub boot Floppy


I am trying to make a grub boot floppy before I fdisk /mbr to play with recovery mode but its not working.

I followed the directions on http://www.geocities.com/cyberkabila/main/grub.htm
but it is not working.

#mke2fs /dev/fd0

#mount -t ext2 /dev/fd0 /mnt/floppy

#grub-install --root-directory = /mnt/floppy

When I type this command it just gives me the help info like I typed it wrong... I also tried

grub-install --root-directory=/mnt/floppy
grub-install --root-directory=mnt/floppy
grub-install --root-directory= /mnt/floppy
grub-install --root-directory /mnt/floppy
grub-install --root-directory mnt/floppy
grub-install --root-directory=/ /mnt/floppy

Last command it says format of install_device not recognized

Suggestions?

Last edited by blackx; 05-27-2003 at 05:37 PM.
 
Old 05-27-2003, 06:22 PM   #2
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Rep: Reputation: 30
try here instead:

http://www.ircee.com/sxs/grubflop.html

it says it is for caldera, but you can extrapolate i think

OR this one is directly from grub's website:

http://www.gnu.org/software/grub/grub-faq.en.html#q4

Last edited by yowwww; 05-27-2003 at 06:25 PM.
 
Old 05-27-2003, 06:25 PM   #3
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Rep: Reputation: 30
Boot Floppy

Hi how you doing?

Try this one!!!

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
<now we modify the /etc/grub.conf file to install grub on the floppy>
6. Make a copy of /etc/grub.conf and call it: /etc/grubfd.conf:

cp /etc/grub.conf /etc/grubfd.conf

7. Edit the new /etc/grubfd.conf file to look as follows:

#
# /etc/grubfd.conf - make a floppy boot disk
#
# To install grub on the floppy, issue the following command:
# grep -v ^# /etc/grubfd.conf | grub --batch
#
root (fd0)
install /boot/grub/stage1 d (fd0) (fd0)/boot/grub/stage2 0x8000 p (fd0)/boot/grub/menu.lst
quit

8. Install GRUB on the floppy disk:

grep -v ^# /etc/grubfd.conf | grub --batch


GRUB version 0.5.94 (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> root (fd0)
Filesystem type is fat, using whole disk

grub> install /boot/grub/stage1 d (fd0) (fd0)/boot/grub/stage2 0x8000 p (fd0)/boot/grub/menu.lst

grub> quit

and all is done good luck

------------Gerardo

Linux: Fast, Stable, Flexible
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reinstall grub and make boot floppy hraposo Fedora 1 08-11-2004 09:12 AM
How to make boot floppy? Maxim16 Linux - Newbie 3 06-22-2004 10:51 PM
how to make a boot floppy? hasan Debian 3 01-13-2004 02:30 PM
Cannot Boot Linux - forgot to make boot floppy marsial Linux - Newbie 3 08-23-2003 12:39 PM
How to make the boot floppy? Gerardoj Linux - General 2 08-10-2003 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration