2022 Developer Survey is open! Take survey.

New answers tagged

0 votes

changing grub boot drive

[You May try booting from a usb stick or running live ubuntu somehow] Try using boot repair >>Advanced Options >> Grub Location this will allow you to write grub on a seperate partition ...
user avatar
0 votes

Windows partition not seen

there is 2 ways to dual boot at the bios/efi level, if the motherboard supports it, use its boot manager, and select between disks to boot. This obviously only works if you are using multiple disks, ...
user avatar
  • 4,121
2 votes
Accepted

Do MBR partition numbers need to be contiguous?

Partition numbers cannot conflict. Physically cannot. The partitions are recorded in a Partition Table, special place in the 0-block of the disk. These records are not a named records, they are placed ...
user avatar
  • 1,188
1 vote

Write a bootable image of system into an internal disk, without removing a data partition

Use fdisk to delete volumes sdb1 to sdb3 Still in fdisk, create a new volume sdb1, covering the whole free 100 GB Now you only want to copy sda1 of your image to sdb1, so do fdisk ubuntu.img and print ...
user avatar
  • 11.2k
2 votes

Grub install with encrypted Boot partition

grub-install is expecting to find /boot, but cannot, because according to your lsblk, it's at /mnt/boot... so you aren't chrooted into the new installation at this time. But I agree with Sheldon: ...
user avatar
  • 66.9k
0 votes
Accepted

Grub install with encrypted Boot partition

I'm pretty sure that the ESP must be a simple (FAT-formatted) partition, not wrapped by LVM. While you can encrypt your boot partition, an encrypted ESP inside LVM is not gonna fly. i am trying to do ...
user avatar
  • 77
4 votes

Implication of deleting an /etc/crypttab entry

Entries in /etc/crypttab works similarly to /etc/fstab: if the device listed there is not present, the boot process will try to wait for it and after some time the boot process will fail. It shouldn't ...
user avatar
0 votes
Accepted

LVExtend can't find space on physical volume

You increased the size of /dev/sda3 but you haven't yet told LVM that the size has increased. Use pvresize /dev/sda3 to resize the Physical Volume. This will automatically grow space availabe in the ...
user avatar
  • 89.1k
1 vote
Accepted

Scripting the partition shrinking

I understood what was wrong: First, sfdisk accept the size of the partition, not the increment, so the + sign is wrong. One difference from fdisk is that the end is the sector number from the ...
user avatar
  • 111
0 votes

Boot partition full: Move to encrypted partition

Credit largely belongs to Guilhem Moulin, I merely simplify. Superuser will be required repeatedly and you may prefer to run command su for a root shell (alternatively, proceed commands with sudo ...
user avatar
  • 1
0 votes

pvcreate: Can't use /dev/sda: device is partitioned

Upon my first attempt, pvcreate -ff /dev/vdh did not work for me, whether or not the disk contains a partition. pvcreate -ff /dev/vdh Cannot use /dev/vdh: device is partitioned I had to use wipefs ...
user avatar
-6 votes

Ubuntu 20.04 installation created a swapfile instead of swap partition. Is it normal?

This is NOT normal as it's unpredicted and uncontrolled behavior. I've made a clean install (ubuntu-20.04.1-live-server-amd64) on Virtualbox without LVM, root partition only with no swap partition ...
user avatar
  • 1
2 votes

How to to resize an ext4 partition from the command line?

The solution of noalo is obviously the best of all; so much simpler than the others: echo "- +" | sfdisk -N <partnum> /dev/sdX Short explanation on how it works: -N means sfdisk will work on a ...
user avatar
2 votes

Resizing partitions for EC2 FreeBSD instance without reboot

The problem we are having here is that while the low-level nvme driver recognizes the increased volume size: # nvmecontrol devlist ... nvme2: Amazon Elastic Block Store nvme2ns1 (655360MB) ... ...
user avatar

Top 50 recent answers are included