Questions tagged [disk-image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
20 views

Calculating the block offset

I need to overwrite certain files in a raw disk image without modifying the disk image too much. Ideally, only certain strings should be overwritten, but this will probably not be possible. That is ...
user avatar
0 votes
1 answer
47 views

Partitions for loop device not found from script, visible elsewhere

I'm currently trying to partition and then format a disk image using parted, by first mounting a blank disk image onto a loop, creating the appropriate partitions, and then formatting these partitions ...
user avatar
1 vote
1 answer
31 views

Referencing disk image on OpenBSD rather than disk partition

I am unable to find any online help for the following problem. I am trying to make a disk image copy on OpenBSD from one disk to another. On Linux, this is how I would do it: dd if=/dev/sda of=/dev/...
user avatar
  • 11
0 votes
0 answers
101 views

Searching strings in raw disk image

I am currently writing a tool that should scan a readonly raw disk image for a a given pattern. The task is to get the byte offset of the match. I am able to find simple text documents with grep -a -o ...
user avatar
0 votes
0 answers
63 views

Mounting a bad raw disk image without fixing it?

Is it possible to mount a bad disk image without fixing it? Here's the story why. I was playing around with dd, and I accidentally wrote back a 20GB virtual disk image onto the disk itself. The old ...
user avatar
  • 133
0 votes
0 answers
62 views

create windows bootable iso in linux

I downloaded Windows 8.1 32 bit official ISO from microsoft's website. Mounted it using sudo mount -o loop windows.iso mountpoint copied file using sudo cp -ar mountpoint/* destination added ei.cfg ...
user avatar
18 votes
2 answers
2k views

How do I uncompress a file with lots of zeroes as a sparse file?

I have a compressed raw image of a very large hard drive created using cat /dev/sdx | xz > image.xz. However, the free space in the drive was zeroed before this operation, and the image consists ...
user avatar
-1 votes
1 answer
45 views

Reboot and Select proper Boot device error after trying to format an external hard drive (fedora)

I had an old laptop that had fedora 32 (or 33), but stopped working. Today I decided to open it and take the hard drive to use it as an external hard drive. I will call it hard drive A. I connected ...
user avatar
  • 103
1 vote
1 answer
69 views

Unable to update due to less space on boot

I have some old linux images taking up space in /boot $ dpkg -l | grep linux-image rc linux-image-5.4.0-70-generic 5.4.0-70.78~18.04.1 amd64 Signed ...
user avatar
0 votes
1 answer
71 views

Will Clonezilla ignore my swapfile when saving a disk?

I have a PC with 32GBs of RAM running Linux Mint 20. As per instructions found here (which were meant for 19, but appear to work for 20), I have increased my swapfile to just a little larger than my ...
user avatar
1 vote
1 answer
170 views

How to read contents of a hard disk image file that seems to be part of a RAID

I received a hard disk image file from a friend. I decompressed it with xz. Afterwards, I ran fdisk -l the-decompressed-hard-disk-image-file. Output: Disk the-decompressed-hard-disk-image-file: 64 MiB,...
user avatar
  • 123
1 vote
1 answer
2k views

Booting from real (UEFI) disk image on QEMU

Summary: I wish to boot QEMU with a disk image I created from a real machine running Ubuntu. After creating the image and trying to run QEMU, the VM hangs on "Booting from Hard Disk". ...
user avatar
  • 141
0 votes
1 answer
103 views

1TB drive compressed shows only 3.8GB, what did I do wrong?

On Linux Mint 20.2 Cinnamon I would like to create a disk image of my secondary disk drive (SATA) containing Windows 10, not that it matters now, directly gzip'ed using the Parallel gzip = pigz onto ...
user avatar
0 votes
1 answer
335 views

when mounting an .img via fstab, it shows duplicate in file manager (Ubuntu Mate 20.04.3)?

I have done these procedures to mount my .img file in /etc/fstab (for ubuntu mate 20.04 x64) Create .img file: dd if=/dev/zero of=filename.img bs=1024 count=2M sudo mkfs.ext4 filename.img Note: also ...
user avatar
  • 781
-1 votes
1 answer
117 views

dd (data/disk dump, copy and convert) best practices for backups in local external drives

As a domestic user wishing to get best value for it's money on external storage and a well encrypted and resilient backup discipline (having all time in the world). Please, is this a good use of dd? ...
user avatar
0 votes
1 answer
39 views

Why does drive image show different start partition free size?

I made an image of /dev/sdc. The free space before the first partition isn't reporting the same byte sizes, but why? The start position is reported as 1024B on the drive and 16384B on the image? # ...
user avatar
  • 1,736
0 votes
1 answer
363 views

Changing the boot entries of a Windows ISO using mkisofs to use cdboot_noprompt.efi instead of cdboot.efi

When you boot a Windows 10 ISO, you will get this misleading prompt: Why is it misleading? Because this message comes from the Windows ISO itself after you actually already booted from it. This ...
user avatar
  • 677
0 votes
2 answers
414 views

DD command included directories

I'm learning the dd command in Linux. For test purposes, i initiated this command: sudo dd bs=4M if=/dev/mmcblk0 of=/media/some_remote_host/stuff/myImage.img I know that dd is for taking an image of ...
user avatar
  • 115
2 votes
2 answers
271 views

Write an image to disk but do not write sectors containing all zeroes in the source image?

Imagine that I have a disk that is 128GB in size. On this disk, only 12GB is used. 116GB of the disk is empty space containing all zeroes (0x00). I want to take an exact snapshot of the disk such that ...
user avatar
  • 2,408
0 votes
0 answers
21 views

Can I boot or virtualize an archived root partition without the associated root partition?

I’ve made a backup of my Linux system’s root partition before reinstalling the OS. I’ve now realized there’s critical data on the backup, but this data is only accessible via software installed on ...
user avatar
0 votes
1 answer
83 views

Why does this disk img mount only though a CDROM block device?

I've created a disk image (not just a partition) of an SD card using dd. It contains one ext4 partition. parallels@debian-gnu-linux-10:/media/psf/Irfan$ file -k old_armbian.img old_armbian.img: Linux ...
user avatar
  • 101
0 votes
1 answer
100 views

Umderstanding the output of resizefs -d 32

After shrinking an ext4 file system with resize2fs M I mounted it to realize it has only 57% used. So I ran $ resize2fs -d 32 -M rootfs-2021-06-28.img resize2fs 1.44.5 (15-Dec-2018) fs has 9698 inodes,...
user avatar
  • 11.1k
0 votes
0 answers
915 views

NVME SSD not detected

I had to send my laptop to servicing, so I booted into live Fedora, and then I used ddrescue to backup the NVME SSD as an image to an external HDD. I did not do any tweaks to anything, just booted the ...
user avatar
  • 1
4 votes
2 answers
740 views

Using dd to create an image up to an specific sector

I have a 32GB SD Card that contains an Armbian installation for some pi gadget. I want to clone the content into a 16GB card. Using GParted, I shrank the partitions to be less than 16GB and here is ...
user avatar
  • 517
0 votes
0 answers
85 views

Difference between "kernel image" and "disk image"

I'm trying to boot Ubuntu on the gem5 simulator. The gem5 simulator expects 2 binaries to boot from: a "disk image" and a "kernel image". When I've booted Linux with QEMU or ...
user avatar
  • 343
1 vote
0 answers
137 views

How to verify a burned CD against a BIN/CUE image?

Burning a BIN/CUE image to a CD is pretty easy using cdrdao write --speed 1 --device /dev/sr0 path/to/image.cue , but I can't find any way to verify the burn afterwards. I'm used to Windows utilities ...
user avatar
0 votes
0 answers
9 views

How to make sure if I rescued all the data from a corrupted ext4 partition?

Here's the history log of the partition: https://cloudvyzor.com/logpad/?query&database=sandbox-d306970d9822474714fbfa85aab4af94 sorted with unique entries: https://cloudvyzor.com/logpad/?query&...
user avatar
0 votes
0 answers
35 views

How to make a file image of a pertition and mount it in linux?

My problem is that I have cloned a 500GB hard drive into a 1 TB hard drive and now I need an image copy of the first partition in order to work with it. Now to clone the entire 1TB hard drive into an ...
user avatar
0 votes
1 answer
102 views

Fastest way to create a filesystem image with cloop/create_compressed_fs

Cloop is a linux software package to mount compressed block device images. create_compressed_fs is the accompanying tool to create a compressed image of a filesystem (or any kind of file or block ...
user avatar
  • 889
2 votes
0 answers
123 views

cannot open LUKS patition as read only

I have saved a whole disk image of a Debian Jessie in a image.img file using: $ dd if=/dev/sda of=/media/usbdisk/image.img This file is meant to be a backup of the whole disk. The whole partition was ...
user avatar
  • 21
0 votes
1 answer
75 views

Create ext4 img from diff

I'm trying to create an update image from an ext4 filesystem which should only consists of the changed files. So basically I have a Debian distro with an ext4 root file system. I want to create a base ...
user avatar
0 votes
1 answer
155 views

Recover broken ubuntu image

I created a .gz archive of a disk image (Ubuntu 18.04) of one of my virtual servers with the following command: dd if=/dev/sdb | gzip -1 - | pv | ssh user@ip dd of=/home/user/sdb.gz While unpacking ...
user avatar
0 votes
1 answer
382 views

Can you just "cp" copy and make a backup of a virtual disc image?

Basically the tittle. I'm doing Linux From Scratch(LFS), I'm at the point of installing the system software. Before doing that, I want to have a backup of the virtual drive that I'm installing LFS ...
user avatar
3 votes
1 answer
936 views

How to create an ISO disk image of an NVMe SSD?

I want to create a disk image of my solid-state drive using the dd (disk dump) command. There are multiple partitions on the SSD. Is it possible to make a complete image of the drive including all ...
user avatar
0 votes
1 answer
406 views

How to install apt packages into mounted system image (img file)

I need to edit/prepare debian-based Raspbian system image for multiple Raspberry Pi devices. Until now, my modifications consisted in adding or changing existing config files. I wrote script like this ...
user avatar
  • 586
0 votes
1 answer
54 views

Prepare on-the-fly flushable image for raspberry pi

I have a base Raspberry Pi SD image that I flash on all my micro sd cards when I need it. Depending on the use, I will then have to re-mount the image an change: the /boot/config.txt to activate some ...
user avatar
  • 168
-1 votes
2 answers
518 views

Why is .img file so much larger than the actual disk?

I'm trying to figure out why my disk image is so much larger. Here is the source server's disks: root # df -h Filesystem Size Used Avail Use% Mounted on udev 1.9G 0 1.9G 0% /...
user avatar
1 vote
1 answer
732 views

Can't mount a device using label

I am trying to create a 60 MB virtual hard disk, then format that hard disk to have an EXT4 file system, and a label name of it database. I am running the following dd if=/dev/zero of=VHD.img bs=1M ...
user avatar
0 votes
1 answer
77 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): ...
user avatar
0 votes
1 answer
674 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 ...
user avatar
1 vote
1 answer
159 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 ...
user avatar
4 votes
1 answer
72 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 ...
user avatar
0 votes
1 answer
552 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 ...
user avatar
  • 1
1 vote
0 answers
48 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 ...
user avatar
0 votes
1 answer
101 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 -...
user avatar
  • 610
1 vote
1 answer
587 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 ...
user avatar
1 vote
1 answer
47 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 ...
user avatar
  • 23
0 votes
1 answer
96 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 "...
user avatar
1 vote
1 answer
264 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 ...
user avatar
0 votes
0 answers
56 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 ...
user avatar

1
2 3 4 5