Questions tagged [disk-image]

a disk-image is an exact copy of a disk, partition or volume, or the process of making such a copy.

Filter by
Sorted by
Tagged with
2 votes
2 answers
6k views

What steps are needed after cloning from a image Ubuntu to new system? (sysprep, unconfig)

I have an imaged (clonezilla) system image of a Ubuntu setup with a bunch of settings. Now I am wondering, what needs to be changed if I use the clonezilla image to create always new systems from this ...
0 votes
1 answer
466 views

vgcreate fails with 'already exists in filesystem' error

I have an installation test environment, where occasionally an issue is observed causing volume group creation to fail. At the beginning of test, the disk contains four partitions. # parted -l Model: ...
2 votes
0 answers
2k views

How do I convert a VMDK disk to QCOW2 using qemu-img without inflating the disk?

I'm converting some VMs from vSphere to KVM/QEMU but each time it inflates the thin provisioned disk. Before converting the image from vmdk to qcow2, first I export OVAs or OVFs from vSphere to make ...
1 vote
1 answer
496 views

proxmox image import creates an 50GB disk regardless of image size

If I import a disk image for vm 101 from a raw image, it will create an 50GB disk image: # qm importdisk 101 disk.img local-zfs importing disk '446-jenkinsmite.img' to VM 101 ... transferred 0.0 B of ...
3 votes
3 answers
1k views

How to shrink btrfs image file used by LXD storage?

I have btrfs image file set as backend for LXD (2.18) but I would like to shrink it's size. What I did: mounted image to loop device losetup /dev/loop1 /home/btrfs.img mounted device to /mnt dir ...
2 votes
3 answers
4k views

How to resize lxc/lxd images, if i am using LVM backend?

I'm using LXD few years and I'm glad to use this platform in my testing environment. But few days ago, I couldn't install Microsoft SQL server 2017. The reason was, that I used default ZFS backend. ...
5 votes
3 answers
10k views

How can I mount an ISO Image in Windows 7 WinPE?

I have a 16GB USB flash drive that I want to set up like this: It boots WinPE It has useful diagnostic and system maintenance tools There are several .ISO files of operating system install DVDs on ...
37 votes
6 answers
61k views

free up not used space on a qcow2-image-file on kvm/qemu

we are using kvm/qemu with qcow2-images for our virtual machines. qcow2 has this nice feature where the image file only allocates the actually needed space by the virtual-machine. but how do i shrink ...
236 votes
29 answers
610k views

Using DD for disk cloning

There's been a number of questions regarding disk cloning tools and dd has been suggested at least once. I've already considered using dd myself, mainly because ease of use, and that it's readily ...
0 votes
2 answers
4k views

Azure: How to attach data-disks on VM startup, formatting if necessary

I want to provision an Azure VM with Terraform and configure it by using a custom AMI created by Packer. I want an attached, snapshotted, managed data-disk. I want to use Oracle Linux 7.4 What is ...
2 votes
1 answer
859 views

Efficient way to write a sparse partition to a disk image?

I generate an ext4 partition image that contains a minimal Debian file system, then write that partition image into a full disk image. I am looking for the fastest way to do the write. Consider a ...
3 votes
2 answers
2k views

Updating a single file in a CPIO archive

I have a CPIO archive with the Linux image on it. With binwalk I can see that there are the following chunks: DECIMAL HEXADECIMAL DESCRIPTION ------------------------------------------------...
0 votes
1 answer
540 views

Add Partition Table to existing vhdx partition image

I have images of single paritions (not full disks) in vhdx format. I want to create VMs with Hyper-V with them. Since the images are only partitions the machines do not start. How can I add the disk ...
11 votes
3 answers
4k views

Where does Ubuntu store partition UUIDs on disk?

Exactly what part of the disk is a UUID stored on? MBR? Somewhere within the partition? Is it a calculated value, or randomly generated and recorded?
0 votes
1 answer
43 views

Can I mksqashfs a whole Mint 20 OS then restore with unsquashfs on a different drive?

I have a very strict system with the bare minimum applications on for security reasons since I work with medical data. Sometimes the laptops we use messup for one reason or another, won't boot, can't ...
0 votes
1 answer
240 views

Changing the disk type of vsphere VM using Rest API

I am looking for a way to convert my Vsphere VM disk type using REST API calls, like "Dependent" and "Independent-Nonpersistent". i was searching in the documentation for Sphere 6....
0 votes
1 answer
2k views

Instructions for pushing image from server on a local network

Every fortnight or so we get around 10-20 computers back from clients and we have to wipe them, restore to factory default, and then install a few select pieces of software. It's arduous and time-...
2 votes
0 answers
205 views

How to make a virtual disk image out of several parts?

During a process of moving to a virtualized infrastructure I encountered the following curious problem. We want to evaluate everything first. This involves creating a virtual images of all required ...
0 votes
0 answers
128 views

Can I use a KVM image of Debian as a bootable image for a laptop?

I'm given the task to create a unified Debian image for all my teammates laptops. My plan is to create a KVM with all the necessary software and settings and copy this image later with dd to the hard ...
0 votes
1 answer
975 views

Clonezilla from single USB stick / pen

I am trying to create a custom clonezilla installer, as a tool to refresh our standard machines from memory stick. I can customise the start menu fine from syslinux/syslinux.cfg just fine, but I ...
7 votes
5 answers
6k views

How to write a sparse Linux (EXT4) disk image without writing gigabytes of zeros?

I have a 64 GB Linux disk image with ~50 GB of unused space across the partitions. The file is sparse, so it only takes ~14 GB on disk. But if I dd the image, it writes the full 64 GB, which takes ...
4 votes
2 answers
15k views

How to copy KVM disk image to LVM

Problem I'm getting a No space left on device error when doing a dd command. I'm trying to move a KVM qcow2 file to an LVM partition and thought that the LVM partition needed to be the same size as ...
1 vote
2 answers
2k views

Is there a good way to shrink disk usage of sparse file containing luks-encrypted btrfs file system image?

I've created a sparse file filesystem.img, formatted in with cryptsetup luksFormat, created a btrfs filesystem on it. The image file disk usage expanding fine while adding files to the btrfs ...
9 votes
2 answers
23k views

Create a windows 10 image for use as a docker container

I'm trying to create a Windows 10 image in order to dockerize an existing legacy application. For very good reasons, the base image has to be Windows 10 not Windows Server. How do I go about doing ...
2 votes
4 answers
2k views

Version control for virtual disk images

Is there any existing system for efficiently tracking the version history of a virtual disk image? Essentially, I have a disk image which is used as a "template" root filesystem for testing programs. ...
0 votes
1 answer
408 views

Creating/Deploying Windows Server 2019 Image on multiple servers

I manage servers that are all identical in terms of hardware and software. The only differences are hostnames and IP addresses. I've been researching how to clone the OS across these to speed up ...
0 votes
1 answer
27 views

Extract the content of the image from which the Windows workstations are installed?

I am just developer who tries to debug one nasty error that happens only on the workstations that are built/installed from some corporate image of the Windows workstation. I have no idea what "...
1 vote
1 answer
2k views

How to determine disk image file format: VMDK, VHD or raw file format?

Is there any shell command using which I can determine the format of a disk image file? I want to check that disk image file is in which of these formats: vmdk, vhd of raw file.
1 vote
0 answers
2k views

Disk disappeared after umount and reboot

I had a disk which disappeared: # df -h Filesystem Size Used Avail Use% Mounted on . . /dev/mapper/vg1-osblv02 5.0T 61G 4.7T 2% /data/osb-pool-1 /dev/mapper/vg01-osblv01 ...
0 votes
1 answer
741 views

Disk snapshot size created from a google compute engine exceeds used space

I have a Google Compute Instance (VM) that has a 2TB disk and around 80GB used space. I wanted to archive this VM so that I don't get billed for the whole 2TB, and also so that it is ready to be ...
5 votes
6 answers
7k views

RAID 1, vs RAID 6 vs RAID 10. What is most secure and reliable for my needs?

Here is what I need to achieve. I have a work PC with 2xSSD one for O.S. and software, and the second smaller for storing data. Currently I backup my data on an external HDD and on the cloud, I also ...
0 votes
0 answers
20 views

Virt Block device resizing [duplicate]

I am attempting to expand the size of a virtual disk on an existing image. I was successful to expand the virtual hard disk and partition thanks to this guide, but noticed my virtual disk was still ...
0 votes
0 answers
862 views

How do I recover a broken logical volume group?

I created a logical volume group for my xen VMs on a separate drive. I had them working perfectly. Then I accidentally unplugged the USB cable hosting my vg0. Now my VMs drives cannot be detected. I ...
0 votes
1 answer
4k views

losetup mounts disk image as one device. How to loopback the partitions seperately?

I have a disk image with 2 partitions. When I do #losetup -f <file> only /dev/loop0 appears. How do I make /dev/loop0p0 and /dev/loop0p1 appear? Using #parted /dev/loop0 it does show the 2 ...
0 votes
1 answer
341 views

RHEL specific version images not available in Google Cloud Platform

When trying to create VM instances in GCP compute Engine, only RHEL latest versions images are available for each release. RHEL 7.9 and RHEL 8.3 are available. But unable to find RHEL 7.6/7.7/7.8/8.1/...
7 votes
3 answers
10k views

Get exact size in bytes of a disk & partitions in windows

I'm using dd (under cygwin) to copy a shadow image of a disk in windows. Shadow copy will only give me a partion, so what I am doing is: 1) using dd to grab the disk header (32k on Win2003) 2) using ...
5 votes
2 answers
154 views

Advice on replicating Hyper-V server image

What would be some recommendations for replicating a Windows Server 2019 system image that also contains a couple of Hyper V VMs? I have several identical new Dell Edge servers to set up. Setup ...
9 votes
3 answers
17k views

Why is Clonezilla faster than dd?

On my SSD imaging (Source and Destination are 2 SSDs) I get 12GBpm using CloneZilla while with dd I get only 5GBpm. What makes Clonezilla so much faster than dd?
0 votes
1 answer
2k views

ESXi management fails, refusing connections, after copying in the boot drive from a backup

I’m writing this after having found the solution myself, because it was such a strange “gotcha” it deserves to be documented. Although I hit this issue while doing a restore, it’s possible this could ...
18 votes
12 answers
142k views

How can I copy a VHD image back to a physical disc?

It's quite easy to backup a real drive to VHD, e.g. with Sysinternal's Disk2VHD on XP or with Windows Image Backup on Windows 7. But how do I copy that file back? It's possible by booting a recovery ...
1 vote
1 answer
110 views

How to read binary contents of free disk space in CentOS

Is there a way I can use dd or another tool to view the binary contents of free disk space in CentOS? In case it matters, it's a Linux logical volume with XFS format, holding data only (not a common ...
0 votes
1 answer
658 views

Cannot create VM with uploaded image on Openstack (Devstack)

I am working on a very simple project with Openstack, using Devstack. Currently, I've been able to make networks, routers, Vm's without many issues. But here is where I am having trouble. I've created ...
1 vote
2 answers
7k views

cloning with dd - is non-partitioned space considered the same as empty space within filesystem for resulting image size?

note: all = all that i've found All the "cloning with dd" information talks about how dd copies all the "empty space", but literally all writings seem to be responding to a ...
0 votes
0 answers
565 views

How to Lift and Shift from OpenStack to GCP?

I have previously had an OpenStack based cloud environmnent in which I had virtual servers. I have migrated to GCP and while I've refactored everything to be cloud native (and especially k8s), I'd ...
2 votes
2 answers
5k views

CloneZilla Live vs. PartImage?

For use on a test computer, I need a free cloning tool to save NTFS and ext3 partitions to the same disk, ie. no need to up/download images from a server. CloneZilla Live and PartImage (available on ...
0 votes
2 answers
261 views

How to create GCE machine image without including unmounted disks?

I created a machine image on GCE from a running ubuntu VM which has an "additional" disk available to be mounted. That disk is mounted for backups, then dismounted, and was not mounted at ...
9 votes
4 answers
30k views

How to convert a TAR file into an ISO file

I have a Linux TAR file that I would like to convert directly into an ISO. Is there a way to do this, preferably, without having to extract the contents of the file first? This would be similar to ...
0 votes
1 answer
2k views

How to create a bootable ISO image from a disk snapshot

I've taken a disk snapshot of my Ubuntu VM from Amazon EC2. The snapshot is a ZIP archive of the whole disk. I've downloaded and then extracted the snapshot. Now I would like to create a bootable ISO ...
3 votes
2 answers
16k views

Clonezilla from Command Line

I wan to use Clonezilla to Copy an Entire Disk to another Server. As the Source Disk resides on a Server, I do not have Access to the server to use a Live-CD. I will therefore have to use the command ...
0 votes
1 answer
200 views

gcloud compute engine - multiple full backups / snapshots / machine images?

On a gcloud debian vm instance, I would like to create full backups and rotate them, e.g. one per day of week one per week one per month one per year That is, each daily would get over-...

1
2 3 4 5