remount rw

Net Llama! netllama
Mon May 17 12:01:14 PDT 2004


On Thu, 8 Apr 2004, Jorge Almeida wrote:
> I have a question about the remount option of the mount command:
>
> Suppose I have /dev/hda2 mounted read-only on /usr at boot time (via
>   /etc/fstab). To temporarilly mount it read-write I should do
> 	mount -o remount,rw /dev/hda2 /usr
> Is this right? And by doing this am I canceling any other mounting
> options present in /etc/fstab?
>
> The following issue is how to return to the former condition after
> upgrading software:
> 	mount -o remount,ro /dev/hda2 /usr ?
> 	umount /usr ?
> 		(would the latter cancel the second mount command (mount
> 		-o remount,rw ...) or would it unmount /dev/hda2  completelly?

Leave out the block device (/dev/hda2) in your mount command.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman				netllama at linux-sxs.org
Linux Step-by-step & TyGeMo		     http://netllama.ipfox.com



More information about the Linux-users mailing list