GNU/Linux >> Belajar Linux >  >> Linux

Bagaimana menemukan nomor model disk drive Linux?

Coba hdparm program:

# hdparm -i /dev/sdc
/dev/sda:

 Model=INTEL SSDSA2CW080G3, FwRev=4PC10362, SerialNo=CVPR112003RA080BGN
...

-i pilihan hdparm dapat digunakan untuk mengambil informasi identifikasi.


Saya tidak yakin apakah itu ada di semua distro, tetapi coba lihat /dev/disk/by-id:

$ ls -l /dev/disk/by-id/
razem 0
lrwxrwxrwx 1 root root  9 08-08 14:45 ata-HL-DT-STDVD-RAM_GH22NS30 -> ../../sr0
lrwxrwxrwx 1 root root  9 08-08 14:45 ata-ST31000528AS_9VP8RZQM -> ../../sda
lrwxrwxrwx 1 root root 10 08-08 14:45 ata-ST31000528AS_9VP8RZQM-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 08-08 14:45 ata-ST31000528AS_9VP8RZQM-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 08-11 05:27 ata-ST31000528AS_9VP8RZQM-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 08-08 14:45 ata-ST31000528AS_9VP8RZQM-part7 -> ../../sda7
lrwxrwxrwx 1 root root  9 08-08 14:45 ata-ST3500630A_9QG9YH73 -> ../../sdb
lrwxrwxrwx 1 root root 10 08-08 14:45 ata-ST3500630A_9QG9YH73-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 08-11 02:56 ata-ST3500630A_9QG9YH73-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 08-08 12:45 ata-ST3500630A_9QG9YH73-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 08-08 12:45 ata-ST3500630A_9QG9YH73-part5 -> ../../sdb5
lrwxrwxrwx 1 root root  9 08-08 14:45 wwn-0x5000c5002737ee0c -> ../../sda
lrwxrwxrwx 1 root root 10 08-08 14:45 wwn-0x5000c5002737ee0c-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 08-08 14:45 wwn-0x5000c5002737ee0c-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 08-11 05:27 wwn-0x5000c5002737ee0c-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 08-08 14:45 wwn-0x5000c5002737ee0c-part7 -> ../../sda7

Anda juga dapat mencoba mengambil dmesg untuk nama perangkat:

# dmesg|grep -C3 sda
[    2.387103] ata6.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    2.388346] ata6.00: configured for UDMA/133
[    2.388418] scsi 5:0:0:0: Direct-Access     ATA      ST31000528AS     CC38 PQ: 0 ANSI: 5
[    2.388611] sd 5:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    2.388653] sd 5:0:0:0: [sda] Write Protect is off
[    2.388656] sd 5:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.388664] sd 5:0:0:0: Attached scsi generic sg1 type 0
[    2.388669] sd 5:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.448514]  sda: sda1 
[    2.448985] sd 5:0:0:0: [sda] Attached SCSI disk
[    2.449040] scsi 8:0:0:0: Direct-Access     ATA      ST3500630A       3.AA PQ: 0 ANSI: 5
[    2.449189] sd 8:0:0:0: [sdb] 976771055 512-byte logical blocks: (500 GB/465 GiB)
[    2.449225] sd 8:0:0:0: [sdb] Write Protect is off
--

Dalam hal ini adalah ST31000528AS.


coba jalankan:

$ sudo lshw

Ini akan memberi Anda keluaran panjang tentang perangkat keras Anda, yang menyangkut Anda akan terlihat seperti ini:

 *-scsi:0
          physical id: 0
          logical name: scsi0
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: WDC WD3200BEVT-7
             vendor: Western Digital
             physical id: 0.0.0
             bus info: [email protected]:0.0.0
             logical name: /dev/sda
             version: 01.0
             serial: WD-WX81A30C3330
             size: 298GiB (320GB)
             capabilities: partitioned partitioned:dos
             configuration: ansiversion=5 sectorsize=512 signature=9f7685a8
           *-volume:0
                description: Linux filesystem partition
                vendor: Linux
                physical id: 1
                bus info: [email protected]:0.0.0,1
                logical name: /dev/sda1
                logical name: /boot
                version: 1.0
                serial: aa84c5a8-6408-4952-b577-578f2a67af86
                size: 141MiB
                capacity: 141MiB
                capabilities: primary extended_attributes ext2 initialized
                configuration: filesystem=ext2 label=boot lastmountpoint=/boot modified=2012-08-11 17:03:06 mount.fstype=ext2 mount.options=rw,relatime mounted=2012-08-11 12:25:38 state=mounted

Perhatikan bahwa itu menyebutkan id perangkat blokir Anda sebagai logical name dan juga serial number sebagai product . Anda dapat menggunakan ini untuk membedakan drive Anda secara fisik


Linux
  1. Cara Menambah Nomor Disk Inode di Linux

  2. Bagaimana saya bisa menghitung jumlah folder di drive menggunakan Linux?

  3. Bagaimana cara mendapatkan jumlah disk fisik di Linux?

  1. Cara mempartisi disk di Linux

  2. Cara Mengetahui Apakah Disk Adalah SSD Atau HDD Di Linux

  3. Cara Memasang Drive Disk USB di UNIX atau Linux

  1. Cara Menemukan Pemanfaatan Inode Filesystem di Linux

  2. Bagaimana saya bisa menemukan jumlah pengguna online di Linux?

  3. Bagaimana saya bisa menemukan model perangkat keras di Linux?