LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2023, 05:24 PM   #1
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
If an external drive is not mounted yet but has it's visible light on is it safe to just unplug it from a usb hub without clicking anything?


If an external drive or a usb stick is not mounted yet but has it's visible light on is it safe to just to unplug it from a usb hub without clicking mount on the gui? At the bottom far lower right of my kde screen it says 'mount', but if I've changed my mind and want to just unplug it, is it safe to do so, instead of having to click mount then unmount.

It's connected to an unpowered usb hub i.e. gets it power from my computer. Thanks in advance.
 
Old 12-01-2023, 06:09 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,736

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
lsblk again. Does the ‘puter know it’s there? Is it mounted? Then don’t unplug it.
 
Old 12-01-2023, 07:13 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Part of the sales pitch for usb was it could be unplugged at anytime.
 
Old 12-01-2023, 08:29 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,361
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
To build on what jefro said, the reason for "safely remove" is to ensure that no files get damaged by a premature removal, say, if for example, a transfer or modification is taking place.

If the drive is not mounted, it doesn't need to unmounted; it can just be unplugged.
 
Old 12-02-2023, 04:37 AM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,506

Rep: Reputation: Disabled
If its been plugged in but not mounted, yes, you can unplug it - but if it has been mounted, first make sure it is unmounted, which will write anything that may be in a write cache to disk first, otherwise you stand a chance of corrupting the file system on it.
 
Old 12-02-2023, 06:18 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
Regardless of the operating system, always unmount an external drive before removing it, and wait for the process to complete. You simply cannot know what the system hasn't done yet.
 
Old 12-02-2023, 10:32 AM   #7
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,146

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
As others have said, if it's currently unmounted it should be perfectly safe to just unplug it.

I don't know how KDE does things, but in my file browser any device plugged in, mounted or not, appears in a side panel. If I right-click on the icon, one option is "safely remove" and it confirms that it is safe — the "belt and braces" approach.
 
Old 12-06-2023, 06:31 PM   #8
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sundialsvcs View Post
Regardless of the operating system, always unmount an external drive before removing it, and wait for the process to complete. You simply cannot know what the system hasn't done yet.
In my case it hasn't been even mounted yet. I've plugged the external drive in and haven't mounted it yet and want to unplugg it as is. I see a light on the external drive.
 
Old 12-06-2023, 06:33 PM   #9
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DavidMcCann View Post
I don't know how KDE does things, but in my file browser any device plugged in, mounted or not, appears in a side panel. If I right-click on the icon, one option is "safely remove" and it confirms that it is safe — the "belt and braces" approach.
For me to see the "safely remove" I would need to click mount first, then click "safely remove"
 
Old 12-06-2023, 06:36 PM   #10
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
If its been plugged in but not mounted, yes, you can unplug it
Unplug even if the light is lit on the external hdd and it's not mounted yet?
 
Old 12-06-2023, 07:38 PM   #11
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by linux-man View Post
Unplug even if the light is lit on the external hdd and it's not mounted yet?
I think what everyone is saying is very simple.

If you verify it is not mounted then unplug it.
If you cannot readily verify it is not mounted then do not unplug it until you have done the steps to unmount it.

The idea is to protect your data on the device and only by verifying it is not mounted can you be 100% certain the data is safe.
The light does not tell you it is or is not mounted. On most pen drives it indicates power is available and may also blink to indicate activity.
 
1 members found this post helpful.
Old 12-06-2023, 07:58 PM   #12
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Easy enough to tell with:
Code:
df -h
lsblk -f
mount
Check and recheck an external NTFS volumn. Or you'll be looking for a windows machine.
 
Old 12-06-2023, 09:09 PM   #13
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
"The light" on an external drive usually indicates only that power has been supplied. It then "blinks" (maybe ...(!)) when the drive is being accessed.
 
1 members found this post helpful.
  


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
USB drives visible in fdisk and gparted, but not mounting or visible in /media/ Ibilata_Bingbingbing Linux - Newbie 4 10-12-2016 03:51 PM
Safe to hot plug/unplug these PS/2 & USB items? SP7 Linux - Hardware 3 09-03-2013 09:00 PM
Safely unplug mounted USB device without first unmounting? helleye Linux - Embedded & Single-board computer 4 05-01-2012 01:24 AM
cscope usage options not visible, but the search results are visible balemarthy Linux - Newbie 1 02-15-2012 02:46 PM
Must unplug & replug hub to get flash drive recognized MaxLinux Linux - Hardware 2 06-25-2007 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:09 PM.

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