• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: mounting the SDCard or a USB/SDcard ro does not work  (Read 1474 times)
CqCn
Full Member
***

Karma: 0
Posts: 169



View Profile
« 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?
« Last Edit: August 09, 2009, 08:43:13 PM by CqCn » Logged

Cordially, CqCn

restamp
Global Moderator
Sr. Member
*****

Karma: 4
Posts: 273


View Profile
« Reply #1 on: August 09, 2009, 07:24:40 PM »

If you're really using "unmount", that's your problem.  Try using "umount".
Logged

CqCn
Full Member
***

Karma: 0
Posts: 169



View Profile
« Reply #2 on: August 09, 2009, 08:43:45 PM »

If you're really using "unmount", that's your problem.  Try using "umount".
No, that was a typo here, I was actually using umount Smiley
Logged

Cordially, CqCn

Pages: [1]
Print
Jump to: