I have a question concerning the creation of an drive image with dd.
Normally i would simply type: "dd if=/dev/foo of=/dev/bar". But in this case i only have a fat32 formatted drive at hand, which should be used for the output. Fat32 only allows files up to 2GB (Or was that 4GB?). Anyway the image would be too big.
My question is, is it possible to create the image in a bunch of smaller files? And how would one restore the splitted image? I'm really not good at bash commands and would be happy for any suggestions. By the way, is there a good book concerning shell scripts, or are there some good tutorials you would recommend?
how about
http://michi-bs.blogspot.com/2008/06/hdd-or-partition-backup-with-dd.html
You cannot create a file greater than 4GiB (2^32-1 bytes) on FAT32 partition, period. So if you want to use that image file with some VM software, you are probably out of luck, as I known no VMs which can work around limitations of braindead filesystems.
But if you are just trying to store the image there temporarily, you can create it with
dd
by 4GiB chunks, or split an existing one with a command like this:Note that I've used 4095M and not 4096M/4G, as the maximal size of file is one byte less.
This is a guide I learned bash with. (And manpages for everything other, of course. Bash manpage looks like it was deliberately obfuscated.)
Look into using the 'split' command to split the files. I'm not sure if you are writing directly to the device (dd if=/dev/foo of=/dev/bar) or writing to an image on a mounted filesystem.
My advice here would be to use gparted or similar partitioning or disk management software to resize the fat32 partition and create the space freed up as an ext2 or ntfs formatted partition. Get the best of both worlds.
If the drive is empty ... reformat that drive to ext3! Unless you have other plans, just my 2pence