gmachine24 | Hi. Running Ubuntu 22.04.05 Jammy - and my 500GB SSD drive which holds my Ubuntu and Windows 10 installs is full up. I'm fairly certain this has something to do with Plex - I reinstalled it today and when I was listening to music via my phone I got a message that transcoding was no longer possible because my hard drive was full. Before removing and reinstalling Plex, the hard drive was ~ 23% full. I've had no luck figuring out which folder / | 00:27 |
---|---|---|
gmachine24 | location is the problem. | 00:27 |
sarnold | ncdu is very handy for sorting out this kind of thing | 00:30 |
gmachine24 | Is that something I can run remotely? Because there is no space on the hard drive - which, forgive me is 250GB - to install ncdu. | 00:37 |
gmachine24 | I supposed I can use a live boot flash drive and do that. | 00:39 |
sarnold | ouch | 00:44 |
sarnold | you might be able to get enough free space to install it via an apt-get clean command. that's usually good for a few hundred megabytes of disk space. | 00:44 |
gmachine24 | I tried that already. But thanks. | 00:45 |
sarnold | go deleting logs in /var/log/ ? perhaps some old logs are no longer necessary | 00:46 |
gmachine24 | Hang on a sec I have an idea . . . . | 00:47 |
sarnold | how many linux kernel packages do you have installed? maybe *truncate* a kernel and initrd inside /boot and then you can delete those packages, and then have a hundred megabytes or something to work with | 00:47 |
gmachine24 | I run the server headless for the most part - I connected a monitor to help resolve this problem. But there is no DE installed. Do I need a DE to run ncdu? | 00:48 |
sarnold | no | 00:52 |
sarnold | it's a simple ncurses interface | 00:52 |
gmachine24 | OK | 00:55 |
gmachine24 | This is what I got when I checked which kernel packages are installed https://pastebin.com/CqgiVaw8 | 00:56 |
gmachine24 | But, what you are talking about - truncating a kernel and then doing initrd inside /boot - this is new to me. I've no experience with that. | 00:56 |
sarnold | oh dang, only two linux kernel packages .. it's not ideal to delete one of those, if you need a fallback kernel and there isn't one available, that'd also be pretty frustrating | 00:57 |
gmachine24 | No way to run ncdu from a live boot? | 00:59 |
sarnold | if you want to go down that route anyway, you'd run something like: sudo -s to get a new root shell, then: "> /boot/vmlinuz-5.15.0-128-generic" (without the quotes -- it looks weird, yeah, but that > foo syntax will *truncate* the specific file, and truncating these files rather than removing them will make the package deleting go way smoother) | 00:59 |
sarnold | you could, if that's easier | 00:59 |
sarnold | I just hate rebooting and figure everyone else does, too, heh | 00:59 |
gmachine24 | Once I stop kicking myself for using Plex .... It seems if I try ncdu from a live boot at least I will still have the other option you mentioned. | 01:00 |
sarnold | yup | 01:03 |
gmachine24 | OK, I don't know what happened - but I just logged in to the server and suddenly the hard drive is only 55% full and I was able to install ncdu from a remote Samba session on my Windows desktop. | 01:04 |
sarnold | I wonder if the plex converter scribbles huge temporary files or something? | 01:05 |
gmachine24 | Well... I found the problem. And I'm gonna man up and say it was user error (surprise, surprise). I have been updating my back up schemed as I bought an external 4-drive enclosure; and somehow in so doing a drive was partially backed up to the /mnt location rather than the external hard drive where it should have gone. So, I removed those files and folders - and there is lots of hard drive space. Thank you for pointing out ncdu sarnold - as | 01:13 |
gmachine24 | that allowed me to see that it was the existing /mnt taking up all the space. I feel quite silly. Now I have to go back and fix everything I just borked. | 01:13 |
sarnold | gmachine24: awesome, fantastic news that it was an easy fix :) | 01:14 |
sarnold | gmachine24: .. and doing backups is even better. :D | 01:15 |
gmachine24 | Thanks for being so kind about it. I have 4 copies - three back ups - of every drive. I don't have external but I have three "grab-and-go" USB external drives as I live in a hurricane zone. | 01:16 |
gmachine24 | thanks again | 01:24 |
cpaelzer | teward: checked and merged - thanks! | 08:23 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!