LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-05-2006, 09:11 PM   #1
xcore_on
Member
 
Registered: Mar 2006
Posts: 96

Rep: Reputation: 15
what command remount one filesystem mounted?


what command remount one filesystem mounted?

thanks
 
Old 05-05-2006, 09:24 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
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.
 
Old 05-05-2006, 09:33 PM   #3
xcore_on
Member
 
Registered: Mar 2006
Posts: 96

Original Poster
Rep: Reputation: 15
this is right?


mount -o remount /dev/hda3

thanks
 
Old 05-06-2006, 12:47 PM   #4
nabeelmoidu
Member
 
Registered: Jul 2005
Location: Bangalore
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
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 12:49 PM.
 
Old 05-06-2006, 08:26 PM   #5
lotusjps46
Member
 
Registered: Apr 2003
Location: Dallas
Distribution: Vector Linux, Suse 10.1
Posts: 186

Rep: Reputation: 30
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.

Good luck

C
 
Old 05-06-2006, 09:40 PM   #6
xcore_on
Member
 
Registered: Mar 2006
Posts: 96

Original Poster
Rep: Reputation: 15
I forget of the "point mount" above (fist post)
so, the complete command is (if this is right):
mount -o remount /dev/hda3 /mnt/quota

my drive is mounted in /mnt/quota

I activate quota in /dev/quota editing /etc/fstab
so I must remount my drive, but I don't want unmount and mount my drive again.

I'd like to remount my drive, so I used:
mount -o remount /dev/hda3 /mnt/quota


This is right (mount -o remount /dev/hda3 /mnt/quota)?


Thanks again for all helps!!!

Last edited by xcore_on; 05-06-2006 at 10:03 PM.
 
Old 05-07-2006, 06:18 AM   #7
nabeelmoidu
Member
 
Registered: Jul 2005
Location: Bangalore
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
remount has other uses too

Quote:
Originally Posted by lotusjps46
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
 
Old 05-16-2006, 03:08 AM   #8
xcore_on
Member
 
Registered: Mar 2006
Posts: 96

Original Poster
Rep: Reputation: 15
but what command only remount one partition mounted?

this is right?
mount -o remount /dev/hda3 /mnt/xxx

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mounted filesystem error.... Basslord1124 Linux - General 4 03-17-2005 02:29 PM
How to change permissions for Mounted Filesystem leroy27336 Linux - General 3 11-15-2003 04:08 AM
Filesystem Mounted Improperly? Bigun Linux - Software 11 09-21-2003 02:11 PM
Changing ownership of mounted filesystem jhansman Red Hat 4 09-11-2003 01:38 AM
e2fsck on a mounted filesystem glock19 Linux - General 2 07-09-2003 08:12 PM


All times are GMT -5. The time now is 10:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration