You are not logged in.

#1 2016-03-27 09:34:21

gsmlinks
Member
From: Online
Registered: 2015-12-26
Posts: 9

[SOLVED] Need to set PARTLABEL to fix systemd error

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 
└─sda6

Thanks in advance.

Last edited by gsmlinks (2016-03-27 19:42:34)

Offline

#2 2016-03-27 09:38:53

frostschutz
Member
Registered: 2013-11-15
Posts: 1,658

Re: [SOLVED] Need to set PARTLABEL to fix systemd error

The label of a GPT partition can be changed using parted's name command.

name NUMBER NAME                         name partition NUMBER as NAME

Note that's just a label, not the partition type which you can change with set/toggle.

Offline

#3 2016-03-27 09:55:09

gsmlinks
Member
From: Online
Registered: 2015-12-26
Posts: 9

Re: [SOLVED] Need to set PARTLABEL to fix systemd error

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

#4 2016-03-27 10:07:33

gsmlinks
Member
From: Online
Registered: 2015-12-26
Posts: 9

Re: [SOLVED] Need to set PARTLABEL to fix systemd error

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

#5 2016-03-27 19:41:35

gsmlinks
Member
From: Online
Registered: 2015-12-26
Posts: 9

Re: [SOLVED] Need to set PARTLABEL to fix systemd error

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 wink I'll never again build a box with Windows in it mad this was last time for me. Only GNU/Linux wink

Last edited by gsmlinks (2016-03-27 19:45:54)

Offline

Board footer

Powered by FluxBB