LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-04-2007, 12:03 AM   #1
beats
LQ Newbie
 
Registered: Aug 2006
Distribution: Ubuntu Feisty Fawn
Posts: 4

Rep: Reputation: 0
Grub wont boot OSs unless it boots the install cd first


Hi Guys

This is real random. I recently installed Feisty Fawn onto my SCSI drive which is attached to an Adaptec SCSI card. When i try and boot the system it gets to grub fine and all the OSs are found alright but when i select one it says can't find partition.
Then when put in the installation cd and select boot from first disk and select an OS in grub it boots fine.
Was wondering if someone could explain why this happens and how to fix it.

Thanks in advance
 
Old 05-04-2007, 09:14 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
GRUB is not seeing the OS's correctly, it is just reading the menu titles. You need to compare the menu.lst file with the actual partitioning.
 
Old 05-05-2007, 09:02 PM   #3
beats
LQ Newbie
 
Registered: Aug 2006
Distribution: Ubuntu Feisty Fawn
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your quick reply. I have looked at both the /etc/fstab and menu.lst file and can't see anything wrong. I was hoping you could have a look and see if you can see any thing. The OSs are installed on /dev/sdb.


proc /proc proc defaults 0 0
# Entry for /dev/sdb2 :
UUID=44ecef58-1eae-42c8-b72a-01410b003c55 / ext3 defaults,errors=remount-ro 0 1
# Entry for /dev/hda1 :
UUID=E494089A9408717A /media/hda1 ntfs-3g defaults,locale=en_NZ.UTF-8 0 1
# Entry for /dev/sda1 :
UUID=705F-912D /media/sda1 vfat defaults,utf8,umask=007,gid=46 0 1
# Entry for /dev/sdb1 :
UUID=D074699274697BDA /media/sdb1 ntfs-3g defaults,locale=en_NZ.UTF-8 0 1
# Entry for /dev/sdb3 :
UUID=787b7cd7-0d50-40fd-a3f1-f5417b27e546 none swap sw 0 0
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0

menu.lst

title Ubuntu, kernel 2.6.20-15-generic
root (hd2,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=44ecef58-1eae-42c8-b72a-01410b003c55 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd2,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=44ecef58-1eae-42c8-b72a-01410b003c55 ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Ubuntu, memtest86+
root (hd2,1)
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 a non-linux OS
# on /dev/hda1
title Windows NT/2000/XP (loader)
root (hd0,0)
savedefault
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Microsoft Windows XP Professional
root (hd2,0)
savedefault
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1

Thanks in advance.

Last edited by beats; 05-05-2007 at 09:03 PM.
 
Old 05-06-2007, 01:19 AM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
hda is a windows C: drive, formatted ntfs in one big partition.
hdb is an optical drive - guessing cd/dvd combo.

sda is an scsi drive (native scsi or SATA?) with one partition formatted fat32
sdb is an scsi drive with three partitions:
... sdb1 is windows drive
... sdb2 is ubuntu root
... sdb3 is ubuntu swap(?)

Normally, any IDE drive number is less than any SCSI drive number, although that is not true if you change the boot sequence by swapping IDE and SCSI drives in your BIOS. I'm guessing you have changed the boot sequence in bios, maybe you have installed GRUB to sdb0 (mbr)? Or something like that.

In this case
... sda1 will be (hd0,0)
... sdb1 will be (hd1,0)
... and you will have to use the map instruction in that windows entry.

Ubuntu uses debian tools to generate menu.lst ... try running "update-grub" and see what happens before you test this out.
 
  


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
forced install oss now it wont uninstall linuxmandrake Ubuntu 3 01-10-2007 09:25 PM
Can't boot/grub SuSE after re-install; all other OSs fine. tuxisnottux Suse/Novell 17 12-22-2005 04:37 AM
Grub prompt on boot, boots with diskette themapincognita Red Hat 1 11-26-2004 12:13 AM
boot stops at GRUB GRUB linux never boots coffeedemon Slackware 4 11-09-2004 02:20 PM
new install wont boot, hangs at grub cphase Slackware - Installation 12 02-06-2004 10:31 PM


All times are GMT -5. The time now is 05:59 AM.

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