USB HDD not working on linux

11,938

If your harddrive is formatted as HFS+ (which it would be, if it is formatted as a native Mac drive) then you should make sure that hfs drivers are installed on your Linux machines.

On Debian, as root:

apt-get install hfsplus hfsutils hfsprogs

That should enable read access to the drive, but write access will be disabled until you turn OFF journaling (which should be done from within OS X's Disk Utility application).

Share:
11,938

Related videos on Youtube

user2747949
Author by

user2747949

Updated on September 18, 2022

Comments

  • user2747949
    user2747949 almost 2 years

    I have a WD My Passport 1 TB external hard drive which is giving me some problems on different linux machines:

    • When I plug it in, nothing happens
    • Gparted when detecting connected devices says "Error opening /dev/sdb: No such device or address" and it doesn't list the hard drive
    • Typing on terminal sudo fdisk -l the hard drive is not listed

    This happens on both my main Debian PC and on my Raspberry Pi, but I can use the hard drive perfectly normally on my Mac.

    I can't check its S.M.A.R.T. status since it's a USB hard drive, but I don't think the HDD is failing, because if so it wouldn't work on my Mac. I checked and reformatted the drive several times on my Mac but it still doesn't work on linux.

    Any ideas on what's going on?

    Edit: here is the output of lsusb:

    Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 000: ID 1058:0730 Western Digital Technologies, Inc. 
    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
    Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
    Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
    Bus 001 Device 006: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
    

    As you can see, the device is listed here (Bus 001 Device 000).

    Edit x2: This is kern.log file since when the hard drive was connected:

    Edit x3: The hard drive has 4 partitions; two are HFS+ and two are FAT32. The partition table is GUID.

    Edit x4: I found this question about one error in the kernel log file I found too, which means the USB 3.0 drive is requesting too much power from the computer. However I tried using a USB power splitter cable (so that the HDD could have 1000 mA instead of 500 mA) and it didn't solve the problem. The HDD seems to be rated 600 mA, but I've always used on USB 2.0 ports without problems.