| View previous topic :: View next topic |
| Author |
Message |
nessin n00b

Joined: 24 Dec 2007 Posts: 8
|
Posted: Sun May 13, 2012 5:15 pm Post subject: Grub failes to recognize boot partition on startup |
|
|
| I'm trying to install Gentoo for the first time in a few years and I make it all the way through to the reboot stage, but each time I reboot the machine Grub reports "Filesystem type unknown" when it ties to mount the boot partition. I've made sure to build in ext2 support into the kernel, although I don't believe it matters at this point, and every livecd I've used (from the Gentoo LiveDVD, the minimal install image, and two other LiveCDs) to get into grub will report it "root (hd3,0)" as an ext2 file system. |
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6449 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun May 13, 2012 5:40 pm Post subject: |
|
|
(hd3,0) would imply that you have four hard drives and that you're installing Gentoo on the fourth one. Is that true? If not, could you explain your partitioning scheme? Furthermore, the important filesystem to make sure you build into the kernel is the filesystem of the root partition, not the boot partition. Have you made sure of that? (You're correct that it doesn't matter as far as grub is concerned.)
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
nessin n00b

Joined: 24 Dec 2007 Posts: 8
|
Posted: Sun May 13, 2012 5:52 pm Post subject: |
|
|
| John R. Graham wrote: | (hd3,0) would imply that you have four hard drives and that you're installing Gentoo on the fourth one. Is that true? If not, could you explain your partitioning scheme? Furthermore, the important filesystem to make sure you build into the kernel is the filesystem of the root partition, not the boot partition. Have you made sure of that? (You're correct that it doesn't matter as far as grub is concerned.)
- John |
Yes, I've got four drives. 1-3 are standard hard drives I'm going to be making into a single raid partition for data storage. Drive 4 is an SSD that contains my boot (1st), swap (2nd), and root (3rd) partitions. And my root partition is ext4 which I also ensured/verified that ext4 support was built in to the kernel. |
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6449 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun May 13, 2012 5:57 pm Post subject: |
|
|
Okay, just checking. Could you share your grub.conf, please?
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
nessin n00b

Joined: 24 Dec 2007 Posts: 8
|
Posted: Sun May 13, 2012 6:16 pm Post subject: |
|
|
| John R. Graham wrote: | Okay, just checking. Could you share your grub.conf, please?
- John |
| Code: | default 0
timeout 5
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux
root (hd3,0)
kernel /boot/bzImage root=/dev/sdd3
|
I did leave my kernel image as just bzImage when I copied it over. |
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6449 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun May 13, 2012 7:09 pm Post subject: |
|
|
Well, that looks good. The only other thing I can think of right off the bat is that the BIOS is numbering the devices differently than the kernel. Could you jump into the BIOS setup screen and see what you see there as far as drive order?
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
nessin n00b

Joined: 24 Dec 2007 Posts: 8
|
Posted: Sun May 13, 2012 7:26 pm Post subject: |
|
|
| John R. Graham wrote: | Well, that looks good. The only other thing I can think of right off the bat is that the BIOS is numbering the devices differently than the kernel. Could you jump into the BIOS setup screen and see what you see there as far as drive order?
- John |
Do you mean the boot device priority for the hard drive list? If so I've got the SSD listed first as the motherboard I've got will apparently try and boot from the first hard drive listed, even if there is nothing on the drive.
However I think you directed me to the root of my problem. I restarted into my gentoo environment I'd gone through the install process and did a root (hdx,0) run through all my drives, and Gentoo sees root (hd0,0) as my ext2 drive, so I swapped my line to that and it worked just fine.
Why in the world does the drive numbering change? It is because GRUB sees the drive it's on as the first drive in the list if it's on that MBR? |
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6449 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun May 13, 2012 7:34 pm Post subject: |
|
|
No, it's a BIOS quirk. For some reason, your SSD is drive 0 to the BIOS (which grub uses to access the hard drives) and drive 3 (d) to the kernel.
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
|