Failed to mount root filesystem during boot
Hi!
I'm maybe in the wrong forum, sorry for that. I'm trying to build a really small linux, an embedded linux. I'm using an usb-stick to boot from. The bootsequence goes well until init tries to mount /dev/sda1 on /. Then it tells me that there's no such device. from the boot-sequence: EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly mount: Mounting /dev/sda1 on / failed: No such device. But there's is a device file in /dev for sda and sda1 My fstab: /dev/sda1 / ext3 defaults 1 1 |
If your system is on an usb-device, I think, you'll need to load some usb modules in an initrd before booting.
I found that: Execute: mkinitrd --with-usb --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod ./usbinitrd-`uname -r` `uname -r` Remeber to edit your lilo.conf or grub.conf to use the newly created initrd. |
No I don't think so, since kernel 2.6.11 or something you can make it wait for finding your usbhardware with the rootdelay=# (# seconds). I rebuild my devices files and it fixed my problem. Thanks anyway!
|
Hey, that sounds great, I guess it is a lot ieasier then what I postet before.
Now I know, what I'm gonna try tonight ;) |
All times are GMT -5. The time now is 05:19 AM. |