Orange Pi PC2 User Manual page 28

Table of Contents

Advertisement

Orange Pi Manual
Reboot the system and use df -lh to check whether expending is successful
a. Expand file system
i Boot to Linux, umount /dev/sdb1 and /dev/sdb2, if it prompts disk
busy, then use fuser to clean the using disk(we will recommend using
another Linux booting disk to lead the system).
ii Use fdisk /dev/sdb to adjust the partition size, after into it, enter p,
and keep in mind about the initial position of needed extending size
partition.
iii Enter d to delete the partition need to change the size(my file system
is /dev/sdb2, which is the 2 partition ).
iv Enter n to build a new partition, make sure the initial position is the
same as you deleted, and enter the number as you desire.
v Enter w to save the partition data.
vi Use the following command to check the file system(make sure it is
a right file system)
e2fsck -f /dev/sdb2
vii Adjust the partition size
resize2fs /dev/sdb2
viii It could mount a disk partition, you could check whether it has
changed.
b. Shrink file system
i Boot to Linux, umount /dev/sdb1 and /dev/sdb2, if it prompts disk
busy, then use fuser to clean the using disk(we will recommend using
another Linux booting disk to lead the system).
ii Use the following command to check the file system(make sure it is
a right file system)
e2fsck -f /dev/sdb2
iii Modify the size of file system(Use resize2fs)
www.orangepi.org
Copy right by Shenzhen Xunlong Software Co., Ltd
26
www.xunlong.tv

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents