
$ sudo dd if=/dev/fd0 of=~/floppy.img Copy/Backup CDROMĪnother device popular used in Linux servers is CDROM. In this example we assume the floppy device is named as fd0 and we will copy into ~/ home directory as floppy.img with the following command. Actually creating a floppy image is the same as disk image because all of the sources are same type. Event operation system was installed from Floppies and backing up them were important. Once a time floppy images were very popular in IT. $ sudo dd if=/dev/vda of=/mnt/backup/sda.img Create Floppy Image Other or destination disk can be an NFS, DAS, NAS, SAN etc. In this example we will create disk image as a file named sda.img into folder /mnt/backup/ which is mounted from other disk. We can write copied disk image as a file into another disk. In most situations we generally use disk images for backup creation. In previous examples we have copied the whole disk image into another disk. $ sudo dd bs=5M if=/dev/vda of=/dev/sda Create Hard Disk Image $ sudo dd if=/dev/vda of=/dev/sdaĬopying operation duration can be changed according to write performance of the destination disk and read performance of source disk. Before starting backup or copy operations be sure that sda size is bigger than vda . In this example we will create backup of vda to the disk sda . This operations also called as clone because a single is copied as a whole into another disk without a modification. So in order to use dd we will provide exact disk and partition file names. These disks and partitions are provided in /dev/ path. Linux fdisk Tutorial With Examples Copy/Backup Entire Hard DiskĪs we know Linux operating system provides raw access to the disk and partitions. You can find fdisk command tutorial below. While providing disk and partitions parameters use fdisk command to get disks path.

Warningįirst of all dd command is low level command and use cautiously. In this tutorial we will look dd command or tool which can do low level raw disk operations. Simply it has a lot of low level applications those helps system administrators. One part of the Linux operating system is low level. Other backup tools provides more file system level backup operation. Some tools provides user level backup operation like copying or sync files.

Without backups a system is not safe and also the system administrator position too 🙂. Backup is important part of the Linux system administration.
