LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   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? (https://www.linuxquestions.org/questions/linux-newbie-8/if-an-external-drive-is-not-mounted-yet-but-has-its-visible-light-on-is-it-safe-to-just-unplug-it-from-a-usb-hub-without-clicking-anything-4175731430/)

linux-man 12-01-2023 05:24 PM

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.

scasey 12-01-2023 06:09 PM

lsblk again. Does the ‘puter know it’s there? Is it mounted? Then don’t unplug it.

jefro 12-01-2023 07:13 PM

Part of the sales pitch for usb was it could be unplugged at anytime.

frankbell 12-01-2023 08:29 PM

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.

fatmac 12-02-2023 04:37 AM

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.

sundialsvcs 12-02-2023 06:18 AM

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.

DavidMcCann 12-02-2023 10:32 AM

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.

linux-man 12-06-2023 06:31 PM

Quote:

Originally Posted by sundialsvcs (Post 6467956)
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.

linux-man 12-06-2023 06:33 PM

Quote:

Originally Posted by DavidMcCann (Post 6467993)
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"

linux-man 12-06-2023 06:36 PM

Quote:

Originally Posted by fatmac (Post 6467944)
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?

computersavvy 12-06-2023 07:38 PM

Quote:

Originally Posted by linux-man (Post 6468874)
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.

teckk 12-06-2023 07:58 PM

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.

sundialsvcs 12-06-2023 09:09 PM

"The light" on an external drive usually indicates only that power has been supplied. It then "blinks" (maybe ...(!)) when the drive is being accessed.


All times are GMT -5. The time now is 05:56 AM.