disk-image

syslinux creating unexpected partitions on disk image

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 records out 209715200 bytes (210 MB, 200 MiB) copied, 0.190117 s, 1.1 GB/s $ mkfs.ext2 test.img mke2fs …

Total answers: 1

Mounting a Disk Image

Mounting a Disk Image I’m trying to create a disk image and mount the partition for further work, but I’m encountering a frustrating error message: "wrong fs type, bad option, bad superblock." Here’s the steps I took and the output I received: $ dd if=/dev/zero of=test.img status=progress bs=200M count=1 1+0 records in 1+0 records out …

Total answers: 3

Creating disk image with msdos partition table and fat32

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 image is quite …

Total answers: 2

Change /tmp (to increase available space) on live system?

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 do not have on system drive. …

Total answers: 1

22.04.2 server image is *three* times the size of 22.04.1: why?

22.04.2 server image is *three* times the size of 22.04.1: why? I’m sorry to have to say it, but the 22.04.2 server install has exploded. Unreasonably. What’s going on? I’ve been packaging Ubuntu-based VMs for several years, first on 20.04.x, then 22.04, 22.04.1, and now 22.04.2. These are based on the server downloads. The last …

Total answers: 1

Can't boot from flash drive with custom .img

Can't boot from flash drive with custom .img I recently tried using this answer to create a custom .img of my system. I created a fresh Ubuntu Install in a new partition, set everything up, installed all the bloat I need for some stuff and then switched to main my Main Partition to flash an …

Total answers: 2

EXT partition seen as unpartitioned space in loop device on Ubuntu 22.04.1

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, so that isn’t the issue. Here is my …

Total answers: 1

Disk Cleanup utility on ubuntu

Disk Cleanup utility on ubuntu This question is influenced by the diskclean utility in Windows. Is there a tool (and a need) to perform the task. I tend to used when imaging a hard disk. Thank you Asked By: chribonn || Source You could try using Bleachbit. It is the most similar to CCleaner. It …

Total answers: 2

how do I make a new filesystem image?

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 to build an OS in. …

Total answers: 1

Lost /home partition after resizing with kde partition manager

Lost /home partition after resizing with kde partition manager The disk name is /dev/sdd and the partition table was as it follows: Partition Type Label Size Used First Sector Last Sector Number of sectors /dev/sdd1 unknown Microsoft reserved 15.98MiB —- 34 32767 32734 /dev/sdd2 ntfs Kingston (Data partition) 270.63GiB 252.94GiB 32768 567590911 567558144 /dev/sdd5 ext4 …

Total answers: 1

How to backup a Ubuntu USB installation as a disk image?

How to backup a Ubuntu USB installation as a disk image? I have Ubuntu installed in an USB drive. It is not a live or persistent live install. It is a regular, full install. Is there any way to backup the USB drive to a .img or .iso file, which I can later use to …

Total answers: 1

Linux config & applications deploy on fresh hardware

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. I’m assuming this is not possible to do it this straightforward, …

Total answers: 1

Booting from real (UEFI) disk image on QEMU

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". Detailed Description I have a desktop x86_64 machine on which I have …

Total answers: 1

Build aarch64 NVIDIA Jetson Nano image in x64 docker container using GitLab runner

Build aarch64 NVIDIA Jetson Nano image in x64 docker container using GitLab runner I am trying to build a custom NVIDIA Jetson Nano image (aarch64 architecture) inside a Docker container (running Ubuntu 20.04 x64). I skip the NVIDIA tools part because I am stuck on the first part when creating proofs. I am using the …

Total answers: 1

Install Tails with persistent storage on VirtualBox

Install Tails with persistent storage on VirtualBox Tails OS is distributed either via .iso or .img file. The only .img can have persistent storage, but only .iso can be mounted to VirtualBox and properly booted. I would like to have VirtualBox Tails machine with persistent storage and ability to install 3rd parties software. Below is …

Total answers: 6

Create an image of the partition (only the used space)

Create an image of the partition (only the used space) I have a partition sdb1 of size 3.3 GB. From 3.3 GB only 1.9 GB is used and 1.2 GB is an empty space. I want to create an image of this partition. But I want the image to only have the used space i.e. …

Total answers: 2

Create filesystem in regular file using FreeBSD

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 ~/disk newfs: /root/disk: not a character-special device: No error: 0 newfs: …

Total answers: 2

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

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 I just clone the disk and …

Total answers: 2