| 4 - Reference
$ sudo growpart /dev/sdX 4
$ sudo e2fsck -f /dev/sdX4
$ sudo resize2fs /dev/sdX4
$ sudo fsck.ext4 /dev/sdX4
• Option 2: Run the
# fdisk /dev/mmcblk1
Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write
them.
Be careful before using the write command.
This disk is currently in use - repartitioning is probably a bad
idea.
It's recommended to umount all file systems, and swapoff all swap
partitions on this disk.
Command (m
Partition number (1-4,
Partition 4 has been deleted.
Command (m
Partition number (4-128,
First sector (614400-62333918,
): t sector, +/-sectors or +/-size{K,M,G,T,P}
(614400-62333918,
Created a new partition 4 of type
size 29.4 GiB.
Partition #4 contains a ext4 signature.
Do you want to remove the signature? [Y]es/[N]o: N
Command (m
The partition table has been altered.
Syncing disks.
# resize2fs /dev/mmcblk1p4
resize2fs 1.46.4 (18-Aug-2021)
Filesystem at /d[
111.756178] EXT4-fs (mmcblk1p4): resizing filesystem from 512000
to 30859756 blocks
ev/mmcblk1p4 is [
111.765203] EXT4-fs (mmcblk1p4): resizing filesystem from 512000
to 30859265 blocks
mounted on /; on-line resizing required
old_desc_blocks = 2, new_desc_blocks = 118
[ 112.141953] random: crng init done
www.starfivetech.com
Note:
is the TF card device name. Change this variable according to
/dev/sdX
the actual situation.
and
fdisk
resize2fs
for
help): d
default
for
help): n
default
default
62333918)
for
help): w
© 2018-2024 StarFive Technology
All rights reserved
# extend partition 4
# extend filesystem
commands on the JH-7110 DevKit:
4): 4
4): 4
default
614400):
'Linux filesystem'
and of
26
Need help?
Do you have a question about the JH-7110 DevKit and is the answer not in the manual?