Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [disk-image]

The tag has no usage guidance.

0
votes
0answers
24 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
12 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 -...
1
vote
1answer
20 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
121 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. ...
-1
votes
2answers
125 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 ...
-3
votes
1answer
72 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
0answers
69 views

How do I run a raw file in qemu? [closed]

I have been trying to run this project from github. https://github.com/asafch/xv6-paging My machine is running ubuntu 18.04, so this code isn't running here. I have seen this solution Booting a raw ...
1
vote
2answers
46 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
72 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
42 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+...
2
votes
2answers
101 views

Is it safe to share a KVM virtual disk between active / passive systems

I have two VMs that run a DB2 database under a Linux guest OS. Only one database will be active at a time, though I'd like both VMs to be running at the same time. The database would be stored on a ...
1
vote
0answers
62 views

loop device not matching file size

I have a sparse backing file (NTFS) (made via dd seek=) that's a partial image of a damaged disk. The size as given by ls matches the original disk. However, when looping it, /proc/partitions shows it ...
0
votes
1answer
15 views

List changed files and folders compared to disk image

Let's call the image Disk.img, taken from /dev/sda. How do I list every file and folder with differences? (Let's assume the time stamps of the files are incorrect.)
18
votes
1answer
3k views

Why does piping `tar` into `dd` not stop until the disk is full?

I have a tar archive of a single disk image. The image inside this tar file is about 4GB in size. I pipe the output of tar xf into dd to write the disk image to an SD card. The diskdump never stops ...
0
votes
2answers
380 views

Get contents of ddrescue image file

I have a failed harddrive with around 400 GB of data, of which approximately 50 GB need to be recovered. All the data is located in a specific directory (/Fotos2018/). The hard drive is a WD My ...
6
votes
3answers
528 views

With the command pv it is possible to clone a drive, how do I mount it? [duplicate]

I was able to backup a drive using the following command. pv -EE /dev/sda > disk-image.img This is all well and good, but now I have no way of seeing the files unless I use this command pv disk-...
1
vote
0answers
268 views

How to boot OpenWRT on VMware Fusion from .img file?

I have VMware Fusion 10. I have created VM with Other Linux 3.x kernel. I have downloaded OpenWRT OS image openwrt-18.06.1-x86-64-combined-ext4.img My question is how can I boot my OpenWRT OS from ...
1
vote
1answer
174 views

sync vs async for images

I have to use ext4 image file in btrfs, because Dropbox requires ext4 as file system. In fstab mount options I've set async, but I'm not sure about this. What are the pros and cons of async and sync ...
0
votes
1answer
32 views

Moving an Linux OS image from a 4 GB flash drive to a hard drive

I have a small flash drive (4 GB) that has a stripped down version of Redhat Linux. I'm currently attempting to move this OS from the flash drive to a much bigger hard drive (500 GB) that is bootable. ...
0
votes
2answers
214 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/...
-1
votes
1answer
40 views

Can I restore a Macintosh disk image using dd?

I have a clone of an entire Mac OS HDD that I created using dd, as: sudo dd if=/dev/sda of=/media/mint/backup/mac-backup.img I verified the integrity of the image at creation time using diff. Now I ...
2
votes
1answer
918 views

Sysprep for Linux as a Windows alternative

I want to know if exists an alternative to Sysprep for Linux. I'm working on VM using VMware and I want to clone that machine to create new ones based on this template. And I want to try to make a VM ...
1
vote
0answers
320 views

How to create and loop-mount an encrypted drive image?

I've seen this excellent answer that explains how to use the following squashfs command to compress a disk image on-the-fly: mkdir empty-dir mksquashfs empty-dir squash.img -p 'sda_backup.img f 444 ...
0
votes
0answers
33 views

Only write back changes when restoring a disk image with dd

Given a physical disk and an image created from it, I want to write the image back onto the physical disk, but only write the changed bytes or sectors. The use case is restoring images on an SSD - ...
2
votes
2answers
39 views

No bootable device error after restoring debian image to annother ssd disk

I created an image of debian 7 on an SSD disk and later restored it on another computer with excatly same type of HW. however I'm getting the error message: No bootable device -- insert boot disk and ...
0
votes
1answer
346 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
4answers
1k views

Best compression tool for full disk imaging that can saturate a USB 3 connection on low-powered machines?

I often work on full disk images, I often need to read and write full disk images on not so capable laptops using a USB-3 disk as my temporary medium. Duplicating a raw image is probably the fastest ...
0
votes
1answer
34 views

Creating OS image from the current installation

I have installed Kali Linux on my Orange Pi board from the official website and made some configuration changes on top of the default installation. I was wondering if I can create a new image, a kind ...
0
votes
1answer
217 views

Does the arch linux pacstrap utility put any information about the host into the assembled system

As part of a prototype arch linux image generation script (which can be seen for code review here), I use the normal pacstrap utility to populate a file-system with a bootable install and additional ...
1
vote
1answer
1k views

Check disk image file system type

How could I check the file system format of a disk image ? I know that I can check with file command but I would like to automate the behaviour. $ file img.raw img.raw: data $ file img.ext4 img....
0
votes
1answer
254 views

Why was a disk image created with dd, bigger than the original disk?

I recently backed up a disk using dd and when I tried to dd the image back to the disk, I realized that somehow the image file is bigger in size than the original disk that was created of original ...
3
votes
1answer
2k 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 ...
0
votes
1answer
614 views

Automatically shrink an ext4 IMG file

I have an ext4 img file containing an Android system partition files. I mount it by using sudo mount -t ext4 -o loop,rw system.img system When I'm done editing the files and umount the file, I ...
1
vote
1answer
28 views

Upgrading distro generates new and different boot images

I dual-boot Windows and Fedora on a machine with GRUB. Whenever I update Fedora or its Linux kernel, it generates a new disk image in /boot thus creating another boot option when loads GRUB. However, ...
1
vote
1answer
86 views

Determine if two iso images are equal

I've recently made multiple images of several SD cards on multiple machines using dd. I haven't done a stellar job with my naming, and have some duplicates. How can I quickly determine if two images ...
1
vote
0answers
101 views

Can gzip change original file size?

/dev/sdf is a 32G SD. As far as I can tell, I had performed the following, but upon attempting to perform the final step and write to a SD, my file image appears to be one byte to large for the SD. ...
0
votes
0answers
123 views

What is dd doing at the end of copying an image to disk

Today I've copied a 4GB image to a SD card. I noticed that copying the image took about 421 seconds. It showed it had copied 4294967296 bytes. After that dd seemed to do nothing but the command prompt ...
0
votes
1answer
30 views

Should unused partitions be removed?

I downloaded a jessie raspbian image and it shows two partitions. [Michael@devserver ~]$ fdisk -l 2017-07-05-raspbian-jessie-lite.img You must set cylinders. You can do this from the extra functions ...
0
votes
1answer
109 views

Image drive that's formated as a single filesystem (no partitions)

I've been using Clonezilla (partimage) to image all of the drives on one of my networks. The drive in question is used as data drive for a Fedora host, and is formatted EXT2, however the filesystem ...
0
votes
2answers
352 views

How to mount an iso disk image hidden in an unallocated free space on a disk, assuming that the location and size of the image are known?

Suppose that an iso disk image is hidden in an unallocated free space on a disk. Note that, because it is hidden in an unallocated space, it is not recognizable to the filesystem. Assuming that the ...
2
votes
1answer
166 views

What is special about an amd64+mac ISO?

Some GNU/Linux distributions (for example, Ubuntu) provide 'amd64+mac' ISOs, in addition to the regular 'amd64' ISOs. The amd64+mac ISO is apparently required for booting on certain Apple Macs. I am ...
2
votes
2answers
77 views

How can I safely write a disk image to a memory card?

I routinely copy disk images to SD cards for use on a Raspberry Pi. The usual way I do this is by dd if=/tmp/filesystem.img of=/dev/sdb, which is only a minor typo away from over-writing my computer'...
1
vote
0answers
500 views

Creating ISO image file of recompiled kernel [closed]

My goal is to get VM machine with minimum memory working. I am using Vmware and created a machine with 64mb ram and 5gb hard. I recompiled Linux kernel and created its ISO using mkisofs. When I want ...
2
votes
2answers
2k 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 ...
1
vote
3answers
1k 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 ...
1
vote
0answers
374 views

extract only one file from .gz archive [closed]

I have backup Image backup_image.img.gz which is 250gb I would like to extract only 1 file which is /etc/csf/csf.conf from this .gz file. I would like also to keep backup_image.img.gz. I used this ...
1
vote
1answer
301 views

dd creates a file bigger than the source

I use dd for creating an image of my filesystem . I use Debian 8(Jessie) on ARM 32 bit system. Command I run is : dd if=/dev/mmcblk0 bs=1M | gzip -c > /mnt/usb/<image_name.gz> For some ...
2
votes
1answer
192 views

Why does kpartx use a new loop device each time?

I'm running kpartx from within a python script as part of a custom OS build I'm trying to do. I'm using python sh module to run bash commands. sh.kpartx("-as", image) is how I attach my image. Then ...
5
votes
3answers
2k views

How to extract the linux version from a `.img` backup?

In short: How to extract the VERSION, SUBVERSION and PATCHLEVEl numbers from a system backup .img? ideally without root permissions. Extended: From the following page: https://www.raspberrypi.org/...
0
votes
1answer
31 views

AWS Image transfer to other cloud

We have more than 5 instances AWS cloud, but I want to shift these instance image to other cloud is it possible? if yes so please let me know how.