Starting SFlint as root
I have a partition / which is 18 GB, with only 3.4 GB free (80.9% full). Need to delete some files and/or packages, SFlint can do that, but must be started as root, I can not do that:
ea@seanix:~$ sudo SFlint
[sudo] password for ea:
sudo: SFlint: command not found
ea@seanix:~$ gksudo SFlint
ea@seanix:~$
The second start attempt appears to run the program, but it is not visible on any of my workspaces.
What am I missing?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- ealthuis
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Are you sure it has the capitals? Linux is very case sensitive. Usually commands are all lower case. The command isn't found so arbitrarily adding sudo won't make it suddenly appear
Revision history for this message
|
#2 |
Maybe just purging obsolete versions of the kernel package with the package management tools brings back enough space.
What is the output of the commands
uname -a
lsb_release -crid
dpkg -l | egrep ' linux-[hi]'
Revision history for this message
|
#3 |
I tried lower case, nothing showed.
also here are the answers:
ea@azura:~$ gksudo sflint
ea@azura:~$ uname -a
Linux azura 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:41:41 UTC 2016 i686 i686 i686 GNU/Linux
ea@azura:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
ea@azura:~$ dpkg -l |egrep 'linux-[hi]'
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-image-
ii linux-image-
ii linux-image-generic 4.4.0.38.40 i386 Generic Linux kernel image
ea@azura:~$
Revision history for this message
|
#4 |
Just what are the package management tools?
That may indeed be all I need..
Revision history for this message
|
#5 |
What do you want to do with the packages and we can advise.
Revision history for this message
|
#6 |
The package management tools are the Ubuntu-provided programs for installing and removing program packages (e.g. apt, apt-get, dpkg, update-manager, ubuntu-software, synaptic, ...)
How did you install SFlint?
What is the output of the commands
df -h
df -i
sudo du -sch /*
Revision history for this message
|
#7 |
Primarily I need to make some space in "/"
From Ubuntu Software, I did nothing special, except press the "install" button.
ea@azura:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 986M 0 986M 0% /dev
tmpfs 201M 6.3M 195M 4% /run
/dev/sda1 17G 14G 2.4G 85% /
tmpfs 1003M 256K 1003M 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1003M 0 1003M 0% /sys/fs/cgroup
/dev/sda3 19G 2.6G 15G 15% /home
cgmfs 100K 0 100K 0% /run/cgmanager/fs
192.168.0.103:/ 23G 16G 6.6G 70% /mnt
192.168.
192.168.
tmpfs 201M 88K 201M 1% /run/user/1000
ea@azura:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 210736 496 210240 1% /dev
tmpfs 219620 687 218933 1% /run
/dev/sda1 1099440 216076 883364 20% /
tmpfs 219620 10 219610 1% /dev/shm
tmpfs 219620 6 219614 1% /run/lock
tmpfs 219620 18 219602 1% /sys/fs/cgroup
/dev/sda3 1221600 26184 1195416 3% /home
cgmfs 219620 14 219606 1% /run/cgmanager/fs
192.168.0.103:/ 1525920 251880 1274040 17% /mnt
192.168.
192.168.
tmpfs 219620 38 219582 1% /run/user/1000
ea@azura:~$ sudo du -sch/*
[sudo] password for ea:
du: invalid option -- '/'
du: invalid option -- '*'
Try 'du --help' for more information.
ea@azura:~$ sudo du -sch /*
13M /bin
53M /boot
4.0K /cdrom
256K /dev
89M /etc
2.6G /home
0 /initrd.img
Revision history for this message
|
#8 |
Please provide the complete output of
sudo du -schx /*
What you posted in the last reply is only half of the lines.
Revision history for this message
|
#9 |
Sorry about that, here is the rest:
324M /lib
16K /lost+found
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
du: cannot read directory '/media/
664G /media
du: fts_read failed: /mnt/mass/
179M /opt
du: cannot access '/proc/
du: cannot access '/proc/
du: cannot access '/proc/3498/fd/3': No such file or directory
du: cannot access '/proc/
du: cannot access '/proc/3510': No such file or directory
0 /proc
1.3M /root
du: cannot access '/run/user/
6.3M /run
14M /sbin
4.0K /snap
4.0K /srv
0 /sys
52K /tmp
3.6G /usr
9.0G /var
0 /vmlinuz
688G total
ea@azura: ~$
Revision history for this message
|
#10 |
I believe this is what was requested:
ea@azura:~$ sudo du -schx /*
[sudo] password for ea:
13M /bin
53M /boot
4.0K /cdrom
0 /dev
89M /etc
2.6G /home
0 /initrd.img
324M /lib
16K /lost+found
12K /media
52K /mnt
179M /opt
du: cannot access '/proc/
du: cannot access '/proc/
du: cannot access '/proc/3803/fd/3': No such file or directory
du: cannot access '/proc/
0 /proc
1.3M /root
6.3M /run
14M /sbin
4.0K /snap
4.0K /srv
0 /sys
52K /tmp
3.6G /usr
9.0G /var
0 /vmlinuz
16G total
ea@azura:~$
Revision history for this message
|
#11 |
9 GB for /var seems huge.
What is the output of
sudo du -schx /var/*
Revision history for this message
|
#12 |
ea@azura:~$ sudo du -schx /var/*
[sudo] password for ea:
6.0M /var/backups
151M /var/cache
3.9M /var/crash
277M /var/lib
4.0K /var/local
0 /var/lock
9.0M /var/log
4.0K /var/mail
4.0K /var/metrics
4.0K /var/opt
0 /var/run
4.0K /var/snap
368K /var/spool
8.6G /var/tmp
9.0G total
ea@azura:~$
Revision history for this message
|
#13 |
Thank you Manfred for sticking with me.
I have 4 computers using NFS (Network File Service), it works perfectly, however two of the computers use it most and their /var/tmp are both over 9GB, the others only around 2 GB. The files are sytemd-private-... and cnijpwgtmp..., the first because of systemd use the secong is created by use of a Canon MB5020 printer. All I need to do is clean these up now and then, because I do not believe there is an automatic cleaning process? All of these files are owned by root so I can not easily get rid of them.
It was for the root ownership that I created this question. SFlint needs root use to clean things up, however I don't think these files were found by SFlint.
Revision history for this message
|
#14 |
You have correctly identified the /var/tmp directory to be the one that consumes most hard disk space.
A quick web search search shows that the sytemd-private-... usually are empty (and automatically deleted after 30 days), but that the cnijpwgtmp... files/directories can be huge (and apparently are on your systems).
The name indicates that they are related to Canon printers/scanner (as already written by you).
I assume that they can be deleted if there are no open tasks (pending print jobs etc.) for your canon device.
If these are plain files, then a command like
sudo rm /var/tmp/
should clean them up, if they are directories, then you probably have to add the option -rf
sudo rm -rf /var/tmp/
+++++++++++
Back to SFlint, how did you install that program?
What is the output of
sudo updatedb
locate -i sflint
I do not expect that SFlint would have identified the /var/tmp directory either.
Revision history for this message
|
#15 |
The "sudo rm /var/tmpcnijpwg
I installed SFlint from Ubutu software, there was an install button and it appeared to work as I can use it to clean noon root folders.
ea@azura:~$ sudo updatedb
[sudo] password for ea:
ea@azura:~$ locate -i sflint
ea@azura:~$
Revision history for this message
|
#16 |
that is "non root folders"
Maybe if this needs to be pursued another thread could be used?
Revision history for this message
|
#17 |
Meanwhile I know the reason for not finding it.
The name of the janitor package is FSlint, not SFlint.
I assume starting it with root privileges is by calling
sudo fslint-gui
Revision history for this message
|
#18 |
It started as you indicated and indeed allowed me to delete items not possible as just a user. Thanks, funny nobody noticed it. I cleared all of my /var/tmp folders and regained sufficient space in "/" I will keep an eye on all of them.
Thanks again fo sticking with me