Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cannot unmount folder

Posted on 2014-03-11
15
Medium Priority
?
481 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
  • 2
  • +3
15 Comments
 
LVL 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE earned 400 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 400 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
Quick Start: DOCKER

Sometimes you just need a Quick Start on a topic in order to begin using it.. this is just what you need to know to get up and running with Docker!

 

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 400 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 20

Assisted Solution

by:simon3270
simon3270 earned 400 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 38

Expert Comment

by:Gerwin Jansen, EE MVE
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 20

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 27

Accepted Solution

by:
skullnobrains earned 400 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

670 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