FunkY
14-08-11, 00:58
Little project I'm working on involves running Ubuntu off a 4GB thumb drive, which in itself is a doddle... No problems there.
Logged in as root, using the command:
dd if=/dev/sda of=/dev/sdb bs=4096 I can clone disk 1 (sda) to disk 2 (sdb).
This is easy for a couple of drives, but what if I have a job lot to do? 50 or 100? I can't just copy the image of the drive over for some reason, they not bootable once done.
Doing one at a time is time consuming and boring, I need to be able to produce something like 20 an hour/bunches of 5s, then I only waste a couple of hours every month doing it... So I thought I'd try and be clever...
dd if=/dev/sda of=/dev/sdb of=/dev/sdc of=/dev/sdd of=/dev/sde of=/dev/sdf bs=4096Looks like it's doing it, but once it's complete only disk 2 has picked up the image.
dd if=/dev/sda of=/dev/sdb bs=4096 if=/dev/sda of=/dev/sdc bs=4096 if=/dev/sda of=/dev/sdd bs=4096 if=/dev/sda of=/dev/sde bs=4096Almost the same problem, looks like it's doing it but this time none of the disks pick up the image...
Is there a better way of doing this? An easier way? Have I just missed a step that's stopping it from writing to 5 drives at once?
Logged in as root, using the command:
dd if=/dev/sda of=/dev/sdb bs=4096 I can clone disk 1 (sda) to disk 2 (sdb).
This is easy for a couple of drives, but what if I have a job lot to do? 50 or 100? I can't just copy the image of the drive over for some reason, they not bootable once done.
Doing one at a time is time consuming and boring, I need to be able to produce something like 20 an hour/bunches of 5s, then I only waste a couple of hours every month doing it... So I thought I'd try and be clever...
dd if=/dev/sda of=/dev/sdb of=/dev/sdc of=/dev/sdd of=/dev/sde of=/dev/sdf bs=4096Looks like it's doing it, but once it's complete only disk 2 has picked up the image.
dd if=/dev/sda of=/dev/sdb bs=4096 if=/dev/sda of=/dev/sdc bs=4096 if=/dev/sda of=/dev/sdd bs=4096 if=/dev/sda of=/dev/sde bs=4096Almost the same problem, looks like it's doing it but this time none of the disks pick up the image...
Is there a better way of doing this? An easier way? Have I just missed a step that's stopping it from writing to 5 drives at once?