Make an exact duplicate of a NTFS filesystem partition under Linux

Q. How do I make an exact duplicate of a partition using Linux? I have brought a new hard disk and I would like make an exact duplicate of a NTFS filesystem located at /dev/hda1 to /dev/hdb1.

ADVERTISEMENTS

A. You can copy a file, converting and formatting using a dd command. Use same tool to make an exact copy of NTFS filesystem partition under Linux.

First make sure you have created /dev/hdb1 using Linux fdisk program. /dev/hdb1 partitions must be the exact same size of /dev/hda1 so that you create a direct raw copy of source.

Use fdisk -l command to view current /dev/hda1 partition size (cylinders).
# fdisk -l

Now use dd command as follows:
# dd if=/dev/hda1 of=/dev/hdb1

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
1 comment… add one
  • Chris Feb 7, 2007 @ 6:20

    Remember that the first sector in an NTFS partition has a copy of the “special hidden sectors” – so if you’re thinking os “starting” your copied partition on a different cylinder to the original, you’ll need to modify this too.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.