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

Re: Kernel recompilation [solved]



Em Seg, 2004-04-12 às 14:13, strawks escreveu:
> You probably don't have specified an initrd for your kernel in your
> bootloader.
> This way, the kernel cannot mount the root fs because the ext3 module is
> not loaded.
> You can create an initrd image using mkinitrd (I don't really know how
> to make one, see manpage), or simply add support for ext3 and ide disks
> directly in the kernel, not as a module.
> 
> strawks.
> 
> On Mon, 2004-04-12 at 17:48, Jansen Carlo Sena wrote:
> > Ok, 
> > 
> > I moved the /boot/config-2.4.25-1-386 file to
> > /usr/src/kernel-source-2.4.25/.config and ran "make oldconfig". After, I
> > just disabled APM and Local APIC support and enabled ACPI with battery,
> > AC Adapter, Button, Fan, Processor, Thermal Zone support (kernel
> > module).
> > 
> > When I rebooted my system using this new kernel I get the follow
> > message:
> > 
> > *************************************************************
> > VFS: Cannot open root device "hda7" or 03:07
> > Please append a correct "root=" boot option
> > Kernel panic: VFS: Unable to mount root fs on 03:07
> > *************************************************************
> > 
> > All of my partitions were ext3 formatted. I looked the kernel configuration again and the ext3 was supported like a kernel module.
> > Are there other reasons to this problem?
> > 
> > What's wrong?
> > 
> > Jansen.
> 

Hi,

I used the follow command:

mkinitrd -o /boot/initrd-<kernel-version> /lib/modules/<kernel-version>

and after I included a initrd line in my /boot/grub/menu.lst file like
this:

title           Debian GNU/Linux, kernel 2.4.25.20040412
root            (hd0,1)
kernel          /vmlinuz-2.4.25.20040412 root=/dev/hda7 ro
initrd          /initrd.img-2.4.25.20040412                 <<< NEWLINE
savedefault
boot


and now, my new kernel is loading ok!

Thanks all, 

Jansen.

Attachment: signature.asc
Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente


Reply to: