initrd don't work

Svedese nospam at nonnnonno.it
Sat Jun 19 08:33:36 PDT 2004


Now the linuxrc is executed, until it must mount /dev/hda1, then i get this
error:

Mounting real root dev...
mount:Mounting /dev/hda1 on /new_root failed:No such device or address




This is the output of ls -R for my initrd:

--------------------------------------------------------------


/initrd:
bin  dev  etc  lib  linuxrc  new_root  proc  sys

/initrd/bin:
[  busybox  chroot  echo  insmod  ln  mkdir  mount  pivot_root  sh

/initrd/dev:
console  hda1   hda2  null  tty1  tty3  ram0  tty2  tty4

/initrd/etc:
fstab  modprobe.conf

/initrd/lib:
cdrom.ko   ide-core.ko  ide-floppy.ko  modules      sd_mod.ko  usbcore.ko
ide-cd.ko  ide-disk.ko  ide-scsi.ko    scsi_mod.ko  sr_mod.ko 
usb-storage.ko

/initrd/lib/modules:
2.6.5-k7-f3-e2-r

/initrd/lib/modules/2.6.5-k7-f3-e2-r:
modules.alias   modules.dep          modules.inputmap   modules.pcimap  
modules.usbmap
modules.ccwmap  modules.ieee1394map  modules.isapnpmap  modules.symbols

/initrd/new_root:

/initrd/proc:

/initrd/sys:


------------------------------------------------------------------------


This is my linuxrc:


------------------------------------------------------------------------
#!/bin/sh

export PATH=/bin

echo "Initial RAMDISK Loading Starting..."
insmod /lib/scsi_mod.ko
insmod /lib/sd_mod.ko
insmod /lib/cdrom.ko
insmod /lib/sr_mod.ko
insmod /lib/ide-core.ko
insmod /lib/ide-disk.ko
insmod /lib/ide-cd.ko
insmod /lib/ide-floppy.ko
insmod /lib/ide-scsi.ko
insmod /lib/usbcore.ko
insmod /lib/usb-storage.ko
echo "Mounting proc..."
mount -n -t proc none /proc
echo "Mounting sys..."
mount -n -t sysfs none /sys
echo 0x0100 > /proc/sys/kernel/real-root-dev
echo "Mounting real root dev..."
mount -n -o ro /dev/hda1 /new_root
echo "Running pivot_root..."
pivot_root /new_root /new_root/initrd
if [ $$ = 1 ]
        then
                echo "Running init..."
                exec chroot . sbin/init dev/console 2>&1
        else
                echo "Using bug circumvention for busybox..."
                exec chroot . sbin/linuxrc dev/console 2>&1
fi
echo "Initial RAMDISK Loading Completed..."





More information about the lfs-support mailing list