Memoria esterna USB vista da Fedora

Lun, 01/09/2014 - 21:42
Ritratto di Sargon6

Memoria esterna USB vista da Fedora

Inviato da Sargon6 0 commenti

Memoria esterna USB vista da Fedora
Memoria esterna USB Seagate Barracuda 7200.14 (AF) da 3 Tb Modello: ST3000DM001-1E6166 vista da Fedora

I comandi:

lsblk -d
lsblk | egrep -i 'name|sdb'
lsblk -m | egrep -i 'name|sdb'
lsblk -f | egrep -i 'name|sdb'
lsblk -P | grep sdb
df | egrep -i 'file|sdb'
df -T -h | egrep -i 'file|sdb'
dmesg|egrep -i '6:0:|sdb|ansi:'
lsusb
sudo lsusb -v | grep -iA 23 seagate
sudo fdisk -l | grep -iA 20 sdb:
sudo smartctl -d sat -a /dev/sdb
sudo lshw -class disk
sudo lshw -class volume

L'output:

[user ~]$ lsblk -d
NAME MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda    8:0    0 465,8G  0 disk 
sdb    8:16   0   2,7T  0 disk 
sr0   11:0    1  1024M  0 rom  
[user ~]$ lsblk | egrep -i 'name|sdb'
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb       8:16   0   2,7T  0 disk 
├─sdb1    8:17   0   500G  0 part /mnt/usb3Tb/SG1
├─sdb2    8:18   0     4K  0 part 
├─sdb5    8:21   0   500G  0 part /mnt/usb3Tb/SG5
├─sdb6    8:22   0   500G  0 part /mnt/usb3Tb/SG6
├─sdb7    8:23   0   500G  0 part /mnt/usb3Tb/SG7
├─sdb8    8:24   0   500G  0 part /mnt/usb3Tb/SG8
├─sdb9    8:25   0   292G  0 part /mnt/usb3Tb/SG9
└─sdb10   8:26   0   2,5G  0 part 
[user ~]$ lsblk -m | egrep -i 'name|sdb'
NAME      SIZE OWNER GROUP MODE
sdb       2,7T root  disk  brw-rw----
├─sdb1    500G root  disk  brw-rw----
├─sdb2      4K root  disk  brw-rw----
├─sdb5    500G root  disk  brw-rw----
├─sdb6    500G root  disk  brw-rw----
├─sdb7    500G root  disk  brw-rw----
├─sdb8    500G root  disk  brw-rw----
├─sdb9    292G root  disk  brw-rw----
└─sdb10   2,5G root  disk  brw-rw----
[user ~]$ lsblk -f | egrep -i 'name|sdb'
NAME    FSTYPE LABEL  UUID                                 MOUNTPOINT
sdb                                                        
├─sdb1  ntfs   SG1    1A6615E96615C683                     /mnt/usb3Tb/SG1
├─sdb2                                                     
├─sdb5  ext4   SG5    2f44971d-1f3e-4025-9ed5-c69ce0e2e9c9 /mnt/usb3Tb/SG5
├─sdb6  ext4   SG6    ad047149-72be-4eaa-b0e6-0ce4a201f44a /mnt/usb3Tb/SG6
├─sdb7  ext4   SG7    e5418520-874c-4c95-b169-aea6baa9f254 /mnt/usb3Tb/SG7
├─sdb8  ext4   SG8    e285a48e-cf35-43b6-80df-87c2558b720b /mnt/usb3Tb/SG8
├─sdb9  ext4   SG9    95bb360c-eda6-4a82-8844-3c32cf0442b7 /mnt/usb3Tb/SG9
└─sdb10 swap   swAp   d43508c5-2d8e-4f3e-a3e5-11c8135accb2 
[user ~]$ lsblk -P | grep sdb
NAME="sdb" MAJ:MIN="8:16" RM="0" SIZE="2,7T" RO="0" TYPE="disk" MOUNTPOINT=""
NAME="sdb1" MAJ:MIN="8:17" RM="0" SIZE="500G" RO="0" TYPE="part" MOUNTPOINT="/mnt/usb3Tb/SG1"
NAME="sdb2" MAJ:MIN="8:18" RM="0" SIZE="4K" RO="0" TYPE="part" MOUNTPOINT=""
NAME="sdb5" MAJ:MIN="8:21" RM="0" SIZE="500G" RO="0" TYPE="part" MOUNTPOINT="/mnt/usb3Tb/SG5"
NAME="sdb6" MAJ:MIN="8:22" RM="0" SIZE="500G" RO="0" TYPE="part" MOUNTPOINT="/mnt/usb3Tb/SG6"
NAME="sdb7" MAJ:MIN="8:23" RM="0" SIZE="500G" RO="0" TYPE="part" MOUNTPOINT="/mnt/usb3Tb/SG7"
NAME="sdb8" MAJ:MIN="8:24" RM="0" SIZE="500G" RO="0" TYPE="part" MOUNTPOINT="/mnt/usb3Tb/SG8"
NAME="sdb9" MAJ:MIN="8:25" RM="0" SIZE="292G" RO="0" TYPE="part" MOUNTPOINT="/mnt/usb3Tb/SG9"
NAME="sdb10" MAJ:MIN="8:26" RM="0" SIZE="2,5G" RO="0" TYPE="part" MOUNTPOINT=""
[user ~]$ df | egrep -i 'file|sdb'
File system    1K-blocks    Usati Disponib. Uso% Montato su
/dev/sdb1      524287996   104548 524183448   1% /mnt/usb3Tb/SG1
/dev/sdb5      515930552    71448 489628320   1% /mnt/usb3Tb/SG5
/dev/sdb6      515930552    71448 489628320   1% /mnt/usb3Tb/SG6
/dev/sdb7      515930552    71448 489628320   1% /mnt/usb3Tb/SG7
/dev/sdb8      515930552    71448 489628320   1% /mnt/usb3Tb/SG8
/dev/sdb9      301240832   100956 285814692   1% /mnt/usb3Tb/SG9
[user ~]$ df -T -h | egrep -i 'file|sdb'
File system    Tipo      Dim. Usati Dispon. Uso% Montato su
/dev/sdb1      fuseblk   500G  103M    500G   1% /mnt/usb3Tb/SG1
/dev/sdb5      ext4      493G   70M    467G   1% /mnt/usb3Tb/SG5
/dev/sdb6      ext4      493G   70M    467G   1% /mnt/usb3Tb/SG6
/dev/sdb7      ext4      493G   70M    467G   1% /mnt/usb3Tb/SG7
/dev/sdb8      ext4      493G   70M    467G   1% /mnt/usb3Tb/SG8
/dev/sdb9      ext4      288G   99M    273G   1% /mnt/usb3Tb/SG9
[user ~]$ dmesg|egrep -i '6:0:|sdb|ansi:'
[    2.816106] scsi 0:0:0:0: CD-ROM            HL-DT-ST DVDRAM GSA-H42N  RL00 PQ: 0 ANSI: 5
[    3.958653] scsi 3:0:0:0: Direct-Access     ATA      ST3500418AS      CC46 PQ: 0 ANSI: 5
[   48.402997] scsi 6:0:0:0: Direct-Access     Seagate  Expansion Desk   0737 PQ: 0 ANSI: 6
[   48.406384] sd 6:0:0:0: Attached scsi generic sg2 type 0
[   48.410250] sd 6:0:0:0: [sdb] Spinning up disk...
[   59.874883] sd 6:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[   59.877708] sd 6:0:0:0: [sdb] Write Protect is off
[   59.877719] sd 6:0:0:0: [sdb] Mode Sense: 2b 00 10 08
[   59.879213] sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[   59.882685] sd 6:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[   60.006606]  sdb: sdb1 sdb2 < sdb5 sdb6 sdb7 sdb8 sdb9 sdb10 >
[   60.012519] sd 6:0:0:0: [sdb] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[   60.014581] sd 6:0:0:0: [sdb] Attached SCSI disk
[   90.719934] SELinux: initialized (dev sdb1, type fuseblk), uses genfs_contexts
[   90.965242] EXT4-fs (sdb5): mounted filesystem with ordered data mode. Opts: (null)
[   90.965276] SELinux: initialized (dev sdb5, type ext4), uses xattr
[   91.177103] EXT4-fs (sdb6): mounted filesystem with ordered data mode. Opts: (null)
[   91.177139] SELinux: initialized (dev sdb6, type ext4), uses xattr
[   91.429145] EXT4-fs (sdb7): mounted filesystem with ordered data mode. Opts: (null)
[   91.429181] SELinux: initialized (dev sdb7, type ext4), uses xattr
[   91.676300] EXT4-fs (sdb8): mounted filesystem with ordered data mode. Opts: (null)
[   91.676335] SELinux: initialized (dev sdb8, type ext4), uses xattr
[   91.897927] EXT4-fs (sdb9): mounted filesystem with ordered data mode. Opts: (null)
[   91.897960] SELinux: initialized (dev sdb9, type ext4), uses xattr
[user ~]$ lsusb
Bus 001 Device 006: ID 0bc2:3312 Seagate RSS LLC SRD00F2 Expansion Desktop Drive (STBV)
Bus 001 Device 003: ID 0846:4260 NetGear, Inc. WG111v3 54 Mbps Wireless [realtek RTL8187B]
Bus 001 Device 005: ID 04f3:0103 Elan Microelectronics Corp. ActiveJet K-2024 Multimedia Keyboard
Bus 001 Device 004: ID 045e:0024 Microsoft Corp. Trackball Explorer
Bus 001 Device 002: ID 0409:0058 NEC Corp. HighSpeed Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[user ~]$ sudo lsusb -v | grep -iA 23 seagate
[sudo] password for fedora20xfce: 
Bus 001 Device 006: ID 0bc2:3312 Seagate RSS LLC SRD00F2 Expansion Desktop Drive (STBV)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bc2 Seagate RSS LLC
  idProduct          0x3312 SRD00F2 Expansion Desktop Drive (STBV)
  bcdDevice            7.37
  iManufacturer           1 Seagate 
  iProduct                2 Expansion Desk
  iSerial                 3 NA4KH45M
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           85
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
[user ~]$ sudo fdisk -l | grep -iA 20 sdb:
Disk /dev/sdb: 2,7 TiB, 3000592977920 bytes, 732566645 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000237f7

Dispositivo Avvio     Start      Fine     Blocks  Id System
/dev/sdb1               256 131072255  524288000   7 HPFS/NTFS/exFAT
/dev/sdb2         131072256 732566527 2405977088   5 Extended
/dev/sdb5         131072512 262144511  524288000  83 Linux
/dev/sdb6         262144768 393216767  524288000  83 Linux
/dev/sdb7         393217024 524289023  524288000  83 Linux
/dev/sdb8         524289280 655361279  524288000  83 Linux
/dev/sdb9         655361536 731905535  306176000  83 Linux
/dev/sdb10        731905792 732566527    2642944  82 Linux swap / Solaris

[user ~]$ sudo smartctl -d sat -a /dev/sdb
smartctl 6.2 2014-07-16 r3952 [x86_64-linux-3.11.10-301.fc20.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.14 (AF)
Device Model:     ST3000DM001-1E6166
Serial Number:    W1F4Q8FS
LU WWN Device Id: 5 000c50 072dda3e3
Firmware Version: SC48
User Capacity:    3,000,592,982,016 bytes [3,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Mon Sep  1 21:30:53 2014 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(   89) seconds.
Offline data collection
capabilities: 			 (0x73) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 ( 347) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x3081)	SCT Status supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   116   100   006    Pre-fail  Always       -       117005592
  3 Spin_Up_Time            0x0003   091   091   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       42
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   100   253   030    Pre-fail  Always       -       311763
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       26
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       40
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0 0 0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   057   046   045    Old_age   Always       -       43 (Min/Max 32/43)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       10
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       160
194 Temperature_Celsius     0x0022   043   054   000    Old_age   Always       -       43 (0 16 0 0 0)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       11h+43m+43.780s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       1201406065
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       5229538

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Aborted by host               90%        16         -
# 2  Short offline       Completed without error       00%        16         -
# 3  Conveyance offline  Completed without error       00%        16         -
# 4  Short offline       Aborted by host               10%        16         -
# 5  Short offline       Aborted by host               10%        16         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

[user ~]$ sudo lshw -class disk
  *-disk                  
       description: SCSI Disk
       product: Expansion Desk
       vendor: Seagate
       physical id: 0.0.0
       bus info: scsi@6:0.0.0
       logical name: /dev/sdb
       version: 0737
       serial: NA4KH45M
       size: 2794GiB (3TB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=6 logicalsectorsize=4096 sectorsize=4096 signature=000237f7
  *-cdrom
       description: DVD-RAM writer
       product: DVDRAM GSA-H42N
       vendor: HL-DT-ST
       physical id: 0.0.0
       bus info: scsi@0:0.0.0
       logical name: /dev/cdrom
       logical name: /dev/sr0
       version: RL00
       capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
       configuration: ansiversion=5 status=nodisc
  *-disk
       description: ATA Disk
       product: ST3500418AS
       vendor: Seagate
       physical id: 0.0.0
       bus info: scsi@3:0.0.0
       logical name: /dev/sda
       version: CC46
       serial: 9VMTGMS6
       size: 465GiB (500GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=03002c96
[user ~]$ sudo lshw -class volume
  *-volume UNCLAIMED      
       description: HPFS/NTFS partition
       physical id: 1
       bus info: scsi@6:0.0.0,1
       capacity: 62GiB
       capabilities: primary
  *-volume:0
       description: Windows NTFS volume
       physical id: 1
       bus info: scsi@3:0.0.0,1
       logical name: /dev/sda1
       logical name: /mnt/Wxp
       version: 3.1
       serial: a0c6238d-ab46-ca4a-bd4c-d6552ed6ffce
       size: 74GiB
       capacity: 75GiB
       capabilities: primary ntfs initialized
       configuration: clustersize=4096 created=2011-04-04 23:42:32 filesystem=ntfs label=WXP modified_by_chkdsk=true mount.fstype=fuseblk mount.options=rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 mounted_on_nt4=true resize_log_file=true state=mounted upgrade_on_mount=true
  *-volume:1
       description: Extended partition
       physical id: 2
       bus info: scsi@3:0.0.0,2
       logical name: /dev/sda2
       size: 390GiB
       capacity: 390GiB
       capabilities: primary extended partitioned partitioned:extended
     *-logicalvolume:0
          description: HPFS/NTFS partition
          physical id: 5
          logical name: /dev/sda5
          logical name: /mnt/Wx
          capacity: 100GiB
          configuration: mount.fstype=fuseblk mount.options=rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 state=mounted
     *-logicalvolume:1
          description: HPFS/NTFS partition
          physical id: 6
          logical name: /dev/sda6
          logical name: /mnt/Wy
          capacity: 55GiB
          configuration: mount.fstype=fuseblk mount.options=rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 state=mounted
     *-logicalvolume:2
          description: Linux filesystem partition
          physical id: 7
          logical name: /dev/sda7
          logical name: /mnt/Linux1
          capacity: 20GiB
          configuration: mount.fstype=ext4 mount.options=rw,seclabel,relatime,data=ordered state=mounted
     *-logicalvolume:3
          description: Linux filesystem partition
          physical id: 8
          logical name: /dev/sda8
          logical name: /mnt/Linux2
          capacity: 20GiB
          capabilities: bootable
          configuration: mount.fstype=ext4 mount.options=rw,seclabel,relatime,data=ordered state=mounted
     *-logicalvolume:4
          description: Linux filesystem partition
          physical id: 9
          logical name: /dev/sda9
          logical name: /mnt/Linux3
          capacity: 20GiB
          configuration: mount.fstype=ext4 mount.options=rw,seclabel,relatime,data=ordered state=mounted
     *-logicalvolume:5
          description: Linux filesystem partition
          physical id: a
          logical name: /dev/sda10
          logical name: /
          capacity: 20GiB
          configuration: mount.fstype=ext4 mount.options=rw,seclabel,relatime,data=ordered state=mounted
     *-logicalvolume:6
          description: Linux filesystem partition
          physical id: b
          logical name: /dev/sda11
          logical name: /mnt/Linux5
          capacity: 20GiB
          configuration: mount.fstype=ext4 mount.options=rw,seclabel,relatime,data=ordered state=mounted
     *-logicalvolume:7
          description: Linux filesystem partition
          physical id: c
          logical name: /dev/sda12
          logical name: /mnt/Linux6
          capacity: 20GiB
          configuration: mount.fstype=ext4 mount.options=rw,seclabel,relatime,data=ordered state=mounted
     *-logicalvolume:8
          description: Linux filesystem partition
          physical id: d
          logical name: /dev/sda13
          logical name: /mnt/Linux7
          capacity: 20GiB
          configuration: mount.fstype=ext4 mount.options=rw,seclabel,relatime,data=ordered state=mounted
     *-logicalvolume:9
          description: Linux filesystem partition
          physical id: e
          logical name: /dev/sda14
          logical name: /mnt/Linux8
          capacity: 20GiB
          configuration: mount.fstype=ext4 mount.options=rw,seclabel,relatime,data=ordered state=mounted
     *-logicalvolume:10
          description: Linux filesystem partition
          physical id: f
          logical name: /dev/sda15
          logical name: /mnt/tutti
          capacity: 73GiB
          configuration: mount.fstype=ext4 mount.options=rw,seclabel,relatime,data=ordered state=mounted
     *-logicalvolume:11
          description: Linux swap / Solaris partition
          physical id: 10
          logical name: /dev/sda16
          capacity: 1529MiB
          capabilities: nofs
[user ~]$