Extend Partition and Filesystem
Unmount partition:
Delete partition
Create a new (larger) partition
Reduce a Partition and Filesystem
Unmount partition:
Run fsck on your filesystem
Unmount partition:
umount /<mountpoint>
Delete partition
fdisk /dev/xvdb
Command (m for help): d
Selected partition 1
Command (m for help): p
Command (m for help): w
Create a new (larger) partition
fdisk /dev/xvdbRun fsck on your filesystem
Command (m for help): n
Command action
e extendedp primary partition (1-4)p
Partition number (1-4): 1
Command (m for help): p
Command (m for help): w
e2fsck -f /dev/xvdb1Resize your filesystem with resize2fs
resize2fs /dev/xvdb1Re-mount extended partition
mount /<mountpoint>
Reduce a Partition and Filesystem
Unmount partition:
umount /<mountpoint>
Run fsck on your filesystem
e2fsck -f /dev/xvdb1Resize your filesystem with resize2fs
resize2fs /dev/xvdb1Delete partition
fdisk /dev/xvdbCreate a new (smaller) partition
Command (m for help): d
Selected partition 1
Command (m for help): p
Command (m for help): w
fdisk /dev/xvdbRe-mount shrinked partition
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
Command (m for help): p
Command (m for help): w
mount /<mountpoint>
Нема коментара:
Постави коментар
Напомена: Само члан овог блога може да постави коментар.