From owner-freebsd-questions@FreeBSD.ORG Tue Dec 11 07:43:54 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC2BAC40 for ; Tue, 11 Dec 2012 07:43:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 991EF8FC0C for ; Tue, 11 Dec 2012 07:43:54 +0000 (UTC) Received: from r56.edvax.de (port-92-195-51-39.dynamic.qsc.de [92.195.51.39]) by mx01.qsc.de (Postfix) with ESMTP id 37A393CB3A; Tue, 11 Dec 2012 08:43:53 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id qBB7htFF002185; Tue, 11 Dec 2012 08:43:55 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 11 Dec 2012 08:43:54 +0100 From: Polytropon To: tak.official@gmail.com Subject: Re: mount -u effects Message-Id: <20121211084354.a3b3fdd8.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2012 07:43:54 -0000 On Tue, 11 Dec 2012 10:55:10 +0330, takCoder wrote: > via googling, i found out that i can use "mount -u" on the mentioned > device, and then after doing whatsoever needed, when i restart my server > the ro permission will be back via applying old fstab.. You could have found it out by refering to "man mount". :-) > but i have no idea what kind of effects it may have on my server.. i > couldn't find anything but suggestions about not to use this so often.. and > i really need to know why?? cause my bsd server is not allowed to be missed > almost at all.. > > i think that because this -u option is just increasing my permissions in > this case, there won't be a danger for my server. is that true?! There are _few_ side effects that _may_ apply when using the -u option. From the manual: 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. An attempt to change from read-write to read-only will fail if any files on the file system are currently open for writing unless the -f flag is also specified. The set of options is determined by applying the options specified in the argument to -o and finally applying the -r or -w option. So I'd say you should always take care that write operations are finished properly (and so brought to an end). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...