Solved

Cannot unmount folder

Posted on 2014-03-11
15
467 Views
Last Modified: 2014-03-17
I created a folder on Ubuntu NFS server, I mounted it on Ubuntu client as MOUNTME. Now when I tried to unmount it , it gives me message:

umount : /home/test/MOUNTME is not in the FStab (and you are not root)

I wonder what is causing the issue.

Thanks
0
Comment
Question by:jskfan
  • 6
  • 3
  • 2
  • +3
15 Comments
 
LVL 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen earned 100 total points
ID: 39921742
You are trying to unmount as a non-root user. How did you mount it?
0
 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 100 total points
ID: 39921959
Try

sudo umount /home/test/MOUNTME

Open in new window

0
 
LVL 13

Expert Comment

by:Sandy
ID: 39923076
First please paste output of #mount command.

To me it seems like it was already umounted.

TY/SA
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:jskfan
ID: 39923281
I have rebooted ubuntu NFS client, apparently the the folder gets dismounted, when I try to remount it , I get the messages displayed in the snapshot:
nfs
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39923293
did you putted any entry for MOUNTME ?

TY/SA
0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 100 total points
ID: 39923294
i mean in /etc/fstab ?
0
 

Author Comment

by:jskfan
ID: 39923362
sorry , ignore the last snapshot
0
 

Author Comment

by:jskfan
ID: 39923365
I managed to remount the folder, but when I try to unmount it here is what I get:

nfs
0
 
LVL 19

Assisted Solution

by:simon3270
simon3270 earned 100 total points
ID: 39923609
The problem is that you are not root, so it can't work out which device you are trying to unmount.  If the entry was in /etc/fstab, with the "user" option, you woudl be able to mount and unmount it as a normal user.

Since it isn't, you need to be root - as Mazdajai suggested, try

    sudo umount MOUNTME

You became root to mount it (with sudo), so why won't you become root to unmount it?
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 39924138
@jskfan - You missed my initial question "How did you mount it?" - knowing that you used 'sudo' would make the answer easy :)
0
 

Author Comment

by:jskfan
ID: 39925244
even with root, it does not unmount it

mount
0
 

Author Comment

by:jskfan
ID: 39925248
mnt
0
 
LVL 19

Expert Comment

by:simon3270
ID: 39925359
Was the disk definitely mounted before you ran the "sudo umount MOUNTME"?

Could you have a single screenshot which had:
$ sudo mount -t nfs4 -o proto=tcp,port=2049 172.16.27.100:DATA1 MOUNTME
$ mount | grep MOUNTME
$ sudo umount MOUNTME

Open in new window

0
 
LVL 26

Accepted Solution

by:
skullnobrains earned 100 total points
ID: 39932533
sudo umount /home/test/MOUNTME

@gerwind : he would not be able to mount a random dir as a regular user
0
 

Author Closing Comment

by:jskfan
ID: 39934235
I will check it later…Thank you Guys!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question