Another of those super complex problems that has a very simple solution...
makes you wonder: ¿how could i Not see that?
Problem:
when you use / plug a Very Large HDD to USB3.0 on Linux.
most of the times the HDD is Not detected.
IF the USB3.0 enclosure has an external powersupply,
can be turned-On after being plugged or continue to be On un-plugged from USB.
usually external enclosures with ASMedia USB SATA controller.
Manual Solution:
unplug the usb cable with HDD turned-on, and plug again.
that will detect the Very Large USB HDD.
Proper Automatic Permanent solution:
create a file like this:
/etc/modprobe.d/usb-storage.conf
options usb-storage delay_use=15
# install usb-storage /bin/true
# options usb-storage option_zero_cd
# options usb-storage quirks
# options usb-storage swi_tru_install
P.D.
20TB could require more,
some Kernels require more,
and brand to brand differences.
IF helium seal is leaking, more oxygen makes harder to spin-up
etc...
Recomended:
Disable Write-Cache
why?
because if there is a Crash, or power loss without UPS,
its easy to recover files, or continue downloading.
File system Journal & Write Cache contradict / collide each other.
Bigger cache requires more aggresive Journal, higher priority.
No write-cache makes Journal work better.
/etc/hdparm.conf
# -W Disable/enable the IDE drive's write-caching feature
write_cache = off
verify internal drives connected directly to sata:
$ sudo hdparm -i /dev/sdb
/dev/sdb:
Model= , FwRev= , SerialNo=
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=unknown, MaxMultSect=1, MultSect=1
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=500118192
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=no WriteCache=disabled
Drive conforms to: unknown: ATA/ATAPI-2,3,4,5,6,7
* signifies the current active mode
USB3.0 drive FAIL
$ sudo hdparm -i /dev/sdd
/dev/sdd:
HDIO_GET_IDENTITY failed: Invalid argument
mount point also FAIL
$ sudo hdparm -i /media/jpc/XFS-18TB-2
/media/user/XFS-18TB:
HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
HDIO_GET_IDENTITY failed: Inappropriate ioctl for device
if want to read the long conversations, how soluton was found: