Skip to content

Instantly share code, notes, and snippets.

@Areso
Created April 29, 2018 19:46
Show Gist options
  • Save Areso/bce4daf3ddd7041198e73638b24d9433 to your computer and use it in GitHub Desktop.
Save Areso/bce4daf3ddd7041198e73638b24d9433 to your computer and use it in GitHub Desktop.
ubuntuproblems.txt
/boot/grub
For configuration see
/etc/default/grub
sudo blkid
Create a new empty partition after /dev/sda8,
make it the size that you want your Arch partition to be.
Then do cat /dev/sda9 > /dev(the partition you just created) when in a root shell.
(You can't just use sudo as it will make you root to run cat, but not to access the new partition.)
You just duplicated your Arch partition,
but now you need to expand the filesystem to the full size of the partition.
You can either let gparted take care of this for you
(I believe it will do it for you if you check the new filesystem),
or just run sudo resize2fs /dev/(the new partition),
and then check it to be on the safe side with sudo fsck /dev/(the new partition).
You can now delete the original Arch partition.
Just make sure to update your grub parameters if you didn't address the filesystem by UUID!
@Areso
Copy link
Author

Areso commented Apr 29, 2018

sudo mkfs.ext4 -m 0 /dev/sda1
sudo tune2fs -m 0 /dev/sda1

@Areso
Copy link
Author

Areso commented Apr 29, 2018

sudo -su root for cat

@Areso
Copy link
Author

Areso commented Apr 29, 2018

before resize:
e2fsck -f /dev/{newpartiotion}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment