0

So, I have a Chromebook with two USB ports, a 128gb USB drive with my ideal Linux set up on it (Ubuntu 18.04, i3-gaps, other specific visual customizations) and an external/portable 500gb SSD that I would like to completely transfer said setup to. It's pretty clear to me that going into developer mode on my Chromebook and using dd in the command line is the best way to clone my setup. And after doing so successfully using:

sudo dd if=/dev/sda of=sdb bs=64 conv=sync,noerror status=progress

I ran into a problem. I realized that the partition was exactly copied of course, but this meant that it only recognized 128gb of space on the 500gb storage device, totally defeating the purpose of transferring the disk in the first place (i.e., having almost five times as much storage space).

My question, and I assume there must be a way, is how do I go about expanding/resizing the partition, either through the use of a flag in dd possibly, or after the partition has been cloned to the SSD perhaps? I'm at a loss and any help would be appreciated.

UPDATE So, I've dd'd my drive over to the SSD for the second time after formatting it with the good ol' ext4 format. And it cloned it in the way I liked! No smaller partition keeping me from filling up the drive. But there's still a problem. Ubuntu, or more specifically Thunar and i3blocks (thus far) believe I only have 81.6GB of space left. What gives?

UPDATE 2:

This is what gparted is showing.

enter image description here

While gnome-disks says this,

enter image description here

and this when I try to use the resize feature. gparted says nothing in this regard as it wont let me select it's resize feature.

enter image description here

Any thoughts y'all?

2

1 Answer 1

1

GNU Parted is a very useful tool for this kind of problem. If you are booting your image, and have a GUI, you can install it from the Ubuntu software store and it's very straightforward to use. Select the partition, right-click, select resize the partition. It will probably require a reboot to do the job.

Look for gparted in the software store.

If you can boot off the other USB drive and select the 500 GB drive in GParted, that might be helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.