grub failed to load linux (grub think ext3 partition as fat)
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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".
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.
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.
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.