Questions tagged [disk-image]

Questions surrounding the creation and use of disk images (created via dd, ddrescue, or other means)

253 questions
168
votes
9 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,703
  • 3
  • 11
  • 14
28
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
  • 1,826
  • 3
  • 18
  • 31
26
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
  • 3,937
  • 23
  • 76
  • 104
19
votes
6 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,120
  • 5
  • 30
  • 58
18
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
  • 303
  • 1
  • 3
  • 7
17
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
  • 191
  • 1
  • 1
  • 5
17
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,588
  • 4
  • 32
  • 51
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,238
  • 2
  • 12
  • 17
13
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,077
  • 6
  • 24
  • 25
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
  • 4
  • 13
  • 30
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…
Marius Hofert
  • 1,619
  • 4
  • 21
  • 33
10
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
  • 145
  • 1
  • 1
  • 7
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,400
  • 2
  • 22
  • 43
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
  • 473
  • 1
  • 5
  • 14
7
votes
5 answers

How to install snappy Ubuntu 15.04 Core images on a PC

Can you please help with some instructions on how to install Snappy Ubuntu core on an AMD64 PC? I can find the image at this URL. But I've not been successful installing booting it of an USB and installing it. I can't find a way to this type of…
dt1b3r10
  • 71
  • 1
  • 1
  • 2
1
2 3
16 17