Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-11-2019, 11:58 AM
|
#16
|
LQ Newbie
Registered: Oct 2010
Posts: 11
Original Poster
Rep:
|
From lsusb
Code:
Bus 001 Device 006: ID 1bcf:0c31 Sunplus Innovation Technology Inc. SPIF30x Serial-ATA bridge
|
|
|
04-11-2019, 12:23 PM
|
#17
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,375
|
oh, yes, one more thing: what dmesg reports about it?
|
|
|
04-11-2019, 01:06 PM
|
#18
|
LQ Newbie
Registered: Oct 2010
Posts: 11
Original Poster
Rep:
|
Thanks, pan64. I'm running a test for bad sectors on this drive at the moment. The more I look at it, the more I think it's a hardware limitation with the enclosure, and not the drive or partitioning or something. I think this is the messaging from dmesg that came out last time I connected it:
Code:
[ 2899.604489] usb 1-6: new high-speed USB device number 6 using xhci_hcd
[ 2899.756924] usb 1-6: New USB device found, idVendor=1bcf, idProduct=0c31
[ 2899.756932] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2899.756938] usb 1-6: Product: USB to Serial-ATA bridge
[ 2899.756943] usb 1-6: Manufacturer: Sunplus Innovation Technology
[ 2899.756948] usb 1-6: SerialNumber: FFFACFF0FD000000FF1311FFF5FFFA
[ 2899.760818] usb-storage 1-6:1.0: USB Mass Storage device detected
[ 2899.761159] scsi host1: usb-storage 1-6:1.0
[ 2900.790788] scsi 1:0:0:0: Direct-Access Hitachi HDS5C3030ALA630 0200 PQ: 0 ANSI: 4
[ 2900.796748] scsi 1:0:0:1: Direct-Access Hitachi HDS5C3030ALALUN1 0200 PQ: 0 ANSI: 4
[ 2900.797767] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 2900.798206] sd 1:0:0:1: Attached scsi generic sg2 type 0
[ 2900.798516] sd 1:0:0:0: [sdb] 4294967295 512-byte logical blocks: (2.20 TB/2.00 TiB)
[ 2900.805420] sd 1:0:0:0: [sdb] Write Protect is off
[ 2900.805424] sd 1:0:0:0: [sdb] Mode Sense: 38 00 00 00
[ 2900.806051] sd 1:0:0:1: [sdc] 1565565872 512-byte logical blocks: (802 GB/747 GiB)
[ 2900.812914] sd 1:0:0:0: [sdb] No Caching mode page found
[ 2900.812921] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[ 2900.819710] sd 1:0:0:1: [sdc] Write Protect is off
[ 2900.819715] sd 1:0:0:1: [sdc] Mode Sense: 38 00 00 00
[ 2900.826602] sd 1:0:0:1: [sdc] No Caching mode page found
[ 2900.826609] sd 1:0:0:1: [sdc] Assuming drive cache: write through
[ 2900.909723] sdb:
[ 2900.924150] sd 1:0:0:1: [sdc] Attached SCSI disk
[ 2900.947097] sd 1:0:0:0: [sdb] Attached SCSI disk
|
|
|
04-11-2019, 01:44 PM
|
#19
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
Since you are seeing two devices you could use the LVM idea I suggested at end of my last post.
|
|
|
04-12-2019, 01:47 AM
|
#20
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,375
|
What I found: this usb enclosure [may] have two different ways to access the disk. One of them is [something like] a direct access and I have not idea what is the other one [some kind of mapping??]. Probably you are right it depends on the size of the disk.
|
|
|
06-03-2019, 09:48 AM
|
#21
|
LQ Newbie
Registered: Oct 2010
Posts: 11
Original Poster
Rep:
|
SOLVED.
It was the hard drive enclosure. With a new enclosure, I get:
Code:
$ lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 vfat 639C-3488 /boot/efi
└─sda2 ext4 78b35f52-b118-447f-9000-91b69d3f6d41 /
sdb
Then
Code:
$ sudo fdisk -l
[sudo] password for fatpie:
Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 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: gpt
Disk identifier: B55E3E01-A740-4F6B-B75A-54203EC3D775
Device Start End Sectors Size Type
/dev/sda1 65535 196604 131070 64M EFI System
/dev/sda2 196605 250000000 249803396 119.1G Linux filesystem
Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
And
Code:
$ sudo hdparm -I /dev/sdb
/dev/sdb:
ATA device, with non-removable media
Model Number: Hitachi HDS5C3030ALA630
Serial Number: MJ1311YNG5XXGA
Firmware Revision: MEAOAA10
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6; Revision: ATA8-AST T13 Project D1697 Revision 0b
Standards:
Used: unknown (minor revision code 0x0029)
Supported: 8 7 6 5
Likely used: 8
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 5860533168
Logical Sector size: 512 bytes
Physical Sector size: 512 bytes
device size with M = 1024*1024: 2861588 MBytes
device size with M = 1000*1000: 3000592 MBytes (3000 GB)
cache/buffer size = 26129 KBytes (type=DualPortCache)
Form Factor: 3.5 inch
Nominal Media Rotation Rate: 5700
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = 0
Advanced power management level: disabled
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
Advanced Power Management feature set
Power-Up In Standby feature set
* SET_FEATURES required to spinup after power up
SET_MAX security extension
* 48-bit Address feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
Media Card Pass-Through
* General Purpose Logging feature set
* WRITE_{DMA|MULTIPLE}_FUA_EXT
* 64-bit World wide name
* URG for READ_STREAM[_DMA]_EXT
* URG for WRITE_STREAM[_DMA]_EXT
* WRITE_UNCORRECTABLE_EXT command
* {READ,WRITE}_DMA_EXT_GPL commands
* Segmented DOWNLOAD_MICROCODE
* unknown 119[7]
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
* Gen3 signaling speed (6.0Gb/s)
* Native Command Queueing (NCQ)
* Host-initiated interface power management
* Phy event counters
* NCQ priority information
Non-Zero buffer offsets in DMA Setup FIS
DMA Setup Auto-Activate optimization
Device-initiated interface power management
In-order data delivery
* Software settings preservation
* SMART Command Transport (SCT) feature set
* SCT Write Same (AC2)
* SCT Error Recovery Control (AC3)
* SCT Features Control (AC4)
* SCT Data Tables (AC5)
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
not supported: enhanced erase
more than 508min for SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 5000cca228c2b269
NAA : 5
IEEE OUI : 000cca
Unique ID : 228c2b269
Checksum: correct
Let me try to mark this one as "SOLVED."
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 06:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|