Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
man mount
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.
Well you can specify the mount point or the device name.
In fact you can add the options you want while remounting like this
mount -o remount,usrquota,rw /mnt/new
where the usrquota and rw are the options newly given while remounting(just a practical case where remounting is really useful)
Last edited by nabeelmoidu; 05-06-2006 at 11:49 AM.
I do not think you want to use "mount -o remount" . That is for mounting the same drive in a second place while it is still mounted in the first place. I think what you want to do is mount a drive that you unmounted.
To mount a drive (or partition) just anywhere you have to become root with "su". You have to know where you want to mount it, and what it is called. If you have a directory in /mnt called "win" you can do this:
mount /dev/hda3 /mnt/win
hda3 is the second partition on the second hard drive. You have to be root to do this. To mount it as a regular user, the partition and mount point have to be listed in the file /etc/fstab. Try this:
cat /etc/fstab
You should see something in that mess like this:
/dev/hdb3 /home/chuck/Misc ext3 defaults,user 0 1
This says that my third partition on the second hard drive can be mounted on the directory /home/chuck/Misc. If I want to mount it manualy, I can do this as a regular user:
mount /home/chuck/Misc
And it mounts hdb3 on /home/chuck/Misc. Try it and let us know if it works.
I do not think you want to use "mount -o remount" . That is for mounting the same drive in a second place while it is still mounted in the first place. I think what you want to do is mount a drive that you unmounted.
C
Not exactly
You can use remount option to specify more options to an already mounted drive.
For eg if you have mounted a drive as ro and you want to mount it rw you can use
mount -o remount,rw
if you want userquota enabled
mount -o remount,usrquota
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.