Re: What is the modern recommendation for sata to usb drive disconnect ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 16, 2018 at 01:09:48PM +0200, borissh1983@xxxxxxxxx wrote:
> Hi, 
> 
> I got to a slight confusion about what is the correct way to safely disconnect 
> hdd sata over usb  adapter with external power unit from laptop running Linux 
> (4.18).
> 
> my current action list was : 
> 
> 1. unmount everything

That's all you need to do.

You can also issue a "power off" command to the drive now if you want to
shut off the power to it (and the drive/controller actually support it).
I know gnome-disks has that option and I use it all the time with my
external sata USB controller.

> 2. sync

You could do that before unmount, but unmount will also do that for you.
No need to do this afterward.

> 3. hdpram -S 30  /dev/sdX (I'm not sure if does anything honestly because 
> device is connected over a sata to usb interface)

What does this do?  Why "sleep" the drive?

> 4. Wait for ~20 minutes 

Huh?  Why 20 minutes?

Just unmount and then power off the device, that should be sufficient.

good luck!

greg k-h



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux