LinuxQuestions.org
Review your favorite Linux distribution.
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 07-05-2011, 05:39 PM   #1
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Rep: Reputation: Disabled
unmounted filesystems accidentally


Hi all,

I accidentally unmounted filesystems using umount -a command.

How to recover from this. Please help. Thanks in advance!

when i try to use mount -a i got the following output.



Code:
 
[root@lnx ~]# mount -a
mount: /dev/vg00/lvol05 already mounted or /opt busy
mount: /dev/vg00/lvol07 already mounted or /u01 busy
mount: /dev/cciss/c0d0p1 already mounted or /boot busy
following is the /etc/fstab file

Code:
[root@lnx ~]# more /etc/fstab
/dev/vg00/lvol00        /                       ext3    defaults        1 1
/dev/vg00/lvol02        /var                    ext3    defaults        1 2
/dev/vg00/lvol05        /opt                    ext3    defaults        1 2
/dev/vg00/lvol03        /usr                    ext3    defaults        1 2
/dev/vg00/lvol04        /tmp                    ext3    defaults        1 2
/dev/vg00/lvol06        /home                   ext3    defaults        1 2
/dev/vg00/lvol07        /u01                    ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/vg00/lvol01        swap                    swap    defaults        0 0
below is the df command output

Code:
 
[root@lnx ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-lvol00
                      9.7G  404M  8.8G   5% /
/dev/mapper/vg00-lvol02
                      9.7G  320M  8.9G   4% /var
/dev/mapper/vg00-lvol03
                       20G  1.4G   18G   8% /usr
/dev/mapper/vg00-lvol04
                      9.7G  151M  9.1G   2% /tmp
/dev/mapper/vg00-lvol06
                      9.7G  195M  9.0G   3% /home
 
Old 07-05-2011, 07:07 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
So what does "mount" by itself after the "mount -a" show?
 
Old 07-05-2011, 07:07 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You could try
Code:
 mount -o remount /opt
as the remount option is an atomic cmd (ie it allows you to remount an already mounted partition eg to switch from ro to rw). Whether that will work in this case is anybody's guess, but it's worth a try.
See this page http://linux.die.net/man/8/mount
 
Old 07-05-2011, 08:45 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
have you rebooted ?
 
Old 07-06-2011, 08:59 AM   #5
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled
Hi all,

rebooting the server solved the problem.
Thank you all.
 
  


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
Does /boot get unmounted? DIGITAL39 Slackware 11 01-24-2007 08:49 PM
how to see unmounted partitions Vensan Linux - General 1 09-07-2006 02:41 AM
reiserfs filesystems unmounted uncleanly at shutdown john riemann soong Linux - General 2 07-27-2006 07:42 PM
accidentally unmounted /dev/uba1 (usb device) terminator14 Linux - Newbie 18 01-19-2006 05:51 PM
windows filesystems vs. linux filesystems irfanhab General 8 05-25-2004 08:21 AM


All times are GMT -5. The time now is 10:06 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