Unable to unmount and Non-existing drive in /media

Asked by Henk

When I try to unmount or eject an usb-drive I get the following error message:

Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC"' exited with non-zero exit status 1: umount: /media/henkm/LIVE DISC: not mounted

I found that under /media/henkm/ (where henkm is my accountname) the drive LIVE DISC is mentioned. This drive is not present, probably earlier removed without proper unmount?

What to do?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Does the command
mount
list that device?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Also what is the output of:

sudo parted -l; lsb_release -a

Thanks

Revision history for this message
Henk (hammuld) said :
#3

Hi Manfred,

First of all thank you for looking into my problem. I appreciate it!

The mount command does not list the device, see below:

henkm@henkm-Inspiron-620:~$ mount
/dev/sda6 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=henkm)
/dev/sda5 on /media/henkm/Partitie G: type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
henkm@henkm-Inspiron-620:~$

The device "LIVE DISC" is not really present but still listed in /media like you can see below:

[cid:282a362f-d88c-43a3-a65a-01d25761bdda]

Partition G:\ is a mounted Windows partition.

Regards, Henk Mulder

________________________________
Van: <email address hidden> <email address hidden> namens Manfred Hampl <email address hidden>
Verzonden: donderdag 16 maart 2017 08:53
Aan: <email address hidden>
Onderwerp: Re: [Question #565549]: Unable to unmount and Non-existing drive in /media

Your question #565549 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/565549

    Status: Open => Needs information

Manfred Hampl requested more information:
Does the command
mount
list that device?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/565549

You received this question notification because you asked the question.

Revision history for this message
Henk (hammuld) said :
#4

Hi, thank for looking into my problem!

The output of the command is listed below:

henkm@henkm-Inspiron-620:~$ sudo parted -l; lsb_release -a
[sudo] password for henkm:
Model: ATA ST3500413AS (scsi)
Schijf /dev/sda: 500GB
Sectorgrootte (logisch/fysiek): 512B/512B
Partitietabel: msdos

Nummer Begin Einde Grootte Type Bestandssysteem Vlaggen
 1 32,3kB 41,1MB 41,1MB primary fat16 diag
 2 41,9MB 14,3GB 14,2GB primary ntfs opstart
 3 14,3GB 268GB 254GB primary ntfs
 4 268GB 500GB 232GB extended lba
 5 268GB 396GB 128GB logical ntfs
 6 396GB 496GB 99,6GB logical ext4
 7 496GB 500GB 4201MB logical linux-swap(v1)

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
henkm@henkm-Inspiron-620:~$

The device in /media/henkm/LIVE DISC is in reality not present:

[cid:8724b3d8-dc1f-4384-bc51-f780479fbcd9]

Regards, Henk Mulder

________________________________
Van: <email address hidden> <email address hidden> namens actionparsnip <email address hidden>
Verzonden: donderdag 16 maart 2017 09:59
Aan: <email address hidden>
Onderwerp: Re: [Question #565549]: Unable to unmount and Non-existing drive in /media

Your question #565549 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/565549

actionparsnip requested more information:
Also what is the output of:

sudo parted -l; lsb_release -a

Thanks

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/565549
Question #565549 : Questions : Ubuntu<https://answers.launchpad.net/ubuntu/+question/565549>
answers.launchpad.net
When I try to unmount or eject an usb-drive I get the following error message: Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC"' exited with non-zero exit status 1: umount: /media/henkm/LIVE DISC: not mounted I found that under /media/henkm/ (where henkm is my accountname) the drive LIVE DISC is mentioned. This drive is not present, probably earlier removed without proper unmount? What to do?

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Adding attachments or inline pictures does not work in launchpad answers.

What is the output of the command
ls -al /media/henkm

I assume that you can remove the reference to the non-existing "LIVE DISC" mount point by deleting the directory
sudo rmdir /media/henkm/LIVE\ DISC

Revision history for this message
Henk (hammuld) said :
#6

Hi Manfred,

The first command gives:

henkm@henkm-Inspiron-620:~$ ls -al /media/henkm
totaal 16
drwxr-x---+ 4 root root 4096 mrt 16 16:33 .
drwxr-xr-x 3 root root 4096 jan 14 2015 ..
drwx------ 5 root root 4096 mrt 8 14:53 LIVE DISC
drwx------ 1 henkm henkm 4096 mrt 8 15:37 Partitie G:
henkm@henkm-Inspiron-620:~$

The second command gives:

henkm@henkm-Inspiron-620:~$ sudo rmdir /media/henkm/LIVE\ DISC
rmdir: kan ‘/media/henkm/LIVE DISC’ niet verwijderen: Map is niet leeg

(translated: can't be removed, directory is not empty)

Don't you think this might be a nice moment to upgrade and install Xubuntu16.04? That should solve this problem also.

Thank you, Henk Mulder

________________________________
Van: <email address hidden> <email address hidden> namens Manfred Hampl <email address hidden>
Verzonden: donderdag 16 maart 2017 17:47
Aan: <email address hidden>
Onderwerp: Re: [Question #565549]: Unable to unmount and Non-existing drive in /media

Your question #565549 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/565549
Question #565549 : Questions : Ubuntu<https://answers.launchpad.net/ubuntu/+question/565549>
answers.launchpad.net
When I try to unmount or eject an usb-drive I get the following error message: Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC"' exited with non-zero exit status 1: umount: /media/henkm/LIVE DISC: not mounted I found that under /media/henkm/ (where henkm is my accountname) the drive LIVE DISC is mentioned. This drive is not present, probably earlier removed without proper unmount? What to do?

    Status: Open => Answered

Manfred Hampl proposed the following answer:
Adding attachments or inline pictures does not work in launchpad
answers.

What is the output of the command
ls -al /media/henkm

I assume that you can remove the reference to the non-existing "LIVE DISC" mount point by deleting the directory
sudo rmdir /media/henkm/LIVE\ DISC

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/565549/+confirm?answer_id=4

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/565549

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

ok, what is then the output of the command

ls -la /media/henkm/LIVE\ DISC

Maybe just rebooting can solve the problem.
I do not think that upgrading to another release will have an affect on this problem (except that there is a reboot required during the upgrade).

Independent from the problem with the mounted/unmounted LIVE DISC, you should make up your mind how and when you want to upgrade to a next release. https://wiki.ubuntu.com/Releases shows the end of life dates.

Revision history for this message
Henk (hammuld) said :
#8

Hi Manfred, the output of the command is:

henkm@henkm-Inspiron-620:~$ ls -la /media/henkm/LIVE\ DISC
ls: kan map /media/henkm/LIVE DISC niet openen: Toegang geweigerd
henkm@henkm-Inspiron-620:~$

As far as rebooting concerns: I always switch off my computer when I am done. I suppose that results in a reboot after start up again?

Regards, Henk Mulder

________________________________
Van: <email address hidden> <email address hidden> namens Manfred Hampl <email address hidden>
Verzonden: donderdag 16 maart 2017 22:43
Aan: <email address hidden>
Onderwerp: Re: [Question #565549]: Unable to unmount and Non-existing drive in /media

Your question #565549 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/565549
Question #565549 : Questions : Ubuntu<https://answers.launchpad.net/ubuntu/+question/565549>
answers.launchpad.net
When I try to unmount or eject an usb-drive I get the following error message: Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC"' exited with non-zero exit status 1: umount: /media/henkm/LIVE DISC: not mounted I found that under /media/henkm/ (where henkm is my accountname) the drive LIVE DISC is mentioned. This drive is not present, probably earlier removed without proper unmount? What to do?

    Status: Open => Needs information

Manfred Hampl requested more information:
ok, what is then the output of the command

ls -la /media/henkm/LIVE\ DISC

Maybe just rebooting can solve the problem.
I do not think that upgrading to another release will have an affect on this problem (except that there is a reboot required during the upgrade).

Independent from the problem with the mounted/unmounted LIVE DISC, you
should make up your mind how and when you want to upgrade to a next
release. https://wiki.ubuntu.com/Releases shows the end of life dates.
Releases - Ubuntu Wiki<https://wiki.ubuntu.com/Releases>
wiki.ubuntu.com
The content of these old releases can be accessed at the old Ubuntu releases directory. Management of releases. Support length. Regular releases are ...

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/565549
Question #565549 : Questions : Ubuntu<https://answers.launchpad.net/ubuntu/+question/565549>
answers.launchpad.net
When I try to unmount or eject an usb-drive I get the following error message: Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC"' exited with non-zero exit status 1: umount: /media/henkm/LIVE DISC: not mounted I found that under /media/henkm/ (where henkm is my accountname) the drive LIVE DISC is mentioned. This drive is not present, probably earlier removed without proper unmount? What to do?

You received this question notification because you asked the question.

Revision history for this message
Henk (hammuld) said :
#9

Hi, when I add sudo I get the following:

henkm@henkm-Inspiron-620:~$ sudo ls -la /media/henkm/LIVE\ DISC
[sudo] password for henkm:
totaal 40
drwx------ 5 root root 4096 mrt 8 14:53 .
drwxr-x---+ 3 root root 4096 mrt 20 15:10 ..
drwx------ 2 root root 4096 mrt 8 14:53 antiX
drwx------ 6 root root 4096 mrt 8 14:53 boot
-rw-r--r-- 1 root root 894 dec 12 20:01 cdrom.ico
drwx------ 3 root root 4096 mrt 8 14:52 EFI
-rw-r--r-- 1 root root 12082 mrt 8 14:53 ubnfilel.txt
-rw-r--r-- 1 root root 41 dec 12 20:01 version
henkm@henkm-Inspiron-620:~$

________________________________
Van: <email address hidden> <email address hidden> namens Manfred Hampl <email address hidden>
Verzonden: donderdag 16 maart 2017 17:47
Aan: <email address hidden>
Onderwerp: Re: [Question #565549]: Unable to unmount and Non-existing drive in /media

Your question #565549 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/565549
Question #565549 : Questions : Ubuntu<https://answers.launchpad.net/ubuntu/+question/565549>
answers.launchpad.net
When I try to unmount or eject an usb-drive I get the following error message: Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC"' exited with non-zero exit status 1: umount: /media/henkm/LIVE DISC: not mounted I found that under /media/henkm/ (where henkm is my accountname) the drive LIVE DISC is mentioned. This drive is not present, probably earlier removed without proper unmount? What to do?

    Status: Open => Answered

Manfred Hampl proposed the following answer:
Adding attachments or inline pictures does not work in launchpad
answers.

What is the output of the command
ls -al /media/henkm

I assume that you can remove the reference to the non-existing "LIVE DISC" mount point by deleting the directory
sudo rmdir /media/henkm/LIVE\ DISC

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/565549/+confirm?answer_id=4

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/565549
Question #565549 : Questions : Ubuntu<https://answers.launchpad.net/ubuntu/+question/565549>
answers.launchpad.net
When I try to unmount or eject an usb-drive I get the following error message: Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC"' exited with non-zero exit status 1: umount: /media/henkm/LIVE DISC: not mounted I found that under /media/henkm/ (where henkm is my accountname) the drive LIVE DISC is mentioned. This drive is not present, probably earlier removed without proper unmount? What to do?

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

1. what is the output of
sudo ls -la /media/henkm/LIVE\ DISC

2. "I always switch off my computer when I am done." How do you switch it off?
By using the button in the top right corner and selecting shutdown (respectively its Dutch equivalent), or ...?

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

Oeps, just see that you already provide the output of sudo ls ...

What is the output of the command
mount

Revision history for this message
Henk (hammuld) said :
#12

henkm@henkm-Inspiron-620:~$ mount
/dev/sda6 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=henkm)
henkm@henkm-Inspiron-620:~$

________________________________
Van: <email address hidden> <email address hidden> namens Manfred Hampl <email address hidden>
Verzonden: maandag 20 maart 2017 16:37
Aan: <email address hidden>
Onderwerp: Re: [Question #565549]: Unable to unmount and Non-existing drive in /media

Your question #565549 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/565549
Question #565549 : Questions : Ubuntu<https://answers.launchpad.net/ubuntu/+question/565549>
answers.launchpad.net
When I try to unmount or eject an usb-drive I get the following error message: Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC"' exited with non-zero exit status 1: umount: /media/henkm/LIVE DISC: not mounted I found that under /media/henkm/ (where henkm is my accountname) the drive LIVE DISC is mentioned. This drive is not present, probably earlier removed without proper unmount? What to do?

Manfred Hampl requested more information:
Oeps, just see that you already provide the output of sudo ls ...

What is the output of the command
mount

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/565549

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

For me it seems that the /media/henkm/LIVE DISC directory is not used for mounting a device, but is containing data.

Is the USB drive still plugged in?

What is the output of

sudo fdisk -l

and (repeating from above):
2. "I always switch off my computer when I am done." How do you switch it off?
By using the button in the top right corner and selecting shutdown (respectively its Dutch equivalent), or ...?

Revision history for this message
Henk (hammuld) said :
#14

Hi Manfred, been busy for a while.

There is no usb drive present; but the system somehow thinks there is. Which I conclude from the content of the /media/henkm/ volume which still mentions LIVE DISC though it is not there. And which I can not approach, no allowance.

When I switch off the system I really mean: shutdown and switch off completely. I even have a main switch to switch off the power to all of my equipment and I use it always. I don't trust electronic equipment to keep power when I am not around.

Regards, Henk

________________________________
Van: <email address hidden> <email address hidden> namens Manfred Hampl <email address hidden>
Verzonden: woensdag 22 maart 2017 18:33
Aan: <email address hidden>
Onderwerp: Re: [Question #565549]: Unable to unmount and Non-existing drive in /media

Your question #565549 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/565549
Question #565549 : Questions : Ubuntu - answers.launchpad.net<https://answers.launchpad.net/ubuntu/+question/565549>
answers.launchpad.net
When I try to unmount or eject an usb-drive I get the following error message: Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC ...

    Status: Open => Needs information

Manfred Hampl requested more information:
For me it seems that the /media/henkm/LIVE DISC directory is not used
for mounting a device, but is containing data.

Is the USB drive still plugged in?

What is the output of

sudo fdisk -l

and (repeating from above):
2. "I always switch off my computer when I am done." How do you switch it off?
By using the button in the top right corner and selecting shutdown (respectively its Dutch equivalent), or ...?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/565549
Question #565549 : Questions : Ubuntu - answers.launchpad.net<https://answers.launchpad.net/ubuntu/+question/565549>
answers.launchpad.net
When I try to unmount or eject an usb-drive I get the following error message: Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC ...

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

If the USB drive is not connected, but there is still something shown in /media/henkm/LIVE\ DISC, then there apparently the data are stored on the hard disk below the /media/henkm directory.

What is the output of

sudo du -schx /media/*
sudo du -schx /media/henkm/*

Revision history for this message
Henk (hammuld) said :
#16

Hi Manfred, below the output

henkm@henkm-Inspiron-620:~$ sudo du -schx /media/*
[sudo] password for henkm:
1,2G /media/henkm
1,2G totaal
henkm@henkm-Inspiron-620:~$

henkm@henkm-Inspiron-620:~$ sudo du -schx /media/henkm/*
1,2G /media/henkm/LIVE DISC
1,2G totaal
henkm@henkm-Inspiron-620:~$

________________________________
Van: <email address hidden> <email address hidden> namens Manfred Hampl <email address hidden>
Verzonden: dinsdag 28 maart 2017 20:08
Aan: <email address hidden>
Onderwerp: Re: [Question #565549]: Unable to unmount and Non-existing drive in /media

Your question #565549 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/565549
Question #565549 : Questions : Ubuntu - answers.launchpad.net<https://answers.launchpad.net/ubuntu/+question/565549>
answers.launchpad.net
When I try to unmount or eject an usb-drive I get the following error message: Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC ...

    Status: Open => Needs information

Manfred Hampl requested more information:
If the USB drive is not connected, but there is still something shown in
/media/henkm/LIVE\ DISC, then there apparently the data are stored on
the hard disk below the /media/henkm directory.

What is the output of

sudo du -schx /media/*
sudo du -schx /media/henkm/*

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/565549
Question #565549 : Questions : Ubuntu - answers.launchpad.net<https://answers.launchpad.net/ubuntu/+question/565549>
answers.launchpad.net
When I try to unmount or eject an usb-drive I get the following error message: Error unmounting /dev/sdb1: Command-line `umount "/media/henkm/LIVE DISC ...

You received this question notification because you asked the question.

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#17

This output confirms, that there are 1.2 GB data stored directly in this directory.

You have to understand the mount process of Unix systems:

When you want to mount a device (e.g. a USB disk) into your main directory tree, a directory file has to be created somewhere. The mount command uses this directory as the access point for the additional device in a manner, that the original contents of the directory are no more visible and accessible, but the contents of the additional device are shown there.

The automatic mounting process does the following: It creates a directory named like the volume label of the external drive below /media/username/ and mounts the device there. When unmounting (ejecting) that device, the empty directory that has been created for the mount point is also deleted.

In your case apparently that directory is not empty, and so it is not deleted.

Do you need the data in that directory? If yes, then I suggest that you move them elsewhere. Then you can delete the directory, and everything should be back to normal.

Revision history for this message
Henk (hammuld) said :
#18

Thanks for the support!