Other Backing up a device which lots of free space

Windows XP will generally not boot anyway when you change the PC too much or use a different one.

To make compression of the disk image more effective you should write a large file of zeros to fill up the filesystem, then unlink it.

You should have given us these details earlier, we couldn't guess what you were trying to do.
 
Its a disk with an installation of Windows XP which I'd like to keep a backup copy of in case I need again at some time so I don't have to go through the pain of installing it again.
I never used this approach, but it can be useful:
* execute on Windows XP (if you can boot it) sdelete -z C:. The name is scaring, but it fill with zero only the unused sectors of your disk. But double-check. Do not use "-c" because it puts random byte. If the file system is highly fragmented, maybe defragment it using the Windows XP utilities.
* then on FreeBSD, dd -conv=sparse will "compress" the zero bytes into a sparse file.
* also without using the sparse file on the dd side, gzip can compress the sequence of zero bytes. The same for every compressed VM image format.

To be honest, I will do all these operations inside a VM running Windows XP, working on a first version of your disk image, without touching directly the original disk. I don't know if bhyve is good enough, because it has problems with old BIOS boot process. It requires UEFI.
 
You don't need the backup file to be sparse if you compress it.

Instead of compressing disk backup files I store them uncompressed on a ZFS with compression and dedup enabled. That gives huge savings with incremental new backups of the same install that you can't get with compressed files.
 
I'm in the process of trying to get working via PXE, but can't get an NFS mount set up properly.

Rather I think I did about ten years ago, but I'm trying to create a script so that I can automatically back up any disk I attach to my PXE client machine.

When I drop into the shell in Clonezilla (based on Debian) I try to mount the NFS share but get this error which means nothing to me:-

mount.nfs: failed to apply fstab options


I just found this link which I will try to comprehend:-


Looks like I need to sudo su before I run the mount command.
 
Note to self when I was grappling with a similar situation/

 
Balanga likes to make guessing games. He is just like that.
Posting his configs , his partitions , his filesystems , or even his type of bootrecord is not for him. Certainly not the commands he entered on the keyboard & the results it gave. Mostly it's , it does not work. :)
 
Balanga likes to make guessing games. He is just like that.
Posting his configs , his partitions , his filesystems , or even his type of bootrecord is not for him. Certainly not the commands he entered on the keyboard & the results it gave. Mostly it's , it does not work. :)
balanga is a joy: at least in the end he answers. Few of mine clients were so reluctant to answer questions about the specification details that I seriously considered hiring a torturer just to extract meaningful information.
:)
 
Back
Top