partition

How do I use LUKS encrypted partitions with Kubuntu 24.04 installation?

How do I use LUKS encrypted partitions with Kubuntu 24.04 installation? I am trying to install Kubuntu 24.04 with manual partitioning. I have created primary partitions for EFI and boot, and an encrypted partition with logical volumes for swap, root, and home. Previously, after this step I just run the Kubuntu installer, manually assigned /dev/mapper/vg0-* …

Total answers: 2

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

Moving from plain LUKS to LVM on LUKS

Moving from plain LUKS to LVM on LUKS At installation I forgot to create a logical volume group in LUKS container. I won’t reinstall the system. So how do I create LVG in LUKS container without data loss? My plan is: Install lvm2 package Backup / using rsync to another drive Create logical volumes I …

Total answers: 1

How do I rescue an encrypted LUKS partition after failed shrink

How do I rescue an encrypted LUKS partition after failed shrink I had an encrypted ext4 partition on a Samsung T7 1TB USB drive. It was LUKS (I believe this may be called a LUKS container?) The partition was 850GB. It had about 130GB in use. I also had an unencrypted 100GB NTFS partition and …

Total answers: 1

Understanding the auto-allocated disk layout on OpenBSD

Understanding the auto-allocated disk layout on OpenBSD I am attempting to install OpenBSD7.4 on an amd64 arch with a 1TB drive. The machine will run an X windows system and need plently of room to store files. I selected "whole disk GPT" at the prompt (though I’m unsure whether MBR might be the better option). …

Total answers: 1

How do I permanently recover from grub rescue?

How do I permanently recover from grub rescue? This question relates to a Windows/Linux dual boot system on a DOS-partitioned SSD (i.e. none with GPT/UEFI). Originally, the computer only had Windows 10 on an HDD. Then I managed to transfer this system to the SSD, resize the partitions and install Xubuntu 20.04 alongside Windows 10, …

Total answers: 1

multiple paritioning of loopback device leads to error

multiple paritioning of loopback device leads to error I’m in the development of a partitioning tool, for testing purposes I have to run partitioning and LVM configurations repeatedly on a loopback device Partition /dev/loop0 with 3 partitions /dev/loop0p1 /dev/loop0p2 /dev/loop0p3 Create LVMs pvcreate /dev/loop0p2 /dev/loop0p3 vgcreate test_vg /dev/loop0p2 /dev/loop0p3 lvcreate -L 1GB test_vg -n vol1 …

Total answers: 1

Debian GRUB installer partitioning step – Intel MacBook Pro

Debian GRUB installer partitioning step – Intel MacBook Pro I am trying to install Debian to a partition on my SSD. Currently I have three partitions on my SSD: Container disk1 – AFPS container macOS AFPS Volume Group Linux – PCI-Express Internal Physical Volume Bootcamp – PCI-Express Internal Physical Volume And I have created my …

Total answers: 1

First 32GB of a 4TB ext4 filesystem overwritten. How to recover?

First 32GB of a 4TB ext4 filesystem overwritten. How to recover? Due to an accident specifying a block device, the first 32GB of a 4TB ext4 filesystem on a SATA disk was overwritten by the dd command with the contents of a USB flash drive. fdisk -l /dev/sda reports the following: Disk /dev/sda: 3.7 TiB, …

Total answers: 1

Handle Partition Changes Embedded System

Handle Partition Changes Embedded System I have to update some outdated embedded systems. But the RAUC Update contains four partitions, while the old systems have only three partitions. The additional Partition is at the start of the disk and I cannot flash the devices with an external Adapter. What I have, is SSH access to …

Total answers: 1

New notebook and factory partition

New notebook and factory partition First time using a linux, I’m using Debian 12. My notebook arrived with the following partition (512gb SSD), in this order (left to right in the disk viewer): /boot/efi – 537mb /root – 20gb recover (unmounted) – 10gb Swap – 16gb /home – 466gb Since I’ve started using it, I …

Total answers: 1

Move partition to end of disk

Move partition to end of disk I have a VM on Promox running Debian 11. I need to increase disk space, so I’ve resized disk in Proxmox GUI. But now, I need to enlarge root partition. This wouldn’t be a problem, if root partition was the last on disk, but now, it’s a partition in …

Total answers: 1

Debian preseed installation is failing if there a previous OS installed

Debian preseed installation is failing if there a previous OS installed I am trying to automate the install of Debian 12. It is working correctly when I wipe the disk off using a live cd but I want the preseed iso to wipe the disk off instead and continue with installation. When there is already …

Total answers: 1

Is it safe to use /dev/disk/by-id/ instead of /dev/sda?

Is it safe to use /dev/disk/by-id/ instead of /dev/sda? I am currently using a simple way to back up the drive dd if=/dev/sda of=/dev/sdb. However, before each operation, I have to check fdisk -l to see if sda and sdb have been swapped during boot. This is quite inconvenient and error prone. Is using symbolic …

Total answers: 1

How to add a Logical Volume (LV) for /var/tmp?

How to add a Logical Volume (LV) for /var/tmp? I’ve got one physical volume and one volume group: /dev/mapper/nvme0n1p3_crypt VG Name ced-vg I’ve got five logical volumes: /dev/ced-vg/root /dev/ced-vg/var /dev/ced-vg/swap_1 /dev/ced-vg/tmp /dev/ced-vg/home I want to add a sixth logical volume on that same, unique, physical volume (I’m not adding any new SSD), which could maybe …

Total answers: 1

Disk size is variable

Disk size is variable I was flashing a new operating system to a device, but after the process was complete, I couldn’t boot into it. I then checked the disk, and I noticed something strange. Different tools report different sizes for the disk, even though it should be approximately 120GB in size. So, I decided …

Total answers: 1

USB disk partitions disappeared, cannot mount

USB disk partitions disappeared, cannot mount The USB partitions were deleted, only sdb remained. sdb1 does not exist. How do I partition the USB again? Now it shows up in the lsblk output, but I can’t mount it. [xx@x ~]$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 465.8G 0 disk ├─sda1 …

Total answers: 1

Recover from parted -s /dev/sda1 mklabel gpt

Recover from parted -s /dev/sda1 mklabel gpt Ok. Please don’t judge me. I had no coffee yet when I did this… I tried to format a new USB drive and the drive didn’t mount and I didn’t think straight… long story short, I did parted -s /dev/sda1 mklabel gpt where sda is, of course, my …

Total answers: 1

How to fix external drive in Linux the way Windows does automatically

How to fix external drive in Linux the way Windows does automatically I have unplugged an older 500 GB HD NTFS external drive without unmounting it first and then it couldn’t be mounted in Linux. I have tried on different machines but the same error occurred. I was thinking to apply a "repair" procedure with …

Total answers: 1

LVM and device mapper: Logical Volume device sector size

LVM and device mapper: Logical Volume device sector size This seems to be a problem regarding the sector size of the mapped device for a logical volume between different machines. More specifically, I’d like to know if and how the sector size of a mapped device corresponding to a logical volume can be configured. Here …

Total answers: 1