setting ATA password before kernel scans for partitions

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

 



Hello,

When USB mass storage is connected, kernel scans for partitions.
If device uses ATA password, then scan fails with lots of messages in
the kernel log..

[119272.475170] sd 22:0:0:0: [sdb]
[119272.475179] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[119272.475184] sd 22:0:0:0: [sdb]
[119272.475188] Sense Key : Aborted Command [current]
[119272.475195] Info fld=0x0
[119272.475199] sd 22:0:0:0: [sdb]
[119272.475205] Add. Sense: Data phase CRC error detected
[119272.475210] sd 22:0:0:0: [sdb] CDB:
[119272.475212] Read(10): 28 00 00 00 00 00 00 00 08 00
[119272.475229] end_request: I/O error, dev sdb, sector 0


It is necessary to set password with:
hdparm --security-set-pass PWD
and then ask the kernel to rescan with BLKRRPART ioctl.

It would be great if kernel could set the ATA password by itself using
kernel keyring, for example.

Is there any such project somewhere?

- Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux