Skip to content

Ubuntu Partition

Nguyễn Hải Quang edited this page Jul 6, 2021 · 1 revision

List disk

parted -l

Select Disk

parted /dev/vdb

Đổi /dev/vdb thành tên disk thật

Format disk (If need)

mktable gpt

Show pree

print free

Remove partition

rm [index]

Create Partition width 100% disk

mkpart LVM ext4 0% 100%
mkfs.ext4 /dev/vdb1

Mount

vim /etc/fstab
/dev/vdb1	/new_folder ext4    defaults	0 0