All pastes #382130 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-05 10:03 UTC
rendered paste body
root@galaxy1ffbt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root               832.0k    832.0k         0 100% /mnt/rom
/dev/mtdblock/4           6.4M      1.0M      5.4M  16% /mnt/rom/jffs
none                    832.0k    832.0k         0 100% /mnt
/dev/scsi/host0/bus0/target0/lun0/part1     9.2G    175.3M      8.5G   2% /
/dev/scsi/host0/bus0/target0/lun0/part3   137.1G    128.2M    130.0G   0% /daten

hier das init script:

#!/bin/sh

# change this to your boot partition
boot_dev="/dev/scsi/host0/bus0/target0/lun0/part1"

# install needed modules for usb and the ext3 filesystem
# **NOTE** for usb2.0 replace "uhci" with "ehci-hcd"
# **NOTE** for ohci chipsets replace "uhci" with "usb-ohci"

for module in usbcore ehci-hcd scsi_mod sd_mod usb-storage jbd ext3; do {
        insmod $module
}; done

# this may need to be higher if your disk is slow to initialize
sleep 5

# mount the usb stick
mount "$boot_dev" /mnt

# if everything looks ok, do the pivot root
[ -x /mnt/sbin/init ] && {
        mount -o move /proc /mnt/proc && \
        pivot_root /mnt /mnt/mnt && {
                mount -o move /mnt/dev /dev
                mount -o move /mnt/tmp /tmp
                #mount -o move /mnt/jffs /jffs 2>&-
                #mount -o move /mnt/sys /sys 2>&-
        }
}

# finally, run the real init (from USB hopefully).
exec /bin/busybox init