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 - 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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Planning a home server6m 11s
-
Backups with rsync6m 18s
-
Linux on an old PC6m 7s
-
Creating a disk image with dd3m 54s
-
Mounting and writing disk images with dd7m 1s
-
Migrating to a new distro4m 33s
-
Planning a portable bootable disk3m 12s
-
Creating a portable bootable disk5m 30s
-
Host your own Apache web server5m 32s
-
Set up Let’s Encrypt on a web server5m 3s
-
Host a personal cloud with Nextcloud4m 50s
-
Hosting email services3m 7s
-
Set up a print server with CUPS6m 5s
-
Create a network PDF printer4m 37s
-
Remote logging with Rsyslog7m 12s
-
Set up a Git server4m 15s
-
NGINX web server4m 11s
-
Share files with a Samba server3m 35s
-
Set up an NFS server3m 58s
-
Monitoring your server2m 49s
-
Exploring Internet Relay Chat (IRC)6m 6s
-
Keep on learning!35s
-