Keep custom drive names on desktop icons after reboot

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
Amaponian
Posts: 83
Joined: Wed Dec 15, 2021 12:10 am
Has thanked: 73 times
Been thanked: 3 times

Keep custom drive names on desktop icons after reboot

Post by Amaponian »

How do I do to keep my drive labels after reboot [Bionicpup64/frugal]

Image

Last edited by Amaponian on Wed Aug 10, 2022 12:53 pm, edited 1 time in total.
User avatar
Flash
Moderator
Posts: 954
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 50 times
Been thanked: 119 times

Re: My drive labels disappear after reboot

Post by Flash »

Just to be clear, the drive icons come back, but with labels like sda1 rather than whatever you changed the label to before rebooting?

It might help if you told us which operating system you're using.

Chaos coordinator :?
User avatar
JakeSFR
Posts: 270
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 157 times

Re: My drive labels disappear after reboot

Post by JakeSFR »

You can't, because drive icons are dynamically created at boot or when you plug in a USB/MMC device.
You can, however, enable showing actual labels (if any): System -> Puppy Event Manager -> ROX Icons -> Show labels for each PARTITION.

In order to set/change a label, you need to use a utility specific to a given filesystem, e.g.:

EXT -> e2label
FAT -> fatlabel
NTFS -> ntfslabel

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
bigpup
Moderator
Posts: 6836
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 874 times
Been thanked: 1472 times

Re: My drive labels disappear after reboot

Post by bigpup »

After doing Puppy Event Manager -> ROX Icons -> Show labels for each PARTITION.

Try using Pmount to label any partition that will have a desktop drive icon.

In Pmount, click on the drop down menu for each partition.
Select edit label

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Amaponian
Posts: 83
Joined: Wed Dec 15, 2021 12:10 am
Has thanked: 73 times
Been thanked: 3 times

Re: My drive labels disappear after reboot

Post by Amaponian »

Flash wrote: Mon Aug 08, 2022 2:51 am

Just to be clear, the drive icons come back, but with labels like sda1 rather than whatever you changed the label to before rebooting?

Yes

Flash wrote: Mon Aug 08, 2022 2:51 am

It might help if you told us which operating system you're using.

Bionicpup64/frugal

Amaponian
Posts: 83
Joined: Wed Dec 15, 2021 12:10 am
Has thanked: 73 times
Been thanked: 3 times

Re: My drive labels disappear after reboot

Post by Amaponian »

bigpup wrote: Mon Aug 08, 2022 11:54 am

After doing Puppy Event Manager -> ROX Icons -> Show labels for each PARTITION.

Try using Pmount to label any partition that will have a desktop drive icon.

In Pmount, click on the drop down menu for each partition.
Select edit label

I did it, a useful knowledge that I needed from long ago. Thank you. But it isn't what I need now. May be I'm mistaken in calling them "labels", because, in this case, it is not the drive label what I want to change but a name seen under the drive icon on the desktop.

Amaponian
Posts: 83
Joined: Wed Dec 15, 2021 12:10 am
Has thanked: 73 times
Been thanked: 3 times

Re: My drive labels disappear after reboot

Post by Amaponian »

JakeSFR wrote: Mon Aug 08, 2022 9:32 am

You can't, because drive icons are dynamically created at boot or when you plug in a USB/MMC device.
You can, however, enable showing actual labels (if any): System -> Puppy Event Manager -> ROX Icons -> Show labels for each PARTITION.

In order to set/change a label, you need to use a utility specific to a given filesystem, e.g.:

EXT -> e2label
FAT -> fatlabel
NTFS -> ntfslabel

Greetings!

I used fatlabel since the target drive is fat32. Nothing visible changed, even after refreshing icons or the graphical server.

Image

User avatar
JakeSFR
Posts: 270
Joined: Wed Jul 15, 2020 2:23 pm
Been thanked: 157 times

Re: My drive labels disappear after reboot

Post by JakeSFR »

Amaponian wrote: Mon Aug 08, 2022 5:49 pm
JakeSFR wrote: Mon Aug 08, 2022 9:32 am

You can't, because drive icons are dynamically created at boot or when you plug in a USB/MMC device.
You can, however, enable showing actual labels (if any): System -> Puppy Event Manager -> ROX Icons -> Show labels for each PARTITION.

In order to set/change a label, you need to use a utility specific to a given filesystem, e.g.:

EXT -> e2label
FAT -> fatlabel
NTFS -> ntfslabel

Greetings!

I used fatlabel since the target drive is fat32. Nothing visible changed, even after refreshing icons or the graphical server.

Image

Did you enable 'Show labels for each PARTITION'?
Also, to check if the label was actually set, type:

Code: Select all

fatlabel /dev/sda3

and it should be printed to stdout.

Greetings!

[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
User avatar
mikewalsh
Moderator
Posts: 6034
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 738 times
Been thanked: 1899 times

Re: My drive labels disappear after reboot

Post by mikewalsh »

@Amaponian :-

The simplest way I know of to set a drive 'label' (name) is by going into gParted. Right-click on the drive or partition->Label. Then you can edit/add the name you want.....and it's permanent. Needs unmounting first, of course.

(Probably using one of Jake's labelling commands under the hood anyway...)

(*shrug*)

Mike. ;)

Amaponian
Posts: 83
Joined: Wed Dec 15, 2021 12:10 am
Has thanked: 73 times
Been thanked: 3 times

Re: My drive labels disappear after reboot

Post by Amaponian »

bigpup wrote: Mon Aug 08, 2022 11:54 am

After doing Puppy Event Manager -> ROX Icons -> Show labels for each PARTITION.

Try using Pmount to label any partition that will have a desktop drive icon.

In Pmount, click on the drop down menu for each partition.
Select edit label

Now I realize your suggestion really gives me what I needed. I didn't know how to change the label drive of my fat32 partition, so I was always forced to see them as sda2 & sda3 , but it is easy with Pmount. Nonetheless, I'm still interested in knowing how to change the name of drives in the desktop icons, I want to change there the automatic names sda1, sda2, sbda...

Thank you. Very helpful.

Amaponian
Posts: 83
Joined: Wed Dec 15, 2021 12:10 am
Has thanked: 73 times
Been thanked: 3 times

Re: My drive labels disappear after reboot

Post by Amaponian »

mikewalsh wrote: Tue Aug 09, 2022 11:27 am

@Amaponian :-

The simplest way I know of to set a drive 'label' (name) is by going into gParted. Right-click on the drive or partition->Label. Then you can edit/add the name you want.....and it's permanent. Needs unmounting first, of course.

(Probably using one of Jake's labelling commands under the hood anyway...)

(*shrug*)

Mike. ;)

I'm sorry, I think I made a mistake. What I want to change is the name under the drive icons on the desktop. I can change them but my changes dissapear after reboot.

williams2
Posts: 1059
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 302 times

Re: Keep custom drive names on desktop icons after reboot

Post by williams2 »

You could write a script and/or a .desktop file and/or a RoxApp, that mounts a particular file system when clicked.
And you could drag the script to the Rox pinboard to create a clickable desktop icon.

The icon could be permanent and configured the way you like it,
as opposed to the drive icons which change when you plug/unplug usb drives.

Or you could re-write the code in /usr/local/pup_event/frontend_rox_funcs

Post Reply

Return to “Users”