1 |
Richard Freeman pisze: |
2 |
> Is there any way to get a unique identifier for a drive - such as a |
3 |
> UUID? I see hdparm -i returns a serial number (which I'd need to parse |
4 |
> out), but it doesn't work for SATA drives. Any ideas? Then I could |
5 |
> test the drive's unique ID before I start wiping out partitions... |
6 |
|
7 |
You can use alternative drives and partitions names created by udev: |
8 |
|
9 |
/dev/disk/by-id/* - named by drive model and serial number |
10 |
for example /dev/disk/by-id/ata-SAMSUNG_SP0411N_S01JJ10L437449-part3 |
11 |
|
12 |
/dev/disk/by-path/* - named by device address on subseqeuent buses, |
13 |
for example /dev/disk/by-path/pci-0000:00:0d.0-ide-0:0-part1 |
14 |
|
15 |
Regards, |
16 |
Marek Wróbel |
17 |
-- |
18 |
gentoo-amd64@g.o mailing list |