LinuxQuestions.org
Visit Jeremy's Blog.
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 11-27-2009, 12:24 PM   #1
unix1adm
Member
 
Registered: Oct 2008
Posts: 688

Rep: Reputation: 32
grub menu.lst file help needed


I removed my fedora 10 install from my multi boot Ubuntu system. I installed Fedora 12 on the partation converting ti to ext4 per the install procedure.

I cannot get it to boot. This is what my menu.lst looks like. I get err17 or something says it cannot boot fedora.

title Ubuntu 9.04, kernel 2.6.27-7-generic
uuid befc8a95-e59a-4adc-aab0-2c5c3b6dacbd
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=befc8a95-e59a-4adc-aab0-2c5c3b6dacbd ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Ubuntu 9.0.4, kernel 2.6.27-7-generic (recovery mode)
uuid befc8a95-e59a-4adc-aab0-2c5c3b6dacbd
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=befc8a95-e59a-4adc-aab0-2c5c3b6dacbd ro single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 9.0.4, memtest86+
uuid befc8a95-e59a-4adc-aab0-2c5c3b6dacbd
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
title Fedora release 12 (Cambridge) (on /dev/sda3)
root (hd0,2)
kernel /boot/Fedora-12-i686-L root=/dev/sda3
savedefault
boot

title WindowsXP
root (hd0,1)
savedefault
makeactive
chainloader +1

The windos xp does not work either

Last edited by unix1adm; 11-27-2009 at 12:25 PM.
 
Old 11-27-2009, 03:46 PM   #2
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
Maybe you making changes to the partition table renumbered the partitions?

What is the output of:

Code:
sudo fdisk -l
 
Old 11-27-2009, 04:54 PM   #3
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I do not have time to research this but I am going to give you something to think about. I believe fedora 12 uses the ext4 file system with grub2. grub 2 does not work well with grub legacy. I believe I read you can install the the fedora grub to / and then chainload it from your ubuntu menu.lst.


Larry

Last edited by Larry Webb; 11-27-2009 at 04:56 PM.
 
Old 11-29-2009, 04:23 PM   #4
unix1adm
Member
 
Registered: Oct 2008
Posts: 688

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by tom4everitt View Post
Maybe you making changes to the partition table renumbered the partitions?

What is the output of:

Code:
sudo fdisk -l
fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7d027d02

Device Boot Start End Blocks Id System
/dev/sda1 6554 20289 110334420 83 Linux
/dev/sda2 1 6553 52636941 7 HPFS/NTFS
/dev/sda3 20553 30401 79112092+ 5 Extended
/dev/sda4 20290 20552 2112547+ 82 Linux swap / Solaris
/dev/sda5 * 20553 23163 20971520 83 Linux

Partition table entries are not in disk order
 
Old 11-29-2009, 05:47 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
title Fedora release 12 (Cambridge) (on /dev/sda3)
root (hd0,2)
That points to the extended partition - will never work. Presuming F12 is actually in sda5, try "root (hd0,4)". But I strongly doubt Fedora ship kernels of that name - and what about the initrd ?.

There were some issues with Fedora using the larger inode size on ext[34] when called from grub legacy. However if you managed to get to F10 you probably had the patched grub that Ubuntu shipped to get around that with Jaunty. ext4 should be o.k. in that case.

As for XP, try "rootnoverify (hd0,1)"
 
Old 11-29-2009, 05:51 PM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Alternatively, you can backup your existing grub.cfg and run:
Quote:
# /sbin/grub-mkconfig -o /boot/grub/grub.cfg
 
Old 11-30-2009, 03:40 AM   #7
Wifi-Fanatux
Member
 
Registered: Mar 2009
Location: Northwest
Distribution: LAPTOP->DreamStudio & Saline-Debian
Posts: 70

Rep: Reputation: 19
Partition Table Order

It appears your device numbers are out of order:
Your Windows is on sda2, but it is on the first partition (1-6553)
Therefore use title WindowsXP
root (hd0,0)

Your Fedora root is on sda3, but it is on the fourth partition (20553-30401)
Therefore use title Fedora release 12 (Cambridge) (on /dev/sda3)
root (hd0,3)
kernel /boot/Fedora-12-i686-L root=/dev/sda3
--------------------------------------------------------------
/dev/sda1 6554 20289 110334420 83 Linux
/dev/sda2 1 6553 52636941 7 HPFS/NTFS
/dev/sda3 20553 30401 79112092+ 5 Extended
/dev/sda4 20290 20552 2112547+ 82 Linux swap / Solaris
/dev/sda5 * 20553 23163 20971520 83 Linux
 
Old 11-30-2009, 07:08 AM   #8
unix1adm
Member
 
Registered: Oct 2008
Posts: 688

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by sycamorex View Post
Alternatively, you can backup your existing grub.cfg and run:

i dont see a grub.cfg just a menu.lst
Ill try the command an see what happens

No such command as /sbin/grub-mkconfig -o /boot/grub/grub.cfg

Ill try the other options mentioned here.

Last edited by unix1adm; 11-30-2009 at 07:14 AM.
 
Old 11-30-2009, 07:19 AM   #9
unix1adm
Member
 
Registered: Oct 2008
Posts: 688

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by syg00 View Post
That points to the extended partition - will never work. Presuming F12 is actually in sda5, try "root (hd0,4)". But I strongly doubt Fedora ship kernels of that name - and what about the initrd ?.

There were some issues with Fedora using the larger inode size on ext[34] when called from grub legacy. However if you managed to get to F10 you probably had the patched grub that Ubuntu shipped to get around that with Jaunty. ext4 should be o.k. in that case.

As for XP, try "rootnoverify (hd0,1)"

tried this
As for XP, try "rootnoverify (hd0,1)"
and got

Error 11: Unrecognized device string
Press any key to continue

Tried it with/out "" in the sting.
 
Old 11-30-2009, 07:20 AM   #10
unix1adm
Member
 
Registered: Oct 2008
Posts: 688

Original Poster
Rep: Reputation: 32
Tried this:

our Fedora root is on sda3, but it is on the fourth partition (20553-30401)
Therefore use title Fedora release 12 (Cambridge) (on /dev/sda3)
root (hd0,3)
kernel /boot/Fedora-12-i686-L root=/dev/sda3

and got

Error 17: Cannot mount selected Partition
Press any key to continue
 
Old 11-30-2009, 08:57 AM   #11
unix1adm
Member
 
Registered: Oct 2008
Posts: 688

Original Poster
Rep: Reputation: 32
so i did a clean install of the Fedora 12 and let it use its own boot loader and now I dont see my Ubuntu boot option. It did put in an option for the XP partition (that did not work something about dll not found) but it at least see the partition

So I booted Fedora and mounted the Ubuntu and copied the menu.lst entries into the new menu.lst for Fedora. It said it could not fine the ubuntu boot partition or some such msg.

Iam going to try to install Ubuntu 9.10 from scratch and see if that will work.

Not sure why it wont see the 9.4 image.

If this does not work it restore the disk from backup and try something else.
 
Old 11-30-2009, 09:01 AM   #12
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
Okay, from the information you've given me I would actually recommend you to wipe your fedora installation of entirely (I'm sure it will be possible to fix it some way, but it will probably be pretty ugly). Do it again, and do it right this time, i.e:

1. Erase all partitions except for ubuntu and xp.
2. Make a primary (NOT LOGICAL or EXTENDED) /dev/sda3 partition for fedora /boot. If you don't want a separate /boot partition, just let this partition be the / partition.
2b. If you created a separate boot, create a / partition as /dev/sda4, preferrably primary.
3. Create a swap partition, and other partitions as you like (these may well be logical/extended).

This will put you in a lot better position.

I would also like to recommend you to learn a little more about grub

http://www.dedoimedo.com/computers/grub.html

and set it up so your most permanent OS, i.e ubuntu, takes care of the booting. This will save you from similar head aches in the future. (About your xp i'm not sure what to do. Understanding what grub does and how it works will put you in a lot better position to solve this however, so read the guide Its really good.)


EDIT: Ooops, just too late. But read the grub guide, it will make it so much easier for you to figure out this stuff.

Last edited by tom4everitt; 11-30-2009 at 09:03 AM.
 
Old 11-30-2009, 09:24 AM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
When you tried the entry "rootnoverify (hd0,1" did you have the complete entry:

title windows
rootnoverify (hd0,1)
chainloader +1

Your Ubuntu menu.lst entry for Fedora shows it on sda3.
Your fdisk output shows sda3 as an Extended partition which can't be right as an extended can'th hold data!

If you install Ubuntu 9.10, remember that it uses Grub2 and there will be no menu.lst. It's very different from Grub Legacy.
 
Old 11-30-2009, 09:30 AM   #14
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
This is true. I would still recommend the OP to read the grub guide, since

- most grub2 guides presume familiarity with grub.
- the principle's are the same, the differences superficial
- it is almost only ubuntu that has switched to grub2 yet

Whats different in grub2:
https://wiki.ubuntu.com/Grub2
 
Old 11-30-2009, 09:48 AM   #15
unix1adm
Member
 
Registered: Oct 2008
Posts: 688

Original Poster
Rep: Reputation: 32
Well i removed the ubuntu and the fedora, I loaded fedora first and confirmed it booted.
I then loaded Ubuntu and it sees the fedora image and the ubuntu image.

I am able to load both now.

I will read the information provided. Thank you.

I will rip this down and try again and see if i can reproduce with the ubuntu 9.4 image.

Last edited by unix1adm; 11-30-2009 at 09:49 AM.
 
  


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
How to change partition Grub looks for menu.lst file in. Mountain Man Linux - General 8 12-27-2007 11:47 AM
Configuration of the file 'menu.lst' in GRUB Gins Linux - General 7 08-27-2007 11:23 PM
Grub Menu doesn't reflect menu.lst file fatsheep Linux - Software 4 06-11-2007 01:29 PM
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 08:42 AM
/grub/menu.lst file disappeared but computer still boots (grub) rrrssssss Linux - General 5 04-08-2007 09:02 AM

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

All times are GMT -5. The time now is 03:13 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