grims
Posts: 5
Joined: Fri Feb 17, 2017 8:35 am

Resizing the partitions "resize-sd" for Manjaro-Arm is not properly working

Thu Jun 14, 2018 5:40 pm

Resizing the partitions
http://wiki.manjaro-arm.org/index.php/G ... Installing
By default, the partitions that are created within the image are just large enough to support the OS. To have any usable space, you must first resize the partitions to fill the remainder of the sdcard. There is an included script that automates to minimize the risk of errors or data corruption. To run this script, simple run:

Code: Select all

sudo resize-sd
Once completed, the script will prompt you to reboot the device. Once the reboot has finished, you should see that the available space has been completely filled with the root '/' partition and the filesystem has been resized to match.

But this does not happen:

Code: Select all

Error: The device /dev/autofs is so small that it cannot possibly store a file system or partition table.  Perhaps you selected the wrong device?
Warning: Error fsyncing/closing /dev/autofs: Invalid argument
Retry/Ignore?
Solution for raspberry pi 3:

Code: Select all

findmnt / -o source -n
should be approximately: "mmcblk0p2"

enter commands:

Code: Select all

sudo sed -i '/PART_DEV=/c\PART_DEV="/dev/mmcblk0p2"' /usr/bin/resize-sd
sudo sed -i '/parted -m/c\parted -m $DEV u s resizepart $PART_NUM yes $END_SECTOR' /usr/bin/resize-sd
sudo sed -i '/df -h/c\df -h | egrep "Filesystem|$PART_NAME"' /usr/bin/resize-sd
Further:

Code: Select all

sudo resize-sd
Reboot!
Profit!

P.S. Images Manjaro-Arm_Mate_rpi2_18.05.img

User avatar
DougieLawson
Posts: 34168
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Resizing the partitions "resize-sd" for Manjaro-Arm is not properly working

Thu Jun 14, 2018 6:16 pm

Post your question on https://forum.manjaro.org/c/manjaro-arm you are much more likely to get an answer over there.
Note:The use of baseball bats for educational purposes is completely disallowed on this forum.

Any DMs sent on Twitter will be answered next month.

grims
Posts: 5
Joined: Fri Feb 17, 2017 8:35 am

Re: Resizing the partitions "resize-sd" for Manjaro-Arm is not properly working

Thu Jun 14, 2018 7:06 pm

DougieLawson wrote:
Thu Jun 14, 2018 6:16 pm
Post your question on https://forum.manjaro.org/c/manjaro-arm you are much more likely to get an answer over there.
Thanks, but it's not a question, it's the answer.

cjan
Posts: 623
Joined: Sun May 06, 2012 12:00 am

Re: Resizing the partitions "resize-sd" for Manjaro-Arm is not properly working

Thu Jun 14, 2018 9:53 pm

they fixed in 18.06 mini.img or wait mate-18.06.img.

Return to “Troubleshooting”