Questions tagged [disk-image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
59 views

Creating OS image from the current installation

I have installed Kali Linux on my Orange Pi board from the official website and made some configuration changes on top of the default installation. I was wondering if I can create a new image, a kind ...
0
votes
1answer
403 views

Does the arch linux pacstrap utility put any information about the host into the assembled system

As part of a prototype arch linux image generation script (which can be seen for code review here), I use the normal pacstrap utility to populate a file-system with a bootable install and additional ...
1
vote
1answer
3k views

Check disk image file system type

How could I check the file system format of a disk image ? I know that I can check with file command but I would like to automate the behaviour. $ file img.raw img.raw: data $ file img.ext4 img....
0
votes
1answer
740 views

Why was a disk image created with dd, bigger than the original disk?

I recently backed up a disk using dd and when I tried to dd the image back to the disk, I realized that somehow the image file is bigger in size than the original disk that was created of original ...
4
votes
1answer
3k views

How can I extract files from a disk image without mounting it?

Say I have a disk image (possibly partitioned) that I have permission to read. However, I don't have permission to mount it via loopback*. In theory, the data is all there; I could write code that ...
0
votes
1answer
1k views

Automatically shrink an ext4 IMG file

I have an ext4 img file containing an Android system partition files. I mount it by using sudo mount -t ext4 -o loop,rw system.img system When I'm done editing the files and umount the file, I ...
1
vote
1answer
30 views

Upgrading distro generates new and different boot images

I dual-boot Windows and Fedora on a machine with GRUB. Whenever I update Fedora or its Linux kernel, it generates a new disk image in /boot thus creating another boot option when loads GRUB. However, ...
1
vote
1answer
282 views

Determine if two iso images are equal

I've recently made multiple images of several SD cards on multiple machines using dd. I haven't done a stellar job with my naming, and have some duplicates. How can I quickly determine if two images ...
1
vote
0answers
108 views

Can gzip change original file size?

/dev/sdf is a 32G SD. As far as I can tell, I had performed the following, but upon attempting to perform the final step and write to a SD, my file image appears to be one byte to large for the SD. ...
0
votes
0answers
149 views

What is dd doing at the end of copying an image to disk

Today I've copied a 4GB image to a SD card. I noticed that copying the image took about 421 seconds. It showed it had copied 4294967296 bytes. After that dd seemed to do nothing but the command prompt ...
0
votes
1answer
34 views

Should unused partitions be removed?

I downloaded a jessie raspbian image and it shows two partitions. [Michael@devserver ~]$ fdisk -l 2017-07-05-raspbian-jessie-lite.img You must set cylinders. You can do this from the extra functions ...
0
votes
1answer
189 views

Image drive that's formated as a single filesystem (no partitions)

I've been using Clonezilla (partimage) to image all of the drives on one of my networks. The drive in question is used as data drive for a Fedora host, and is formatted EXT2, however the filesystem ...
0
votes
2answers
487 views

How to mount an iso disk image hidden in an unallocated free space on a disk, assuming that the location and size of the image are known?

Suppose that an iso disk image is hidden in an unallocated free space on a disk. Note that, because it is hidden in an unallocated space, it is not recognizable to the filesystem. Assuming that the ...
2
votes
1answer
345 views

What is special about an amd64+mac ISO?

Some GNU/Linux distributions (for example, Ubuntu) provide 'amd64+mac' ISOs, in addition to the regular 'amd64' ISOs. The amd64+mac ISO is apparently required for booting on certain Apple Macs. I am ...
2
votes
2answers
105 views

How can I safely write a disk image to a memory card?

I routinely copy disk images to SD cards for use on a Raspberry Pi. The usual way I do this is by dd if=/tmp/filesystem.img of=/dev/sdb, which is only a minor typo away from over-writing my computer'...
4
votes
2answers
3k views

Running QEMU with a root file system directory instead of disk image

In order to test the root file system i need to run QEMU with created disk image as root file system, the QEMU accepts -kernel which can be used for specifying kernel directly without deploying it ...
1
vote
3answers
3k views

How to correctly restore system partition (iso image) with 'Disks'

I have been able to backup and restore a Linux Mint system partition with 'Disks' (command to run: gnome-disks; package to install: gnome-disk-utility) from a live session, but I am not sure that was ...
1
vote
1answer
487 views

dd creates a file bigger than the source

I use dd for creating an image of my filesystem . I use Debian 8(Jessie) on ARM 32 bit system. Command I run is : dd if=/dev/mmcblk0 bs=1M | gzip -c > /mnt/usb/<image_name.gz> For some ...
2
votes
1answer
341 views

Why does kpartx use a new loop device each time?

I'm running kpartx from within a python script as part of a custom OS build I'm trying to do. I'm using python sh module to run bash commands. sh.kpartx("-as", image) is how I attach my image. Then ...
5
votes
3answers
3k views

How to extract the linux version from a `.img` backup?

In short: How to extract the VERSION, SUBVERSION and PATCHLEVEl numbers from a system backup .img? ideally without root permissions. Extended: From the following page: https://www.raspberrypi.org/...
1
vote
1answer
67 views

AWS Image transfer to other cloud

We have more than 5 instances AWS cloud, but I want to shift these instance image to other cloud is it possible? if yes so please let me know how.
0
votes
2answers
63 views

Used and unused space in an img file doesn't add up to total capacity

I had an image file of size 2.3gb that was almost full (only around 70MB unused space). So in order to expand it, I used the command dd if=/dev/zero bs=1M count=1700MB >> ./image.img And then ...
3
votes
2answers
2k views

Create filesystem in regular file using FreeBSD

When using Linux, one can easily create a regular file of some size and then create a filesystem in it. How can one do the same thing when using FreeBSD? I tried this: root@:/tmp/test # newfs -U ~/...
1
vote
0answers
35 views

Binary permissions in romfs

I inherited an old system and I am still getting a hold of how the system works. Its a custom linux running built on AT91. We build a romfs and package in a bunch of binaries that gets installed upon ...
1
vote
1answer
7k views

Can't mount disk image

I have a disk image file I'm trying to mount locally using a loop device. Using parted I can see the image has two partitions, however, I'm not able to mount the first partition and losetup thinks the ...
1
vote
0answers
159 views

Optimize cloning image without cloning unused space

I have a pi with a 32g sd. michael@pi3:/ $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 29804860 1773224 26791008 7% / devtmpfs 468152 0 468152 ...
0
votes
1answer
765 views

How do I update the partition table on a disk image file after resizing a partition in it?

I'm trying to resize a disk image (Raspbian image) on disk. The trouble is, when I attempt to boot the RaspberryPi from the resized image (after writing to an SD card) I get: Kernel panic - not ...
2
votes
2answers
3k views

bad geometry: block count 967424 exceeds size of device (415232 blocks)

I am trying to understand what I did wrong with the following mount command. Take the following file from here: http://elinux.org/CI20_Distros#Debian_8_2016-02-02_Beta Simply download the img file ...
1
vote
1answer
7k views

Shrink disk image

I have several disk images stored at my fileserver at the moment, these are mainly system images created with dd. The reason for why I have created these images is because I needed the harddrive for ...
0
votes
2answers
508 views

Where Can I Download Chrome OS?

A few months ago, I bought a Chromebook CR-48 Mario on eBay and I "modded" it and flashed a new BIOS and installed a different Linux version. Now I want to re-install Chrome OS. Where can I download ...
1
vote
1answer
2k views

Burn a disk image to a USB

I'm following this guide to make a simple bootloader. It generates a file disk.img. $ dd if=/dev/zero of=disk.img bs=1024 count=1440 $ dd if=vbr.bin of=disk.img count=512 conv=notrunc $ file disk.img ...
3
votes
1answer
185 views

How to create a consistent forensic image from a live RHEL system?

In our environment we have RHEL7 systems that need to be always up and running. I know the preferred method of acquiring a forensic image is to take the system offline, but in case of a live image, ...
1
vote
0answers
104 views

How to deflate dynamic VirtualBox drive if guest uses btrfs?

I'm using VirtualBox and guest OS has btrfs filesystem. Standard, known to me method of "deflating" image is: dd if=/dev/zero of=./somefile So VirtualBox notices zeros and deflates image. However ...
7
votes
2answers
23k views

How can I migrate a Linux installation from HDD to SSD?

I have some normal x86_64 desktop Linux installed in a single ext4 root partition† on some 500GB HDD. Now if I want to migrate this installation to a 500GB SSD (rest of the system stays the same), do ...
1
vote
2answers
77 views

How to write an disk image back to its own source?

I'm trying to create an image of /dev/sda and write the output to a new .iso file on the same device. How can I exclude the new image file; so as to prevent the output from becoming its own input, and ...
3
votes
1answer
1k views

Cannot mount partition made on loop device (which is pointing to a file)

Goal I'm trying to make a harddisk image from scratch using a file. This includes MBR, partition table, number of partitions, etc. I cannot for the life of me get Linux to mount the partitions I make ...
1
vote
1answer
465 views

How to ensure that an NTFS disk image file is not being written to when mounted?

I have a 500GB raw disk image file on my HDD that I’ve called dysk.img and that is a result of dd'ing the contents of an external single NTFS partion drive. Its purpose is to attempt data recovery ...
1
vote
4answers
6k views

KVM can't access qcow2 images storend on an external HDD

I'm running Deepin 15.3 x64 and i have an external HDD with EXT4 file system. whereat i store things like VM images. Oracle VM VirtualBox and VMware Workstation Player works just fine with this config,...
2
votes
2answers
1k views

getting contents from a .dmg or .img file

I have a .dmg file meant for Mac, I'm trying to get the contents from it (it's Microsoft Project Manager, if that matters) but I can't figure out what to do. I've made a .img copy using dmg2img, and I'...
3
votes
3answers
371 views

Creating recovarable disk image [closed]

Laptop I want to buy comes with preinstalled windows 10. I want to install linux on this laptop but I want to have option to recover windows (reset to factory settings). Because of that I want to make ...
2
votes
1answer
259 views

ddrescue image differs in size

I have 40gb image split into 10 4gb files, then combined with dm-linear to create single 40gb drive. One file got damaged single 4kb sector. However when I'm copying data unsing either dd or ddrescue ...
1
vote
0answers
29 views

Unexpected less gzip compression with -9 [duplicate]

I do have a USB mass storage device of 4GB, in which I had created two partition, both are of ext4. First partition is 1.5G and another one is 2.5G First partition is almost full while second one is ...
1
vote
2answers
405 views

Write bootable image to USB and have an usable USB

I wrote a Linux Mint 18.1 image using the Linux Mint USB Image Writer utility and everything went fine. However, my original usb had a capacity of 64 Gb and now only shows 1.8 Gb (the size of the ...
0
votes
1answer
2k views

Using CloneZilla with Software RAID5

I'd like to image my software RAID5 configuration (3 drives), then move it to a new set of hard drives. Since CloneZilla doesn't support software RAID, I was hoping to do the following: Create an ...
0
votes
1answer
28 views

Image used part of RAID5 onto smaller drive

I have a 2TB RAID5 of which 700GB is used and a 1TB empty hard drive. I'd like to image the RAID onto the drive (so I can later rebuild it using a different set of drives). Looks like dd images the ...
0
votes
2answers
92 views

After encrypting a disk, how do you check that a known plain-text inside the disk became gibberish? [closed]

I encrypted a disk using cryptsetup. I want to be able to visualize that a known text before encrypting the disk became gibberish after encrypting. How do I do such comparison? Here's an example ...
1
vote
1answer
568 views

Full Image of internal HDD, drive - dd / dd_rescue - with TrueCrypt [bad sectors] [read error]

Background I had a problem under Windows with ndis.sys [sys don't start] Status: 0xc00000e9 Info: Windows failed to load because a critical system driver... To repair I had to fully decrypt drive [...
4
votes
2answers
2k views

How to verify that rsync copied the device correctly when copy-devices is enabled?

This is an extension to Why rsync attempts to copy file that is already up-to-date? I'm attempting to use the --copy-devices patch to rsync to copy an entire disk drive and store it as an image on ...
40
votes
4answers
101k views

How to mount a disk image from the command line?

I know how to mount a drive that has a corresponding device file in /dev, but I don't know how to do this for a disk image that does not represent a physical device and does not have an analogue in /...
20
votes
2answers
3k views

Zipped hard drive image very big

I just made an image of a freshly installed dual boot (Ubuntu and Windows) using this command (which I've been using for a while for smaller images): dd if=/dev/sda | gzip > /mnt/drive.img.gz On ...