-
get a shell on the organelle-m, and become root
sudo su -
-
check what filesystem is mounted at
/sdcard
(e.g./dev/mmcblk0p3
)df -h
-
remount writeable
scripts/remount-rw.sh
-
launch fdisk interactively
fdisk /dev/mmcblk0
-
in fdisk shell:
-
list partitions
p
-
copy
Start
of the partition with the device we saw indf -h
-
delete partition
d
-
choose partition to delete. we want the one with the device we saw in
df -h
3
-
new partition
n
-
select partition type. we want "primary"
p
-
accept default for partition number (partition 3)
-
paste the
Start
number we copied for first sector -
accept default for last sector
At this point I got a warning:
Partition #3 contains a ext4 signature.
and was prompted to remove it or not. I selected yes.-
write the changes
w
I got a warning here:
Re-reading the partition table failed.: Device or resource busy
, and fdisk exited. Things still worked fine though, YMMV-
quit fdisk (if that above stuff didn't happen)
q
-
-
reboot (but we're not finished)
reboot
-
get a shell back, become root, and remount rw again
sudo su - scripts/remount-rw.sh
-
run resize2fs on the
/sdcard
device (maybe checkdf -h
again)resize2fs /dev/mmcblk0p3 # /sdcard from df
-
reboot and you're all set
reboot
Last active
November 18, 2021 01:23
-
-
Save rupa/9ee4d2f3f00c06c722b1ccd4ed58c50f to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment