Burning and converting

Posted on Updated on

Burnig and Creating images,copies …..

creating an iso image of afile

1. mkisofs -J -v -o zend.iso /home/installation/Zend-Studio-5.5/
2. dd if=/dev/hdx of=/dev/hdy
3. dd if=/dev/hdx of=/path/to/image
4. dd if=/dev/hdx | gzip > /path/to/image.gz

and Related topics

# dd –help

For more options check dd man page

full hard disk copy

dd if=/dev/hdx of=/dev/hdy
dd if=/dev/hdx of=/path/to/image
dd if=/dev/hdx | gzip > /path/to/image.gz

Hdx could be hda, hdb etc. In the second example gzip is used to compress the image if it is really just a backup.

Restore Backup of hard disk copy

dd if=/path/to/image of=/dev/hdx

gzip -dc /path/to/image.gz | dd of=/dev/hdx

MBR backup

In order to backup only the first few bytes containing the MBR and the partition table you can use dd as well.

dd if=/dev/hdx of=/path/to/image count=1 bs=512

MBR restore

dd if=/path/to/image of=/dev/hdx

Add “count=1 bs=446” to exclude the partition table from being written to disk. You can manually restore the table.

Linux / Unix Command: dd
Command Library
NAME
dd – convert and copy a file
SYNOPSIS
dd [OPTION]…
DESCRIPTION

Copy a file, converting and formatting according to the options.

bs=BYTES
force ibs=BYTES and obs=BYTES
cbs=BYTES
convert BYTES bytes at a time
conv=KEYWORDS
convert the file as per the comma separated keyword list
count=BLOCKS
copy only BLOCKS input blocks
ibs=BYTES
read BYTES bytes at a time
if=FILE
read from FILE instead of stdin
obs=BYTES
write BYTES bytes at a time
of=FILE
write to FILE instead of stdout
seek=BLOCKS
skip BLOCKS obs-sized blocks at start of output
skip=BLOCKS
skip BLOCKS ibs-sized blocks at start of input
–help
display this help and exit
–version
output version information and exit

Burning Audio CDs using cdrecord

Burning audio CDs using cdrecord is a piece of cake, too. Just follow these steps:

  1. Create your audio tracks and store them as uncompressed, 16-bit stereo .wav files.
  2. Name the audio files in a manner that will cause them to be listed in the desired track order when listed alphabetically, such as 01.wav, 02.wav, 03.wav, etc.
  3. Change into the directory containing the wave files and make sure there are not any wave files you do not want included in the CD.
  4. With a blank CD in your burner, issue the following command:

    cdrecord -v -pad speed=1 dev=0,0,0 -dao -audio -swab *.wav

    Again, you may need to adjust your dev parameter as mentioned earlier.

Writing an ISO to a CD-ROM using cdrecord

Assuming that all you want to do is create a CD based on the ISO 9660 file system standard, you can quickly burn the CD using the following command:

cdrecord -v dev=2,0,0 speed=16 -data /home/ubuntu.iso

src.iso is the source filename of the ISO you are burning to the CD-ROM.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s