09-18-2020, 09:54 AM
(This post was last modified: 09-18-2020, 11:25 AM by neil_swann80.
Edit Reason: Found solution
)
Trying to expand the partition on my SD. Tried using Gparted, but none of the OSes then boot, stays stuck on initial OS splash after choosing.
If I instead follow the instructions from @megous, both commands:
echo ", +" | sfdisk -n -N 2 /dev/mmcblk0
echo ", +" | sfdisk -N 2 /dev/mmcblk0
always gives me "Permission denied" in Ubuntu, even if using sudo, and trying with and without /dev/mmcblk0p2 mounted.
Any idea where I'm going wrong?
EDIT: I was putting sudo at the start of the line rather than after the pipe
If I instead follow the instructions from @megous, both commands:
echo ", +" | sfdisk -n -N 2 /dev/mmcblk0
echo ", +" | sfdisk -N 2 /dev/mmcblk0
always gives me "Permission denied" in Ubuntu, even if using sudo, and trying with and without /dev/mmcblk0p2 mounted.
Any idea where I'm going wrong?
EDIT: I was putting sudo at the start of the line rather than after the pipe