Unable to unmount and Non-existing drive in /media
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
|
#1 |
Does the command
mount
list that device?
Revision history for this message
|
#2 |
Also what is the output of:
sudo parted -l; lsb_release -a
Thanks
Revision history for this message
|
#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-
/dev/sda6 on / type ext4 (rw,errors=
proc on /proc type proc (rw,noexec,
sysfs on /sys type sysfs (rw,noexec,
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,
tmpfs on /run type tmpfs (rw,noexec,
none on /run/lock type tmpfs (rw,noexec,
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,
none on /sys/fs/pstore type pstore (rw)
binfmt_misc on /proc/sys/
systemd on /sys/fs/
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,
/dev/sda5 on /media/
henkm@henkm-
The device "LIVE DISC" is not really present but still listed in /media like you can see below:
[cid:282a362f-
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:/
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:/
You received this question notification because you asked the question.
Revision history for this message
|
#4 |
Hi, thank for looking into my problem!
The output of the command is listed below:
henkm@henkm-
[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-
The device in /media/henkm/LIVE DISC is in reality not present:
[cid:8724b3d8-
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:/
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:/
Question #565549 : Questions : Ubuntu<https:/
answers.
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
|
#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
|
#6 |
Hi Manfred,
The first command gives:
henkm@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-
The second command gives:
henkm@henkm-
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:/
Question #565549 : Questions : Ubuntu<https:/
answers.
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:/
If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https:/
You received this question notification because you asked the question.
Revision history for this message
|
#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:/
Revision history for this message
|
#8 |
Hi Manfred, the output of the command is:
henkm@henkm-
ls: kan map /media/henkm/LIVE DISC niet openen: Toegang geweigerd
henkm@henkm-
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:/
Question #565549 : Questions : Ubuntu<https:/
answers.
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:/
Releases - Ubuntu Wiki<https:/
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:/
Question #565549 : Questions : Ubuntu<https:/
answers.
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
|
#9 |
Hi, when I add sudo I get the following:
henkm@henkm-
[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-
_______
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:/
Question #565549 : Questions : Ubuntu<https:/
answers.
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:/
If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https:/
Question #565549 : Questions : Ubuntu<https:/
answers.
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
|
#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
|
#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
|
#12 |
henkm@henkm-
/dev/sda6 on / type ext4 (rw,errors=
proc on /proc type proc (rw,noexec,
sysfs on /sys type sysfs (rw,noexec,
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,
tmpfs on /run type tmpfs (rw,noexec,
none on /run/lock type tmpfs (rw,noexec,
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,
none on /sys/fs/pstore type pstore (rw)
binfmt_misc on /proc/sys/
systemd on /sys/fs/
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,
henkm@henkm-
_______
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:/
Question #565549 : Questions : Ubuntu<https:/
answers.
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:/
You received this question notification because you asked the question.
Revision history for this message
|
#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
|
#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:/
Question #565549 : Questions : Ubuntu - answers.
answers.
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:/
Question #565549 : Questions : Ubuntu - answers.
answers.
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
|
#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
|
#16 |
Hi Manfred, below the output
henkm@henkm-
[sudo] password for henkm:
1,2G /media/henkm
1,2G totaal
henkm@henkm-
henkm@henkm-
1,2G /media/henkm/LIVE DISC
1,2G totaal
henkm@henkm-
_______
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:/
Question #565549 : Questions : Ubuntu - answers.
answers.
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:/
Question #565549 : Questions : Ubuntu - answers.
answers.
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
|
#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.