Questions tagged [disk-image]
The disk-image tag has no summary.
265 questions
0
votes
0
answers
15
views
Clonezilla image restoration
So I want to restore two partitions from a clonezilla image, let's call them x and y, to a different set of partitions on a different device, m and n. The issue I currently face is that Clonezilla ...
4
votes
2
answers
373
views
Replacing a 500GB SSD LUKS/LVM drive in place with 1TB SSD
I have a ThinkPad T520 running Fedora with a single 500GB SSD drive. The drive has two partitions, a small boot partition and the rest devoted to a a single LUKS one. The LUKS partition is managed ...
0
votes
1
answer
186
views
How can I extract files from a disk image backup (.image file)? [duplicate]
I backed up my old device using dd and am trying to access its contents.
The following has been attempted:
usr@pop-os:~/Backups$ sudo mkdir /mnt/<dir>
mount -o loop <file>.image /mnt/<...
2
votes
1
answer
411
views
“Bad magic number in super-block” after a dd of Mobian (Debian) image
General overview
I try to install the Mobian OS on my Pinephone thought the dd’s method as described in the official Debian documentation. Basically, I have to make a dd from an image to a partition ...
0
votes
2
answers
73
views
how to copy a HD to another if the CPU is freezing after a few GB?
how to copy a HD to another if the CPU is freezing after a few GB ?
I had to copy w11 of a friend notebook from a 128GB nvme to a 1TB nvme.
I put nvne128gb in a usb adapter and the nvme1TB inside the ...
5
votes
2
answers
461
views
How to get name of loop device that contains a LUKS-encrypted logical volume
In Ubuntu, I have mounted a raw disk .img file as a loop device that contains a LUKS encrypted LVM with an Ubuntu install on it.
It is mounted like so: (output is from lsblk -o NAME,PKNAME,KNAME,...
1
vote
0
answers
32
views
User space program for assembling Linux MD RAID disk images into a coalesced disk image, without using kernel implementation
I've been handed a set of disk images which apparently are Linux MD RAID, asking if I could "reassemble" them. Using a Linux kernel it's as easy as attaching them into partition scanned ...
1
vote
1
answer
65
views
permanent vnconfig OpenBSD?
I can manually mount an image file (containing a valid filesystem) with:
vnconfig vnd0 file.img
mount /dev/vnd0c /mnt/
Question: Where should I put the vnconfig command in OpenBSD?
I updated fstab to ...
1
vote
2
answers
355
views
How to make an image of your Linux Install
I'm looking to physically replace my current linux boot hard drive with a new hard drive, but want to 'copy' the existing boot drive contents onto that new drive.
I assume the best way to do this is ...
5
votes
2
answers
2k
views
Does GNU Tar have a single option to get absolutely everything about a tree
I'm in a situation where I want the kind of guarantees of getting every bit of data and metadata about a tree of files that might normally require using dump/restore. I need everything uids, gids, ...
0
votes
1
answer
116
views
SDcard Image behaves differently than Original
I created my OS on my Raspberry pi 2 zero W on an SDcard. Now I want to distribute it so I made an Image from the SDCard (using dd). But the two cards behave differently especially at startup. Did ...
3
votes
0
answers
405
views
How to boot a writable disk image (created with dd from Debian or another distribution) with GRUB?
I created a multi-boot USB stick to load various ISO files, which can either be live systems or used to install different Linux distributions.
sda
-sda1 1M | BIOS Boot partition to store MBR
...
2
votes
2
answers
140
views
How can I mount this special disk? (.vmdk format, bootable but cound not mount...)
I got a virtual disk from a CyberSecurity vendor, I want to check the files on it.
When I set my virtual machine boot from this disk, it can normally boot.
I want to check the files on it, so I attach ...
1
vote
0
answers
83
views
Need to expand rootfs online. Looking for alternatives
I am currently working with NXP's iMX8MP-EVK and I created a custom image using yocto. The image is 6.6GB in size and after flashing this image into eMMC and booting through it, I found the remaining ...
0
votes
1
answer
462
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 ...
0
votes
1
answer
103
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/...
0
votes
1
answer
103
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 ...
3
votes
1
answer
906
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....
0
votes
1
answer
135
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 ...
0
votes
1
answer
949
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
$...
2
votes
0
answers
109
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 ...
0
votes
0
answers
155
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=...
1
vote
2
answers
2k
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 ...
0
votes
0
answers
107
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 ...
1
vote
2
answers
2k
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 ...
0
votes
0
answers
138
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 ....
0
votes
1
answer
549
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 ...
0
votes
1
answer
688
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 ...
1
vote
1
answer
661
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 ...
1
vote
1
answer
143
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,...
0
votes
0
answers
254
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 ...
0
votes
1
answer
511
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 ...
0
votes
0
answers
239
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 ...
4
votes
1
answer
2k
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 ...
0
votes
0
answers
573
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 ...
1
vote
0
answers
1k
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 ...
0
votes
0
answers
267
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 ...
0
votes
0
answers
648
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=/...
0
votes
1
answer
247
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,...
0
votes
1
answer
361
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 ...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
702
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 ...
2
votes
0
answers
90
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 ...
1
vote
1
answer
251
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 ...
0
votes
2
answers
697
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.
1
vote
1
answer
1k
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 ...
0
votes
1
answer
880
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 ...
0
votes
1
answer
34
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....
2
votes
1
answer
6k
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 ...
0
votes
1
answer
613
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 ...