LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-2008, 11:30 PM   #1
kramer2718
Member
 
Registered: Jul 2006
Posts: 46

Rep: Reputation: 15
Unable to boot Ubuntu


So I just installed Ubuntu and it isn't happy. I can boot into my system using Slax and it shows the kernel image mounted on the boot partition /mnt/hdb1/vmlinuz-2.6.24-16-server. (Slax mounts /dev/* as /mnt/*)

And when I try to boot into Ubuntu, it gets to the grub menu, but when I select the boot option, it just says Error 15: File not Found Press any key to continue...


If I look at the grub boot commands, it says
root (hd2, 0)
kernel /vmlinuz-2.6.24-16-server root=UUUID=<big long hex looking thing> ro quiet splash
initrd /initrd.img-2.6.24-16-server
quiet

Now, I'm no grub expert, but that looks like the correct boot sequence to me (aside from any graphics options that Ubuntu might have missed).

Does anyone have any ideas?

Thanks in advance.
 
Old 05-28-2008, 12:43 AM   #2
htnakirs
Member
 
Registered: Mar 2007
Posts: 239

Rep: Reputation: 34
Look under the /boot/grub folder of the drive with Ubuntu to ascertain whether the kernel image is correctly named.

Alternatively, I have found that it is easiest to copy the grub menu details of one installation into the other installation's grub menu. For example, you can copy the menu details pertaining to the ubuntu drive from the grub installed during the ubuntu installation, and paste it in the grub menu of the slax installed grub. Hope this is comprehensible.
 
Old 05-28-2008, 12:48 AM   #3
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Fedora 13, SUSE 11, Ubuntu 10.04, Mandriva 2010, Mint 8
Posts: 336

Rep: Reputation: 34
Smile

the 2 main grub lines need to have the full boot file/ image path. So as an example; kernel /boot/vmlinuz-2.6.24-16-and so on
initrd /boot/initrd.img-2.6.24-16-
or they may be located in /boot/grub/
Also be sure the root location in grub speak is correct, so for yours as;
root (hd2, 0) this is the third hard drive, and first partition.
Also most grub Linux are listed with a title too.
 
Old 05-28-2008, 03:19 AM   #4
kramer2718
Member
 
Registered: Jul 2006
Posts: 46

Original Poster
Rep: Reputation: 15
I'm not sure what you are saying ... let me go into more detail. I have a board with one IDE port and four SATA ports. I have a DVD burner as master on the IDE drive and an IDE hd as the slave. It looks like Linux detects the IDE hd as /dev/hdb (where hdb1 is the boot partition), thus I thought that grub's root (hd2, 0) referenced the right partition and that the next command kernerl /vmlinuz-2.6.24-16-server <opts> referenced the correct binary. Please tell me if I am mistaken or what's going on.

Quote:
Originally Posted by james2b View Post
the 2 main grub lines need to have the full boot file/ image path. So as an example; kernel /boot/vmlinuz-2.6.24-16-and so on
initrd /boot/initrd.img-2.6.24-16-
or they may be located in /boot/grub/
Also be sure the root location in grub speak is correct, so for yours as;
root (hd2, 0) this is the third hard drive, and first partition.
Also most grub Linux are listed with a title too.
 
Old 05-28-2008, 03:45 AM   #5
kramer2718
Member
 
Registered: Jul 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by htnakirs View Post
For example, you can copy the menu details pertaining to the ubuntu drive from the grub installed during the ubuntu installation, and paste it in the grub menu of the slax installed grub. Hope this is comprehensible.

Hmmm. That wouldn't seem to help much as Ubuntu won't boot. Anyway, Slax is a livecd, so I wouldn't know how to copy a grubf conf file to it anyway...
 
Old 05-28-2008, 05:32 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,230

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
Quote:
Originally Posted by kramer2718 View Post
I have a board with one IDE port and four SATA ports. I have a DVD burner as master on the IDE drive and an IDE hd as the slave.
You've apparently got more hard disks than that.
Let's see the (full) output of "fdisk -l" run (as root) from the liveCD.
 
Old 05-29-2008, 12:06 AM   #7
kramer2718
Member
 
Registered: Jul 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Disk /dev/hdb: 82.3 GB, 82348277760 bytes
16 heads, 63 sectors/track, 159560 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x86a0efa5

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 193 96768+ 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/hdb2 193 9881 4882813 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/hdb3 9882 25389 7815622+ 82 Linux swap
Partition 3 does not end on cylinder boundary.
/dev/hdb4 25389 159560 67622405+ 5 Extended
Partition 4 does not end on cylinder boundary.
/dev/hdb5 38069 134951 48828125+ 83 Linux
/dev/hdb6 134951 159560 12403374+ 7 HPFS/NTFS
/dev/hdb7 25389 38059 6385774+ 83 Linux

Partition table entries are not in disk order

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

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1573 12635091 7 HPFS/NTFS
/dev/sda2 1574 30400 231552877+ f W95 Ext'd (LBA)
/dev/sda5 1574 4006 19543041 7 HPFS/NTFS
/dev/sda6 4007 30400 212009773+ 83 Linux

Disk /dev/sdb: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x45ca2ba0

Device Boot Start End Blocks Id System
/dev/sdb1 1 12158 97656250+ 83 Linux
/dev/sdb2 12158 36482 195379902 7 HPFS/NTFS
 
Old 05-29-2008, 12:46 AM   #8
htnakirs
Member
 
Registered: Mar 2007
Posts: 239

Rep: Reputation: 34
Grubs root would be (hd1,0) since hd0 is the DVD drive.
 
Old 05-29-2008, 01:32 AM   #9
kramer2718
Member
 
Registered: Jul 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by htnakirs View Post
Grubs root would be (hd1,0) since hd0 is the DVD drive.
Hmmm ... when I change the drive to (hd1,0) and try to boot, it gives 'Error 17: Cannot mount selected partition'
 
Old 05-29-2008, 01:42 AM   #10
kramer2718
Member
 
Registered: Jul 2006
Posts: 46

Original Poster
Rep: Reputation: 15
So I tried the ubuntu rescue disk and it asked which hard drive was / mounted from, but the strange thing was that it didn't have any /dev/hdbX at all it had /dev/sda1 - /dev/sda7, /dev/sdb1-/dev/sdb6 and /dev/sdc1-/dev/sdc2. Right away, I realized that somehow, ubuntu (and the grub that ubuntu installed) was seeing my ide drive (connected as the slave) as /dev/sda whereas the livecd saw it as hdb (as you would expect). Can anyone explain this strange behavior?
 
Old 05-29-2008, 01:45 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,230

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
Grub doesn't care about anything except [hard|floppy] disks. However you need to know which disk(s) are being presented by the BIOS. Sometimes IDE drives go first, sometimes SATA.
At the boot menu, get into command mode and enter these command - they will indicate which drive is which
Code:
geometry (hd0)
geometry (hd1)
geometry (hd2)
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 7.10 Dual Boot with XP, ubuntu partition deleted, grub 1.5 error 22 narchy Linux - Newbie 11 02-07-2011 03:54 AM
toshiba satellite unable to boot ubuntu 7.04 live cd 1dude1 Linux - Software 2 08-21-2007 05:19 PM
Changing default boot OS back to Ubuntu without being able to boot Ubuntu revenge02 Linux - Newbie 5 04-16-2007 08:37 PM
Unable To Boot To Fedora When Grub Installed in /boot Partition FedoraNewbie Linux - Newbie 4 09-26-2006 03:46 AM
filesystem error unable to boot, how to restore the boot nesargha Linux - Hardware 6 06-14-2006 02:29 AM


All times are GMT -5. The time now is 07:43 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration