Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3990

General discussion • Re: Reduce size of Pi4 boot partition on SSD drive please....

$
0
0
Confirmed. parted is not equivalent to the graphical gparted. Parted does not support automatic resizing and moving of file systems.
Ok, so do it manually. Use resize2fs to shrink the filesystem, then parted or even fdisk to change the partition. This only works with unmounted partitions.
I usually:
Take a note of partition details from fdisk -l, particularly the start sector.
fsck -f the filesystem to make sure it is error free.
Run resize2fs -M to make the file system as small as possible.
Use fdisk to delete the partition, then recreate it at the size I want (this doesn't delete the contents of the partition).
fsck -f the filesystem again, just to be sure.
Run resize2fs on the filesystem to grow it to fit the partition.
Have a party :-)

Statistics: Posted by rpdom — Sun Feb 04, 2024 5:51 pm



Viewing all articles
Browse latest Browse all 3990

Trending Articles