CqCn
Full Member
 
Karma: 0
Posts: 169
|
 |
« on: August 09, 2009, 05:56:24 PM » |
|
Is there something special about a flash SDCard or USB/SDcard that makes mounting them read-only does not work?
Running the ShPg sw version that came with the box, booted off of an SDCard.
#mount rootfs on / type rootfs (rw) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) varrun on /var/run type tmpfs (rw,nosuid,mode=0755) varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) tmpfs on /var/cache/apt type tmpfs (rw,noatime)
When I mount the SDCard (rootfs) to another mount pont, /mnt/src_device, mount works # mount /dev/mmcblk0p1 /mnt/src_device # mount ... /dev/mmcblk0p1 on /mnt/src_device type ext2 (rw)
However, if I try to mount it ro, I get an error: #umount /mnt/src_device #mount -o ro /dev/mmcblk0p1 /mnt/src_device mount: /dev/mmcblk0p1 already mounted or /mnt/src_device busy
But if I try -o rw, it works.
For the second USB/DCard (which is not the rootfs), the behavior is slightly different. mounting it -o ro, does not give any error, but the resulting mount is rw. What gives?
|