Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361371 - sys-boot/grub-0.97-r10 reporting "Filesystem type unknown" for ext4 on mdraid1
Summary: sys-boot/grub-0.97-r10 reporting "Filesystem type unknown" for ext4 on mdraid1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 19:29 UTC by Alex Orange
Modified: 2011-03-31 20:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Orange 2011-03-30 19:29:33 UTC
Everything on the system seems to work just fine up to the grub installation. Running grub --no-floppy and asking for the partitions of hd0 (hitting tab) results in:

 Possible partitions are:
   Partition num: 0,  Filesystem type unknown, partition type 0xfd
   Partition num: 1,  Filesystem type unknown, partition type 0xfd
   Partition num: 2,  Filesystem type unknown, partition type 0xfd
   Partition num: 4,  Filesystem type unknown, partition type 0xfd
   Partition num: 5,  Filesystem type unknown, partition type 0xfd

I'm not sure whether it should be saying ext2fs or ext4fs, but clearly it shouldn't say unknown. If I try root (hd0,0) and setup (hd0) root complains about Filesystem type unknown and setup gives Error 17: Cannot mount selected partition. I assume these two errors are to be expected given that it can't figure out the filesystem type.

In case it matters, I created the partitions with "mkfs.ext4 /dev/md1 -L="/"" and similarly for the 2,3,5,6 partitions. Also, as you can see, I set the partition type to 0xfd (linux raid autodetect).

Reproducible: Always

Steps to Reproduce:
1. Boot with livedvd
2. Mount up:
mount /dev/md1 /mnt/gentoo
...
mount -t proc none /mnt/gentoo/proc
mount --rbind /dev /mnt/gentoo/dev
3. chroot
sudo chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
4. grub
grub --no-floppy
root (hd0,0)
setup (hd0)
Actual Results:  
grub> root (hd0,0)
 Filesystem type unknown, partition type 0xfd

grub> setup (hd0)

Error 17: Cannot mount selected partition

grub> 

Expected Results:  
grub> root (hd0,0)
grub> setup (hd0)
grub> 

This is a fresh install following the Gentoo Linux AMD64 Handbook. I got up to the 10.b. step and nothing caused any problems until this. The documentation I used for setting up the raid is http://en.gentoo-wiki.com/wiki/RAID/Software (used google cache because gentoo-wiki seemed to be down).
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-31 19:44:04 UTC
Which partition is that? If it's /boot, then why don't you mount it manually before grub attempts to?
Comment 2 Alex Orange 2011-03-31 20:56:23 UTC
Resolved: was not using version 0.9 metadata. The documentation suggests that only the kernel will have trouble detecting the raid (which could probably be handled by specifying a md= command to the kernel). In reality, both the kernel and grub have issues with mdraid other than 0.9.