# dd if=/dev/sda of=/dev/hda
Here "if" represents input HDD and "of" represents output HDD. So make sure make the entry properly because it might lead you to complete loss of data.
If you receive any error running the above command then try the following command
# dd if=/dev/sda of=/dev/hda conv=noerror,sync
Using this, the command will continue to copy even if gets any read error.
But this is not much appropriate to copy the harddisk files to remote locations so I prefer making an image file of the harddisk and restoring the same to a remote location.
# dd if=/dev/sda of=/backup/hdd_1.img
Restoring from a image file
# dd if=hdd_1.img of=/dev/hda
Converting CD-ROM into .iso file
Here we are specifying the default block size i.e.2048 bytes which will be used to convert the cdrom file into .iso file
Follow the below links for more tutorials:
Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
How to configure Samba 4 Secondary Domain Controller
How to secure Apache web server in Linux using password (.htaccess)
How to register Red Hat Linux with RHN (Red Hat Network )
Red hat Enterprise Linux 5.5 Installation Guide (Screenshots)
15 tips to enhance security of your Linux machine
Why is Linux more secure than windows and any other OS
What is the difference between "su" and "su -" in Linux?
What is kernel-PAE in Linux?
What is swappiness and how do we change its value?
How to log iptables messages in different log file
What are the s and k scripts in the etc rcx.d directories
How to check all the currently running services in Linux
How to auto start service after reboot in Linux
What is virtual memory, paging and swap space?