Questions tagged [disk-image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
13
votes
2answers
3k views

How to convince tar (etc.) to archive block device contents?

I have six Linux logical volumes that together back a virtual machine. The VM is currently shutdown, so its easy to take consistent images of them. I'd like to pack all six images together in an ...
40
votes
4answers
101k views

How to mount a disk image from the command line?

I know how to mount a drive that has a corresponding device file in /dev, but I don't know how to do this for a disk image that does not represent a physical device and does not have an analogue in /...
2
votes
3answers
1k views

dd crashing - what to do about it

I have dd crashing after running a few hours. Typically with a message like Input/output error 68424+1 records in 68424+1 records out 342124883968 bytes (342 GB) copied, 5114.68 s, 66.9 MB/s Is ...
22
votes
2answers
12k views

Is it better to use cat, dd, pv or another procedure to copy a CD/DVD?

Background I'm copying some data CDs/DVDs to ISO files to use them later without the need of them in the drive. I'm looking on the Net for procedures and I found a lot: Use of cat to copy a medium: ...
12
votes
5answers
21k views

How to format a partition inside of an img file?

I created an img file via the following command: dd if=/dev/zero bs=2M count=200 > binary.img It's just a file with zeroes, but I can use it in fdisk and create a partition table: # fdisk binary....
20
votes
2answers
3k views

Zipped hard drive image very big

I just made an image of a freshly installed dual boot (Ubuntu and Windows) using this command (which I've been using for a while for smaller images): dd if=/dev/sda | gzip > /mnt/drive.img.gz On ...
12
votes
5answers
2k views

Is it safe to take the drive image of the current working drive?

I have to backup my hard disk. I want to use dd and put the image on an external hdd. Can I do this using dd from the OS that resides on the hdd itself or do I have to boot from another device, for ...
0
votes
1answer
64 views

Can the zerofree process be performed on SD-Card image file?

Ubuntu 16.04: A 64GB SD-Card image was created with the command: date; sudo sh -c 'pv /dev/mmcblk0 >rpi4_Ubuntu18.1_64GB.image'; date The rasbperry pi SD-Card is outfitted with Ubuntu 18.1 Can a ...
4
votes
1answer
3k views

How can I extract files from a disk image without mounting it?

Say I have a disk image (possibly partitioned) that I have permission to read. However, I don't have permission to mount it via loopback*. In theory, the data is all there; I could write code that ...
4
votes
0answers
994 views

bootable live usb doesn't boot, KNOPPIX

I have been trying to make a bootable live USB of KNOPPIX. I downloaded the .iso image, checked the sha1sum with the one that was given and it was all correct. Then tried both the options, using cp as ...
4
votes
2answers
2k views

How to verify that rsync copied the device correctly when copy-devices is enabled?

This is an extension to Why rsync attempts to copy file that is already up-to-date? I'm attempting to use the --copy-devices patch to rsync to copy an entire disk drive and store it as an image on ...
4
votes
1answer
1k views

Is `UDIF read/write image` bootable on non-Apple hardware?

Some guides on the internet suggest that it is possible to convert ISO disc image files (.iso) into an non-.iso image format (.img or .dmg) with hdiutil on OS X. However, the manual page for hdiutil ...
2
votes
1answer
8k views

What is mintstick.py and how to install it?

In Linux Mint, unlike in Ubuntu, I see two separate launchers to handle USB sticks, one only for formatting, the other for writing image files to the USB stick. In the task manager I see in fact ...
2
votes
1answer
144 views

preparing a usb drive to be bootable

Are there any written or un-written rules before copying an image file to a usb-drive ? If yes, what (if any) are such rules ? For instance, should there be partitions in the usb-drive or is it ok ...
1
vote
1answer
7k views

Can't mount disk image

I have a disk image file I'm trying to mount locally using a loop device. Using parted I can see the image has two partitions, however, I'm not able to mount the first partition and losetup thinks the ...
1
vote
3answers
3k views

How to correctly restore system partition (iso image) with 'Disks'

I have been able to backup and restore a Linux Mint system partition with 'Disks' (command to run: gnome-disks; package to install: gnome-disk-utility) from a live session, but I am not sure that was ...
0
votes
2answers
2k views

How can an image file be created for a directory?

How can an image file be created for a directory? For example: https://unix.stackexchange.com/a/90794/674 shows that genisoimage can create an iso image file for a directory. I only know that an ...
0
votes
1answer
475 views

How to copy/burn a loop device image to a partition?

I'm building a rootfs for a embedded device. I start by making an empty loopback file system, then mount it, and add files to it. When I finish, I end up with a file system image. Then I can burn ...
-3
votes
1answer
83 views

What can an image file be created to mirror? [closed]

https://unix.stackexchange.com/a/278966/674 An image file is a copy of the data on a block device, in the form of a file (on another filesystem). Image files can have any extension; .img is common. ...