Súbor: [Platon] / scripts / shell / Windows-backup / README (stiahnutie)
Revízia 1.2, Tue Mar 16 19:51:05 2004 UTC (21 years, 3 months ago) by rajo
Zmeny od 1.1: +1 -1
[lines]
Changed email address from <8host AT pauli.fmph.uniba.sk> to <rajo AT platon.sk>
|
These scripts can be used for creating and restoring Windows backup. Please be
VERY CAREFULL if you try it. Note, that you must customize these scripts
before using. I don't make something like "configuration file", because
settings are *very* volatile. If you specify bad $RESTORE_PARTITION, you can
damage your system! I hope you undestand.
File description:
WindowsBackup.sh - create Windows image backup
RestoreWindows.sh - read backup from CD-ROM and write it to partition.
Used as "init" if booting linux for Windows
"reinstallation"
"Windows image backup" = image of partition, where you have installed Windows
Here are some hints, if you will create Windows image backup manualy:
- install Windows (Win95/98/2000/XP or other)
- install antivirus software
- install all software you need
- test your software with antivir
- configure your software
- arange your Desktop icons ;)
- customize "Start" menu
- defragment your disk
- boot to Linux
- create file on that partition containing only zeros and delete them (unused
blocks in filesystems will then contain only '\0', which is very good for
compresion ;)
dd if=/dev/zero of=/mnt/win_c/zero
rm -f /mnt/win_c/zero
- unmount partition (you must prevent filesystem change during create image!)
umount /mnt/win_c
- create partition image. The best way is also comress it:
dd if=/dev/hda1 | bzip2 -c -f --best > /mnt/win_d/Windows-Image-03-01-24.img.bz2
- I also create list of files on partition and md5sums.
- mount partition back
Reinstallation of windows is simple (DON'T TRY THIS COMMAND, IF YOU DON'T
KNOW, WHAT YOU ARE DOING !! You can damage your system.):
bunzip2 -c -f /mnt/win_d/Windows-Image-03-01-24.img.bz2 | dd of=/dev/hda1
- Enjoy! ;)
Lubomir Host 'rajo' <rajo AT platon.sk>
Platon Group <platon@platon.sk> http://platon.sk/
|