root file system full

kuaimarejcm's picture

Forums: 

Hi
I am using D.Linux 5.0.8 and my file system is configured this way:
"
Partition File System mount-point size used free
/dev/sda1 ext3 / 337,27 MB 316,37 MB 20,90 MB
/dev/sda2 ext3 /var 111,75 GiB 2,19 GiB 109,57 GiB
/dev/sda3 186,00 GiB
/dev/sda5 linux-swap 2,53 GiB
/dev/sda6 ext3 /tmp 384,34 GiB 22,21 MB 362,13 MB
/dev/sda7 ext3 /home 175,65 GiB 3,13 GiB 172,52 GiB
/dev/sda8 ext3 /usr 7,45 GiB 3,12 GiB 4,33 GiB
"
So, the root (/) file system is full. How can I move the root (/) filesystem to other partition ? /dev/sd2 or /dev/sd3 or any way for solve this problem?

Thanks for all

Re: root file system full

IntnsRed's picture

First, depending on how much customizing and tweaking you've done to things under /etc and other parts of the OS, a reinstall might be easier/quicker. You can use the "dpkg --get-selections > PackageList.txt" to remember what packages you have installed, and a "dpkg --set-selections Be warned: this is probably not the "right" way to do this. And it's quite possible devices wouldn't be copied correctly with the above command (a "/dev/MAKEDEV update" or similar should cure that), but it should get you booted on the new partition. And if not, the original boot partition should be accessible from GRUB's boot menu.

Addendum: Anyone have a better (or more official) way to do this? If so, I'd like to hear it as this would be a semi-common task it'd seem.

Re: root file system full

1's picture

What about, instead of manhandling GRUB, you simply chroot into the duplicated system and run update-grub, or whatever is used in such a case? Of course, it is important to bind the correct duplicated
directories in all the proper places ...

Re: root file system full

kuaimarejcm's picture

Ok.

I will make a backup first, then I'll do the GRUB. with indicating IntnsRed "dpkg - get-selections> PackageList.txt" then see what happens.

I'll tell you latter...