You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 4, 2026. It is now read-only.
If I use a loop device as the disk when getPedDevice(), for example running the following code reliably has issues.
# Create a disk image then attach it to a loopback device (e.g. /dev/loop0)'''dd if=/dev/zero of=disk.img bs=512 count=2097152losetup -f disk.imgkpartx -a /dev/loop0'''device='/dev/loop0'loop0=parted.getDevice(device)
loop0.clobber() # destroy existing partition tabledisk=parted.newDisk(loop0)
the following error is raised
peddisk = disk_new(device.getPedDevice())
_ped.DiskException: /dev/loop0: unrecognised disk label
If I use a loop device as the disk when
getPedDevice(), for example running the following code reliably has issues.the following error is raised
is there a way I can work around this on my end?