LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-18-2004, 06:03 AM   #1
A-Liang
LQ Newbie
 
Registered: Sep 2004
Location: China
Posts: 13

Rep: Reputation: 0
About mount command


A mount point can be remounted under the Red Hat Linux,
make it fail when a mount point is remounted. How do I do?


Thank you!
 
Old 11-18-2004, 06:26 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you look in the 'man mount' page, remount is an option.

Here is the description of the option:

remount
Attempt to remount an already-mounted file system. This is commonly used to change the mount flags for a file system, especially to make a readonly file system writeable. It does not change device or mount point.

If what you want to do is change the mount point somewhere else you need to use the --move or --bind option.
Since Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is

mount --bind olddir newdir
After this call the same contents is accessible in two places.
Since Linux 2.5.1 it is possible to atomically move a subtree to another place. The call is


mount --move olddir newdir

Of course, check the man page on your system to verify that these options exist on your system.

Recently, I upgraded to a AMD 64 system, and installed a newer version of the same distro I used before. One of the options ( -T ) for the man command are missing on the new system, so always double check information from a man page you read on the web.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing mount command Blackout_08 Fedora 1 03-06-2005 10:34 PM
Mount Command vishalfirke Linux - Newbie 3 01-28-2005 09:34 AM
command mount G_Slackw Linux - Software 6 06-21-2004 10:57 PM
Mount command emperor13 Linux - General 3 11-25-2001 01:06 PM
mount command loganwva Linux - Networking 3 09-19-2001 01:27 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration