Hi,
My TS-7260 using an initramfs, busybox combination that mounts the usb
from /dev/sda1 and then uses swith_root to pivot the rootfs to a the
usb which has a Debian rootfs.
To avoid data loss in the root partition in the event of a power
failure or system crash I want the rootfs to be READ ONLY.
My initramfs init file is
#!/bin/ash
export PATH="/bin:/sbin:/usr/bin"
echo "AYIM init script running .. "
mount -t proc none /proc
mount -t sysfs none /sys
busybox sleep 15
mount -o ro -t ext2 /dev/sda1 /mnt
busybox umount /proc
busybox umount /sys
exec busybox switch_root /mnt /sbin/init
exec /bin/ash
Please give any good suggestions to know whether the usb
device /dev/sda1 is ready to mount. (Now I an just sleeping for 15
seconds). I heard that busybox mdev is useful.. but I don't know how
to make it work.
Thank you
Gajan
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|