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 06-18-2010, 12:27 PM   #1
redhatwannabe
Member
 
Registered: Dec 2008
Posts: 41

Rep: Reputation: 15
Why filesystem cannot unmount when it clearly show that it has been mounted?


Linux Distribution Centos 5.3
here's my release.
Code:
[root@localhost ~]# uname -r
2.6.18-194.3.1.el5
Code:
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda7              12G  3.8G  7.2G  35% /
/dev/sda11            9.7G  151M  9.0G   2% /backup
/dev/sda9             8.6G  177M  7.9G   3% /u02
/dev/sda8             5.2G  173M  4.7G   4% /u01
/dev/sda10             13G  292M   12G   3% /home
/dev/sda12             39G   33G  4.3G  89% /vmware
/dev/sda6              99M   17M   78M  18% /boot
tmpfs                 1.8G     0  1.8G   0% /dev/shm
/dev/sda2              35G   17G   18G  48% /mymnt/win
/dev/sda3              74G   55G   19G  75% /mymnt/e_partition
here's my /etc/fstab
Code:
LABEL=centos_root       /                       ext3    defaults        1 1
LABEL=oracle_recovery   /backup                 ext3    defaults        1 6
LABEL=oracle_data       /u02                    ext3    defaults        1 5
LABEL=oracle_software_  /u01                    ext3    defaults        1 4
LABEL=shared_home       /home                   ext3    defaults        1 3
LABEL=vmware_partition  /vmware                 ext3    defaults        1 7
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
LABEL=swap              swap                    swap    defaults        0 0
/dev/sda2       /mymnt/win   ntfs-3g  ro,umask=0222,defaults 0 0
/dev/sda3       /mymnt/e_partition   ntfs-3g  rw,umask=0000,defaults 0 0
df -h will state what are the filesystems that are mounted. but how come when I try to umount /dev/sda11, it state that it did not mount, any reason for the misleading information?
Code:
[root@localhost ~]# umount /dev/sda11 /backup
umount: /dev/sda11: not mounted
umount: /dev/sda11: not mounted
[root@localhost ~]#
 
Old 06-18-2010, 12:45 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
/dev/sda11 is not mounted

/backup is mounted.

You umount the mount point not the device.

man umount
Quote:
The umount command detaches the file system(s) mentioned from the file hierarchy. A file system is specified by giving the directory where it has been mounted. Giving the special device on which the file system lives may also work, but is obsolete, mainly because it will fail in case this device was mounted on more than one directory.

Last edited by smoker; 06-18-2010 at 12:47 PM.
 
Old 06-18-2010, 12:46 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Try to omit "/backup" in
Code:
umount /dev/sda11 /backup
to see if the same error reports
 
Old 06-18-2010, 09:21 PM   #4
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,230

Rep: Reputation: 173Reputation: 173
Quote:
Originally Posted by smoker View Post
/dev/sda11 is not mounted

/backup is mounted.

You umount the mount point not the device.

man umount
Actually it works ether way.
Further, I, myself have had this problem also but I just rebooted to fix it (which isn't always desirable).
 
  


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
cannot unmount some mounted iso files from matlab Vassos Linux - Newbie 4 07-25-2007 12:37 PM
Mounted hda3 crashes programs, can't unmount. KickMeElmo Slackware 1 11-09-2006 04:06 PM
Unable to unmount HAL-mounted device dunric Slackware 4 08-24-2006 08:21 AM
how to unmount a drive where my '/home' is mounted anindyanuri Debian 3 06-25-2006 08:46 AM
Can't upgrade because I can't unmount filesystem colpaarm Linux - Software 6 07-26-2003 04:53 AM


All times are GMT -5. The time now is 07:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration