Skip to main content

Questions tagged [disk-image]

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

permanent vnconfig OpenBSD?

I can manually mount a dd'ed image file (+fdisk, disklabel, newfs) with: vnconfig vnd0 file.img mount /dev/vnd0c /mnt/ Question: but where should I put the vnconfig command in OpenBSD? I updated ...
robert8819's user avatar
0 votes
0 answers
38 views

unsquashfs tool to extract files from an image file

Just to be clear: linux tool unsquashfs(1) takes as input the name of a squashfs filesystem image file. In other words the file we pass to it is a "bit by bit" image of a squashfs filesystem ...
CarloC's user avatar
  • 65
1 vote
2 answers
86 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 ...
dtx1's user avatar
  • 39
5 votes
2 answers
1k 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, ...
davolfman's user avatar
  • 810
0 votes
0 answers
43 views

How to create an .img from a LVM Logical Volume

I have some LVM logical volumes in a machine, and I would like to create backup images (.img) stored in another machine. Most volumes are LVM-Thin, and I cannot resize the volumes before creating the ...
TonyStacker's user avatar
0 votes
1 answer
63 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 ...
Jestern Alberto Novello's user avatar
0 votes
0 answers
37 views

Modifying System Files in AWS Workspaces Red Hat 8 Gold Image

I am attempting to make a gold image for AWS Workspaces Red Hat 8. There are three files that I modify before capturing the image: /etc/sudoers, /etc/ssh/sshd_config, and /etc/security/access.conf. I ...
user6571907's user avatar
2 votes
2 answers
88 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 ...
Tsy Senyon's user avatar
1 vote
0 answers
44 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 ...
G-Smart's user avatar
  • 11
0 votes
1 answer
141 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
52 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
49 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,218
3 votes
1 answer
345 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
94 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 ...
ReYuki's user avatar
  • 33
0 votes
1 answer
297 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,262
0 votes
0 answers
31 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
  • 539
1 vote
0 answers
49 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
103 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
543 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
65 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
  • 575
1 vote
2 answers
699 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
95 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
1 answer
332 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
385 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
481 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
1 vote
1 answer
97 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
  • 137
0 votes
0 answers
185 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
377 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
193 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,978
0 votes
0 answers
435 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
865 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
225 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
503 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
192 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
239 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
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 ...
j0h's user avatar
  • 3,769
0 votes
1 answer
534 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,769
2 votes
0 answers
68 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
192 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
630 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
981 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
701 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
29 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
1 vote
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
  • 13
0 votes
1 answer
559 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
262 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
935 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
257 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
981 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

1
2 3 4 5 6