I have a 300 GB external drive connected to a Raspberry Pi. I changed the file boot/cmdline.txt
in order to use the SD card only to boot up the system. Then the partition /root
is located in /dev/sda2
(external drive). How can I increase the size of the root partition? I want to merge all the unallocated space with /sda/dev2
.
I tried by using GParted, but it is necessary to unmount
before merging:
sudo umount /dev/sda2
umount: /: device is busy.
Gparted Image: