Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257066 - Unable to boot 2.6.28 on rootfs ext4
Summary: Unable to boot 2.6.28 on rootfs ext4
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-31 10:21 UTC by Roy Marples
Modified: 2009-02-10 23:03 UTC (History)
3 users (show)

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 Roy Marples 2009-01-31 10:21:46 UTC
It detects it as ext3 and then fails with unsupported options.

Passing rootfstype=ext4 hangs without error, but after some disk access and before init is run. I can't really tell you more as my USB devices init with messages after kernel tries to start init these days and punt any related messages off the screen. Booting with quiet has NO output, just hangs.

The ext4 partition was created from fresh and data was copied by rsync -avx.

Any pointers to fixing this would be nice as I thought ext4 was now considered "good enough". Can attach kernel config if required.
Comment 1 Maxi Combina 2009-02-01 12:19:36 UTC
I think that the problem is the bootloader.
Do you have GRUB? GRUB does not support ext4 yet: http://ext4.wiki.kernel.org/index.php/Ext4_Howto#Booting_from_an_ext4_filesystem
Comment 2 Roy Marples 2009-02-01 17:08:11 UTC
I doubt it's the boot loader as /boot is on a small ext2 partition AND the kernel is already loaded. Interesting, the same kernel can mount and use ext4 parts, just not as the rootfs.
Comment 3 Maxi Combina 2009-02-01 19:06:10 UTC
I see.
Have you compiled ext4 inside the kernel or just as a kernel module? In the later case: are you using an initrd?

Regards,
Maxi
Comment 4 Roy Marples 2009-02-01 20:00:31 UTC
Everything is compiled into the kernel, except for nVidia drivers.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-02-02 04:49:18 UTC
Can you post more information about the partition layout? Can you somehow set the system up to produce more kernel output?
Comment 6 Roy Marples 2009-02-02 07:48:38 UTC
(In reply to comment #5)
> Can you post more information about the partition layout?

kernel command line
root=/dev/sda3 vtsplash.theme=gentoo console=tty1 quiet

fdisk -l
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        6080    48837568+  a9  NetBSD
/dev/sda2            6081       12160    48837600   a9  NetBSD
/dev/sda3           12161       18240    48837600   83  Linux
/dev/sda4           18241       60801   341871232+   5  Extended
/dev/sda5           18241       18257      136521   83  Linux
/dev/sda6           18258       19231     7823623+  82  Linux swap / Solaris
/dev/sda7           19232       25311    48837568+  83  Linux

cat /etc/fstab
 <fs>			<mountpoint>	<type>		<opts>		<dump/pass>

/dev/sda3		/		xfs		noatime,nobarrier 0 1
/dev/sda5		/boot		ext3		noauto,noatime	1 2
/dev/sda7		/mnt/x		ext4		noatime,noauto	0 0
/dev/sda6		none		swap		sw		0 0

On the ext4 partition, the / fstab entry is swapped with the /mnt/x entry (before you ask). And, yes, to active the ext4 partition I set root=/dev/sda7 in grub.
Otherwise they are identical.

> Can you somehow set
> the system up to produce more kernel output?

How?
As I said earlier, there is no warning or error it just hangs.
With quiet disabled, the last messages shown on screen are the USB init messages which are fine. The screen is limited to 80x25 here.
Comment 7 Roy Marples 2009-02-10 23:03:14 UTC
I feel bad :/
I pulled an old PS2 keyboard out so my USB foo didn't overwrite the screen and voila - there was the error. Because I used udev, my /dev didn't have any nodes. I am an idiot.

Sorry for noise.