I have a local file on my disk which contains a msdos partition table and some linux-partitions. I use this as a virtual raw disk with qemu.
klm@lato:~/images/disk$ parted arch-linux2 p WARNING: You are not superuser. Watch out for permissions. Model: (file) Disk /home/klm/images/disk/arch-linux2: 4339MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32,3kB 107MB 107MB primary ext2 boot 2 107MB 378MB 271MB primary linux-swap(v1) 3 378MB 4100MB 3722MB primary ext4 4 4100MB 4331MB 231MB primary ext4
I want to resize a partition on this file, and GParted is normally really easy to use for this. However, when i run
$ gparted arch-linux2
Most of my partitions give me a warning:
e2label: No such file or directory while trying to open /home/klm/images/disk/arch-linux2. Couldn't find valid filesystem superblock.
Why can't gparted edit my partitions inside the file?