How do I move and resize my Windows partition, as well as my Ubuntu partition, and still make them work with the bootloader?
My problem is that I partitioned my harddrive like so years ago, with the first 20gb being my Ubuntu partition, the 265gb being my Windows partition, and the 185gb being another partition just for files.
Now I found myself wanting to use Ubuntu mainly, and so I found 20gb to be lacking. But now I have no idea how to proceed, since I'm afraid of breaking either of my two OSes. I think I already did something like this before, and indeed did had to reformat everything to fix things.
What could be a good way to go about doing this?
And while plenty of people already asked a similar question, I haven't found an answer to the moving partitions problem. Thanks a lot!
By the way, the 23gb is an installation of Kali Linux, but I don't particularly care about it right now and I would actually want to use that space as part of m Ubuntu installation.
sudo parted /dev/sda unit s print
and save the output (print it on paper or store it on an external disk) before you begin, and after every change. This will give you restore information should something go wrong. Also, back up all your important personal data in case something goes REALLY wrong!fdisk
,parted
, or some other tool to re-create the partitions EXACTLY as defined on your saved copy. There are other ways to do this, too; for instance,sfdisk
can save partition information to a file that it can then read back in.sudo sfdisk -d /dev/sda > backup.txt
will back up andsudo sfdisk -f /dev/sda < backup.txt
will restore.