Questions tagged [disk-image]

The tag has no usage guidance.

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

Create OS image with boot (fat32) and root (ext4) partition from scratch, without sudo

I want to create an OS image file from scratch, containing 2 partitions (boot, fat32 and root, ext4), without requiring sudo. The images partition layout should look like the images available for ...
Wolkenarchitekt's user avatar
0 votes
0 answers
60 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
39 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
  • 87
0 votes
0 answers
40 views

Archive qemu image

How do I archive qemu images with the same efficiency as gcloud This command stub show efficiency. Around 80% on pre installed images of OSes notorious for their install size. 40g actual physical ...
John Peterson's user avatar
0 votes
0 answers
25 views

Can't boot Ubuntu 20.xx images work from Windows 10 on SD Card Libre Computer ROC-RK3328-CC

I am able to image an SD Card using the images on firefly's site for Ubuntu 18.06 LTS and it boots fine. However, when I get the images for Ubuntu 20.xx server or desktop they do not appear to work. ...
leeand00's user avatar
  • 4,471
0 votes
0 answers
59 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
66 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
90 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
575 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,668
0 votes
0 answers
13 views

encrypted root partition error

I have created a custom image of u20. I have used qemu-system to boot through the custom image to check the sanity. after entering username and password in the login prompt, i am getting below error:- ...
Rajnish Kumar Soni's user avatar
0 votes
0 answers
114 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
259 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
141 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
95 views

How to emulate the C906 T-HEAD processor in QEMU

I am trying to setup QEMU to simulate T-HEAD's C906 processor in order to run benchmarks. I have not yet found an image for C906 and I was wondering whether it's available somewhere? I have tried ...
Some1's user avatar
  • 111
0 votes
0 answers
297 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
99 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
108 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
216 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,477
0 votes
1 answer
222 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,477
2 votes
0 answers
53 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
63 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
1 answer
375 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
501 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
363 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
24 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
2k 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
423 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
216 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
434 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 Tang's user avatar
1 vote
1 answer
167 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
593 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
304 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
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 ...
jaymmer - Reinstate Monica's user avatar
-1 votes
1 answer
138 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
180 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
316 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
1k 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
4 votes
1 answer
10k 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
  • 231
0 votes
1 answer
404 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 ...
Vlastimil Burián's user avatar
0 votes
1 answer
729 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 ...
acgbox's user avatar
  • 891
-1 votes
1 answer
365 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? ...
Bruno Schroeder's user avatar
0 votes
1 answer
98 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? # ...
Rucent88's user avatar
  • 1,850
1 vote
2 answers
996 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 ...
Forivin's user avatar
  • 817
0 votes
2 answers
1k 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 ...
Skywarth's user avatar
  • 115
3 votes
2 answers
1k 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 ...
fdmillion's user avatar
  • 2,748
0 votes
0 answers
22 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 ...
schuelermine's user avatar
0 votes
1 answer
247 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 ...
Irfan's user avatar
  • 101
0 votes
1 answer
199 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,...
Philippos's user avatar
  • 13.3k
5 votes
2 answers
3k 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 ...
DEKKER's user avatar
  • 846
1 vote
0 answers
391 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 ...
roughtartlet's user avatar

1
2 3 4 5