I have a hard drive image file with a Windows 7 installation that I
captured prior to first boot. It looks like this:
bigmedia:/var/extra1/images# losetup -fsr ./netbook-working-sda.img
/dev/loop0
bigmedia:/var/extra1/images# fdisk -lu /dev/loop0
Disk /dev/loop0: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xdc7a3828
Device Boot Start End Blocks Id System
/dev/loop0p1 63 25173854 12586896 27 Unknown
/dev/loop0p2 * 25173855 25382699 104422+ 7 HPFS/NTFS
/dev/loop0p3 25382700 312579759 143598530 7 HPFS/NTFS
bigmedia:/var/extra1/images#
I want to shrink this installation down to 40GB and put it back on the
machine which right now has Ubuntu taking up all 160GB.
I have read that ntfsresize may have some problems resizing Windows 7
partitions, and also that sometimes machines ship in Suspend mode instead
of shutdown that can lead to boot problems.
Can I safely use ntfsresize to shrink partition 3, and put the 3 partitions back
on the drive after my Ubuntu installation, and expect the machine to boot?
Or is that type 27 partition the suspend partition that needs to be first on
the drive? Anything else I should keep in mind?
Thanks,
-Pete
|