How to create an ISO disk image of a CD or DVD from command line

On October 11, 2009, in DD, iso images, by Dipin Krishna

The attempt to copy the entire disk image using cp may omit the final block if it is an unexpected length; dd will always complete the copy if possible.We can use the dd command to create an ISO disk image of a CD or DVD. dd if=/dev/cdrom of=/home/dipin/mydisk.iso bs=2048 conv=sync,notrunc change /dev/cdrom and /home/dipin/mydisk.iso as […]


Duplicate one hard disk partition to another hard disk

On October 9, 2009, in DD, duplicate, by Dipin Krishna

Using dd to duplicate one hard disk partition to another hard disk: dd if=/dev/sda2 of=/dev/sdb2 bs=4096 conv=notrunc,noerror Replace /dev/sda2 and /dev/sdb2 with your partitios.Note that notrunc means do not truncate the output file. Noerror means to keep going if there is an error. ————————————————————————— The GNU/Linux Advanced Administration: In this ebook “The GNU/Linux Operating System”, […]


How to create a custom linux file system within another

On July 5, 2009, in custom, DD, filesystem, linux, mnt, touch, by Dipin Krishna

With the power bestowed upon us, we can create a Linux file system in a file. Humanly speaking, we can create a file containing specific file system and mount it as if it were a partition of a hard drive.To do this, we must first create the file: touch filename Then run the dd command […]


HOWTO mount ISO and DD Image Files

On November 19, 2008, in DD, Howto, Image Files, ISO, mount, by Dipin Krishna

Occasionally, I’ll download an image file and want to see what is on it, or make a few changes to it before burning it to CD. The image file (dd, iso, etc) can be mounted using the loop device. You will need to know the type of filesystem the image uses. Most Linux/Unix-based OS’s have […]