Last week there was a momentary power outage and the external MediaSonic
Probox shut down (it's on a surge protector, will be re-attached to a UPS.)
When I noticed this the following morning and turned on the Probox lsblk
reported their identification as /dev/sdf through /dev/hdi. In /etc/fstab
they were the previous names, /dev/sdc through /dev/sdf. Using the UUIDs for
each drive I labeled /dev/sdc1 "data2" and /dev/sdd1 "data3". Both /dev/sde1
and /dev/sdf1 already had PARTLABELs. I editied /etc/fstab using the labels.
Yesterday evening another momentary power outages. The desktop was rebooting
and I turned on the Probox and assumed the drives there would be mounted. No
such luck.
This morning I had no backup reports. Checking 'mount' the Probox drives
were not mounted. Trying to mount them failed as the kernel didn't find
them.
Using lsblk I see the names were returned to /dev/sdc through /dev/sdf:
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdf 8:80 0 1.8T 0 disk
└─sdf1 8:81 0 1.8T 0 part
nvme0n1 259:0 0 465.8G 0 disk
└─nvme0n1p1 259:1 0 465.8G 0 part
sdd 8:48 0 1.8T 0 disk
└─sdd1 8:49 0 1.8T 0 part
sdb 8:16 0 1.8T 0 disk
├─sdb2 8:18 0 100G 0 part /opt
├─sdb3 8:19 0 1.3T 0 part /data1
└─sdb1 8:17 0 400G 0 part /home
sr0 11:0 1 1024M 0 rom
sde 8:64 0 1.8T 0 disk
└─sde1 8:65 0 1.8T 0 part
sdc 8:32 0 1.8T 0 disk
└─sdc1 8:33 0 1.8T 0 part
sda 8:0 0 232.9G 0 disk
├─sda2 8:2 0 32G 0 part [SWAP]
├─sda3 8:3 0 200.8G 0 part /
└─sda1 8:1 0 100M 0 part /boot/efi
But, when I run 'fdisk -l' I don't find any labels:
Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168 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: gpt
Disk identifier: 104E50EF-09CF-435F-B1AE-5CD34E251F15
Device Start End Sectors Size Type
/dev/sdc1 2048 3907029134 3907027087 1.8T Linux filesystem
Disk /dev/sdd: 1.8 TiB, 2000398934016 bytes, 3907029168 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: gpt
Disk identifier: 1FD244FA-A56D-4BEE-984C-DDBD7321DAA0
Device Start End Sectors Size Type
/dev/sdd1 2048 3907029134 3907027087 1.8T Linux filesystem
Disk /dev/sde: 1.8 TiB, 2000398934016 bytes, 3907029168 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: gpt
Disk identifier: 516A555D-993E-4F90-97A5-D698B61E7170
Device Start End Sectors Size Type
/dev/sde1 2048 3907029134 3907027087 1.8T Linux filesystem
Disk /dev/sdf: 1.8 TiB, 2000398934016 bytes, 3907029168 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: gpt
Disk identifier: E999846E-C55C-4DF6-8656-F7B68F542F6C
Device Start End Sectors Size Type
/dev/sdf1 2048 3907029134 3907027087 1.8T Linux filesystem
What have I done incorrectly that there no longer are LABELs or PARTLABELs?
And how do I name/label the Probox drives using readily identified names
rather than the UUIDs?
TIA,
Rich