/srv/irclogs.ubuntu.com/2025/01/15/#ubuntu-server.txt

gmachine24Hi. 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
gmachine24location is the problem.00:27
sarnoldncdu is very handy for sorting out this kind of thing00:30
gmachine24Is 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
gmachine24I supposed I can use a live boot flash drive and do that.00:39
sarnoldouch00:44
sarnoldyou 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
gmachine24I tried that already. But thanks.00:45
sarnoldgo deleting logs in /var/log/ ? perhaps some old logs are no longer necessary00:46
gmachine24Hang on a sec I have an idea . . . .00:47
sarnoldhow 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 with00:47
gmachine24I 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
sarnoldno00:52
sarnoldit's a simple ncurses interface00:52
gmachine24OK00:55
gmachine24This is what I got when I checked which kernel packages are installed https://pastebin.com/CqgiVaw800:56
gmachine24But, 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
sarnoldoh 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 frustrating00:57
gmachine24No way to run ncdu from a live boot?00:59
sarnoldif 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
sarnoldyou could, if that's easier00:59
sarnoldI just hate rebooting and figure everyone else does, too, heh00:59
gmachine24Once 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
sarnoldyup01:03
gmachine24OK, 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
sarnoldI wonder if the plex converter scribbles huge temporary files or something?01:05
gmachine24Well... 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
gmachine24that 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
sarnoldgmachine24: awesome, fantastic news that it was an easy fix :)01:14
sarnoldgmachine24: .. and doing backups is even better. :D01:15
gmachine24Thanks 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
gmachine24thanks again01:24
cpaelzerteward: checked and merged - thanks!08:23

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!