Change partitions' labels only on Dolphin or change label on not mounted LUKS partition












0















I have an encrypted LUKS partition, on Kubuntu such partition has to be displayed like "831.5 GiB Encrypted Drive" and cannot be changed. When you mount it and put the password it appears a new entry with the actual custom label.

What i hate about this is that "831.5 GiB Encrypted Drive" is too long and it's ugly on Dolphin. Can i change it somehow? On Dolphin only would be good enough.










share|improve this question























  • Tried hiding the listing in Dolphin, maybe through right-clicking somewhere, or a preference? It kind-of works on Thunar, but hides the encrypted and decrypted device... not sure about Dolphin

    – Xen2050
    Jan 11 at 4:49
















0















I have an encrypted LUKS partition, on Kubuntu such partition has to be displayed like "831.5 GiB Encrypted Drive" and cannot be changed. When you mount it and put the password it appears a new entry with the actual custom label.

What i hate about this is that "831.5 GiB Encrypted Drive" is too long and it's ugly on Dolphin. Can i change it somehow? On Dolphin only would be good enough.










share|improve this question























  • Tried hiding the listing in Dolphin, maybe through right-clicking somewhere, or a preference? It kind-of works on Thunar, but hides the encrypted and decrypted device... not sure about Dolphin

    – Xen2050
    Jan 11 at 4:49














0












0








0








I have an encrypted LUKS partition, on Kubuntu such partition has to be displayed like "831.5 GiB Encrypted Drive" and cannot be changed. When you mount it and put the password it appears a new entry with the actual custom label.

What i hate about this is that "831.5 GiB Encrypted Drive" is too long and it's ugly on Dolphin. Can i change it somehow? On Dolphin only would be good enough.










share|improve this question














I have an encrypted LUKS partition, on Kubuntu such partition has to be displayed like "831.5 GiB Encrypted Drive" and cannot be changed. When you mount it and put the password it appears a new entry with the actual custom label.

What i hate about this is that "831.5 GiB Encrypted Drive" is too long and it's ugly on Dolphin. Can i change it somehow? On Dolphin only would be good enough.







partitioning encryption kde kde-plasma-5






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 11 at 3:42









AzarilhAzarilh

457




457













  • Tried hiding the listing in Dolphin, maybe through right-clicking somewhere, or a preference? It kind-of works on Thunar, but hides the encrypted and decrypted device... not sure about Dolphin

    – Xen2050
    Jan 11 at 4:49



















  • Tried hiding the listing in Dolphin, maybe through right-clicking somewhere, or a preference? It kind-of works on Thunar, but hides the encrypted and decrypted device... not sure about Dolphin

    – Xen2050
    Jan 11 at 4:49

















Tried hiding the listing in Dolphin, maybe through right-clicking somewhere, or a preference? It kind-of works on Thunar, but hides the encrypted and decrypted device... not sure about Dolphin

– Xen2050
Jan 11 at 4:49





Tried hiding the listing in Dolphin, maybe through right-clicking somewhere, or a preference? It kind-of works on Thunar, but hides the encrypted and decrypted device... not sure about Dolphin

– Xen2050
Jan 11 at 4:49










1 Answer
1






active

oldest

votes


















1














Technically Dolphin shows the "filesystem label" (stored in the filesystem's own metadata), not the partition label (stored in the partition table). LUKS1 cannot store a label in its metadata, although LUKS2 can.



If your encrypted volume is in LUKS2 format, you can rename it using:



cryptsetup config /dev/sdXY --label "Encrypted disk"


If you have an older format volume but cryptsetup 2.x is installed, you can quickly convert the volume header from LUKS1 to LUKS2 (this does not need to reencrypt the data):



cryptsetup luksHeaderBackup /dev/sdXY --header-backup-file ~/sdXY-before-luks2-conversion.header
cryptsetup convert /dev/sdXY --to luks2


To check whether your system supports LUKS2 for data disks (i.e. non-boot/system), run cryptsetup --version to find out; you should see at least "2.0.2". (Note that GRUB2 supports only LUKS1 for the boot disk.)



To check the current header version, use cryptsetup luksDump /dev/sdXY.






share|improve this answer


























  • Thank you for replaying. I don't know if it's LUKS 1 or 2, how do i check? It says only LUKS. That said: the terminal command you gave me doesn't work. It does nothing. I think you got it wrong: i can change the label of the partition itself from Gparted, but when it is not mounted the label is the default which i cannot (and i want to) change. I think mine is LUKS2 at this point?

    – Azarilh
    Jan 11 at 6:12













  • You also said that Dolphin shows the filesystem label and not the partition label, which is not true, all my partitions show my custom partition label, except the unmounted encrypted partition.

    – Azarilh
    Jan 11 at 6:14











  • How did you set these partition labels?

    – grawity
    Jan 11 at 6:14











  • From Gparted, actually KDE Partition Manager. Right click on the partition, proprieties: label.

    – Azarilh
    Jan 11 at 6:16








  • 1





    That's not the partition label. Parted does not support reading/writing partition labels from GPT (and they don't even exist in MBR); it writes this field into the filesystem using e2label or similar tools, and even outright shows "This filesystem does not support setting a label" in other cases. If it was the partition label, it would show up in partx /dev/sda and would not depend on LUKS vs something else.

    – grawity
    Jan 11 at 6:18













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1393014%2fchange-partitions-labels-only-on-dolphin-or-change-label-on-not-mounted-luks-pa%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Technically Dolphin shows the "filesystem label" (stored in the filesystem's own metadata), not the partition label (stored in the partition table). LUKS1 cannot store a label in its metadata, although LUKS2 can.



If your encrypted volume is in LUKS2 format, you can rename it using:



cryptsetup config /dev/sdXY --label "Encrypted disk"


If you have an older format volume but cryptsetup 2.x is installed, you can quickly convert the volume header from LUKS1 to LUKS2 (this does not need to reencrypt the data):



cryptsetup luksHeaderBackup /dev/sdXY --header-backup-file ~/sdXY-before-luks2-conversion.header
cryptsetup convert /dev/sdXY --to luks2


To check whether your system supports LUKS2 for data disks (i.e. non-boot/system), run cryptsetup --version to find out; you should see at least "2.0.2". (Note that GRUB2 supports only LUKS1 for the boot disk.)



To check the current header version, use cryptsetup luksDump /dev/sdXY.






share|improve this answer


























  • Thank you for replaying. I don't know if it's LUKS 1 or 2, how do i check? It says only LUKS. That said: the terminal command you gave me doesn't work. It does nothing. I think you got it wrong: i can change the label of the partition itself from Gparted, but when it is not mounted the label is the default which i cannot (and i want to) change. I think mine is LUKS2 at this point?

    – Azarilh
    Jan 11 at 6:12













  • You also said that Dolphin shows the filesystem label and not the partition label, which is not true, all my partitions show my custom partition label, except the unmounted encrypted partition.

    – Azarilh
    Jan 11 at 6:14











  • How did you set these partition labels?

    – grawity
    Jan 11 at 6:14











  • From Gparted, actually KDE Partition Manager. Right click on the partition, proprieties: label.

    – Azarilh
    Jan 11 at 6:16








  • 1





    That's not the partition label. Parted does not support reading/writing partition labels from GPT (and they don't even exist in MBR); it writes this field into the filesystem using e2label or similar tools, and even outright shows "This filesystem does not support setting a label" in other cases. If it was the partition label, it would show up in partx /dev/sda and would not depend on LUKS vs something else.

    – grawity
    Jan 11 at 6:18


















1














Technically Dolphin shows the "filesystem label" (stored in the filesystem's own metadata), not the partition label (stored in the partition table). LUKS1 cannot store a label in its metadata, although LUKS2 can.



If your encrypted volume is in LUKS2 format, you can rename it using:



cryptsetup config /dev/sdXY --label "Encrypted disk"


If you have an older format volume but cryptsetup 2.x is installed, you can quickly convert the volume header from LUKS1 to LUKS2 (this does not need to reencrypt the data):



cryptsetup luksHeaderBackup /dev/sdXY --header-backup-file ~/sdXY-before-luks2-conversion.header
cryptsetup convert /dev/sdXY --to luks2


To check whether your system supports LUKS2 for data disks (i.e. non-boot/system), run cryptsetup --version to find out; you should see at least "2.0.2". (Note that GRUB2 supports only LUKS1 for the boot disk.)



To check the current header version, use cryptsetup luksDump /dev/sdXY.






share|improve this answer


























  • Thank you for replaying. I don't know if it's LUKS 1 or 2, how do i check? It says only LUKS. That said: the terminal command you gave me doesn't work. It does nothing. I think you got it wrong: i can change the label of the partition itself from Gparted, but when it is not mounted the label is the default which i cannot (and i want to) change. I think mine is LUKS2 at this point?

    – Azarilh
    Jan 11 at 6:12













  • You also said that Dolphin shows the filesystem label and not the partition label, which is not true, all my partitions show my custom partition label, except the unmounted encrypted partition.

    – Azarilh
    Jan 11 at 6:14











  • How did you set these partition labels?

    – grawity
    Jan 11 at 6:14











  • From Gparted, actually KDE Partition Manager. Right click on the partition, proprieties: label.

    – Azarilh
    Jan 11 at 6:16








  • 1





    That's not the partition label. Parted does not support reading/writing partition labels from GPT (and they don't even exist in MBR); it writes this field into the filesystem using e2label or similar tools, and even outright shows "This filesystem does not support setting a label" in other cases. If it was the partition label, it would show up in partx /dev/sda and would not depend on LUKS vs something else.

    – grawity
    Jan 11 at 6:18
















1












1








1







Technically Dolphin shows the "filesystem label" (stored in the filesystem's own metadata), not the partition label (stored in the partition table). LUKS1 cannot store a label in its metadata, although LUKS2 can.



If your encrypted volume is in LUKS2 format, you can rename it using:



cryptsetup config /dev/sdXY --label "Encrypted disk"


If you have an older format volume but cryptsetup 2.x is installed, you can quickly convert the volume header from LUKS1 to LUKS2 (this does not need to reencrypt the data):



cryptsetup luksHeaderBackup /dev/sdXY --header-backup-file ~/sdXY-before-luks2-conversion.header
cryptsetup convert /dev/sdXY --to luks2


To check whether your system supports LUKS2 for data disks (i.e. non-boot/system), run cryptsetup --version to find out; you should see at least "2.0.2". (Note that GRUB2 supports only LUKS1 for the boot disk.)



To check the current header version, use cryptsetup luksDump /dev/sdXY.






share|improve this answer















Technically Dolphin shows the "filesystem label" (stored in the filesystem's own metadata), not the partition label (stored in the partition table). LUKS1 cannot store a label in its metadata, although LUKS2 can.



If your encrypted volume is in LUKS2 format, you can rename it using:



cryptsetup config /dev/sdXY --label "Encrypted disk"


If you have an older format volume but cryptsetup 2.x is installed, you can quickly convert the volume header from LUKS1 to LUKS2 (this does not need to reencrypt the data):



cryptsetup luksHeaderBackup /dev/sdXY --header-backup-file ~/sdXY-before-luks2-conversion.header
cryptsetup convert /dev/sdXY --to luks2


To check whether your system supports LUKS2 for data disks (i.e. non-boot/system), run cryptsetup --version to find out; you should see at least "2.0.2". (Note that GRUB2 supports only LUKS1 for the boot disk.)



To check the current header version, use cryptsetup luksDump /dev/sdXY.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 11 at 6:57

























answered Jan 11 at 5:55









grawitygrawity

238k37505560




238k37505560













  • Thank you for replaying. I don't know if it's LUKS 1 or 2, how do i check? It says only LUKS. That said: the terminal command you gave me doesn't work. It does nothing. I think you got it wrong: i can change the label of the partition itself from Gparted, but when it is not mounted the label is the default which i cannot (and i want to) change. I think mine is LUKS2 at this point?

    – Azarilh
    Jan 11 at 6:12













  • You also said that Dolphin shows the filesystem label and not the partition label, which is not true, all my partitions show my custom partition label, except the unmounted encrypted partition.

    – Azarilh
    Jan 11 at 6:14











  • How did you set these partition labels?

    – grawity
    Jan 11 at 6:14











  • From Gparted, actually KDE Partition Manager. Right click on the partition, proprieties: label.

    – Azarilh
    Jan 11 at 6:16








  • 1





    That's not the partition label. Parted does not support reading/writing partition labels from GPT (and they don't even exist in MBR); it writes this field into the filesystem using e2label or similar tools, and even outright shows "This filesystem does not support setting a label" in other cases. If it was the partition label, it would show up in partx /dev/sda and would not depend on LUKS vs something else.

    – grawity
    Jan 11 at 6:18





















  • Thank you for replaying. I don't know if it's LUKS 1 or 2, how do i check? It says only LUKS. That said: the terminal command you gave me doesn't work. It does nothing. I think you got it wrong: i can change the label of the partition itself from Gparted, but when it is not mounted the label is the default which i cannot (and i want to) change. I think mine is LUKS2 at this point?

    – Azarilh
    Jan 11 at 6:12













  • You also said that Dolphin shows the filesystem label and not the partition label, which is not true, all my partitions show my custom partition label, except the unmounted encrypted partition.

    – Azarilh
    Jan 11 at 6:14











  • How did you set these partition labels?

    – grawity
    Jan 11 at 6:14











  • From Gparted, actually KDE Partition Manager. Right click on the partition, proprieties: label.

    – Azarilh
    Jan 11 at 6:16








  • 1





    That's not the partition label. Parted does not support reading/writing partition labels from GPT (and they don't even exist in MBR); it writes this field into the filesystem using e2label or similar tools, and even outright shows "This filesystem does not support setting a label" in other cases. If it was the partition label, it would show up in partx /dev/sda and would not depend on LUKS vs something else.

    – grawity
    Jan 11 at 6:18



















Thank you for replaying. I don't know if it's LUKS 1 or 2, how do i check? It says only LUKS. That said: the terminal command you gave me doesn't work. It does nothing. I think you got it wrong: i can change the label of the partition itself from Gparted, but when it is not mounted the label is the default which i cannot (and i want to) change. I think mine is LUKS2 at this point?

– Azarilh
Jan 11 at 6:12







Thank you for replaying. I don't know if it's LUKS 1 or 2, how do i check? It says only LUKS. That said: the terminal command you gave me doesn't work. It does nothing. I think you got it wrong: i can change the label of the partition itself from Gparted, but when it is not mounted the label is the default which i cannot (and i want to) change. I think mine is LUKS2 at this point?

– Azarilh
Jan 11 at 6:12















You also said that Dolphin shows the filesystem label and not the partition label, which is not true, all my partitions show my custom partition label, except the unmounted encrypted partition.

– Azarilh
Jan 11 at 6:14





You also said that Dolphin shows the filesystem label and not the partition label, which is not true, all my partitions show my custom partition label, except the unmounted encrypted partition.

– Azarilh
Jan 11 at 6:14













How did you set these partition labels?

– grawity
Jan 11 at 6:14





How did you set these partition labels?

– grawity
Jan 11 at 6:14













From Gparted, actually KDE Partition Manager. Right click on the partition, proprieties: label.

– Azarilh
Jan 11 at 6:16







From Gparted, actually KDE Partition Manager. Right click on the partition, proprieties: label.

– Azarilh
Jan 11 at 6:16






1




1





That's not the partition label. Parted does not support reading/writing partition labels from GPT (and they don't even exist in MBR); it writes this field into the filesystem using e2label or similar tools, and even outright shows "This filesystem does not support setting a label" in other cases. If it was the partition label, it would show up in partx /dev/sda and would not depend on LUKS vs something else.

– grawity
Jan 11 at 6:18







That's not the partition label. Parted does not support reading/writing partition labels from GPT (and they don't even exist in MBR); it writes this field into the filesystem using e2label or similar tools, and even outright shows "This filesystem does not support setting a label" in other cases. If it was the partition label, it would show up in partx /dev/sda and would not depend on LUKS vs something else.

– grawity
Jan 11 at 6:18




















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1393014%2fchange-partitions-labels-only-on-dolphin-or-change-label-on-not-mounted-luks-pa%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

Origin of the phrase “under your belt”?