ts-7000
[Top] [All Lists]

[ts-7000] read only rootfs: TS-7260/2.6.21-ts/root-fs on usb

To:
Subject: [ts-7000] read only rootfs: TS-7260/2.6.21-ts/root-fs on usb
From: "gajans.garage" <>
Date: Fri, 24 Oct 2008 11:35:24 -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.

The problem is:
Though I mount the usb as read only and it behaves as a read only
while initramfs is the root file system, when I switch/pivot the file
system it becomes read write. 

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

Furthermore, 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)

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>
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