mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Windows won't see a filesystem unless the MBR partition type byte is set correctly. $ ./run ./format/virt-format -a /tmp/test.img $ ./run ./cat/virt-filesystems -a /tmp/test.img --all --long -h Name Type VFS Label MBR Size Parent /dev/sda1 filesystem unknown - - 1.0G - /dev/sda1 partition - - 83 1.0G /dev/sda /dev/sda device - - - 1.0G - $ ./run ./format/virt-format -a /tmp/test.img --filesystem=ntfs $ ./run ./cat/virt-filesystems -a /tmp/test.img --all --long -h Name Type VFS Label MBR Size Parent /dev/sda1 filesystem ntfs - - 1.0G - /dev/sda1 partition - - 07 1.0G /dev/sda /dev/sda device - - - 1.0G - $ ./run ./format/virt-format -a /tmp/test.img --filesystem=vfat $ ./run ./cat/virt-filesystems -a /tmp/test.img --all --long -h Name Type VFS Label MBR Size Parent /dev/sda1 filesystem vfat - - 1.0G - /dev/sda1 partition - - 0b 1.0G /dev/sda /dev/sda device - - - 1.0G - $ ./run ./format/virt-format -a /tmp/test.img --lvm --filesystem=vfat $ ./run ./cat/virt-filesystems -a /tmp/test.img --all --long -h Name Type VFS Label MBR Size Parent /dev/VG/LV filesystem vfat - - 1020M - /dev/VG/LV lv - - - 1020M /dev/VG /dev/VG vg - - - 1020M /dev/sda1 /dev/sda1 pv - - - 1020M - /dev/sda1 partition - - 8e 1.0G /dev/sda /dev/sda device - - - 1.0G - Thanks: Gerd Hoffmann (kraxel)