After following the steps again, I noticed something odd when doing 'diff before.txt after.txt' (* the wiki is flawed here, and I'll explain below)
When I run 'ls -l /dev/disk/by-id/' I get the following:
Code: Select all
lrwxrwxrwx 1 root root 9 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062 -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Mar 27 09:18 ata-WDC_WD30EZRX-00D8PB0_WD-WCC4N0740277 -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 27 09:19 ata-WDC_WD30EZRX-00D8PB0_WD-WCC4N0740277-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-ST2000DM_001-9YN164_000000000000-0:3 -> ../../sdj
lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-ST2000DM_001-9YN164_000000000000-0:3-part1 -> ../../sdj1
lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-ST330006_51AS_152D20339006-0:2 -> ../../sde
lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-ST330006_51AS_152D20339006-0:2-part1 -> ../../sde1
lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WDC_WD20_EARX-00PASB0_000000000000-0:1 -> ../../sdh
lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WDC_WD20_EARX-00PASB0_000000000000-0:1-part1 -> ../../sdh1
lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WDC_WD20_EZRX-00DC0B0_000000000000-0:0 -> ../../sdg
lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WDC_WD20_EZRX-00DC0B0_000000000000-0:0-part1 -> ../../sdg1
lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-WDC_WD20_EZRX-00DC0B0_152D20339006-0:3 -> ../../sdf
lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-WDC_WD20_EZRX-00DC0B0_152D20339006-0:3-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-WDC_WD30_EZRX-00D8PB0_152D20339006-0:1 -> ../../sdd
lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-WDC_WD30_EZRX-00D8PB0_152D20339006-0:1-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-WDC_WD30_EZRX-00MMMB0_152D20339006-0:0 -> ../../sdc
lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-WDC_WD30_EZRX-00MMMB0_152D20339006-0:0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WDC_WD30_EZRX-00SPEB0_000000000000-0:2 -> ../../sdi
lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WDC_WD30_EZRX-00SPEB0_000000000000-0:2-part1 -> ../../sdi1
lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WD_My_Book_1140_574D41575A30333839333736-0:0 -> ../../sdk
lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WD_My_Book_1140_574D41575A30333839333736-0:0-part1 -> ../../sdk1
lrwxrwxrwx 1 root root 9 Mar 27 09:18 wwn-0x50014ee209cbcfed -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 27 09:19 wwn-0x50014ee209cbcfed-part1 -> ../../sdb1
Code: Select all
...
lrwxrwxrwx 1 root root 9 Mar 27 09:18 ata-WDC_WD30EZRX-00D8PB0_WD-WCC4N0740277 -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 27 09:19 ata-WDC_WD30EZRX-00D8PB0_WD-WCC4N0740277-part1 -> ../../sdb1
...
lrwxrwxrwx 1 root root 9 Mar 27 09:18 wwn-0x50014ee209cbcfed -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 27 09:19 wwn-0x50014ee209cbcfed-part1 -> ../../sdb1
*I believe the wiki is flawed in the following way:
step 1: run ls -l /dev/disk/by-id/ > before.txt
step 2: shut down, add drive, restart
step 3: run ls -l /dev/disk/by-id/ > after.txt
step 4: run diff before.txt after.txt
The expected result is to show the details for the new drive. However, the .txt file's contain a time stamp, and step 2 may take longer than 1 min to complete, so all drives appear in the diff results