Jump to content

Safely Ejecting USBs and Hard drives

Hey Guys,

 

Now we're all guilty of not "safely ejecting" usbs and hard drives, since life is too short for that or we like to live on the edge. It always seems windows platforms are always cool whenever we decide to whip out our hard drives without any protection but with mac platforms decide to betray us be like "Nah gg, get rekt" and destroy our porn-containing devices. Why du mac do dis?

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

There's this thing called write caching used by both MacOS and Linux. Basically, the OS creates a "list" of stuff to write on the drive and completes these write tasks later on (sometimes when you click eject).

Windows disabled this thing and writes whatever it has to write directly to the drive, skipping the cache for those drives recognized as removable, while using the write cache for those non removable.

 

In the end, what happens is that on MacOS and Linux you fuck up the data that needs to be (or is being) written on the drive when you "unsafely" unplug the drive.

Computer Case: NZXT S340 || CPU: AMD Ryzen 5 1600 || Cooler: CM Hyper212 Evo || MoBo: MSI B350 Mortar || RAM Vengeance LPX 2x8GB 3200MHz || PSU: Corsair CX600 || SSD: HyperX Fury 120GB & 240GB || HDD: WD Blue 1TB + 1TB 2.5'' backup drive || GPU: Sapphire Nitro+ RX 580 4GB

Laptop 1 HP x360 13-u113nl

Laptop Lenovo z50-75 with AMD FX-7500 || OS: Windows 10 / Ubuntu 17.04

DSLR Nikon D5300 w/ 18-105mm lens

Link to comment
Share on other sites

Link to post
Share on other sites

17 minutes ago, Cryosec said:

There's this thing called write caching used by both MacOS and Linux. Basically, the OS creates a "list" of stuff to write on the drive and completes these write tasks later on (sometimes when you click eject).

Windows disabled this thing and writes whatever it has to write directly to the drive, skipping the cache for those drives recognized as removable, while using the write cache for those non removable.

 

In the end, what happens is that on MacOS and Linux you fuck up the data that needs to be (or is being) written on the drive when you "unsafely" unplug the drive.

you can enable it on the external usb or hard drive on windows too

Link to comment
Share on other sites

Link to post
Share on other sites

I always disable write caching whenever possible.  I don't want the progress dialog to complete & disappear until it's actually DONE, and safe to eject the drive.

 

The progress dialog disappearing is how I know I can safely unplug the drive.

 

Now if only I could hot-plug internal SATA drives... I have more drives than I have drive bays (Rosewill Thor V2), SATA ports (ASRock Z97 Extreme6), & power connectors (Corsair AX760).

Link to comment
Share on other sites

Link to post
Share on other sites

21 hours ago, Cryosec said:

There's this thing called write caching used by both MacOS and Linux. Basically, the OS creates a "list" of stuff to write on the drive and completes these write tasks later on (sometimes when you click eject).

Windows disabled this thing and writes whatever it has to write directly to the drive, skipping the cache for those drives recognized as removable, while using the write cache for those non removable.

 

In the end, what happens is that on MacOS and Linux you fuck up the data that needs to be (or is being) written on the drive when you "unsafely" unplug the drive.

Thanks man

Link to comment
Share on other sites

Link to post
Share on other sites

13 hours ago, PianoPlayer88Key said:

Now if only I could hot-plug internal SATA drives

check your BIOS, I can set some SATA ports as hot-pluggable

 

and holy shit that's a lot of drives

Computer Case: NZXT S340 || CPU: AMD Ryzen 5 1600 || Cooler: CM Hyper212 Evo || MoBo: MSI B350 Mortar || RAM Vengeance LPX 2x8GB 3200MHz || PSU: Corsair CX600 || SSD: HyperX Fury 120GB & 240GB || HDD: WD Blue 1TB + 1TB 2.5'' backup drive || GPU: Sapphire Nitro+ RX 580 4GB

Laptop 1 HP x360 13-u113nl

Laptop Lenovo z50-75 with AMD FX-7500 || OS: Windows 10 / Ubuntu 17.04

DSLR Nikon D5300 w/ 18-105mm lens

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Cryosec said:

check your BIOS, I can set some SATA ports as hot-pluggable

 

and holy shit that's a lot of drives

Yeah, I'm aware that may be possible.  (My mobo is the ASRock Z97 Extreme6.)

 

What I'm concerned about though is hot-plugging the SATA power cable not at the same time as the data cable.  (They're two separate cables/connectors.)

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, PianoPlayer88Key said:

What I'm concerned about though is hot-plugging the SATA power cable not at the same time as the data cable

Pluggin in data before power just causes the OS to see the drive as "not ready" but existent, power before data just turns on the drive without data connection. no problem with that. Unplugging, with hot-swap enabled, should work the same way, whether you unplug first data or power, the OS will just see the drive as not ready or non existent anymore.

 

Easy solution is a 5.25" bay to 3.5", for easy hot-plugging

Computer Case: NZXT S340 || CPU: AMD Ryzen 5 1600 || Cooler: CM Hyper212 Evo || MoBo: MSI B350 Mortar || RAM Vengeance LPX 2x8GB 3200MHz || PSU: Corsair CX600 || SSD: HyperX Fury 120GB & 240GB || HDD: WD Blue 1TB + 1TB 2.5'' backup drive || GPU: Sapphire Nitro+ RX 580 4GB

Laptop 1 HP x360 13-u113nl

Laptop Lenovo z50-75 with AMD FX-7500 || OS: Windows 10 / Ubuntu 17.04

DSLR Nikon D5300 w/ 18-105mm lens

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×