Quantcast
Viewing all articles
Browse latest Browse all 3567

General Questions • [Software] Moving Storage From One Parition To Another?

Hello! On my server install of debian, I screwed up by making a /home partition and making most of my storage there. I've freed up most of the storage from the /home, but I can't seem to transfer it from sda2 to sda1, any fixes? Here's an image of my cfdisk for reference: https://ibb.co/KXm3kpJ
You can try with gparted boot disk probably better off deleting the whole partition assigned to home then expanding the / partition to take all of its space. Do not forget to mount the /root partition and edit the /etc/fstab on it to remove the /home/user_name entry contained in it and while you are at it check in the /home directory on the existing / for your user_name directory. If not then mkdir /path/to/mounted/root/home/user_name to create the directory then chown user_name:user_name /path/to/mounted/root/home/user_name with possibly a cp -Rp /path/to/mounted/existing/home/user_name/.* /path/to/mounted/root/home/user_name/ to get the . files that are in the old home before wiping it out. You will need to unmount both the old home and root before beginning any resizing operations.

https://gparted.org/display-doc.php%3Fn ... partitions

Statistics: Posted by RedGreen925 — 2024-06-12 03:31 — Replies 1 — Views 20



Viewing all articles
Browse latest Browse all 3567

Trending Articles