Hi All
I have a stack of zip discs that I need to image as part of my work. As there are about sixty of them I thought I would have a go at a script that would automate most of the job. So far I have got this: #/bin/bash #// Mount Device Read Only mount –o ro,noexec /dev/sda /mnt/zip #// Image Device dcfldd if=/dev/sda of=/home/stu/images/27-2007/27-2007-C1.dd bs=4096 conv=notrunc,noerror #// Unmount Original Device umount /mnt/zip #//Prompt User to Insert Next Disc I have tested this on a test disc and it works. What I would like to add is two things: 1) In this entry “dcfldd if=/dev/sda of=/home/stu/images/27-2007/27-2007-C1.dd bs=4096 conv=notrunc,noerror” the file 27-2007-C1.dd is created on the fly in the folder 27-2007. How can I get the system to increment this file by one each time. For example if 27-2007-C1.dd is present then create 27-2007-C2.dd and so on. 2) As the final entry suggests, I would like to prompt the user to insert the next disc and run the script again. How would I do that? Can anyone help me out? Cheers Stu -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.7/710 - Release Date: 04/03/2007 13:58
_______________________________________________ Peterboro mailing list [email protected] https://mailman.lug.org.uk/mailman/listinfo/peterboro
