Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Root partition is full

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
devNull
Posts: 18
Joined: 2022-08-25 03:26
Has thanked: 2 times

Root partition is full

#1 Post by devNull »

Newbie error....

Code: Select all

df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev            16232240        0  16232240   0% /dev
tmpfs            3249944     2896   3247048   1% /run
/dev/nvme0n1p2  28660644 27779212         0 100% /
/dev/nvme0n1p3 931178576 26455320 857348256   3% /home
tmpfs            3249940        0   3249940   0% /run/user/1000

Code: Select all

84M     /boot
172K    /tmp
16K     /opt
16K     /media
4.0K    /srv
48K     /root
16K     /lost+found
25G     /var
4.0K    /mnt
4.0M    /etc
1.9G    /usr
How to I find out where the usage is specifically? This is a headless installation. I have few paackages in use. So something intended for /home must be in the wrong place.

Thanks for any help

User avatar
devNull
Posts: 18
Joined: 2022-08-25 03:26
Has thanked: 2 times

Re: Root partition is full

#2 Post by devNull »

A lucky guess... but I purged old docker images... now I see

Code: Select all

df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev            16232240        0  16232240   0% /dev
tmpfs            3249944    11088   3238856   1% /run
/dev/nvme0n1p2  28660644 11458168  15721260  43% /
/dev/nvme0n1p3 931178576 26457836 857345740   3% /home
tmpfs            3249940        0   3249940   0% /run/user/1000
Is it possible to redsitrubute, non-destructively storage from /home to / using gparted? I probably should double / size.

User avatar
donald
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 1093
Joined: 2021-03-30 20:08
Has thanked: 188 times
Been thanked: 244 times

Re: Root partition is full

#3 Post by donald »

NCDU (NCurses Disk Usage) is the perfect tool for this it is a front end for the DU command.
Typo perfectionish.


"The advice given above is all good, and just because a new message has appeared it does not mean that a problem has arisen, just that a new gremlin hiding in the hardware has been exposed." - FreewheelinFrank

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Root partition is full

#4 Post by p.H »

devNull wrote: 2022-10-20 20:22 How to I find out where the usage is specifically?
You can see that /var contains 25 GiB. Repeat the search to find out what takes most space in /var and so on.
devNull wrote: 2022-10-20 20:56 Is it possible to redsitrubute, non-destructively storage from /home to / using gparted?
Yes, but it requires to unmount /home and move its whole contents towards the end of the drive.
Other options:
- reduce /home without moving it, create a new partition and mount it where needed
- move a heavy directory into /home and replace it with a symlink pointing to the new path
- move the data from a heavy directory to another directory in /home and "bind" mount the new directory on the original one

PS: Consider using LVM for your next installation. It makes distributing disk space much easier.

User avatar
devNull
Posts: 18
Joined: 2022-08-25 03:26
Has thanked: 2 times

Re: Root partition is full

#5 Post by devNull »

donald wrote: 2022-10-21 01:00 NCDU (NCurses Disk Usage) is the perfect tool for this it is a front end for the DU command.
NCDU is amazing. Thanks for the tip!
p.H wrote: 2022-10-21 07:30
devNull wrote: 2022-10-20 20:56 Is it possible to redistribute, non-destructively storage from /home to / using gparted?
Yes, but it requires to unmount /home and move its whole contents towards the end of the drive.
Other options:
- reduce /home without moving it, create a new partition and mount it where needed
- move the a heavy directory into /home and replace it with a symlink pointing to the new path
- move the data from a heavy directory to another directory in /home and "bind" mount the new directory on the original one

PS: Consider using LVM for your next installation. It makes distributing disk space much easier.
Thanks for the ideas. I'm leery of repartitioning (though with Windows, I do this often), but the linking option will help me move 70% of my present root storage onto /home.

User avatar
PsychoHermit
Posts: 68
Joined: 2022-08-16 04:17
Location: Carson City, Nv
Has thanked: 6 times
Been thanked: 2 times

Re: Root partition is full

#6 Post by PsychoHermit »

I would boot a live dvd and resize home giving some of the space to /. You have plenty of disk space you just need to re-distribute some of it.

--glenn

gkterry
Posts: 1
Joined: 2022-08-31 03:25

Re: Root partition is full

#7 Post by gkterry »

I agree 28G is a bit small for root

Post Reply