Change partitions' labels only on Dolphin or change label on not mounted LUKS partition
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
add a comment |
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
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
add a comment |
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
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
partitioning encryption kde kde-plasma-5
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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
.
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 inpartx /dev/sda
and would not depend on LUKS vs something else.
– grawity
Jan 11 at 6:18
|
show 3 more comments
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
.
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 inpartx /dev/sda
and would not depend on LUKS vs something else.
– grawity
Jan 11 at 6:18
|
show 3 more comments
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
.
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 inpartx /dev/sda
and would not depend on LUKS vs something else.
– grawity
Jan 11 at 6:18
|
show 3 more comments
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
.
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
.
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 inpartx /dev/sda
and would not depend on LUKS vs something else.
– grawity
Jan 11 at 6:18
|
show 3 more comments
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 inpartx /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
|
show 3 more comments
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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