Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 483
  • Last Modified:

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
0
jskfan
Asked:
jskfan
  • 6
  • 3
  • 2
  • +3
5 Solutions
 
Gerwin Jansen, EE MVETopic Advisor Commented:
You are trying to unmount as a non-root user. How did you mount it?
0
 
MazdajaiCommented:
Try

sudo umount /home/test/MOUNTME

Open in new window

0
 
SandyCommented:
First please paste output of #mount command.

To me it seems like it was already umounted.

TY/SA
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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
 
SandyCommented:
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
 
simon3270Commented:
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
 
skullnobrainsCommented:
sudo umount /home/test/MOUNTME

@gerwind : he would not be able to mount a random dir as a regular user
0
 
jskfanAuthor Commented:
I will check it later…Thank you Guys!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 6
  • 3
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now