Size Used Avail Use% Mounted on
udev 912M 0 912M 0% /dev
tmpfs 189M 796K 188M 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 3,9G 2,6G 1,2G 69% /
tmpfs 942M 0 942M 0% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 942M 0 942M 0% /sys/fs/cgroup
/dev/loop0 91M 91M 0 100% /snap/core/6350
/dev/loop1 89M 89M 0 100% /snap/core/6964
/dev/sda2 976M 77M 832M 9% /boot
/dev/sda1 511M 6,1M 505M 2% /boot/efi
tmpfs 189M 0 189M 0% /run/user/1000
ppaa@sarma:~$ sudo parted
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: Msft Virtual Disk (scsi)
Disk /dev/sda: 136GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 boot, esp
2 538MB 1612MB 1074MB ext4
3 1612MB 136GB 135GB
(parted) resizepart 2
Warning: Partition /dev/sda2 is being used. Are you sure you want to continue?
Yes/No? yes
End? [1612MB]? 43GB
Error: Can't have overlapping partitions.
покажи gdisk -l /dev/sda
Вот команда из истории моего шела: sudo lvextend -L +10G -r -v /dev/mapper/vg0-archlinux--rootfs Это увеличит раздел на 10GB, опция "-r" добавляет еще и ресайз ФС после увеличения раздела
Обсуждают сегодня