LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Thread Tools
Old 06-09-2007, 08:20 PM   #1
fatsheep
Member
 
Registered: Sep 2006
Posts: 79
Thanked: 0
Grub Menu doesn't reflect menu.lst file


[Log in to get rid of this advertisement]
I have three Ubuntu partitions: /dev/hda1 (an older backup), /dev/hdb2 (a newer backup), and /dev/hda1 (the new partition I plan to use). Both backups can be deleted once I can get a menu entry that will boot to /dev/hda1. However, I've edited all my menu.lst entries, none of them effect grub's menu anymore unfortunately. It has a spelling error in the entry for /dev/hda1 and I've fixed it and refixed and rebooted several times and it's still there. It's quite frustrating.

So I tried using grub-install to make grub install itself onto the Master Boot Record. Here are my results:

Quote:
fatsheep:~$ sudo grub-install /dev/hdb2
Password:
The file /boot/grub/stage2 not read correctly.
I've rebooted since then and still the menu is the same and I cannot boot to /dev/hda1. I'm in need of some help.
fatsheep is offline     Reply With Quote
Old 06-09-2007, 09:06 PM   #2
pixellany
Moderator
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch
Posts: 13,173
Thanked: 285
How are you installing GRUB? eg are you using a live CD?

I prefer the "native" method for installing GRUB---open the grub shell, and enter:
root (hdX,Y)
setup (hd0)

the root command tells the grub installer where /boot is--ie where the GRUB files are. If it is hda1, then the command will be "root (hd0,0)"

The booting article at my site (link below) may be useful
pixellany is offline     Reply With Quote
Old 06-09-2007, 09:57 PM   #3
fatsheep
Member
 
Registered: Sep 2006
Posts: 79
Thanked: 0

Original Poster
Quote:
Originally Posted by pixellany
How are you installing GRUB? eg are you using a live CD?

I prefer the "native" method for installing GRUB---open the grub shell, and enter:
root (hdX,Y)
setup (hd0)

the root command tells the grub installer where /boot is--ie where the GRUB files are. If it is hda1, then the command will be "root (hd0,0)"

The booting article at my site (link below) may be useful
Well grub files are installed in all of my ubuntu partitions but I tried to install it with grub-install while in one of my ubuntu partitions. I will try your method next.
fatsheep is offline     Reply With Quote
Old 06-11-2007, 10:36 AM   #4
fatsheep
Member
 
Registered: Sep 2006
Posts: 79
Thanked: 0

Original Poster
Quote:
Originally Posted by pixellany
How are you installing GRUB? eg are you using a live CD?

I prefer the "native" method for installing GRUB---open the grub shell, and enter:
root (hdX,Y)
setup (hd0)

the root command tells the grub installer where /boot is--ie where the GRUB files are. If it is hda1, then the command will be "root (hd0,0)"

The booting article at my site (link below) may be useful
Ok your method worked once but it's no longer working and in any event it appears it only had effect on the next boot. I need a permanent fix for the problem.
fatsheep is offline     Reply With Quote
Old 06-11-2007, 02:29 PM   #5
dracolich
Senior Member
 
Registered: Jul 2005
Location: Va Beach
Distribution: Slackware
Posts: 1,220
Thanked: 1
Have you checked the file /boot/grub/devices (I think that's right). It should have entries like

hda (hd0)
hdb (hd1)

If you're booting from hdb then maybe it needs to read that hdb is mapped to hd0.
dracolich is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 09:42 AM
/grub/menu.lst file disappeared but computer still boots (grub) rrrssssss Linux - General 5 04-08-2007 10:02 AM
need grub menu.lst example pk108 Mandriva 4 12-11-2004 07:45 PM
Grub, can someone posts their Menu.lst please webwolf70 cAos 6 10-21-2004 01:37 AM
grub.conf is menu.lst??? zombyLINUX Linux - General 4 03-31-2004 09:12 PM


All times are GMT -5. The time now is 09:36 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration