[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help: VFS: cann't open root device "hda2" or unknown-block(0,0)



On Fri, Sep 02, 2005 at 02:02:46AM +0800, weiyun lv wrote:
> to schrink the problem now I use kernel-source-2.4.27 (through apt-get 
> install kernel-source-2.4.27), then I do
> /usr/src/linux # cp /boot/config-2.4.27-2-386 ./.config            //copy 
> my running config
> /usr/src/linux make oldconfig                                               
>   //made no change here
> then I compile and install the kernel, but now I got the similar error 
> message when booting:  VFS : cann't open root device 'hda2' or 03:02;
> kernel panic : unable to mount root fs on 03:02
> 
> is there something wrong with my compilation:
> # apt-get install kernel-source-2.4.27
> # cd /usr/src
> # tar -jxf kernel-source-2.4.27.tar.bz2
> # ln -s kernel-source-2.4.27 linux
> # cd linux
> # cp /boot/config-2.4.27-2-386 ./.config
> # make oldconfig              //nothing is suggested to confirm here
> # make-kpkg clean
> # make-kpkg --append-to-version=.0901 kernel-image
> # cd ..
> # dkpg -i kernel-image-2.4.27.0901_10.00.Custom_i386.deb
> # reboot
> 
> is there something wrong with this sequence or ...?

Well make-kpkg MUST have --initrd option if using the config debian has
since it uses modules for all the filesystems and device drivers.  If
you don't, it won't generate an initrd.img when installing the package,
and hence won't load any of the drivers at boot.

Len Sorensen



Reply to: