[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:general_admin:resize_a_qemu_raw_image_with_an_ntfs_filesytem [2013/12/15 05:19 (UTC)] – [Finish up] allendhowtos:general_admin:resize_a_qemu_raw_image_with_an_ntfs_filesytem [2013/12/15 06:18 (UTC)] (current) – [Use ntfsresize to resize the NTFS partition] allend
Line 18: Line 18:
 Loop mount the image. Loop mount the image.
  
-<code>losetup  /dev/loop0 Windows_XP_Professional_SP_3.img</code>+<code>losetup /dev/loop0 Windows_XP_Professional_SP_3.img</code>
  
 Inspect the partition table (here parted is used but fdisk or cfdisk can also be used). Inspect the partition table (here parted is used but fdisk or cfdisk can also be used).
Line 24: Line 24:
 <code>parted /dev/loop0</code> <code>parted /dev/loop0</code>
  
-Within parted set the units to sectors and print the current partition table.+Within partedset the units to sectors, then print the current partition table.
  
 <code>(parted) unit s                                                            <code>(parted) unit s                                                           
Line 52: Line 52:
 ===== Use ntfsresize to resize the NTFS partition ===== ===== Use ntfsresize to resize the NTFS partition =====
  
-Loop mount the NTFS partition to be extended, using an offset calculated from the sector size and start sector.+Loop mount the NTFS partition to be resized, using an offset calculated from the sector size and start sector.
  
 <code>losetup -o$((512*63)) /dev/loop0 Windows_XP_Professional_SP_3.img</code> <code>losetup -o$((512*63)) /dev/loop0 Windows_XP_Professional_SP_3.img</code>
 howtos:general_admin:resize_a_qemu_raw_image_with_an_ntfs_filesytem ()