Questions tagged [disk-image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
33 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
14 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
16 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
35 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....
1
vote
2answers
136 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
0answers
22 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
53 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 ...
0
votes
0answers
13 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 ...
5
votes
1answer
197 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'...
0
votes
1answer
13 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
59 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
18 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 ...
0
votes
1answer
75 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 ...
1
vote
0answers
22 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
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
33 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
172 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
204 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
128 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
919 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
426 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
48 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
64 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
25 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 ...
-3
votes
1answer
80 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
2answers
74 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
284 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
204 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
2answers
263 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
81 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
17 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
1k 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
952 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
404 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
369 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
42 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. ...
2
votes
3answers
585 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
1answer
482 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
3k 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
503 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
41 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
49 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
657 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
3k 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
52 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
379 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
3k 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....