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 memahami dmesg untuk nama perangkat:
# dmesg | grep -C3 sda
[2.387103] ata6.00: 1953525168 sektor, multi 0: LBA48 NCQ (kedalaman 31/32)
[2.388346] ata6.00: dikonfigurasi untuk UDMA / 133
[2.388418] scsi 5: 0: 0: 0: ATA ST31000528AS CC38 PQ: 0 ANSI: 5
[2.388611] sd 5: 0: 0: 0: [sda] 1953525168 blok logis 512-byte: (1,00 TB / 931 GiB)
[2.388653] sd 5: 0: 0: 0: [sda] Write Protect tidak aktif
[2.388656] sd 5: 0: 0: 0: [sda] Mode Sense: 00 3a 00 00
[2.388664] sd 5: 0: 0: 0: Terlampir scsi generic sg1 type 0
[2.388669] sd 5: 0: 0: 0: [sda] Tulis cache: diaktifkan, baca cache: diaktifkan, tidak mendukung DPO atau FUA
[2.448514] sda: sda1
[2.448985] sd 5: 0: 0: 0: [sda] Terlampir pada disk SCSI
[2.449040] scsi 8: 0: 0: 0: ATA ST3500630A Akses Langsung 3.AA PQ: 0 ANSI: 5
[2.449189] sd 8: 0: 0: 0: [sdb] 976771055 blok logis 512-byte: (500 GB / 465 GiB)
[2.449225] sd 8: 0: 0: 0: [sdb] Write Protect tidak aktif
-
Dalam hal ini ST31000528AS.