Yesterday afternoon there was a momentary power glitch, so brief I almost
didn't notice it. But, I missed seeing that it shut down the external
MediaSonic Probox.

Before I logged in the console this morning it showed a bunch of errors for
/dev/sde1 (mounted as /media/bkup1) which is still formatted as xfs so I
umounted it and tried repairing it. That's when I saw the Probox was shut
down.

With the Probox turned on I now see the partition names have changed:
# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 465.8G 0 disk └─nvme0n1p1 259:1 0 465.8G 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
sdi 8:128 0 1.8T 0 disk └─sdi1 8:129 0 1.8T 0 part sr0 11:0 1 1024M 0 rom sdg 8:96 0 1.8T 0 disk └─sdg1 8:97 0 1.8T 0 part sde 8:64 0 1.8T 0 disk └─sde1 8:65 0 1.8T 0 part /media/bkup1 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
sdh 8:112 0 1.8T 0 disk └─sdh1 8:113 0 1.8T 0 part

I have no objections to using UUIDs rather than partition names for the four
HDDs in the Probox, but I'd prefer names I can associate with each drive.
Actually, in /etc/fstab now both /media/data2 and /media/data3 use their
UUIDs; I'd prefer labels.

Using blkid I see that the two backup drives in the Probox have PARTLABLE
assigned:
/dev/sdh1: UUID="f965f68e-4019-4041-acbe-f06d315d4388" TYPE="xfs" PARTLABEL="bkup1" 
PARTUUID="e67975e2-a4c6-452d-912d-b88543ae8c9e"
/dev/sdi1: UUID="35529e87-3e88-443d-a0bc-91367e1e582d" TYPE="ext4" PARTLABEL="bkup2" 
PARTUUID="def865cd-c933-43f2-beea-3120341648cc"

While I can change /etc/fstab to use the new partition names I think it
would make more sense for me to use e2lable and add a PARTLABLE to the other
two Probox drives and mount all four using their PARTLABLEs.

fdisk -l shows:
/dev/sde1: UUID="b50f1824-45ee-4623-adc7-ea737a88902b" TYPE="ext4"
/ PARTUUID="2880337a-ba6b-4eb3-ab93-7f57cf6e7340"

/dev/sdg1: UUID="8b47d782-8e1c-46bb-b314-0c53d90d6fac" TYPE="ext4"
/ PARTUUID="467c17d5-37d3-4b6d-997d-6b9a3dd8f5c9"

/dev/sdh1: UUID="f965f68e-4019-4041-acbe-f06d315d4388" TYPE="xfs"
 PARTLABEL="bkup1" PARTUUID="e67975e2-a4c6-452d-912d-b88543ae8c9e"

/dev/sdi1: UUID="35529e87-3e88-443d-a0bc-91367e1e582d" TYPE="ext4"
 PARTLABEL="bkup2" PARTUUID="def865cd-c933-43f2-beea-3120341648cc"

/dev/sde1 should have PARTLABLE="data3"

/dev/sdg1 should have PARTLABLE="data2"

Because I've not before used e2lable I want to confirm the syntax:
e2lable /dev/sde1 "data3"
e2lable /dev/sdg1 "data2"

then in /etc/fstab I change the current entries for the Probox using, e.g.,
LABLE="data2" /media/data2 /media/data2  ext4  auto,users,rw  1 2

Have I missed anything?

TIA,

Rich


Reply via email to