Hi guys,
I have a HD and I want to use DD to make an image of it. My image location is formatted with Fat32. I understand there are file size limits on this. I currently have the command below
dd if=/dev/hdc1 of=image.bin.01 conv=notrunc,noerror,sync count=3000000 skip=0
....
dd if=/dev/hdc1 of=image.bin.07 conv=notrunc,noerror,sync count=3000000 skip=1500000
I then have to update this command every time until I completely image the HD.
Is there any way to automate this so that I get multiple image files all with a unique filename?
Ronan
Not sure what the command would be to automate the process, but I know with Helix you can specify to split the image so you don't exceed the FAT32 4gb file size limitation.
Check out page 30.
http//
Maybe there is a clue in the command line there that will help you.
Derrick
Hi guys,
I have a HD and I want to use DD to make an image of it. My image location is formatted with Fat32. I understand there are file size limits on this.
…
Is there any way to automate this so that I get multiple image files all with a unique filename?
Ronan
Pipe dd output to split
dd if=/dev/hdc conv=notrunc,noerror,sync | split -d -b 2000m - image.bin.split.
Drop the "of=" since you are sending the output through the pipe to split. "-d" indicates decimal extension (*.00, *.01, etc.), the "-b 2000m" makes 2GB splits, the lone "-" signifies to get your input from the pipe, and the output file name ends in a dot to allow the extension to be separated.
Also note that the command in your original post specifies "/dev/hdc1" which is not the whole disk, just the first partition.
See page 79 of http//
Please note I'm not suggesting this doc is better than the helix doc…it just serves a different purpose - hands on exercises and step by step directions on specific linux tools. The exercise files are available on the website.
Farmer/Grundy,
Cheers for your help, they're both what I'm looking for!
Off to play about with them now,
Ronan


