LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-06-2007, 11:41 AM   #1
khairilthegreat
LQ Newbie
 
Registered: Nov 2006
Distribution: Kubuntu
Posts: 25

Rep: Reputation: 15
grub failed to load linux (grub think ext3 partition as fat)


I cant boot to my linux.

Grub says:
Code:
Booting'Ubuntu, kernel 2.6.15-23-386'
root(hd1,0)
Filesystem type is fat, partition type 0xC
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hdc1 ro quiet splash

Error 15 : File not found
If I use ubuntu instalation CD then in the menu screen I choose boot from first harddisk, I can boot into Ubuntu. Grub says
Code:
Booting'Ubuntu, kernel 2.6.15-23-386'
root(hd1,0)
Filesystem type is ext3, partition type ...(I forget)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hdc1 ro quiet splash
.....
.....
.....
and grub load Ubuntu.

How to solve this problem? I've tried to reinstall grub, but no luck. The only way I can boot to ubuntu is using the CD.

Thanks in advance.
 
Old 08-06-2007, 11:58 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I expect that somehow the installed system is seeing the disks and partitions differently. When running from the installed Linux (on the hard disk), open a terminal and enter "fdisk -l" ( It might need to be "sudo fdisk -l"). Post the results here + relevant details of your configuration. e.g. what is on hda and hdb?
 
Old 08-06-2007, 01:26 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
Do what pixellany told you to and supply the output of "fdisk -l".

Ubuntu's installer may be using a kernel still able to see a pata disk but an installed Ubuntu will use the latest kernel that sees a Pata same as the Sata/SCSCI/USB hard disk family. Thus there may be a problem in the naming of the hard disks and partitions.

You can prove this theory by posting "fdisk -l" in the Live CD and then boot up the installed version and post the 2nd "fdisk -l".
 
Old 08-09-2007, 09:01 AM   #4
khairilthegreat
LQ Newbie
 
Registered: Nov 2006
Distribution: Kubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
This is the content of fdisk -l.

Code:
root@ns:/# fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1275    10241406    c  W95 FAT32 (LBA)
/dev/hda2            1276        5099    30716280    c  W95 FAT32 (LBA)
/dev/hda3            5100        9493    35294805   83  Linux
/dev/hda4            9494       14592    40957717+   f  W95 Ext'd (LBA)
/dev/hda5            9494       14592    40957686   83  Linux

Disk /dev/hdc: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        1216     9767488+  83  Linux
/dev/hdc2            1217        1338      979965   82  Linux swap / Solaris
/dev/hdc3            1339        4998    29398950   83  Linux
The two drive is PATA.

I have Ubuntu in /dev/hdc1, and Windows XP in /dev/hda1.

My box is installed with ubuntu 6.06 dapper.

This problem emerged when I reinstall my box. What confuses me is I reinstalled the computer with the same ubuntu version (6.06). The previous installed version doesn't produse any problem.
 
Old 08-09-2007, 09:23 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Try editing the /boot/grub/menu.lst so that the Ubuntu entry has:
root (hd2,0)

(Or try this at boot time---when the grub menu comes up, hit the tab key to stop the countdown, then "e" for edit. You can now try different grub commands.)

You could also change the IDE cabling and jumpers so that the system would see the drives as hda and hdb.
 
Old 08-09-2007, 11:07 AM   #6
khairilthegreat
LQ Newbie
 
Registered: Nov 2006
Distribution: Kubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
I tried what you suggest but no luck. Grub says device not exist.

I look into device.map and it contains
Code:
(hd0)	/dev/hda
(hd1)	/dev/hdc
which I think the correct entry, because my drive is /dev/hda and /dev/hdc.

I really don't want to change any jumper. I do no hardware changes when I install the computer. Grub work previously and it drive me crazy why it doesnt work now. All the configuration (hardware) is not changed.

What confuses me more is why I can boot when I use the installer CD. You know when I insert the installation CD into my drive, then the CD will prompt me with option
Code:
Install in text mode
Install a server
....
....
....
Boot from first harddisk
If I choose boot from first harddisk, it will then proceed to my grub menu. The same grub menu as before, then I can boot into ubuntu.
Quote:
(Or try this at boot time---when the grub menu comes up, hit the tab key to stop the countdown, then "e" for edit. You can now try different grub commands.)
What kind of command to trouble shoot this problem?

Its really confusing.
 
Old 08-09-2007, 11:20 AM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
You need root (hd1,0).
 
Old 08-09-2007, 01:12 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
You need root (hd1,0).
Which is what he had in the original post...but there was no space after "root".
How about trying root (hd1,0) in the grub interactive mode at bootup? You can also try the grub "find" command.
http://www.gnu.org/software/grub/manual/grub.html#find
 
  


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
How to bypass 'Grub' after deleting the Linux partition, so that Windows XP can load? Marion D Poff Linux - Software 11 03-15-2011 04:52 PM
GRUB won't load windows partition - root (hd0,0), Filesystem type unknown partition.. cillm527 Linux - Software 4 04-27-2008 07:44 AM
Grub failing to load. Vista removed partition / need help restoring Jarru Linux - General 9 07-15-2007 09:48 AM
grub won't load fedora 4, rescue disk says partition is unformatted! bean.art Linux - Software 29 12-01-2005 07:33 AM
XP won't load...grub hid partition? SamerAdra Mandriva 4 10-21-2004 10:37 AM


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