LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unmounted filesystems accidentally (https://www.linuxquestions.org/questions/linux-newbie-8/unmounted-filesystems-accidentally-890083/)

linuxandtsm 07-05-2011 04:39 PM

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


Tinkster 07-05-2011 06:07 PM

So what does "mount" by itself after the "mount -a" show?

chrism01 07-05-2011 06:07 PM

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

John VV 07-05-2011 07:45 PM

have you rebooted ?

linuxandtsm 07-06-2011 07:59 AM

Hi all,

rebooting the server solved the problem.
Thank you all.


All times are GMT -5. The time now is 04:54 AM.