Questions tagged [disk-image]

The tag has no usage guidance.

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

How to mount/convert a raw CD-ROM image (.img)

I got a raw .img image from the Internet Archive and I would like to mount it on my Linux, or at least convert it to an ISO file. This image works fine under Windows, when using e.g. MagicDisk to ...
1
vote
0answers
26 views

Kali Linux image checksum is not valid and fails on boot

Hello World. Don't know if this is the best place to post this, so if it's off-topic, please let me know. I've got a raspberry pi 4 model B, and I want to install Kali Linux on it. I've also got a ...
2
votes
0answers
24 views

Mdadm Raid6 Re(assemble|build|create) from 6x disk images of original array

I have 6 1TB drives from several years ago. There was a problem with the Seagate drives's microcode, so I updated it. Unfortunately, this reset the UUID of two drives and the RAID6 array was broken....
1
vote
2answers
157 views

Raw disk image from VDI file can be mounted using qemu-nbd but not loop device?

I installed a very old Slack version (3.2) on VirtualBox and then converted it to RAW format (ext2). However, for some reason I'm unable to mount it using losetup but qemu-nbd works fine. Why? I ...
0
votes
1answer
63 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
2answers
3k views

Running QEMU with a root file system directory instead of disk image

In order to test the root file system i need to run QEMU with created disk image as root file system, the QEMU accepts -kernel which can be used for specifying kernel directly without deploying it ...
0
votes
0answers
35 views

How do I shrink a HFS+ partition image?

I recently installed Linux Mint on my laptop, but saved the original operating system (Mac OS) to a partition image. How do I shrink the image? It's 80GB, however the data in the image only takes up ...
0
votes
1answer
16 views

CentOS 8: Clonezilla image fails to boot when applied

Imaging CentOS 8 with Clonezilla consistently fails to make an image I can successfully replay onto a different drive and boot from. I downloaded the CentOS installation ISO and verified it with ...
0
votes
0answers
20 views

Creating .img file with bootloader, kernel and root file system to write on SD card

I am creating a custom embedded Linux distribution for a new unit. So far I've been able to configure and compile my secondary bootloader , kernel and the root file system, which I now need to ...
0
votes
1answer
37 views

Partition have size of img after using “dd” to install

I have a partition of size 50GB and made image via some disk tool (through GUI). But it had size of entire partition (50GB). Then I resized that image to 8.7GB: e2fsck -f -y xxx.img resize2fs -M xxx....
0
votes
0answers
23 views

Accessing/Extracting files from .img-backup

I created a backup for my sd-card (used for my Raspberry Pi), which is a compressed (.zip) .img-file (backup.zip contains disk.img). Now I need to access one specific file from my this backup. ...
2
votes
1answer
54 views

How to copy a disk drive over network to another computer (create and use such disk image)?

I originally have thought, that I would just use scp to copy my laptop disk drive onto server array for backup purposes. As it turned out, it may not be possible (not a regular file), or I just might ...
2
votes
3answers
644 views

mksquashfs: how to include full absolute directory paths inside the squashfs image?

When I create a squashfs image from multiple directories such as: /bin/ /usr/bin/ /usr/local/bin/ /some/other/random/folder/ /another/long/path/ If I use command... mksquashfs /bin /usr/bin /usr/...
0
votes
0answers
15 views

Move docker images without using `docker`

I have a Docker host that became unreachable for me. The only thing I could get was snapshots of its volumes. I need to extract the docker images from those snapshots. I created regular volumes from ...
1
vote
1answer
1k views

How do I mount this .img file in Debian 7 properly?

I have an unusual .img file that I wish to mount on my Debian 7 system. I tried mount but that does not work: sudo mount -t udf overlay1.img /mnt/vehicle/ -o loop mount: wrong fs type, bad option, ...
5
votes
1answer
208 views

Clonezilla made a smaller image than actual drive size

I've jut got a new laptop with a 500GB SSD. The first thing that I've wanted to do is cloning the hard drive because I want to have an original copy of the entire system as is. In order to do that I'...
4
votes
2answers
1k 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 ...
0
votes
1answer
15 views

Howto capture 2 output values and process them

I am trying to create a fool proof solution to write an image to a memory card with help of dd. Idea: I want to place a script on the system which others can execute with none knowledge about writing ...
2
votes
1answer
69 views

How can I mount a dd clone of a btrfs disk?

I cloned a harddisk with btrfs with dd. Now I want to mount the cloned drive, while the "original" is still mounted: mount /dev/sdc /mnt/tmp mount: /mnt/tmp: mount(2) system call failed: File exists. ...
0
votes
0answers
20 views

Booting hard disk images from the hard disk with GRUB2

I'm trying to boot a Windows 95 image from my hard disk with GRUB2 and memdisk. The system boots up, but then it throws an 'out of memory' error. My system has over 8GB of RAM. There is still plenty ...
4
votes
1answer
1k views

how to clone images of drives with LUKS+LVM2?

I have 2 Debian boxes which I need to upgrade. In the past, before upgrading any box, I have used Clonezilla to create an image of each of the box's harddrives for use as disaster backup, in case ...
0
votes
1answer
82 views

What does “/mnt/dir” mean here?

I am trying to recover data from my hard drive and then mount it, with the first part I have cleared up more or less, I will do it with ddrescue, with the second not so much ... I found a solution to ...
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....
1
vote
0answers
23 views

Command to DD Write Only if Different?

I usually keep image based backups of certain computer drives that I generally create with a dd command piped into gzip (or similar). To restore a backup I simply reverse the process. Works great ...
0
votes
2answers
63 views

Used and unused space in an img file doesn't add up to total capacity

I had an image file of size 2.3gb that was almost full (only around 70MB unused space). So in order to expand it, I used the command dd if=/dev/zero bs=1M count=1700MB >> ./image.img And then ...
2
votes
2answers
3k views

bad geometry: block count 967424 exceeds size of device (415232 blocks)

I am trying to understand what I did wrong with the following mount command. Take the following file from here: http://elinux.org/CI20_Distros#Debian_8_2016-02-02_Beta Simply download the img file ...
0
votes
0answers
31 views

Full Linux Restore Over a Single Live USB Holding the Image

We have a Ubuntu v18 system setup with the software that we needed and have in mind to create a single live USB which also holds the image of the system and is capable of dumping that to the host ...
0
votes
0answers
34 views

Search all disk images for a file name?

When backing up many SD card images onto a large HDD, I am not sure whether one SD card is already included or not. I would like to search all the images for a file name saved on that card, e.g. ...
1
vote
0answers
204 views

Can I rename a file inside an iso image without completely rebuilding it?

I have a bash script that is supposed to download a Windows 10 iso file from Microsoft and then change the names of two files in that iso in order to remove the "Press any key to boot from this CD/DVD....
2
votes
0answers
234 views

How to retrieve a testdisk disk image file from an XFS partition?

The previous situation I had a problem many years ago with an HDD (with a Windows installation and two usual partitions - the boot one and the NTFS one containing the system and the data) with which ...
1
vote
0answers
151 views

Load rootfs from fit image and signature verification

I am new to fit image and secure boot. I created fit image using mkimage command and added kernel dtb and rootfs into it. Goals: Need to boot up from fit image kernel rootfs and dtb. I am able ...
0
votes
2answers
1k views

Install Tails with persistent storage on VirtualBox

Tails OS is distributed either via .iso or .img file. The only .img can have persistent storage, but only .iso can be mounted to VirtualBox and properly booted. I would like to have VirtualBox Tails ...
0
votes
1answer
481 views

How to mount a partition inside encrypted lvm inside a disk image?

On my previous computer, I had my / /home and swap inside an encrypted lvm, and outside the lvm I had the /boot and /boot/efi. I then created an image. I think I did like this: dd if=/dev/sda of=lvm....
0
votes
0answers
53 views

How to image RedHat (or CentOS 7)

I'm trying to figure out if it's possible to create an image of a RedHat 7.6 system and restore it to another system with exactly the same hardware (in this case a 2TB Raid-0 system). We had ...
0
votes
0answers
66 views

“Disk I/O error” when trying to run OS via QEMU on Pi

I am trying to run Windows 98 on QEMU on my Pi using a project I found here: https://www.hackster.io/314reactor/windows-98-wrist-watch-15ecfd . When I run qemu-system-i386 -localtime -cpu 486 -m 96 -...
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: ...
1
vote
1answer
26 views

Issue with merging two HDD images into 1

I've got two HDD image files, which both of have 2 partitions each. On each image, the first partition is the grub boot partition, and the second partition contains the files and kernel. The second ...
1
vote
2answers
2k views

Create an image of the partition (only the used space)

I have a partition sdb1 of size 3.3 GB. From 3.3 GB only 1.9 GB is used and 1.2 GB is an empty space. I want to create an image of this partition. But I want the image to only have the used space i.e. ...
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 ...
1
vote
2answers
5k views

How do I resize a partition on an img file?

I have a puppy linux img that is 8gb but I need it to fit on a 6gb drive. How do I resize the ext2 partition on the img?
-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. ...
1
vote
4answers
6k views

KVM can't access qcow2 images storend on an external HDD

I'm running Deepin 15.3 x64 and i have an external HDD with EXT4 file system. whereat i store things like VM images. Oracle VM VirtualBox and VMware Workstation Player works just fine with this config,...
0
votes
1answer
714 views

Error mounting .img file

In Linux Mint 18.2 when I choose "Open With Disk Image Mounter" in a right click menu on an .img file I get following error: Unable to mount OS Error mounting /dev/loop1 at /media/mint/OS: ...
4
votes
1answer
1k views

Why is my rsync slow?

I run a rsync job transferring about 45 million files/approximately 1.8 TB data (a Mac OS X Time Machine backup) over a 100 MBit connection. I use rsync 3.1.1 from MacPorts (I first tried the built ...
1
vote
2answers
78 views

How does the same Linux version work on different hardware

My understanding is that the kernel understands how to communicate with the different hardware in a system via specific device trees. How is it that I can download one version of Ubuntu and I am ...
1
vote
0answers
301 views

Can I split a .bin file into multiple .bin files using a .toc or .cue sheet?

I have ripped a Sega Saturn game disc using cdrdao. This results in a .bin and .toc file. I then used toc2cue to generate a .cue sheet. I want to validate my rip against redump.org's dump of the ...
0
votes
0answers
223 views

Did this dd command run too fast? [duplicate]

Usually people want to speed dd up but I want to slow it down, because I think there is something fishy going on with its speed. sudo dd if=hannah-montana-linux-amd64.iso of=/dev/sdb1 bs=512k 5988+...
3
votes
1answer
1k views

How to clone an entire disk to a larger disk and then offload?

What I have done is clone a small 32GB flash module that had three partitions. I happened to have a 32GB USB lying around, so I thought it might just work; it did not. It seems 32GB from Toshiba is a ...
2
votes
0answers
73 views

Creating my own “BBB image” for installing it in several BBBs?

I have been working with a Beaglebone Black for a while now, I have created a software for a device which I am happy with. Now I have a few more Beaglebone Blacks where I would like to install the ...
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 ...