Solved

Cannot unmount folder

Posted on 2014-03-11
15
461 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
Comment Utility
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
Comment Utility
Try

sudo umount /home/test/MOUNTME

Open in new window

0
 
LVL 13

Expert Comment

by:Sandy
Comment Utility
First please paste output of #mount command.

To me it seems like it was already umounted.

TY/SA
0
 

Author Comment

by:jskfan
Comment Utility
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
Comment Utility
did you putted any entry for MOUNTME ?

TY/SA
0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 100 total points
Comment Utility
i mean in /etc/fstab ?
0
 

Author Comment

by:jskfan
Comment Utility
sorry , ignore the last snapshot
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:jskfan
Comment Utility
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
Comment Utility
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
Comment Utility
@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
Comment Utility
even with root, it does not unmount it

mount
0
 

Author Comment

by:jskfan
Comment Utility
mnt
0
 
LVL 19

Expert Comment

by:simon3270
Comment Utility
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
Comment Utility
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
Comment Utility
I will check it later…Thank you Guys!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now