embiggen-disk icon indicating copy to clipboard operation
embiggen-disk copied to clipboard

unknown MBR partition type "82" for /dev/sda5

Open dtouzeau opened this issue 3 years ago • 0 comments

When using swap partition, the tool failed to run

embiggen-disk -dry-run -verbose /
error: unknown MBR partition type "82" for /dev/sda5
**cat /proc/mounts** 
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=1551108k,nr_inodes=387777,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,noexec,relatime,size=312900k,mode=755 0 0
/dev/sda1 / ext4 rw,noatime,nodiratime,discard,nobarrier,errors=remount-ro,commit=120 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
pstore /sys/fs/pstore pstore rw,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=1280520k 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
**fdisk -l**       
Disk /dev/sda: 30 GiB, 32212254720 bytes, 62914560 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x81f4972e

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1  *        2048 14419967 14417920  6.9G 83 Linux
/dev/sda2       14422014 20969471  6547458  3.1G  5 Extended
/dev/sda5       14422016 20969471  6547456  3.1G 82 Linux swap / Solaris
**sfdisk -d /dev/sda**
label: dos
label-id: 0x81f4972e
device: /dev/sda
unit: sectors

/dev/sda1 : start=        2048, size=    14417920, type=83, bootable
/dev/sda2 : start=    14422014, size=     6547458, type=5
/dev/sda5 : start=    14422016, size=     6547456, type=82

Disk was extended but tool block on sda5 as a swap partition.

dtouzeau avatar Jan 02 '21 09:01 dtouzeau