Disclaimer: I'm not an expert in Linux systems, my main experience is Windows.
A some time ago I've found out that on my work PC partitions are separated not in the way I would like to. I have super-small root partition (20G), swap and then the rest of the space. I just wanted to improve it with the simplest (as I thought) way - add some space from "localdisk" to root partition. Under Windows it's super trivial task which almost every partition manager can do:
- Run your favorite partition manager tool from Windows;
- Cut some volume from "top" of localdisk;
- Move swap to the bottom to have newly created free space adjacent to root; (actually, I would like to move swap just to the very end of the disk to avoid issues with moving swap in the future: to make root and localdisk adjacent)
- Extend root to include the free space;
- Commit operations and they will be performed during reboot.
- And that's it. It will move everything keeping all the data in place, nothing will be broken after it.
Nothing exceptional to do on Windows.
But on Linux it turns out I can't modify partitions that are currently in use (mounted) even with reboot, and most of advice from the Net recommend to use LiveCD as the best option. But on Windows all the tools know how to do it during reboot. So, my questions are:
- Is there a tool which allows you to do whatever and which performs all the operations after reboot, without requiring additional LiveCD ?
- If no - why? I mean, it's very routine action, why is it so harmful?
/
? It might be simpler to just move whatever is taking up your space to/localdisk
. It sounds like your cache is getting long in the tooth./
at 20G and that's always been enough. If I have to, I symlink/var/cache
to somewhere else but you can usually clear that and that's what often takes up the most space.