Link to home
Create AccountLog in
Avatar of finallydidit99
finallydidit99

asked on

DD 4G size files

I am trying to dd a drive tha is 73GB to a fat32 external USB drive. Unfortunately, I am forced to use fat32 and must split the image files into <4GB files. Can you provide syntax on creating the drive image files and also for combining them into a single file that willl be placed on an ext3 partition later?
I know there are other options such flash archive, etc, but I'm limited to using a single usb drive for making the transfer of the dd image from the usb drive to another system. The file needs to be a single dd file on the other system.
Examples:
On Sun system with FAT32 USB drive mounted:
dd if=/dev/rdsk/c0t0d0s2 of=/mnt/usb/imagefile.dd bs=4096

On separate system with ext3 filesystem, I want to combine the file:
cat /mnt/usb/imagefile.dd.* | dd of=/mnt/usb/imagefile-combined.dd

Thanks!
SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of finallydidit99
finallydidit99

ASKER

I think both of you have good ideas. I don't really understand how to keep track of the count number mzalfres. I think split does that automatically with the -d option.
 
Please help me with the syntax--

dd if=/dev/rdsk/c0t0d0s2 | split -d -b 4096m - of=/mnt/usb/imagefile.dd bs=4096
--this doesn't seem to work- i think there's something with the syntax

And then to put the files back together,
cat /mnt/usb/imagefile.dd.* | dd of=/mnt/usb/imagefile-combined.dd
I pulled the cat command from the internet somewhere, is the * the correct syntax?
Any comments?
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Thanks for the input. The final answer was a good solution  since it contained the syntax. I actually used different syntax, but thanks to everyone for your help.