Re: Making Windows images from Linux



On Fri, 13 Mar 2009 17:48:58 -0700, Amaranth wrote:

Instead of forking out money to buy proprietary disk imaging tools to
restore Windows every now and then (cue Windows jibe), would it work
to just use Linux to copy a fresh Windows install out, to be copied
back (rm -rf Windows partition, cp -r fresh install) when things break
down or bloat up?

Use a tool called ntfsclone to backup individual Windows partitions which
are formatted ntfs. I described one common usage here:
http://groups.google.com/group/alt.os.linux.suse/msg/837b44f62c139745


I'm about to do this but don't want to find out several months down the
line that it won't work. How do I make a copy of the Master Boot Record?

You are correct to worry that the tools you select will work when you need
them. One way to take the guess work out of equation is to practice in
advance using them. Practice requires a system where mistakes will not
have drastic consequences (i.e. you must have good backups, etc.)
There's more to the problem than just copying the MBR; you probably want
the ability to restore a blank disk using backups and simple tools to
yield a bootable copy of the source disk. To do this you need backups
of all partitions and have the ability to setup the bootloader. There are
many ways to backup/restore. It doesn't lend itself to a "one size,
fits all" approach. Simple methods (say, dd) may suffice, but IME
understanding what you're doing pays dividends later on. It may take a
bit of research and reading to understand your options. I started by
reading the "Hard Disk Upgrade Mini-Howto." Here is a brief outline of the
approach and some background information.

First, the "job" of the MBR is two-fold:

1. It holds the primary partition tables, partitions 1-4.
2. It holds the bootloader code. I use the grub bootloader.

You need to know the rules for partition disks in the PC world. I
explained them here:
http://groups.google.com/group/comp.os.linux.misc/msg/d3544c061662cacf

There are tools which setup partitions, including fdisk and cfdisk. Setting
up the bootloader requires a little bit more understanding and practice,
but "practice makes perfect." As I said, I use the grub bootloader because
it is a very flexible bootloader. In dual boot situations with Windows, I
have found that the chainloader syntax works fine. This grub configuration
stanza works:

title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1

BTW, IME, Windows likes to be installed on the first partition.

To summarize, you'll need to understand the following:
1. The rules for partitioning disks.
2. The tools that you'll be using to backup and restore partition data.
3. The syntax and nomenclature used by the bootloader.

--
Douglas Mayne
.



Relevant Pages

  • Re: Disc Partitions
    ... I do) a Ghost backup of the C partition (the most likely to be corrupted, ... Start menu afterwards indicating that Windows knows its there. ... The main reason ... You should have at least two backups of both partitions. ...
    (microsoft.public.windowsxp.general)
  • Re: Can someone else help? Was changing partition size.
    ... with one hard drive, that Windows 98 does not list. ... My Computer still does not list the partition that has ... two hard drives. ... This should fix the boot sector on the C: drive and allow you to boot ...
    (microsoft.public.windowsxp.general)
  • Re: Why cant ext4 file systems be used as a boot partition?
    ... That said, there *is* an alternative, and that is to use LILO as the ... bootloader instead of GRUB. ... Since GRUB can boot e.g. Windows systems as well - isn't there a GRUB ... the active primary partition on the hard disk seen as the BIOS as being ...
    (comp.os.linux.setup)
  • Re: Booting Windows with a boot manager
    ... I have a hard disk with 1 primary partition ... First of all there is the Vista bootloader, ... Vista and a previous Windows version. ... Now I have installed Ubuntu on the same disk in a new partition. ...
    (microsoft.public.windows.file_system)
  • Re: Can someone else help? Was changing partition size.
    ... Windows 98 to boot up. ... My Computer still does not list the partition that has ... This should fix the boot sector on the C: drive and allow you to boot ...
    (microsoft.public.windowsxp.general)