Hello, On Sun, 24 Jul 2016, Carlos E. R. wrote:
Number Start End Size File system Name Flags 1 1049kB 8389kB 7340kB primary bios_grub 2 8389kB 21.5GB 21.5GB ext4 primary legacy_boot 3 21.5GB 37.6GB 16.1GB linux-swap(v1) primary 4 37.6GB 38.7GB 1078MB ext2 primary 5 38.7GB 39.7GB 1077MB ext2 primary
Change the "legacy_boot" flag to partition 5 or back when needed. I just have to find a command that does that easily, on the command line.
man parted:
set partition flag state Change the state of the flag on partition to state. Supported flags are: "boot", "root", "swap", "hidden", "raid", "lvm", "lba", "legacy_boot", "irst" and "palo". state should be either "on" or "off".
So I think it would be:
parted /dev/sda set 5 on
$ parted --help Usage: parted [OPTION]... [DEVICE [COMMAND [PARAMETERS]...]...] [..] COMMANDs: [..] set NUMBER FLAG STATE change the FLAG on partition NUMBER ^^^^ toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER So, try: parted /dev/sda set 5 legacy_boot on parted /dev/sda set 2 legacy_boot off Or: parted /dev/sda toggle 2 legacy_boot parted /dev/sda toggle 5 legacy_boot HTH, -dnh -- Most people would say I write code like I've already lost my mind. -- Randal L. Schwartz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org