tag: dd

Making an ISO from CD/DVD on Linux

21 Jul, 2012 - 1 minutes
To create an ISO file from a physical DVD/CD/Floppy/USB/Anything. Use the command ‘dd’ this creates a bit for bit copy of the original file/partition/device. dd takes two parameters these are if - input file and of - output file. In this case the input file will be the CD and the output file will be the ISO. dd if=/dev/sr0 of=/home/osaka/cd.iso My optical drive is located at /dev/sr0. I found this out my automaticly mounting the disk and using mount to view all mounted devices.

Clone a Harddrive Linux

4 Mar, 2012 - 1 minutes
Using dd you can make a bit for bit clone of a harddrive/partition. dd takes two parameters. if, the source and of, the destination. dd if=/dev/sda of=~/backup.img This will make a copy of the entire disk, if you were to put sda1 you’d get the first partition. Make sure to only run these commands when there is no activitiy on the disk. If you are using LVM you can make a snapshot of the data and run it against that.