Cannot unmount folder

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
jskfanAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
skullnobrainsConnect With a Mentor Commented:
sudo umount /home/test/MOUNTME

@gerwind : he would not be able to mount a random dir as a regular user
0
 
Gerwin Jansen, EE MVEConnect With a Mentor Topic Advisor Commented:
You are trying to unmount as a non-root user. How did you mount it?
0
 
MazdajaiConnect With a Mentor Commented:
Try

sudo umount /home/test/MOUNTME

Open in new window

0
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

 
SandyCommented:
First please paste output of #mount command.

To me it seems like it was already umounted.

TY/SA
0
 
jskfanAuthor Commented:
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
 
SandyCommented:
did you putted any entry for MOUNTME ?

TY/SA
0
 
SandyConnect With a Mentor Commented:
i mean in /etc/fstab ?
0
 
jskfanAuthor Commented:
sorry , ignore the last snapshot
0
 
jskfanAuthor Commented:
I managed to remount the folder, but when I try to unmount it here is what I get:

nfs
0
 
simon3270Connect With a Mentor Commented:
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
 
Gerwin Jansen, EE MVETopic Advisor Commented:
@jskfan - You missed my initial question "How did you mount it?" - knowing that you used 'sudo' would make the answer easy :)
0
 
jskfanAuthor Commented:
even with root, it does not unmount it

mount
0
 
jskfanAuthor Commented:
mnt
0
 
simon3270Commented:
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
 
jskfanAuthor Commented:
I will check it later…Thank you Guys!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.