LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Failed to mount root filesystem during boot (https://www.linuxquestions.org/questions/linux-hardware-18/failed-to-mount-root-filesystem-during-boot-478741/)

pijon 08-30-2006 07:11 AM

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

vbisis 08-30-2006 09:20 AM

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.

pijon 08-31-2006 04:17 AM

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!

vbisis 08-31-2006 09:35 AM

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.