killwater
Posts: 13
Joined: Sat Jan 13, 2018 11:05 pm

PI3 External HDD problem - password protected drive [solved]

Sat Jan 13, 2018 11:47 pm

Hello
I have a problem with my external HDD connected to Pi3. It is a 2.5" hitachi HDD with 5V 700mA power supply requirement. The only other device plugged in is a keyboard/mouse usb dongle and HDMI. I use the official pi power adaptor. HDD spins and both it and PI have constant power light and keyboard and mouse are working just fine. As PI provides 1.2A on USB ports I assume I have enough power.

I think the HDD is visible in the system and it has been working previously on my laptop, but it is not getting mounted.

Some terminal output:

lsusb

Code: Select all

Bus 001 Device 004: ID 046d:c534 Logitech, Inc. Unifying Receiver
[b]Bus 001 Device 007: ID 07ab:0621 Freecom Technologies [/b]
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
fdisk -l

Code: Select all

Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mmcblk0: 14.9 GiB, 15986589696 bytes, 31223808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00039fa6

Device         Boot   Start      End  Sectors  Size Id Type
/dev/mmcblk0p1         8192  3275390  3267199  1.6G  e W95 FAT16 (LBA)
/dev/mmcblk0p2      3275391 31223807 27948417 13.3G  5 Extended
/dev/mmcblk0p5      3276800  3342333    65534   32M 83 Linux
/dev/mmcblk0p6      3342336  3483647   141312   69M  c W95 FAT32 (LBA)
/dev/mmcblk0p7      3489792 31223807 27734016 13.2G 83 Linux

tail -f /var/log/syslog

Code: Select all

Jan 13 23:00:40 raspberrypi kernel: [ 5831.540382] usb 1-1.3: New USB device found, idVendor=07ab, idProduct=0621
Jan 13 23:00:40 raspberrypi kernel: [ 5831.540396] usb 1-1.3: New USB device strings: Mfr=4, Product=5, SerialNumber=6
Jan 13 23:00:40 raspberrypi kernel: [ 5831.540405] usb 1-1.3: Product: Ext. HDD
Jan 13 23:00:40 raspberrypi kernel: [ 5831.540413] usb 1-1.3: Manufacturer: I
Jan 13 23:00:40 raspberrypi kernel: [ 5831.540421] usb 1-1.3: SerialNumber: 20120816
Jan 13 23:00:40 raspberrypi kernel: [ 5831.541543] usb-storage 1-1.3:1.0: USB Mass Storage device detected
Jan 13 23:00:40 raspberrypi kernel: [ 5831.541931] scsi host0: usb-storage 1-1.3:1.0
Jan 13 23:00:40 raspberrypi mtp-probe: checking bus 1, device 6: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3"
Jan 13 23:00:40 raspberrypi mtp-probe: bus: 1, device: 6 was not an MTP device
Jan 13 23:00:41 raspberrypi kernel: [ 5832.173240] usb 1-1.3: USB disconnect, device number 6
Jan 13 23:00:49 raspberrypi kernel: [ 5840.397665] usb 1-1.5: reset full-speed USB device number 4 using dwc_otg
Jan 13 23:00:50 raspberrypi kernel: [ 5840.917662] usb 1-1.3: new high-speed USB device number 7 using dwc_otg
Jan 13 23:00:50 raspberrypi kernel: [ 5841.050865] usb 1-1.3: New USB device found, idVendor=07ab, idProduct=0621
Jan 13 23:00:50 raspberrypi kernel: [ 5841.050882] usb 1-1.3: New USB device strings: Mfr=4, Product=5, SerialNumber=6
Jan 13 23:00:50 raspberrypi kernel: [ 5841.050891] usb 1-1.3: Product: Ext. HDD
Jan 13 23:00:50 raspberrypi kernel: [ 5841.050899] usb 1-1.3: Manufacturer: I
Jan 13 23:00:50 raspberrypi kernel: [ 5841.050906] usb 1-1.3: SerialNumber: 20120816
Jan 13 23:00:50 raspberrypi kernel: [ 5841.052055] usb-storage 1-1.3:1.0: USB Mass Storage device detected
Jan 13 23:00:50 raspberrypi kernel: [ 5841.052418] scsi host0: usb-storage 1-1.3:1.0
Jan 13 23:00:50 raspberrypi mtp-probe: checking bus 1, device 7: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3"
Jan 13 23:00:50 raspberrypi mtp-probe: bus: 1, device: 7 was not an MTP device
Jan 13 23:00:52 raspberrypi kernel: [ 5843.107246] scsi 0:0:0:0: Direct-Access     Hitachi  HTS547575A9E384       PQ: 0 ANSI: 6
Jan 13 23:00:52 raspberrypi kernel: [ 5843.108814] sd 0:0:0:0: [sda] 1465149168 512-byte logical blocks: (750 GB/699 GiB)
Jan 13 23:00:52 raspberrypi kernel: [ 5843.109390] sd 0:0:0:0: [sda] Write Protect is off
Jan 13 23:00:52 raspberrypi kernel: [ 5843.109406] sd 0:0:0:0: [sda] Mode Sense: 3b 00 00 00
Jan 13 23:00:52 raspberrypi kernel: [ 5843.109685] sd 0:0:0:0: Attached scsi generic sg0 type 0
Jan 13 23:00:52 raspberrypi kernel: [ 5843.109990] sd 0:0:0:0: [sda] No Caching mode page found
Jan 13 23:00:52 raspberrypi kernel: [ 5843.110001] sd 0:0:0:0: [sda] Assuming drive cache: write through
Jan 13 23:00:52 raspberrypi kernel: [ 5843.557715] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:53 raspberrypi kernel: [ 5844.127702] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:53 raspberrypi kernel: [ 5844.397739] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:54 raspberrypi kernel: [ 5844.667765] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:54 raspberrypi kernel: [ 5844.937713] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:54 raspberrypi kernel: [ 5845.207763] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:54 raspberrypi kernel: [ 5845.339545] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
Jan 13 23:00:54 raspberrypi kernel: [ 5845.339581] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 08 00
Jan 13 23:00:54 raspberrypi kernel: [ 5845.339589] blk_update_request: I/O error, dev sda, sector 0
Jan 13 23:00:54 raspberrypi kernel: [ 5845.339599] Buffer I/O error on dev sda, logical block 0, async page read
Jan 13 23:00:54 raspberrypi kernel: [ 5845.437683] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:55 raspberrypi kernel: [ 5845.707675] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:55 raspberrypi kernel: [ 5845.977673] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:55 raspberrypi kernel: [ 5846.247752] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:55 raspberrypi kernel: [ 5846.517717] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:56 raspberrypi kernel: [ 5846.787714] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:56 raspberrypi kernel: [ 5846.919765] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
Jan 13 23:00:56 raspberrypi kernel: [ 5846.919816] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 08 00
Jan 13 23:00:56 raspberrypi kernel: [ 5846.919831] blk_update_request: I/O error, dev sda, sector 0
Jan 13 23:00:56 raspberrypi kernel: [ 5846.919846] Buffer I/O error on dev sda, logical block 0, async page read
Jan 13 23:00:56 raspberrypi kernel: [ 5847.017762] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:56 raspberrypi kernel: [ 5847.287722] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:56 raspberrypi kernel: [ 5847.557713] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:57 raspberrypi kernel: [ 5847.827728] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:57 raspberrypi kernel: [ 5848.097722] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:57 raspberrypi kernel: [ 5848.367728] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:57 raspberrypi kernel: [ 5848.499482] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
Jan 13 23:00:57 raspberrypi kernel: [ 5848.499511] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 00 00 00 00 00 08 00
Jan 13 23:00:57 raspberrypi kernel: [ 5848.499519] blk_update_request: I/O error, dev sda, sector 0
Jan 13 23:00:57 raspberrypi kernel: [ 5848.499527] Buffer I/O error on dev sda, logical block 0, async page read
Jan 13 23:00:57 raspberrypi kernel: [ 5848.499896]  sda: unable to read partition table
Jan 13 23:00:57 raspberrypi kernel: [ 5848.503487] sd 0:0:0:0: [sda] Attached SCSI disk
Jan 13 23:00:58 raspberrypi kernel: [ 5848.917746] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:58 raspberrypi kernel: [ 5849.447760] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:59 raspberrypi kernel: [ 5849.717735] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:59 raspberrypi kernel: [ 5849.987739] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:59 raspberrypi kernel: [ 5850.257743] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:00:59 raspberrypi kernel: [ 5850.527765] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:01:00 raspberrypi kernel: [ 5850.659737] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
Jan 13 23:01:00 raspberrypi kernel: [ 5850.659787] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 57 54 66 00 00 00 08 00
Jan 13 23:01:00 raspberrypi kernel: [ 5850.659806] blk_update_request: I/O error, dev sda, sector 1465148928
Jan 13 23:01:00 raspberrypi kernel: [ 5850.757817] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:01:00 raspberrypi kernel: [ 5851.027768] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:01:00 raspberrypi kernel: [ 5851.297772] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:01:00 raspberrypi kernel: [ 5851.567753] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:01:01 raspberrypi kernel: [ 5851.837752] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:01:01 raspberrypi kernel: [ 5852.107819] usb 1-1.3: reset high-speed USB device number 7 using dwc_otg
Jan 13 23:01:01 raspberrypi kernel: [ 5852.239760] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
Jan 13 23:01:01 raspberrypi kernel: [ 5852.239811] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 57 54 66 00 00 00 08 00
Jan 13 23:01:01 raspberrypi kernel: [ 5852.239830] blk_update_request: I/O error, dev sda, sector 1465148928
Jan 13 23:01:01 raspberrypi kernel: [ 5852.239847] Buffer I/O error on dev sda, logical block 183143616, async page read
I am quite inexperienced so any help would be highly appreciated.

Thank you.
Last edited by killwater on Sun Jan 14, 2018 1:57 pm, edited 1 time in total.

killwater
Posts: 13
Joined: Sat Jan 13, 2018 11:05 pm

Re: PI3 External HDD problem - password protected drive

Sun Jan 14, 2018 12:14 pm

Ok I think I know what the problem is - I set up a password for this HDD (which I fortunately still remember). Is it possible to use this disk with PI?
I do not have access to any other computer so removing the password by plugging it in to one is not possible.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: PI3 External HDD problem

Sun Jan 14, 2018 12:58 pm

Try
sudo hdparm --security-unlock knownpassword /dev/sda
No guarantees the hdparm man page has a health warning on that option.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

killwater
Posts: 13
Joined: Sat Jan 13, 2018 11:05 pm

Re: PI3 External HDD problem - password protected drive [solved]

Sun Jan 14, 2018 2:03 pm

Worked perfectly fine. I have been also able to remove the protection with
sudo hdparm --security-disable knownpassword /dev/sda

As you said it says everywhere that it is:
DANGEROUS to experiment with, and might not work with every kernel. USE AT YOUR OWN RISK.

Thank you very much for help. It is highly appreciated.

Return to “Troubleshooting”