Solved

Cannot unmount folder

Posted on 2014-03-11
15
464 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
 

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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

863 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

20 Experts available now in Live!

Get 1:1 Help Now