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-comb ined.dd
Thanks!
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-comb
Thanks!
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Any comments?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
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.
ASKER
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-comb
I pulled the cat command from the internet somewhere, is the * the correct syntax?