Questions surrounding the creation and use of disk images (created via dd, ddrescue, or other means)
Questions tagged [disk-image]
265 questions
183
votes
10 answers
Mount single partition from image of entire disk (device)
I made an image of my entire disk with
dd if=/dev/sda of=/media/external_media/sda.img
Now the problem is I'd like to mount an ext4 filesystem that was on that disk but
mount -t ext4 -o loop /media/external_media/sda.img /media/sda_image
obviously…
Nicola Feltrin
- 1,853
34
votes
5 answers
"Re-size" the .img for smaller SD-card. How to SHRINK a bootable SD card image
Context
I have a 16 GB SD card with a Linux based OS for a Raspberry Pi.
Most of the space is empty.
I want to share the SD .img with other people but if I use the command
dd if=/dev/sdXX of=/home/user123/SD.img
it will create a 16 GB image. Too…
Leos313
- 2,064
28
votes
5 answers
How do I create a bit identical image of a usb stick?
I have a usb stick which is unreadable for some reason. I want to make an image of it for storage purposes so I can try to retrieve the data from the image at a later date.
How would I go about creating such a bit identical image of a usb…
oshirowanen
- 4,047
25
votes
3 answers
Mounting Disk Image in Raw format
While trying to mount a disk image in Raw(dd) format using the following command
mount nps-2010-emails.dd /media/manu/
I get the following error message
mount: you must specify the filesystem type
I know that using -t we can specify the file…
spaceman_spiff
- 373
25
votes
7 answers
How do I use an .img.xz file or get an .img file from it?
I have a file with an xz extension, ubuntu-19.10-preinstalled-server-arm64+raspi3.img.xz. How do you get the .img out of it?
My goal is to flash the file on an SD card. I want to use www.etcher.io I finally got it to work, but etcher will only…
BJsgoodlife
- 1,180
22
votes
2 answers
How to mount a compressed disk image?
If I make a disk image and compress it with gzip/xz/etc is there a way to mount it directly without first uncompressing it?
Say I've used
sudo dd if=/dev/sdc1 | gzip -9 > image1.dd.gz
how can I mount the original image, without creating an…
Xen2050
- 8,943
20
votes
5 answers
How would I extract a .img file
I am trying to extract a .img file (hard disk image with with Chromium OS on it). I have not been able to find any way to do this other than mounting it but that is not usable because it shows up as multiple drives so I cannot repack it.
TurboWafflz
- 321
14
votes
2 answers
Browse .img without mounting
Is there anyway to browse a .img file without mounting it? I have an .img file which I have generated from a clonezilla partition snapshot. I somehow have problems mounting the file with the command mount -o loop sda5.img /mnt/.
dmesg | tail shows…
Ahatius
- 2,137
13
votes
4 answers
What software can be used to create a restorable drive image?
Not sure what Linux software I would use for this. I'm looking for something like Acronis True Image for Windows, but for Linux. The rule is that we are keeping Windows out of the equation, I want to be able to rely solely on Ubuntu to handle the…
MetaGuru
- 1,258
11
votes
2 answers
Create blank disk image for file storage
Similar to the way Mac OS X users can create and mount blank .dmg files, add and remove files as much as they wish, and move that image wherever they want... as if it were a virtual USB drive.
Is there an equivalent for Ubuntu? I know that the "Disk…
Ulincsys
- 786
11
votes
3 answers
How to create an .img file from .iso on Ubuntu?
I would like to create an .img file containing Ubuntu 13.10. I know how to get the .iso, but instructions for how to 'convert' it to .img I only found under Mac (see, for example, here) -- however, I work on Ubuntu 13.10. Which are the steps…
mathlete
- 1,709
11
votes
3 answers
How can I make an Ubuntu recovery image on external media?
I am about to expand my Ubuntu partition, so I think I should make a backup of the current one in case something goes wrong.
Is there some software to make a bootable USB and recovery image?
eksponente
- 155
9
votes
3 answers
Create RAID array of image files
OK, so I've got three image files in /home/, and they each reside on different physical drives:
image1.img
image2.img
image3.img
Each image is the same size, and I want to put the images themselves into RAID0.
How should I go about RAIDing…
Daniel
- 3,626
- 3
- 24
- 46
9
votes
2 answers
Is there a way to edit a UDF disk image file/ISO image?
I have an ISO image with a UDF filesystem and a boot sector and I need to add a file to it. When I do
sudo mount -o loop,rw /tmp/file.iso /tmp/dir
I get
mount: block device /tmp/file.iso is write-protected, mounting read-only
This happens even if…
andlabs
- 503
9
votes
3 answers
How to extract initrd from ubuntu-20.04-live-server-amd64.iso
I am trying to update a process used to remaster the Ubuntu 18.04 install image for 20.04 and running into a problem with extracting the initrd archive.
The command used is cpio -id --no-absolute-filenames. When I use this same command to extract…
virullius
- 681