manjaro-architect icon indicating copy to clipboard operation
manjaro-architect copied to clipboard

Cannot name Logical Volume "root"

Open Vargnath opened this issue 8 years ago • 4 comments

If I try to create a Logical Volume and use "root" as label, the following error occurs:

Error
Invalid Name Entered. The Logical Volume (LV)
name may be alpha-numeric, but may not contain
spaces or be preceeded with a '/'.

lvm_error1 lvm_erro2

Vargnath avatar Apr 10 '17 16:04 Vargnath

As you've spotted correctly in your forum-post currently everything found in the output of lsblk is assumed to be an already used name. Not ideal. We should find a way to get actual group names...

oberon-manjaro avatar Apr 10 '17 17:04 oberon-manjaro

Btw, the error message is already different than in the version you are displaying. It now additionally includes a hint that the group name may already be in use:

Invalid Name Entered. The Volume Group name may be alpha-numeric, but may not contain spaces, start with a '/', or already be in use.

oberon-manjaro avatar Apr 10 '17 17:04 oberon-manjaro

Just realizing that the text is rubbish! Probably a result of changing it midway 😆 I'll change it again... 😉

oberon-manjaro avatar Apr 10 '17 17:04 oberon-manjaro

We could use awk to search only specific fields of the lsblk output instead of the whole lines.

Chrysostomus avatar Apr 10 '17 22:04 Chrysostomus