Skip to content

Instantly share code, notes, and snippets.

@egodigitus
egodigitus / README.md
Last active March 18, 2023 17:25
Add new disk Ubuntu 20 Proxmox
# Add hard disk in UI, under VM -> Hardware -> Click on Add -> Hard Disk

# Non-interactive parted command
# sudo parted /dev/sdb mklabel gpt mkpart primary ext4 0% 100%

# The following shows the interactive mode of parted
# Confirm that a new disk is available (sdb with 3TB in my case)
$ lsblk
NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
@egodigitus
egodigitus / README.md
Last active May 22, 2022 15:59 — forked from gjreasoner/README.md
Expand Ubuntu 20 Proxmox Disk
# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button

# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                         8:0    0    1T  0 disk
├─sda1                      8:1    0    1M  0 part
├─sda2                      8:2    0    1G  0 part /boot
└─sda3                      8:3    0    1T  0 part