cb-linux / breath

Linux for Chromebooks
https://cb-linux.github.io/breath/
MIT License
302 stars 55 forks source link

Can't expand USB image to use available space #312

Closed offensivelyaverage closed 2 years ago

offensivelyaverage commented 2 years ago

I re-created a Breath IMG (Ubuntu LTS, GNOME) and flashed it, but on all devices I flash it to I'm left unable to run the 'expand' script to make use of the remaining disk space on the USB (or SD card, I tried it on one of those too).

They all throw the same error:

Screenshot 2022-08-16 at 16 23 25

As well as being unable to run the expander script from the same machine I installed Breath from I'm also unable to create a partition (of any format) out of the remaining free space. Or resize the breath partition. The only way to make the remaining space usable is to re-format the entire USB. Otherwise, it's just sat there "free" but unable to be changed.

Screenshot 2022-08-16 at 16 25 52

I've reformatted and refreshed the USB about 18 times, including onto different devices, and the same issue occurs.

Breath itself runs fine, it's just the partition(s) that can't be resized 💁🏻‍♂️

MilkyDeveloper commented 2 years ago

Looks like you omitted the /dev in /dev/sdb when queried about your USB device in expand.sh :D. I'll add some code that validates this.

GNOME Disks is unable to expand the partition because the bootloader that Chromebooks have, Depthcharge, requires a modified GPT layout to work.

offensivelyaverage commented 2 years ago

Looks like you omitted the /dev in /dev/sdb when queried about your USB device in expand.sh :D. I'll add some code that validates this.

Doh! I feel so stupid. That's exactly the issue… 🙈 I'm off to hide…