Skip to main content

Questions tagged [disk-image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Resize Disk Image with Protective MBR and GPT table

I've got a disk image that I need shortened slightly (long story - but it deals with variances in flash drive sizes). The partitions are already short enough, but the drive size is not. Basically, I ...
johnnyb's user avatar
  • 101
0 votes
0 answers
22 views

Coldsnap download disk.img not getting mounted on linux machine

I am trying to mount an image file which has been downloaded by coldsnap for a snapshot of AWS, but I am unable to mount it in Amazon Linux 2. I Tried multiple commands as mount -o loop disk.img /mnt/...
Jayesh Desai's user avatar
0 votes
1 answer
28 views

pv fails at the exact same spot

I have attempted to copy a hard drive's contents to an image file twice and twice I have gotten pv: (stdin): read failed: Input/output error at the same number of gigabytes in. This has happened ...
Melab's user avatar
  • 4,148
3 votes
1 answer
95 views

udisksctl: get loop device and mount point without resorting to parsing localized output?

udisksctl is my tool of choice when dealing with file system images (recent example, but I've been doing this all over the place). The dance typically looks like fallocate -l ${img_size} filesystem....
Marcus Müller's user avatar
0 votes
1 answer
59 views

syslinux creating unexpected partitions on disk image

I'm encountering some odd behavior while trying to install a bootloader on a disk image. Here's the process I followed: $ dd if=/dev/zero of=test.img status=progress bs=200M count=1 1+0 records in 1+0 ...
Yuki San's user avatar
0 votes
1 answer
83 views

How to mount AARUF CD image?

I have a CD image file which has AARUF as its filename extension and I want to access its files. Using file, I don't get any further information about the format: $ file image.aaruf image.aaruf: data $...
finefoot's user avatar
  • 3,132
0 votes
0 answers
30 views

How could one create a hash fingerprint for a computer's architecture/instruction set?

Imagine a protocol where participants sign a schema document to declare which version they will follow. To define functions used in the protocol, without recourse to URLs, we could define operating ...
Lee's user avatar
  • 519
1 vote
0 answers
23 views

vgrename but without writing to storage (read-only PV)

when dealing with image backups of systems I often run into issues with the VG within the mounted backup image having the same name as the live one. Also because the backup is read-only I cannot ...
K. Frank's user avatar
  • 111
0 votes
0 answers
61 views

Create a disk image of a dualboot system with dd

I would like to create a disk image of a dual boot system (Ubuntu, Windows 11). Ubuntu is on /dev/sda1 and Windows 11 on /dev/sdb1 How can I accomplish the task with the dd command? I tried sudo dd if=...
kzpm's user avatar
  • 63
1 vote
2 answers
171 views

Creating disk image with msdos partition table and fat32

I want to create a disk image file to include into my unittests. This disk file should contain a few files afterwards I want to read. When I create a copy of a SD card or a USB stick with dd the disk ...
Murmi's user avatar
  • 13
0 votes
0 answers
51 views

Cannot mount partitions from image

I have a dd image of an old SSD. It's been sitting on an external HDD for a while, but I have previously been able to mount the image and its partitions. Now, for some reason, I can only mount the EFI ...
Chris's user avatar
  • 565
1 vote
1 answer
312 views

How do I image a LUKS system disk with Clonezilla without including all the empty space?

I have a 1 TB NVMe disk with Ubuntu 22 installed with vanilla options, except I used LVM, and enabled LUKS. I'd like to image the disk for easy restores. Simply backing up the files is not enough for ...
Duncan Marshall's user avatar
0 votes
0 answers
80 views

Recover files from disk image

I had backed up /dev/mapper/luks-.... (since I use FDE) using dd: sudo dd if=/dev/mapper/luks-... of=backup.img I don't seem to be able to access or restore the files. I have tried both mounting the ....
TimidFuzz's user avatar
0 votes
0 answers
33 views

Command to create a disk image in which bad sectors are replaced by zeroes [duplicate]

From time to time I have HDDs and microSD cards which have bad sectors. I realized that all photorec, (ext/ntfs/...)undelete and dd fail or are incredible slow. Other users seem to have the same ...
zomega's user avatar
  • 972
0 votes
1 answer
186 views

How can I take an image of my Raspberry Pi without all the unused space being captured?

Only 15% of the 30GB on the Pi's SD card is being used, but even when I use win32diskimager and tell it to ignore the unused space, it still captures the unused space and the image file produced is ...
zach's user avatar
  • 1
0 votes
1 answer
244 views

How can I change the partition name on a qcow2 image in a way that can be automated?

I have resized a Debian qcow2 image with qemu-img and virt-resize. This breaks the image because it renames the partitions from sda1, sda14 and sda15 to sda1, sda2 and sda3. I am searching for a tool ...
CristianCapsuna's user avatar
1 vote
1 answer
368 views

Creating a compressed image of an exFAT USB drive using dd

My system is running Ubuntu 22.04.3 LTS. I plug a USB drive into that system. That USB drive (/dev/sdb) contains an Ubuntu installation, mostly in an ext4 partition (/dev/sdb3). That installation ...
Ray Woodcock's user avatar
0 votes
0 answers
475 views

btrfs backup file is not mounting - wrong fs type, bad option, bad superblock

I accidentally deleted all of my user directory files. There are a lot of important files and scripts which I didn't uploaded to GitHub. I have learned my lesson I have to take backups. I am ...
Fahmida Tasnuva's user avatar
1 vote
1 answer
68 views

How do I adapt a .img clone of my hard disk (1 partition with openSUSE) to another computer?

I have used the dd command to backup my Linux partition (openSUSE Tumbleweed) into a .img file that I saved on an external hard drive. However, I guess dd-ing it on another computer may cause problems,...
Ul Tome's user avatar
  • 117
0 votes
0 answers
164 views

Generate ISO based on LFS image disk file

After finish building a LFS system, installed on a IMG file (system.img) and being able to run the system with qemu with the command: qemu-system-x86_64 -hda system.img -vga std -m 4G I want now ...
Kleber Mota's user avatar
0 votes
1 answer
299 views

Why does 'mount' fails when trying to mount partitions of a virtual disk that has two parititons?

I am trying to make a virtual disk with two partitions. First a 100M FAT (type 0xC) and second a 2G Linux partition (type 83). I have a process that does this correctly with a real USB device. But I ...
Ryan Buton's user avatar
0 votes
0 answers
162 views

Clone of a functional 32GB SD card doesn't boot

I have a Pine64 from the original Kickstarter (2016.) It boots from a 32GB SD card, which I've imaged from an Ubuntu16 Pine64 image file. I've created a full disk backup of this 32GB SD card using ...
BurningKrome's user avatar
4 votes
1 answer
1k views

Change /tmp (to increase available space) on live system?

I use Ubuntu 20.04, on a machine that has a limited system drive. I came across a build script that checks for available size in /tmp, and it refuses to run if it doesn't see 12 GB available, which I ...
sdaau's user avatar
  • 6,828
0 votes
0 answers
328 views

How to transfer selinux file context respectively to the full copy?

I have an image with files marked with their SELinux context: system_u:object_r:net_conf_t:s0 for example. I also have a second image with the same files, but without the preserved context (the ...
caiiiok254's user avatar
1 vote
0 answers
659 views

dd: error writing an image. No space left on device

I am trying to create an image of an embedded system running Debian 32bit. I ran Rescuezilla which is live Ubuntu USB. sda is the disk where the OS is installed. lsblk listed sda as 7.5G My ...
rocky_alpine's user avatar
0 votes
0 answers
202 views

CENTOS 7 disk cloned from image won't boot. Need new BIOS?

I'm trying to make my brand-new HP Z4G4 workstation boot to CENTOS 7 from its SSD drive, but after it indicated which kernel it's using, spins its wheel, and shows its faint "7" on the ...
jkurutz's user avatar
0 votes
0 answers
449 views

how to clone a Debian9 hard drive for use as image on QEMU host on Debian 11

I want to take an image of a 120Gb SSD used in an i7-7700 32Gb memory unit running Debian 9 and create an image to use via Virtual Machine Manager on Debian 11 unit i9-9900K with 64Mb. I tried dd if=/...
kalpha's user avatar
  • 1
0 votes
1 answer
166 views

EXT partition seen as unpartitioned space in loop device on Ubuntu 22.04.1

I am trying to create a disk image file with an EXT2 partition, however the partition is not found and entire loop device is seen as free/unpartitioned space. My computer can read Ext2 formatted disks,...
PerkyElixir22's user avatar
0 votes
1 answer
189 views

How Do I Use a Windows 10 Disc Image in VirtualBox?

What I would like advice with: I have A PC that had previously dual booted Ubuntu 20.04 and Windows 10. I have instead decided to use my Linux install as my main system and run Windows virtually from ...
Bumblord's user avatar
0 votes
1 answer
787 views

how do I make a new filesystem image?

I know I used to be able to do it, and its frustrating I cant recall. I want to write an ext4 filesystem to a disk image in a folder. I don't want to re-partition my drive, I just need the filesystem ...
j0h's user avatar
  • 3,689
0 votes
1 answer
414 views

how do I set a root password on a dd image?

I have a dd os image, I can mount it and edit files, but the root user, has no password. so then when I burn the image, I can't log in via shh until I set a root password. I'd prefer not to change ...
j0h's user avatar
  • 3,689
2 votes
0 answers
62 views

Is it possible to add file into dmg image of application by linux?

I have a dmg image, that has been built by create dmg on a real Mac. There is a starting window with background, link to "Applications", title for Finder, and so on... I would like to add ...
Сергей Попков's user avatar
1 vote
1 answer
139 views

Is it possible to serialize a running program's memory image to disk, instead of closing it?

I recognize this is a stretch, but I have a shadow of a memory of a way to do it, and I'm hoping someone here will recognize what I'm talking about and help jog it. Traditional programs, both by ...
Michael Macha's user avatar
0 votes
2 answers
564 views

Is it possible to convert an physical Arch Linux installation to an Arch Linux iso?

For an analogy Windows has disk2vhd to take an image of an existing Windows install. Is the same possible for Arch Linux and then convert that image to an installable Arch Linux iso.
Hamza Ahmed's user avatar
1 vote
1 answer
831 views

Recovering only some partitions from disk image file

Is it possible to use img file of my entire disk to only recover some of the partitions? I have a dual-boot system with Ubuntu and Windows. Each system has its partition on the disk and I have one ...
Martin Vít Vavřík's user avatar
0 votes
1 answer
588 views

Restore from Full Disk Image to Single Partition

For major version upgrades, Tails recommends this convoluted upgrade path where you write an image on a fresh USB drive, then clone the OS partition onto your original USB drive. I'm trying to figure ...
Jared's user avatar
  • 103
0 votes
1 answer
27 views

Linux config & applications deploy on fresh hardware

The idea is to have a docker image, or something similar, where I configure a whole bunch of hardware-unrelated things, and then deploy that to an actual device like a raspberry pi or plain x64 server....
TrySpace's user avatar
  • 143
0 votes
1 answer
4k views

Deleting /etc/machine-id in ubuntu-minimal-cloudimg for proxmox template

I am trying to make a template for my Ubuntu VMs mostly by following Techno Tim's instructions here. I differ from Tim by wanting to also install qemu-guest-agent so I can get the IP of the vm without ...
Izatwin's user avatar
0 votes
1 answer
546 views

Problem creating a disk image of an SD card

I have built a custom image of Armbian with a partition size of 3.1 GB, and I am now finished working with it. It is currently written to a bootable 64 GB SD card which is using a GUID partition table ...
Chris Hudlin's user avatar
1 vote
0 answers
245 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 ...
unrealwombat's user avatar
0 votes
1 answer
775 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 ...
Larry's user avatar
  • 101
1 vote
1 answer
235 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/...
Tony's user avatar
  • 11
0 votes
0 answers
832 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 ...
unrealwombat's user avatar
0 votes
0 answers
365 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 ...
itarill's user avatar
  • 133
19 votes
3 answers
3k 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 ...
jaymmer - Reinstate Monica's user avatar
-1 votes
1 answer
195 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 ...
Schach21's user avatar
  • 103
1 vote
1 answer
201 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 ...
Vishwam Chepuri's user avatar
0 votes
1 answer
447 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 ...
Duncan Marshall's user avatar
1 vote
1 answer
2k 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,...
festiv's user avatar
  • 123
5 votes
1 answer
14k 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". ...
TSG's user avatar
  • 281

1
2 3 4 5 6