On 5/24/25 06:31, Tommy Berglund wrote:
Hi,
Translated by Google from Swedish

Is it possible to add an EFI system partition to a server already
running Debian 12?
How do I do it?

(parted) print devices
/dev/sda (2000GB)
/dev/sdb (2000GB)
/dev/mapper/vg-data (1888GB)
/dev/mapper/vg-www (4295MB)
/dev/mapper/vg-vmail (10,7GB)
/dev/mapper/vg-ftp (16,1GB)
/dev/mapper/vg-var (9999MB)
/dev/mapper/vg-tmp (1996MB)
/dev/mapper/vg-home (43,1GB)
/dev/mapper/vg-root (25,0GB)
/dev/mapper/vg-swap_1 (1023MB)
(parted) print free
Model: ATA ST2000VN000-1H31 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system  Flags
         1024B   1049kB  1048kB            Free Space
  1      1049kB  512MB   511MB   primary   ext2         boot
         512MB   513MB   1048kB            Free Space
  2      513MB   2000GB  2000GB  extended
  5      513MB   2000GB  2000GB  logical                lvm
         2000GB  2000GB  90,1kB            Free Space


I would disconnect the 2T drives, install a small, fast, security erased SSD, connect the SSD to the motherboard first HBA port, boot into Setup, do a "Factory Reset", configure settings as desired (e.g. UEFI mode), and do a fresh install of Debian onto the SSD with a 1G ext4 boot, 1G swap, and everything else on ext4 root (encrypt swap and/or root as desired). Once that is up and running, reconnect the 2T drives, disable the boot flag on sda1 and/or sdb1, install/configure LVM to access the contents of your 2T drives, and install/configure software.


David




Reply via email to