LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-09-2011, 10:42 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
unmounting and remounting a volume


I have a volume that shows as the following when I do a df -h. How would I go about unmounting it so I can run an e2fsck on it, then remounting it? normally it mounts when the server starts, so i'm not sure how to manually do it.


/dev/md1 807G 631G 136G 83% /data
 
Old 03-09-2011, 10:44 AM   #2
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Code:
# umount /dev/md1
Post your /etc/fstab here between CODE tags.

Last edited by Mr. Alex; 03-09-2011 at 10:45 AM.
 
1 members found this post helpful.
Old 03-09-2011, 10:46 AM   #3
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
With the umount command.

See: man umount
 
Old 03-09-2011, 10:48 AM   #4
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
Code:
/dev/md1                /data                  ext2    defaults        1 2


---------- Post added 03-09-11 at 10:49 AM ----------

Thanks, so i just mount it with mount /dev/md1 then too?
 
Old 03-09-2011, 10:58 AM   #5
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Quote:
Thanks, so i just mount it with mount /dev/md1 then too?
Since it's in fstab - yes. If it wasn't, you should've mounted it as
Code:
# mount WHAT WHERE
http://www.tuxfiles.org/linuxhelp/mounting.html

Last edited by Mr. Alex; 03-09-2011 at 11:01 AM. Reason: adding link
 
1 members found this post helpful.
Old 03-09-2011, 11:07 AM   #6
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
many thanks Mr. Alex.
 
Old 03-09-2011, 11:22 AM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
figures, it won't let me unmount it because it's "busy"
 
Old 03-09-2011, 12:07 PM   #8
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
http://ocaoimh.ie/how-to-umount-when...evice-is-busy/
 
  


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
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 08:02 AM
unmounting all nfs filesystems without unmounting local ones kaplan71 Linux - General 1 03-05-2009 12:00 PM
USB HD -- must keep remounting ErrorBound Linux - Hardware 2 05-09-2006 01:02 AM
remounting hda? KenHorse Linux - Software 2 12-31-2004 10:35 AM
remounting home Dasc Linux - General 3 08-14-2004 05:51 PM


All times are GMT -5. The time now is 12:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration