09-18-2020, 01:15 PM
(09-18-2020, 09:54 AM)neil_swann80 Wrote: 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.You need to run those commands as root, so on Ubuntu or other "sudo" to-run-as-root-system, you'd type:
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
Code:
echo ", +" | sudo sfdisk -n -N 2 /dev/mmcblk0
Of course, make sure that the device really is /dev/mmcblk0 -- I've got a USB reader for SD cards, and mine gets automounted to /dev/sdg. YMMV depending on how many other drive devices present, etc.