Martti Kuparinen was kind enough to share a script he has made for backing up the Windows partition as an image. Here is a link to his original site, which has clear instructions.
http://kuparinen.org/martti/comp/windows/backup.html
I highly advise that you follow his instructions on his web page.
I have downloaded and saved as an archive the scripts, win2bak and bak2win
and his instruction page along with some of my own notes
Here is the archive – win2bak-bak2win.tar.gz
I have not attempted to restore the image yet. ;-)
EDIT: This worked like a charm. I even was able to restore the image to a different sized partition like this:
First restore it to the SAME sized partition, in the same location on the drive, then enlarge that partition AFTER restoring! SWEET! And the restored system works great!
NOTES:
To install the script, do:
cd /usr/bin && sudo wget http://www.iki.fi/kuparine/comp/windows/win2bak && sudo wget http://www.iki.fi/kuparine/comp/windows/bak2win && sudo chmod 755 win2bak bak2win
And then
mkdir /home/me/backup
This will back up the MBR(s):
cd /dev
for i in sd?
do
sudo dd if=${i} of=/home/me/backup/MBR_${i} bs=512 count=1
done
(Example backup command):
win2bak -c -p /dev/sda1 /home/me/backup/windows.bz2
Restoring would be like:
ak2win -c /home/me/backup/windows.bz2 /dev/sda1
But again, make sure the partition is already the right size. If necessary afterwards “grow” it.
To determine the size of your cylinders and your partition itself, look at
sudo fdisk -l /dev/sd?
Example:
Disk /dev/sda: 60.0 GB, 60040544256 bytes
255 heads, 63 sectors/track, 7299 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe96de96d
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4589 36861111 7 HPFS/NTFS
/dev/sda2 4590 7021 19531251 5 Extended
/dev/sda3 7021 7300 2238464 82 Linux swap / Solaris
/dev/sda5 4590 7021 19531250 83 Linux
Back Up Windows From Linux, Free and Simple
Martti Kuparinen was kind enough to share a script he has made for backing up the Windows partition as an image. Here is a link to his original site, which has clear instructions.
http://kuparinen.org/martti/comp/windows/backup.html
I highly advise that you follow his instructions on his web page.
I have downloaded and saved as an archive the scripts, win2bak and bak2win
and his instruction page along with some of my own notes
Here is the archive – win2bak-bak2win.tar.gz
I have not attempted to restore the image yet. ;-)
EDIT: This worked like a charm. I even was able to restore the image to a different sized partition like this:
First restore it to the SAME sized partition, in the same location on the drive, then enlarge that partition AFTER restoring! SWEET! And the restored system works great!
NOTES:
To install the script, do:
cd /usr/bin && sudo wget http://www.iki.fi/kuparine/comp/windows/win2bak && sudo wget http://www.iki.fi/kuparine/comp/windows/bak2win && sudo chmod 755 win2bak bak2win
And then
mkdir /home/me/backupThis will back up the MBR(s):
cd /dev
for i in sd?
do
sudo dd if=${i} of=/home/me/backup/MBR_${i} bs=512 count=1
done
(Example backup command):
win2bak -c -p /dev/sda1 /home/me/backup/windows.bz2
Restoring would be like:
ak2win -c /home/me/backup/windows.bz2 /dev/sda1
But again, make sure the partition is already the right size. If necessary afterwards “grow” it.
To determine the size of your cylinders and your partition itself, look at
sudo fdisk -l /dev/sd?Example:
Disk /dev/sda: 60.0 GB, 60040544256 bytes
255 heads, 63 sectors/track, 7299 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe96de96d
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4589 36861111 7 HPFS/NTFS
/dev/sda2 4590 7021 19531251 5 Extended
/dev/sda3 7021 7300 2238464 82 Linux swap / Solaris
/dev/sda5 4590 7021 19531250 83 Linux