ts-7000
[Top] [All Lists]

[ts-7000] Waiting for usb to apear as /dev/sda1 - How ?

To:
Subject: [ts-7000] Waiting for usb to apear as /dev/sda1 - How ?
From: "gajans.garage" <>
Date: Mon, 27 Oct 2008 15:55:27 -0000
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/

<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] Waiting for usb to apear as /dev/sda1 - How ?, gajans.garage <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU