Friday, 25 December 2009

remount mount points to ro or rw using mount

when the mount point is read/write and you want to mount it read only

it's no need to umount it and mount it again

it is :

mount -o remount,ro /mnt/disk1part1

mount -o ro,remount /mnt/disk1part1

or vice versa

mount -o remount,rw /mnt/disk1part1

mount -o rw,remount /mnt/disk1part1

it is quite useful and handy, I am using it for my geexbox

GB mounts harddisks in read only by default, in order for me to delete files on the drive, I did to remount the mount points

No comments:

Labels

Search This Blog