Created
April 29, 2018 19:46
-
-
Save Areso/bce4daf3ddd7041198e73638b24d9433 to your computer and use it in GitHub Desktop.
ubuntuproblems.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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! |
sudo -su root for cat
before resize:
e2fsck -f /dev/{newpartiotion}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo mkfs.ext4 -m 0 /dev/sda1
sudo tune2fs -m 0 /dev/sda1