From the course: Linux Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Mounting and writing disk images with dd

Mounting and writing disk images with dd - Linux Tutorial

From the course: Linux Tips

Mounting and writing disk images with dd

- [Instructor] When we have a disk image file we can mount it and work with it just the same as a real disk. I'll create a mount point here. To mount an image of a single partition, I'll write mount -o loop and provide the file that's an image of a partition and then a mounting point, then the file system of that partition would be available inside my mounting point. Mounting an image of a full disk takes a little bit of extra work though, because mounting a file system only works with a file system, not a whole drive with many partitions. So we need to tell the mount command where to look in a full disk file for a file system that we can mount. This gets a little tricky because there's math involved. To see where the partitions live within the image, I'll run fdisk fulldisk.img which in this case is my full disk image. Then we'll type the letter p to print the partition table. There's you may see partitions.…

Contents