LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-28-2017, 03:47 AM   #1
bujuoui
LQ Newbie
 
Registered: May 2017
Posts: 19

Rep: Reputation: Disabled
Can't safely eject external hard drive


I just bought a new external hard drive.

After connecting it to my laptop, I'd like to safely eject it but it keeps mounting on to the section "devices".

I did successfully unmounted it from the desktop but it's still listed and mounted on "devices" ("Appareils" in French) in the left column.

Here is what I did to unmount it from the desktop:

umount /dev/sdb1

I ONLY encounter this issue when the external drive is connected to a USB 3.0 port, NOT if it's connected to a USB 2.0 port...

I'm using Linux Mint 18.1 Serena.
Attached Thumbnails
Click image for larger version

Name:	screenshot.png
Views:	57
Size:	83.6 KB
ID:	25588  
 
Old 07-28-2017, 05:24 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Check your laptop manual to see if you are using one of the "pass-through" or "charging" USB sockets. Some manufacturers have USB ports on laptops that continually supply power (to allow you to charge phones etc, when the laptop is "asleep" or even "powered off") It may be the case that this is happening and your external disk thinks it's connected. Do you have a different USB 3 port to check?
 
Old 07-28-2017, 05:38 AM   #3
bujuoui
LQ Newbie
 
Registered: May 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
Actually, I have 2 different USB 3.0 ports on my laptop and I've tried both. Coming across the same issue though...
 
Old 07-28-2017, 05:54 AM   #4
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
I do not see anything that would indicate your drive still mounted. There may be listed devices that connected, but not mounted
Once you unmounted a drive, check it state by "mount" command. Will your drive be presented in "mount" command output?

Added:
Does umount command return? Or just hangs due to busy drive?

Last edited by Teufel; 07-28-2017 at 05:58 AM.
 
Old 07-28-2017, 09:00 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
If you click on the little unmount symbol beside the drive in Devices, does it unmount the drive?
 
Old 07-28-2017, 02:53 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Yes, the up triangle icon to right of drive in left panel.

If it refuses to unmount then some process has it locked. (or maybe some other issue)
 
Old 07-29-2017, 04:40 AM   #7
bujuoui
LQ Newbie
 
Registered: May 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
When I click on the unmount triangle symbol right next to the drive, it does unmount but remounts automatically after a couple of seconds.
 
Old 07-29-2017, 05:00 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Which kernel version are you using?

Code:
uname -r
This bug https://bugs.launchpad.net/ubuntu/+s...us/+bug/792085 appears to have been resolved in 4.4.0-62.
 
1 members found this post helpful.
Old 07-29-2017, 06:40 AM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Isn't there an "eject" option? I tend to use that for removable media as it gives a niotification when the data is synchronised.
 
Old 07-30-2017, 02:50 PM   #10
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
It sounds like a bug.
 
Old 07-31-2017, 05:58 AM   #11
bujuoui
LQ Newbie
 
Registered: May 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
I'm using 4.4.0-53-generic
 
Old 07-31-2017, 07:29 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by bujuoui View Post
I'm using 4.4.0-53-generic
In that case, you should try upgrading it to at least 4.4.0-62 and see if that resolves the problem.

For info, I'm using 4.10.0-28 on Linux Mint 18.2 (installed through Mint's Update Manager) with no problems, although hardware does differ and so, if you are unlucky, your mileage may vary.
 
Old 07-31-2017, 07:51 AM   #13
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Look for autofs type things in your ps output and lsmod output. Some distros have that installed and active by default. It auto mounts your drives. Which is probably what is getting in the way. Otherwise you could use windows methodologies like shutting down to safely unmount the drive.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Xubuntu- unable to eject external hard drive safely gonny95 Linux - Newbie 5 07-05-2014 10:56 AM
Safely Remove USB External Hard Drive Toods Slackware 12 02-10-2009 02:57 AM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
safely remove external hard-drive vashsna Linux - Hardware 4 11-16-2008 04:01 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration