Date: Tue, 19 Oct 1999 21:20:32 +0200 From: Neil Blakey-Milner <nbm@mithrandr.moria.org> To: Zhihui Zhang <zzhang@cs.binghamton.edu> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Update the name of a filesystem (more details) Message-ID: <19991019212032.A6058@mithrandr.moria.org> In-Reply-To: <Pine.GSO.3.96.991018153708.17282B-100000@sol.cs.binghamton.edu>; from Zhihui Zhang on Mon, Oct 18, 1999 at 03:46:23PM -0400 References: <Pine.GSO.3.96.991018153708.17282B-100000@sol.cs.binghamton.edu>
index | next in thread | previous in thread | raw e-mail
On Mon 1999-10-18 (15:46), Zhihui Zhang wrote:
> I am trying to change the mount point of a mounted filesystem (from
> /testme to /test) with the update option (-u):
That's not how -u works. From the man page:
-u The -u flag indicates that the status of an already mounted file
system should be changed. Any of the options discussed above
(the -o option) may be changed; also a file system can be changed
from read-only to read-write or vice versa.
> # mount /dev/wd0s2e /testme
> # mount -u /dev/wd0s2e /test
> mount: /dev/wd0s2e on /test: specified device does not match mounted
> device
This is because, as stated above, you can only change the options of the
mounted filesystem, not its mountpoint.
> Why it does not work (I know I can umount first without using the update
> option)? Any help is appreciated.
This (umount then mount) is the way to change mountpoint names.
Neil
--
Neil Blakey-Milner
nbm@rucus.ru.ac.za
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991019212032.A6058>
