LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2007, 10:02 AM   #1
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Lubuntu 14.04 LTS, Kali
Posts: 297

Rep: Reputation: 30
Grub Boot floppy / menu.lst problem


Here is the setup on one of my machines :

hda : Red Hat, Knoppix, Windows 98SE

hdb : Ubuntu 6.06

I installed Ubuntu last of all and on the second hard drive, hence that is where it installed a new copy of grub and its files.
Now I wanted to make a grub boot floppy of the system just for emergencies.
Booted into Ubuntu, fired up a terminal, formatted the floppy, made the various directories, copied the stage1 stage2 files onto the correct dirs on the floppy. Unmounted floppy, started grub "shell" issued the device , root and setup commands. All went well. I tested to see if I could use this to boot - excellent worked fine. I then thought it would be nice to have the grub boot up screen of my system on the floppy as well. The anomaly arose when I copied the "device.map" and "menu.lst" files from the Ubuntu drive onto my grub boot floppy. When I booted from the grub floppy the splash screen did not fire up ( could not find the xpm.gz file). I got the standard black + white grub menu for my OSs. I tried to boot into RH, Knopp, and Win98SE but none whould boot ( was getting "file not found" errors. However, the Ubuntu did boot. Plausible explanations for this ??
If I had copied the device.map and menu.lst at the same time as I copied the stage1 stage2 files ( instead of afterwards) would that have made a difference ?

Cheers,
Uncle
 
Old 02-24-2007, 02:40 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Here are my notes for making a grub floppy with menu...

This gives you the boot menu just like it was installed on the hard drive.
Code:
fdformat /dev/fd0
mke2fs -m 0 /dev/fd0
mkdir /media/floppy
mount -t ext2 /dev/fd0 /media/floppy
mkdir -p /media/floppy/boot/grub
cp -pa /boot/grub/* /media/floppy/boot/grub
umount /media/floppy

# Create a text file called /home/stuff  ...

cat > /home/stuff << EOF
root (fd0)
#the following is all one line
install /boot/grub/stage1 d (fd0) (fd0)/boot/grub/stage2 0x8000 p (fd0)/boot/grub/menu.lst
#
quit
EOF

# Install grub to the floppy disk with this command:

grep -v ^# /home/stuff | grub --batch
 
Old 02-24-2007, 06:40 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Mine is lazier. It works as I use the new floppy to boot up Ubuntu to write this reply
Code:
mkdosfs -F32 /dev/fd0
 sudo mkdir /mnt/fd0
 sudo mount /dev/fd0 /mnt/fd0
 sudo mkdir /mnt/fd0/boot
 sudo mkdir /mnt/fd0/boot/grub
 sudo mount /dev/fd0 /mnt/fd0
 sudo cp -R /boot/grub/* /mnt/fd0/boot/grub
 sudo umount /mnt/fd0
 sudo grub
 root (fd0)
 setup (fd0)
 quit
 sudo reboot
blue bits are issued inside Grub shell.

Last edited by saikee; 02-24-2007 at 06:43 PM.
 
Old 02-26-2007, 07:00 AM   #4
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Lubuntu 14.04 LTS, Kali
Posts: 297

Original Poster
Rep: Reputation: 30
Should this method work if I were to create a grub floppy to boot the various OS on my hda ? My Ubuntu is on hdb, from where I intend to open up a terminal and create the boot floppy. What I initially found was that my Ubuntu booted perfectly via Grub-boot-floppy but I had no such luck when trying to boot any of the OS on hda via the boot-floppy method.
I will try anyway ! Wish me luck

uncle
 
Old 02-26-2007, 09:41 AM   #5
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Lubuntu 14.04 LTS, Kali
Posts: 297

Original Poster
Rep: Reputation: 30
Safe as houses. Worked like a dream. Can boot into all OS on both drives with no problems.


Thanks,
Uncle.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Right way to edit /boot/grub/menu.lst ? eeried Linux - Software 2 02-07-2007 09:59 AM
Lost boot/grub/menu.lst MRDucks Linux - Newbie 12 12-17-2005 02:44 PM
How to edit /boot/grub/menu.lst of the host satimis Linux From Scratch 1 09-25-2005 08:21 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 12:45 PM
anyone know how to edit the /boot/grub/menu.lst? plzz help earth.hero Linux - Newbie 17 03-26-2005 11:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration