Il disco rigido del PC fisso visto da Mageia 5

Gio, 28/04/2016 - 23:21
Ritratto di Sargon6

Il disco rigido del PC fisso visto da Mageia 5

Inviato da Sargon6 0 commenti

Il disco rigido del PC fisso visto da Mageia 5

I comandi:

[~]$ lsblk -d
[~]$ lsblk
[~]$ lsblk -m
[~]$ lsblk -f
[~]$ lsblk -P
[~]$ df
[~]$ df -T -h
[~]$ dmesg|egrep -i 'udma|sata'
[~]$ lspci -v | grep -iA 11 sata
[~]$ lspci -v | grep -iA 9 ide
[~]$ cat /etc/fstab
[~]$ su
Password:
[root@]> fdisk -l
[root@]> /sbin/hdparm -I /dev/sda

L'output:

bash-4.3$ lsblk -d
NAME MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda    8:0    0 465,8G  0 disk 
sr0   11:0    1  1024M  0 rom  
bash-4.3$
bash-4.3$ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0 465,8G  0 disk 
├─sda1    8:1    0    75G  0 part /mnt/Wxp
├─sda2    8:2    0     1K  0 part 
├─sda5    8:5    0   100G  0 part /mnt/Wx
├─sda6    8:6    0  55,3G  0 part /mnt/Wy
├─sda7    8:7    0    20G  0 part /
├─sda8    8:8    0    20G  0 part /mnt/Linux2
├─sda9    8:9    0    20G  0 part /mnt/Linux3
├─sda10   8:10   0    20G  0 part /mnt/Linux4
├─sda11   8:11   0    20G  0 part /mnt/Linux5
├─sda12   8:12   0    20G  0 part /mnt/Linux6
├─sda13   8:13   0    20G  0 part /mnt/Linux7
├─sda14   8:14   0    20G  0 part /mnt/Linux8
├─sda15   8:15   0    74G  0 part /mnt/tutti
└─sda16 259:0    0   1,5G  0 part [SWAP]
sr0      11:0    1  1024M  0 rom  
bash-4.3$
bash-4.3$ lsblk -m
NAME      SIZE OWNER GROUP MODE
sda     465,8G root  disk  brw-rw----
├─sda1     75G root  disk  brw-rw----
├─sda2      1K root  disk  brw-rw----
├─sda5    100G root  disk  brw-rw----
├─sda6   55,3G root  disk  brw-rw----
├─sda7     20G root  disk  brw-rw----
├─sda8     20G root  disk  brw-rw----
├─sda9     20G root  disk  brw-rw----
├─sda10    20G root  disk  brw-rw----
├─sda11    20G root  disk  brw-rw----
├─sda12    20G root  disk  brw-rw----
├─sda13    20G root  disk  brw-rw----
├─sda14    20G root  disk  brw-rw----
├─sda15    74G root  disk  brw-rw----
└─sda16   1,5G root  disk  brw-rw----
sr0      1024M root  cdrom brw-rw----
bash-4.3$
bash-4.3$ lsblk -f
NAME    FSTYPE LABEL UUID MOUNTPOINT
sda                       
├─sda1                    /mnt/Wxp
├─sda2                    
├─sda5                    /mnt/Wx
├─sda6                    /mnt/Wy
├─sda7                    /
├─sda8                    /mnt/Linux2
├─sda9                    /mnt/Linux3
├─sda10                   /mnt/Linux4
├─sda11                   /mnt/Linux5
├─sda12                   /mnt/Linux6
├─sda13                   /mnt/Linux7
├─sda14                   /mnt/Linux8
├─sda15                   /mnt/tutti
└─sda16                   [SWAP]
sr0                       
bash-4.3$
bash-4.3$ lsblk -P
NAME="sda" MAJ:MIN="8:0" RM="0" SIZE="465,8G" RO="0" TYPE="disk" MOUNTPOINT=""
NAME="sda1" MAJ:MIN="8:1" RM="0" SIZE="75G" RO="0" TYPE="part" MOUNTPOINT="/mnt/Wxp"
NAME="sda2" MAJ:MIN="8:2" RM="0" SIZE="1K" RO="0" TYPE="part" MOUNTPOINT=""
NAME="sda5" MAJ:MIN="8:5" RM="0" SIZE="100G" RO="0" TYPE="part" MOUNTPOINT="/mnt/Wx"
NAME="sda6" MAJ:MIN="8:6" RM="0" SIZE="55,3G" RO="0" TYPE="part" MOUNTPOINT="/mnt/Wy"
NAME="sda7" MAJ:MIN="8:7" RM="0" SIZE="20G" RO="0" TYPE="part" MOUNTPOINT="/"
NAME="sda8" MAJ:MIN="8:8" RM="0" SIZE="20G" RO="0" TYPE="part" MOUNTPOINT="/mnt/Linux2"
NAME="sda9" MAJ:MIN="8:9" RM="0" SIZE="20G" RO="0" TYPE="part" MOUNTPOINT="/mnt/Linux3"
NAME="sda10" MAJ:MIN="8:10" RM="0" SIZE="20G" RO="0" TYPE="part" MOUNTPOINT="/mnt/Linux4"
NAME="sda11" MAJ:MIN="8:11" RM="0" SIZE="20G" RO="0" TYPE="part" MOUNTPOINT="/mnt/Linux5"
NAME="sda12" MAJ:MIN="8:12" RM="0" SIZE="20G" RO="0" TYPE="part" MOUNTPOINT="/mnt/Linux6"
NAME="sda13" MAJ:MIN="8:13" RM="0" SIZE="20G" RO="0" TYPE="part" MOUNTPOINT="/mnt/Linux7"
NAME="sda14" MAJ:MIN="8:14" RM="0" SIZE="20G" RO="0" TYPE="part" MOUNTPOINT="/mnt/Linux8"
NAME="sda15" MAJ:MIN="8:15" RM="0" SIZE="74G" RO="0" TYPE="part" MOUNTPOINT="/mnt/tutti"
NAME="sda16" MAJ:MIN="259:0" RM="0" SIZE="1,5G" RO="0" TYPE="part" MOUNTPOINT="[SWAP]"
NAME="sr0" MAJ:MIN="11:0" RM="1" SIZE="1024M" RO="0" TYPE="rom" MOUNTPOINT=""
bash-4.3$ 
bash-4.3$ df
File system    1K-blocchi    Usati Disponib. Uso% Montato su
devtmpfs          1469564        0   1469564   0% /dev
tmpfs             1476904     1500   1475404   1% /dev/shm
tmpfs             1476904      740   1476164   1% /run
/dev/sda7        20510716  4456056  14989636  23% /
tmpfs             1476904        0   1476904   0% /sys/fs/cgroup
tmpfs             1476904       52   1476852   1% /tmp
/dev/sda15       76245380 65975840   6373464  92% /mnt/tutti
/dev/sda1        78643196 22739500  55903696  29% /mnt/Wxp
/dev/sda10       20511356  7041668  12404728  37% /mnt/Linux4
/dev/sda5       104857596 75740312  29117284  73% /mnt/Wx
/dev/sda8        20510716 14706788   4738972  76% /mnt/Linux2
/dev/sda6        57932796 15833172  42099624  28% /mnt/Wy
/dev/sda11       20511356 19331084    954256  96% /mnt/Linux5
/dev/sda14       20511356 14455372   4991024  75% /mnt/Linux8
/dev/sda12       20511356 16111904   3334492  83% /mnt/Linux6
/dev/sda9        20510716  8941244  10504448  46% /mnt/Linux3
/dev/sda13       20511356 14697532   4748864  76% /mnt/Linux7
tmpfs              295384       12    295372   1% /run/user/1000
bash-4.3$ 
bash-4.3$ df -T -h
File system    Tipo      Dim. Usati Dispon. Uso% Montato su
devtmpfs       devtmpfs  1,5G     0    1,5G   0% /dev
tmpfs          tmpfs     1,5G  1,5M    1,5G   1% /dev/shm
tmpfs          tmpfs     1,5G  740K    1,5G   1% /run
/dev/sda7      ext4       20G  4,3G     15G  23% /
tmpfs          tmpfs     1,5G     0    1,5G   0% /sys/fs/cgroup
tmpfs          tmpfs     1,5G   52K    1,5G   1% /tmp
/dev/sda15     ext4       73G   63G    6,1G  92% /mnt/tutti
/dev/sda1      fuseblk    75G   22G     54G  29% /mnt/Wxp
/dev/sda10     ext4       20G  6,8G     12G  37% /mnt/Linux4
/dev/sda5      fuseblk   100G   73G     28G  73% /mnt/Wx
/dev/sda8      ext4       20G   15G    4,6G  76% /mnt/Linux2
/dev/sda6      fuseblk    56G   16G     41G  28% /mnt/Wy
/dev/sda11     ext4       20G   19G    932M  96% /mnt/Linux5
/dev/sda14     ext4       20G   14G    4,8G  75% /mnt/Linux8
/dev/sda12     ext4       20G   16G    3,2G  83% /mnt/Linux6
/dev/sda9      ext4       20G  8,6G     11G  46% /mnt/Linux3
/dev/sda13     ext4       20G   15G    4,6G  76% /mnt/Linux7
tmpfs          tmpfs     289M   12K    289M   1% /run/user/1000
bash-4.3$
bash-4.3$ dmesg|egrep -i 'udma|sata'
[    2.122620] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xffa0 irq 14
[    2.122623] ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xffa8 irq 15
[    2.300312] ata1.00: ATAPI: HL-DT-ST DVDRAM GSA-H42N, RL00, max UDMA/66
[    2.340235] ata1.00: configured for UDMA/66
[    2.357585] sata_nv 0000:00:08.0: version 3.5
[    2.358497] scsi host2: sata_nv
[    2.358724] scsi host3: sata_nv
[    2.358787] ata3: SATA max UDMA/133 cmd 0xe00 ctl 0xe20 bmdma 0xd880 irq 21
[    2.358790] ata4: SATA max UDMA/133 cmd 0xe40 ctl 0xe60 bmdma 0xd888 irq 21
[    2.359443] scsi host4: sata_nv
[    2.359597] scsi host5: sata_nv
[    2.359653] ata5: SATA max UDMA/133 cmd 0xe80 ctl 0xea0 bmdma 0xd000 irq 20
[    2.359655] ata6: SATA max UDMA/133 cmd 0xec0 ctl 0xee0 bmdma 0xd008 irq 20
[    2.690361] ata5: SATA link down (SStatus 0 SControl 300)
[    2.690372] ata3: SATA link down (SStatus 0 SControl 300)
[    3.180045] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    3.200356] ata4.00: ATA-8: ST3500418AS, CC46, max UDMA/133
[    3.240319] ata4.00: configured for UDMA/133
[    3.580346] ata6: SATA link down (SStatus 0 SControl 300)
bash-4.3$
bash-4.3$ lspci -v | grep -iA 11 sata
00:08.0 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2) (prog-if 85 [Master SecO PriO])
        Subsystem: ASRock Incorporation 939NF6G-VSTA Board
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 21
        I/O ports at 0e00 [size=8]
        I/O ports at 0e20 [size=4]
        I/O ports at 0e40 [size=8]
        I/O ports at 0e60 [size=4]
        I/O ports at d880 [size=16]
        Memory at dfefc000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: sata_nv
        Kernel modules: sata_nv, pata_acpi, ata_generic, ide_pci_generic
 
00:08.1 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2) (prog-if 85 [Master SecO PriO])
        Subsystem: ASRock Incorporation 939NF6G-VSTA Board
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
        I/O ports at 0e80 [size=8]
        I/O ports at 0ea0 [size=4]
        I/O ports at 0ec0 [size=8]
        I/O ports at 0ee0 [size=4]
        I/O ports at d000 [size=16]
        Memory at dfef7000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: sata_nv
        Kernel modules: sata_nv, pata_acpi, ata_generic, ide_pci_generic
 
00:09.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp
 
00:0b.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
bash-4.3$ 
bash-4.3$ lspci -v | grep -iA 9 ide
00:06.0 IDE interface: NVIDIA Corporation MCP61 IDE (rev a2) (prog-if 8a [Master SecP PriP])
        Subsystem: ASRock Incorporation 939NF6G-VSTA Board
        Flags: bus master, 66MHz, fast devsel, latency 0
        [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
        [virtual] Memory at 000003f0 (type 3, non-prefetchable)
        [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
        [virtual] Memory at 00000370 (type 3, non-prefetchable)
        I/O ports at ffa0 [size=16]
        Capabilities: <access denied>
        Kernel driver in use: pata_amd
        Kernel modules: pata_amd, pata_acpi, ata_generic, amd74xx, ide_pci_generic
 
00:07.0 Bridge: NVIDIA Corporation MCP61 Ethernet (rev a2)
        Subsystem: ASRock Incorporation 939NF6G-VSTA Board
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 30
        Memory at dfefd000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at e480 [size=8]
        Capabilities: <access denied>
        Kernel driver in use: forcedeth
        Kernel modules: forcedeth
--
00:08.0 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2) (prog-if 85 [Master SecO PriO])
        Subsystem: ASRock Incorporation 939NF6G-VSTA Board
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 21
        I/O ports at 0e00 [size=8]
        I/O ports at 0e20 [size=4]
        I/O ports at 0e40 [size=8]
        I/O ports at 0e60 [size=4]
        I/O ports at d880 [size=16]
        Memory at dfefc000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
--
        Kernel modules: sata_nv, pata_acpi, ata_generic, ide_pci_generic
 
00:08.1 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2) (prog-if 85 [Master SecO PriO])
        Subsystem: ASRock Incorporation 939NF6G-VSTA Board
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20
        I/O ports at 0e80 [size=8]
        I/O ports at 0ea0 [size=4]
        I/O ports at 0ec0 [size=8]
        I/O ports at 0ee0 [size=4]
        I/O ports at d000 [size=16]
        Memory at dfef7000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
--
        Kernel modules: sata_nv, pata_acpi, ata_generic, ide_pci_generic
 
00:09.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp
 
00:0b.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2) (prog-if 00 [Normal decode])
bash-4.3$
bash-4.3$ cat /etc/fstab
# Entry for /dev/sda7 :
UUID=1ee9fcc5-c9fa-416a-a4e0-019afad347fa / ext4 relatime,acl 1 1
# Entry for /dev/sda8 :
UUID=a56d82cd-c170-4f28-8c0f-41ad0ba7c9ff /mnt/Linux2 ext4 relatime,acl 1 2
# Entry for /dev/sda9 :
UUID=d7d7b8c3-866f-43ed-bf73-3eba88ec9374 /mnt/Linux3 ext4 relatime,acl 1 2
# Entry for /dev/sda10 :
UUID=839c0d85-eca2-4473-990e-7eb3a216e8ee /mnt/Linux4 ext4 relatime,acl 1 2
# Entry for /dev/sda11 :
UUID=f64a46fd-af55-486f-85ea-4f9832df53f7 /mnt/Linux5 ext4 relatime,acl 1 2
# Entry for /dev/sda12 :
UUID=77065cea-6fba-4d9b-b8d8-c84df3ad5da4 /mnt/Linux6 ext4 relatime,acl 1 2
# Entry for /dev/sda13 :
UUID=3f6f8843-5b28-45d0-af00-583dbce656be /mnt/Linux7 ext4 relatime,acl 1 2
# Entry for /dev/sda14 :
UUID=d85a5d3b-b7d8-459e-9b2b-4af5d02ec978 /mnt/Linux8 ext4 relatime,acl 1 2
# Entry for /dev/sda5 :
UUID=E010C41510C3F098 /mnt/Wx ntfs-3g defaults,nofail,umask=000 0 0
# Entry for /dev/sda1 :
UUID=9E3437B434378DF1 /mnt/Wxp ntfs-3g defaults,nofail,umask=000 0 0
# Entry for /dev/sda6 :
UUID=16D09B81D09B6631 /mnt/Wy ntfs-3g defaults,nofail,umask=000 0 0
# Entry for /dev/sda15 :
UUID=1db6b6e8-55d4-4cd5-b6fb-5c6d03657fcc /mnt/tutti ext4 relatime,acl 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda16 :
UUID=ab9d6d82-9bad-456e-b593-1ad6411c9792 swap swap defaults 0 0
bash-4.3$
bash-4.3$ su
Password: 
[root@localhost mageia5k0]# fdisk -l
 
Disk /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 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: 0x03002c96
 
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048 157288447 157286400    75G  7 HPFS/NTFS/exFAT
/dev/sda2  *    157292476 976773119 819480644 390,8G  5 Extended
/dev/sda5       651190272 860905471 209715200   100G  7 HPFS/NTFS/exFAT
/dev/sda6       860907520 976773119 115865600  55,3G  7 HPFS/NTFS/exFAT
/dev/sda7       157292478 199238129  41945652    20G 83 Linux
/dev/sda8       199238193 241183505  41945313    20G 83 Linux
/dev/sda9       241183908 283129559  41945652    20G 83 Linux
/dev/sda10      283131904 325074943  41943040    20G 83 Linux
/dev/sda11      325076992 367020031  41943040    20G 83 Linux
/dev/sda12      367022080 408965119  41943040    20G 83 Linux
/dev/sda13      408967168 450910207  41943040    20G 83 Linux
/dev/sda14      450912256 492855295  41943040    20G 83 Linux
/dev/sda15      492858198 648046034 155187837    74G 83 Linux
/dev/sda16      648046098 651178709   3132612   1,5G 82 Linux swap / Solaris
 
Partition table entries are not in disk order.
[root@localhost mageia5k0]> 
[root@localhost mageia5k0]> /sbin/hdparm -I /dev/sda
 
/dev/sda:
 
ATA device, with non-removable media
        Model Number:       ST3500418AS                             
        Serial Number:      9VMTGMS6
        Firmware Revision:  CC46    
        Transport:          Serial
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:  976773168
        Logical/Physical Sector size:           512 bytes
        device size with M = 1024*1024:      476940 MBytes
        device size with M = 1000*1000:      500107 MBytes (500 GB)
        cache/buffer size  = 16384 KBytes
        Nominal Media Rotation Rate: 7200
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 = 16
        Recommended acoustic management value: 254, current value: 0
        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
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
                Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    64-bit World wide name
                Write-Read-Verify feature set
           *    WRITE_UNCORRECTABLE_EXT command
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
                Device-initiated interface power management
           *    Software settings preservation
           *    SMART Command Transport (SCT) feature set
           *    SCT Read/Write Long (AC1), obsolete
           *    SCT Write Same (AC2)
           *    SCT Error Recovery Control (AC3)
           *    SCT Features Control (AC4)
           *    SCT Data Tables (AC5)
                unknown 206[12] (vendor specific)
Security: 
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
                frozen
        not     expired: security count
                supported: enhanced erase
        80min for SECURITY ERASE UNIT. 80min for ENHANCED SECURITY ERASE UNIT. 
Logical Unit WWN Device Identifier: 5000c5002d2f59f8
        NAA             : 5
        IEEE OUI        : 000c50
        Unique ID       : 02d2f59f8
Checksum: correct
[root@localhost mageia5k0]>