This command:
returns type of partition table 'msdos' or 'gpt'. Is there equivalent command I can use that does not need 'sudo' privileged rights?sudo parted -l | grep "Partition Table: "
I would like to use it in my script with a combination with:
to determine if OS installation matches hardware (BIOS+msdos or UEFI+gpt)test -d /sys/firmware/efi && echo UEFI || echo BIOS
And there is just bad karma if your code is requesting a password ;-)