How to mount rootfs though harddisk when booting?

wilbur.chan wilbur512 at gmail.com
Fri Oct 23 01:08:13 EST 2009


mpc85xx with sata harddisk,which has a rootfs on sda3.

I ' ve tried to use  freescale's kernel image , which is  togehther
with the mpc85xx board, to successfully mount the sda3 filesystem when
booting,


But when I used my own kernle, it failed:



I am using  kernel 2.6.21.7 to mount the harddisk as the rootfs.

However, it failed in booting and print:


VFS: Cannot open root device "sda3" or unknown-block(0,0)

My kernel's bootargs are as followed:


root=/dev/sda3 rw console=ttyS0,115200 console=tty0


I guess there were some incorrect configs when doing kernel
menuconfig,  I' ve set "ext2,ext3", and some "sata" ,"scsi" configs,

but that might be  not enough.


May anyone please give me some  suggestions?

THX in advance.


More information about the Linuxppc-dev mailing list