{"id":2570,"date":"2023-03-22T17:03:41","date_gmt":"2023-03-22T11:33:41","guid":{"rendered":"https:\/\/smarttech101.com\/?p=2570"},"modified":"2023-03-22T17:16:16","modified_gmt":"2023-03-22T11:46:16","slug":"how-to-create-and-use-virtual-hard-disk-in-linux","status":"publish","type":"post","link":"https:\/\/smarttech101.com\/how-to-create-and-use-virtual-hard-disk-in-linux\/","title":{"rendered":"How to Create and Use Virtual Hard Disk in Linux"},"content":{"rendered":"\n

Virtual Hard Disk (VHD) is a file that behaves like a physical Hard Disk. Like Hard Disk, it can be mounted to a computer. Like Hard Disk, it can be formatted with any file system. For example, you can have an EXT4 VHD on an NTFS-formatted Hard Disk.<\/p>\n\n\n\n

There are many applications for Virtual Hard Disks. Personally, I use it for backing up my linux device<\/a> in an NTFS partition. As you might already know, unlike ext4, NTFS cannot store all of a file’s metadata (ex – permissions, execution bits, timestamps, etc.). So, I have created a VHD formatted with EXT4 inside an NTFS partition. For some reason, I cannot reformat my NTFS partition with ext4 because I don’t want to lose my data and at the same time, I also want to mount that with my Windows OS. Now, I use this Virtual Hard Disk to backup my Linux device without losing any metadata.<\/p>\n\n\n\n

In this article, I will talk about how to create it and how you can mount that manually and automatically during the system boot.<\/p>\n\n\n\n

Table of Contents<\/h2>\n\n\n\n