Questions tagged [disk-image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
40 views

how to format a partition of a diskimage?

I made an empty binary image file with fallocate -l 500M sd.img command and then partitioned it using gdisk and now I can see my partitions using gdisk: Command (? for help): i Partition number (1-2): ...
0
votes
1answer
42 views

How to create linux sdcard image?

I want to create a image file that contains two partitions: 100MB FAT Boot partition that contains my kernel zImage and dtb(device tree blob) files. 900MB EXT4 Rootfs partition that contains my root ...
1
vote
1answer
52 views

Unable to mount image file

I am trying to mount image_file_name.img which has multiple partitions to a directory, but without success. Partition details: sfdisk -l -uS image_file_name.img Disk image_file_name.img: cannot get ...
4
votes
1answer
33 views

Data on unmounted partition keeps changing

I am experiencing a weird issue here. I have a partition on a USB stick that I back up from time to time by creating a simple image like so: pv -tpreb /dev/sdx1 > /path/to/image_file. Of course the ...
0
votes
1answer
30 views

How to process dd-created disk image, which is corrupted (disk died during dumping)

I have a laptop with HDD which had issues with booting (windows10). I assumed that Windows just failed some way. I've booted from LinuxLiveUSB and tried to dump the disk using dd. DD failed on 85GB ...
1
vote
0answers
21 views

How can I write the disk-image of a Linux computer with the “dd” command to another computer connected with a LAN cable?

I have a computer with Linux (A) and another computer with a formatted hard disk(B). If I connect two computers with LAN cable, how can I write the disk-image of computer A to computer B using the dd ...
0
votes
1answer
37 views

How do I discover the remaining space on disk image FAT32 partition?

Given the current Debian installer hd-media boot image files, how do I find out how much free space is remaining within the contained FAT32-formatted partition? Here's what I have so far: $ curl -...
0
votes
1answer
106 views

Set UUID when generating a VMDK image from a raw image using qemu-img

It is possible to convert a raw image to a VMDK image with qemu-img like this: qemu-img convert -O vmdk "$_raw" "$_vmdk" I know it is possible to set UUID of the generated VMDK ...
1
vote
1answer
20 views

Use entire drive when writing disk with DD

How do I go about making DD use the entire space of a drive when I write an image to it? When I write a 1gb image to an 8gb USB, I get a 1gb partition, and the rest of the storage space is unused. I ...
0
votes
1answer
32 views

Access old files after btrfs conversion

I have a disc with a few hundred gigs of relatively unimportant data which I've converted from ext4 to btrfs. The conversion has produced a new empty btrfs partition with a snapshot called "...
1
vote
1answer
59 views

Identify if IO bottleneck is read or write

I use ddrescue to image failing disk to sparse files - often the files become highly fragmented (>50k fragments). I suspect that sometimes the imaging speed degrades because of the fragmentation. Is ...
0
votes
0answers
9 views

FitImage creation and bootup A388 using fitImgae

I want to create fitImage and bootup A388 clearfogpro using that fitImage. I will be using USB for the same Please if some one could help me in this. Thanks, Varsha
0
votes
0answers
56 views

How do I invert these dd commands to extract the original files from a device they were written to?

I have a script that writes u-boot components to an SD card. This results in a functional bootloader and I can outfit it with a root filesystem of my choosing. I also have an image which has a ...
0
votes
0answers
35 views

DD command: Create an partition image without save filesystem

I have the initial situation: I have executed the commands: sudo dd if=/dev/sda1 of=~/part1.img sudo dd if=/dev/sda2 of=~/part2.img After this, i have prepared the new partitions for restoring the ...
1
vote
0answers
150 views

Inspect/browse gzipped dd disk image from command line without decompressing and mounting?

I did a disk image, as per How to dd a remote disk using SSH on local machine and save to a local disk : ssh user@remote "dd if=/dev/sda | gzip -1 -" | dd of=image.gz` Now, I would just like to ...
1
vote
1answer
171 views

Create bootable disk from ext4 partition image

My goal is to create a bootable backup of my system without restarting, I will use qemu-img to convert a raw dd image to vhdx and run it in Hyper-V. If I boot into a liveCD and run: dd if=/dev/sda ...
0
votes
0answers
21 views

Write image on sd-card whithout recreate partitions

Balena-etcher recreate partitions during write process, but I want write an image on SD-CARD with preconfigured partitions. How can I do?
0
votes
1answer
63 views

How to disk copy with unreadable sectors?

I want to clone a whole disk bytewise, something like dd if=/dev/$SRC of=/dev/$DST bs=65536 count=$count There are better tools for the job, which understand the file system (Windows) and work ...
0
votes
1answer
83 views

Creating a system image that has no persistant storage?

So I would like to create a system image, that I can tell grub to boot to every time, but with only temporary memory. I would like to create a system image that is fully installed and set up and then ...
1
vote
0answers
187 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
54 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....
0
votes
1answer
235 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 ...
0
votes
0answers
92 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
111 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
86 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
43 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
428 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
34 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
57 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
21 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
281 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
16 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
219 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
1answer
261 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
49 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
42 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
513 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
568 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
1answer
282 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
2k 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
868 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
78 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
107 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
30 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 ...
2
votes
2answers
6k 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
6k views

How can an image file be created for a directory?

How can an image file be created for a directory? For example: Create iso image from folder via terminal commands shows that genisoimage can create an iso image file for a directory. I only know that ...
-3
votes
1answer
97 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
120 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
396 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
341 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 ...