Greetings,

I've posted a few time ago about a problem of mounting the root
filesystem on a USB device flash when booting from it. The possible
cause *may* be the USB isn't active when the kernel init is running.

I found a few hints in this list to delay the kernel init process until
USB is up and running:

http://marc.theaimsgroup.com/?l=linux-usb-users&m=103824142214859&w=2

However, now I'm working with kernel 2.4.21, and I would like to find a
patch to the fs/super.c since the older ones are too different from the
last one.

I think I have a correct initrd initialing the modules. See below the
linuxrc.

I appreciate any help about this.

thanks,
Pedro Salazar.

->linuxrc (of initrd)
----------
#!/bin/sh

echo "Initial RAMDISK Loading Starting..."
insmod /lib/scsi_mod.o
insmod /lib/sd_mod.o
insmod /lib/usbcore.o
insmod /lib/usb-storage.o
insmod /lib/usb-ohci.o
insmod /lib/ehci-hcd.o
echo "Initial RAMDISK Loading Completed..."
mkdir /new_root
echo "Mounting proc..."
mount -n -t proc none /proc
echo 0x0100 > /proc/sys/kernel/real-root-dev
echo "Mounting real root dev..."
mount -n -o ro /dev/sda1 /new_root
umount /proc
cd /new_root
echo "Running pivot_root..."
pivot_root . initrd
if [ -c initrd/dev/.devfsd ]
        then
                echo "Mounting devfs..."
                mount -n -t devfs none dev
fi
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
------

-- 
PS
[EMAIL PROTECTED]
PGP:0E129E31D803BC61



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to