The file /etc/fstab contains the information about the mounted systems. The system reads this configuration at start-up to mount the required partitions on to the file system. An example of this file is shown below:


As you can see, this file has all the information about the mounted partitions. Now, you can take a separate backup of any of these partitions. For example,

linux # dd if=/dev/sda1 of=/dev/sda2

This command will backup the /dev/sda1 to /dev/sda2. To backup the partition layout only, use ‘sfdisk’ command as follows:

linux # sfdisk -d /dev/sda > partition.txt

The backup file ‘partition.txt’ looks like this:


To restore the partition data, use the following command:

linux # sfdisk /dev/sda < partition.txt

Adnan Khurshid

Adnan Khurshid, the author of this article, has been working in a telecommunication sector since 2007. He has worked there as a VAS (Value Added Services) engineer and has excelled remarkably in the field. Working in this field has been his passion and he has always made efforts to keep himself up to date. Find more about him on LinkedIn

More Posts

Tags: , ,

1 Comment on How to backup the critical partition data in Linux servers

  1. hello!,I like your writing so much! share we communicate more about your post on AOL? I require a specialist on this area to solve my problem.May be that’s you! Looking forward to see you.

Leave a Reply