You are not logged in.
Hi, I have dual boot system Win10 and Arch Linux. How to set the PARTLABEL on sda5(win) and sda6(linux)? Can I do it while the system running (on the fly)? or from live usb stick?
sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 300M 0 part
├─sda2 8:2 0 100M 0 part /boot/efi
├─sda3 8:3 0 128M 0 part
├─sda4 8:4 0 268.7G 0 part
├─sda5 8:5 0 811M 0 part
└─sda6 8:6 0 195.3G 0 part /
sr0 11:0 1 1024M 0 rom
lsblk -o NAME,PARTLABEL
NAME PARTLABEL
sda
├─sda1 Basic data partition
├─sda2 EFI system partition
├─sda3 Microsoft reserved partition
├─sda4 Basic data partition
├─sda5
└─sda6Thanks in advance.
Last edited by gsmlinks (2016-03-27 19:42:34)
Offline
The label of a GPT partition can be changed using parted's name command.
name NUMBER NAME name partition NUMBER as NAMENote that's just a label, not the partition type which you can change with set/toggle.
Offline
Thanks for the info, I think you mean this entry from cgdisk man page?
man cgdisk
...
naMe Change the GPT name of a partition. This name is encoded as a UTF-16 string, but proper entry and display of anything beyond basic ASCII values requires suitable locale and font
support. For the most part, Linux ignores the partition name, but it may be important in some OSes. GPT fdisk sets a default name based on the partition type code. Note that the
GPT partition name is different from the filesystem name, which is encoded in the filesystem's data structures. Note also that to activate this item by typing its alphabetic
equivalent, you must use M, not the more obvious N, because the latter is used by the next option....
...Last edited by gsmlinks (2016-03-27 10:04:16)
Offline
Ok, I can use cgdisk using the "m" option. My last question: Can I do it while the system running on the fly as root (is safe)? or from live usb stick?
Last edited by gsmlinks (2016-03-27 10:08:27)
Offline
Problem solved, as root I did "cgdisk /dev/sda" and after selecting the 2nd row "Basic data partition" and changing the [naMe] no systemd error anymore
I'll never again build a box with Windows in it
this was last time for me. Only GNU/Linux ![]()
Last edited by gsmlinks (2016-03-27 19:45:54)
Offline