Ask Slashdot: Create Custom Recovery Partitions With FOSS?
First time accepted submitter KowboyKrash writes "OK, a little background: I use Acronis to create custom recovery partitions for my personal computers that include all my software and drivers. I also work for a growing computer repair shop which has ventured into eBay sales of refurbished computers. We receive the machines with wiped hard drives. Since we get multiples of each model, we load everything on one then make images with Clonezilla. It would be nice to set up recovery partitions as well. Acronis is out of the question, since it would cost for a license for each machine. Do any Slashdotters know of any FOSS options?"
dd
Give me Classic Slashdot or give me death!
partimage
http://www.partimage.org/Main_Page
I haven't used it since probably 2005 or so, but it used to work quite well over the network.
"Science flies us to the moon. Religion flies us into buildings." - Victor Stenger
1. Rig a minimal Linux installation on another partition. 2. Make it auto-login and launch a bash script which will: a. Give you a warning message b. Launch Clonezilla automatically, somehow pre-configured to re-image in the right place
If you are doing windows boxes and you are already paying for new Windows OEM / System Builder licenses, I'm pretty sure it's legal for you to use WinPE or a similar tool to install a recovery partition. If you're using pre-existing Windows licenses on the boxes, it might still be legal.
But the easiest option may be to ship the clonezilla image you are already using with a bootable clonezilla partition. Basically instead of installing clonezilla to a flash drive or a DVD, put it on the recovery partition. Put some scripting in the clonezilla partition to configure the clonezilla settings so that it is setup to restore the image to the main OS partition as the default action. This would work for Windows or Linux.
We are the 198 proof..
Comment removed based on user account deletion
Comment removed based on user account deletion
Software fuckup is more common than disk failure. That's why recovery partitions are convenient. They also minimize support costs.
your thin skin doesn't make me a troll
I do this on my machines at home. Use ntfsclone and gzip to create compressed image files on a bootable linux partition. You can then create some custom scripts to ask for permission then restore the image automatically.
Look into the Windows ImageX utility, and make sure to *sysprep* your machines.
dd is your primary tool.
zero out your drive so that when you compress it, you get a very small image.
dd if=/dev/zero of=[drive]
Install and configure your OS onto [drive]
dd if=/dev/[drive] | gzip -c > zipped_drive_image.bin.gz
to restore:
gzcat zipped_drive_image.bin.gz | dd of=[drive]
I may be a bit rusty, so the commands may need slight work. I've definitely used this method though, and it has worked well.
The following thread has a guide on how to create a Windows 7 recovery partition:
http://forums.mydigitallife.info/threads/21978-Windows-7-OEM-Recovery-Partition-tools-creator-Free
While it looks like most people here didn't even read the requirements before they posted ( typical these days ) i did, and i think for the best 'customer expirence' you are best off sending a DVD along with it and not screw with a partition.
it gives them a way to come back from a *dead* drive ( the most likely scenario ) and it gives them something to hold in their hands that will if nothing else make them feel like you care.
Disks are cheap, eat a few pennies in the name of customer service...
---- Booth was a patriot ----
1) dd mbr + data on disk
2) sfdisk partition data, then use xfsdump/xfsrestore to recreate the partition data on disk
Both of those have the advantage of being easily scriptable, and a disadvantage of being fairly dificult to deal with variable disk sizes without doing quite a bit more work.
You could also look at partimage which may be more what you had in mind - http://www.partimage.org/Main_Page
dd's a poor solution; if it hits a bad block on the drive, the default is the fail. Your best bet is to use a program that recreates the partition, formats it, and copies the data in place like partimage or ghost. Bonus points for not having to copy unused space ( even if you zero the drive first like some suggested, you'll have gigs of wasted space from deleted installation files). Worst case scenario, use ddrescue instead of dd since ddrescue is a little more verbose and has easier options for skipping bad blocks.