Link to block device

7 replies [Last post]
amenex
Offline
Joined: 01/03/2015

Double-clicking on Home, then File System, then dev, then disk, and finally label brings
up a list of the links to the various Data partitions:
/dev/disk/by-label/1pt8TB-Data
/dev/disk/by-label/Data-0
/dev/disk/by-label/Data-1
/dev/disk/by-label/Data-2
/dev/disk/by-label/Data-A
/dev/disk/by-label/Data-B
/dev/disk/by-label/Data-C
/dev/disk/by-label/Data-D
/dev/disk/by-label/Expansion
/dev/disk/by-label/GBData

each of which is a link to the particular block device,
the first four of which I created this morning with the following sequence of commands:
sudo ln -s -T /dev/sde2 Data-0
sudo ln -s -T /dev/sdb3 Data-1
sudo ln -s -T /dev/sdd3 Data-2
sudo ln -s -T /dev/sdc6 1pt8TB-Data
sudo umount /media/george/Data-0
sudo mount /dev/disk/by-label/Data-0 /media/george/Data-0
sudo umount /media/george/Data-1
sudo mount /dev/disk/by-label/Data-1 /media/george/Data-1
sudo umount /media/george/Data-2
sudo mount /dev/disk/by-label/Data-2 /media/george/Data-2
sudo umount /media/george/1pt8TB-Data
sudo mount /dev/disk/by-label/1pt8TB-Data /media/george/1pt8TB-Data

I cannot reconstruct how the other six found their way into existence.
If I execute the final four pairs of unmount/remount steps one-at-a-time,
I can watch them disappear and then reappear on the Desktop.
Waitaminnit ... they each reappear with the same incorrect device name as appears in the
side pane of the GUI Home folder as shown in the attached screenshot, wherein the ten red
triangles indicate the Data files that are displayed on the Desktop. Two of the Data partitions
are labeled 958 GB Volume, but on examining the Properties of each, it is clear that they
ought to be labeled Data-1 and Data-2. The names under Devices in that side pane really
have to be corrected; I need to find out where that side pane is coded so that I can correct
the problem.

AttachmentSize
Screenshot at 2022-08-29 11-12-17.png11.59 KB
amenex
Offline
Joined: 01/03/2015

The computer is a Lenovo Thinkpad T420 running Trisquel_10 (nabia). The disks in question are USB-connected.

amenex
Offline
Joined: 01/03/2015

See Computer:/// where it's said:
Name: ST1000LM035-1RK172: 958 GB Volume Properties ==> /media/george/Data-1
Location: Computer:///
Volume: 958 GB Volume
Free space: 193.7 GB

Name: ST1000LM 035-1RK172: 958 GB Volume Properties ==> /media/george/Data-2
Location: Computer:///
Volume: 958 GB Volume
Free space: 253.8 GB

Compared to:
Name: TOSHIBA HDWL110: GBData Properties ==> /media/george/GBData
Location: Computer:///
Volume: GBData
Free space: 38.8 GB

How do I edit 958 GB Volume to read Data-1 in the first instance and Data-2 in the second ?

prospero
Offline
Joined: 05/20/2022

I would format a spare USB key with a custom name and see how it shows in Caja. Not being able to format may be the show-stopper here, as it would probably defeat your purpose, but at least you would know it.

amenex
Offline
Joined: 01/03/2015

Thanks are due to prospero for nudging me back into the formatting of a USB drive.
When I did so with a 16 GB flash drive, I realized when I added the label property
with GPartEd (rather than the Name property) that I had only "Named" the Data
partitions. Once I added labels, they all came up as I'd hoped on the Desktop as
shown in the attached screen grab. Data-4 is that 16GB flash drive.

Screenshot at 2022-08-31 14-43-20.png
Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

That is what I suggested you to do in the first place, almost one week ago, in https://trisquel.info/forum/automount-user-data-partitions#comment-168080 right?

prospero
Offline
Joined: 05/20/2022

> I suggested

That clearly lacked all the subtle subjugating power of nudging. :)

amenex
Offline
Joined: 01/03/2015

"Naming" (in GPartEd) is what got me in trouble in the first place. "Label" is
the operative appellation, as in /dev/disk/by-label. There's no /dev/disk/b-name
in by-id by-label by-partlabel by-partuuid by-path by-uuid.