Conky mostra lo spazio libero hard disk sbagliato
Inviato: lun 31 ago 2009, 18:13
Ciao.
Mi sono accorto da alcuni giorni che Conky, non so bene per qual motivo, mi mostra una statistica dello spazio libero sui dischi diversa da quella che mi mostra df, che immagino sia' piu' affidabile.
In questo preciso momento, df -h mi da come output:
mentre secondo Conky gli spazi disponibili sono:
root: 4.7 Gb
home : 35 Gb
disco02: 345 Gb
Questa e' la mia config di Conky, che non cambio da parecchio:
e questo e' il pezzo di config che riguarda gli spazi disco:
Questo e' il mio mount
e questo il mio fstab, nel caso dovessero servire:
A dire la verita' non so se fidarmi piu' di Conky o di df, perche' mi sembra assurdo di aver rimasto solo 10 gb liberi...
FileLight mi dice che sono utilizzati 381 Gb, contro i 366 di df...non capisco di chi mi debba fidare...
Ad ogni modo, avete idae del perche' Conky sbagli cosi' tanto?
C'e' un'altra sintassi da dargli nella config per far controllare lo spazio libero dei dischi?
Grazie come sempre
Mi sono accorto da alcuni giorni che Conky, non so bene per qual motivo, mi mostra una statistica dello spazio libero sui dischi diversa da quella che mi mostra df, che immagino sia' piu' affidabile.
In questo preciso momento, df -h mi da come output:
Codice: Seleziona tutto
bash-3.1$ df -h
Filesystem Dimens. Usati Disp. Uso% Montato su
/dev/root 19G 15G 3,8G 79% /
/dev/sda3 402G 366G 16G 96% /home
/dev/sdb1 459G 114G 322G 27% /disco02
tmpfs 1011M 0 1011M 0% /dev/shm
/dev/sdc1 459G 390G 46G 90% /external01
root: 4.7 Gb
home : 35 Gb
disco02: 345 Gb
Questa e' la mia config di Conky, che non cambio da parecchio:
Codice: Seleziona tutto
######################################################################
#
# sberla54 - conkyrc - 24.12.2008
# orologio, data, monitor di banda, monitor cpu, uptime, kernel,
# versione di slackware pazio libero/occupato in root ed home,
# lista processi che usano piu' cpu, lista processi che occupano piu' ram,
# numero connessioni in entrata ed uscita, ultimi log da messages e secure,
# larghezza massima limitata
#
######################################################################
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# set to yes if you want Conky to be forked in the background
background yes
#background no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
# Use Xft?
use_xft yes
# Set conky on the bottom of all other applications
#on_bottom no
# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8
# Text alpha when using Xft
xftalpha 0.8
# Print everything to stdout?
# out_to_console no
# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell
# Print everything to console?
# out_to_console no
# mail spool
#mail_spool $MAIL
# Update interval in seconds
# update_interval 5.0
update_interval 3.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
# If own_window is yes, you may use type normal, desktop or override
own_window_type override
# Use pseudo transparency with own_window?
own_window_transparent yes
# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour hotpink
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
# minimum_size 80 5
minimum_size 80 5
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Draw borders around graphs
draw_graph_borders yes
# Stippled borders?
stippled_borders 8
# border margins
border_margin 6
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 110
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no
# mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost
# mldonkey_port Mldonkey port, 4001 default
# mldonkey_login Mldonkey login, default none
# mldonkey_password Mldonkey password, default none
# boinc (seti) dir
# seti_dir /opt/seti
# Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16)
#min_port_monitors 16
# Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
#min_port_monitor_connections 256
# none, xmms, bmp, audacious, infopipe (default is none)
#xmms_player none
# Minimum size of text area
minimum_size 260 5
maximum_width 400
# Possible variables to be used:
#
# Variable Arguments Description
# addr (interface) IP address for an interface
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# alignr (num) Right-justify text, with space of N
# alignc Align text to centre
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# cpugraph (height),(width) (gradient colour 1) (gradient colour 2)
# CPU usage graph
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# downspeedgraph net (height),(width) (gradient colour 1) (gradient colour 2)
# Download speed graph
# exec shell command Executes a shell command and displays
# the output in conky. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execbar shell command Same as exec, except if the first value
# return is a value between 0-100, it
# will use that number for a bar.
# The size for the bar is currently fixed,
# but that may change in the future.
# execgraph shell command Same as execbar, but graphs values
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or
# temp/tempf (first in C, second in F)
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# if_running (process) if PROCESS is running, display
# everything if_running and the matching $endif
# if_existing (file) if FILE exists, display everything between
# if_existing and the matching $endif
# if_mounted (mountpoint) if MOUNTPOINT is mounted, display everything between
# if_mounted and the matching $endif
# else Text to show if any of the above are not true
# kernel Kernel version
# linkstatus (interface) Get the link status for wireless connections
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
#
# metar_ob_time
# metar_temp
# metar_tempf Temp in F
# metar_windchill
# metar_dew_point There are a bunch of these
# metar_rh and they are self-explanatory
# metar_windspeed
# metar_winddir
# metar_swinddir
# metar_cloud
# metar_u2d_time
# ml_upload_counter total session upload in mb
# ml_download_counter total session download in mb
# ml_nshared_files number of shared files
# ml_shared_counter total session shared in mb, buggy
# in some mldonkey versions
# ml_tcp_upload_rate tcp upload rate in kb/s
# ml_tcp_download_rate tcp download rate in kb/s
# ml_udp_upload_rate udp upload rate in kb/s
# ml_udp_download_rate udp download rate in kb/s
# ml_ndownloaded_files number of completed files
# ml_ndownloading_files number of downloading files
#
# mpd_artist Artist in current MPD song
# (must be enabled at compile)
# mpd_album Album in current MPD song
# mpd_bar (height) Bar of mpd's progress
# mpd_bitrate Bitrate of current song
# mpd_status Playing, stopped, et cetera.
# mpd_title Title of current MPD song
# mpd_vol MPD's volume
# mpd_elapsed Song's elapsed time
# mpd_length Song's length
# mpd_percent Percent of song's progress
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# conky displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# offset pixels Move text over by N pixels
# tail logfile, lines (interval)
# Displays last N lines of supplied text
# text file. If interval is not supplied,
# Conky assumes 2x Conky's interval.
# Max of 30 lines.
# Max of 30 lines can be displayed.
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before conky
# has started.
# top type, num This takes arguments in the form:
# top <name> <number>
# Basically, processes are ranked from
# highest to lowest in terms of cpu
# usage, which is what <num> represents.
# The types are: "name", "pid", "cpu", and
# "mem".
# There can be a max of 10 processes listed.
# top_mem type, num Same as top, except sorted by mem usage
# instead of cpu
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# upspeedgraph net (height),(width) (gradient colour 1) (gradient colour 2)
# Upload speed graph
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# stuff after 'TEXT' will be formatted on screen
#
# UNUSED:
# ${color #e9c703}Messages:
# $color${execi 10 /usr/bin/tail -n 5 /var/log/messages | cut -c 23-}
TEXT
${alignc}${execi 10 /usr/bin/cat /etc/slackware-version}
${alignc}$sysname $kernel on $machine/ $freq Mhz
${alignc}${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
$stippled_hr
${alignc}${color}${time %A} ${color}${time %e %B %G}
${alignc}${color}${time %H:%M:%S}
$stippled_hr
${color lightgrey}CPU Usage:${color #cc2222} $cpu% ${cpubar}
${color red}${cpugraph 0000ff 00ff00}
${color lightgrey}RAM Usage:$color $mem / $memmax - $memperc% ${membar}
${color lightgrey}Swap Usage:$color $swap / $swapmax - $swapperc% ${swapbar}
${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes
$color$stippled_hr
${color lightgrey}Networking: $alignr $nodename
eth0 $alignr ${addr eth0}
Down:${color #8844ee} ${downspeed eth0} ${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed eth0}
${color #0000ff}${downspeedgraph eth0 32,150 ff0000 0000ff} ${color #22ccff} ${upspeedgraph eth0 32,150 0000ff ff0000}
${color #888888} TOTAL: ${color #CCCCCC}${totaldown eth0} ${color #888888}TOTAL: ${color #CCCCCC}${totalup eth0}
$color$stippled_hr
${color lightgrey}File System:
/ $color${fs_free /}/${fs_size /} ${fs_bar /}
/home/ $color${fs_free /home/}/${fs_size /home/} ${fs_bar /home/}
/disco02/ $color${fs_free /disco02/}/${fs_size /disco02/} ${fs_bar /disco02/}
$color$stippled_hr
${color}Name PID CPU% MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color lightgrey} ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
${color lightgrey} ${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
${color}Mem Usage
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color lightgrey} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color lightgrey} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color lightgrey} ${top_mem name 6} ${top_mem pid 6} ${top_mem cpu 6} ${top_mem mem 6}
${color lightgrey} ${top_mem name 7} ${top_mem pid 7} ${top_mem cpu 7} ${top_mem mem 7}
$color$stippled_hr
${color #ddaa00}Port(s)${alignr}Connections
$color Inbound : ${tcp_portmon 1 65535 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
$color Outbound : ${tcp_portmon 1 65535 count}
$color$stippled_hr
${color #e9c703}Security:
$color${execi 10 /usr/bin/tail -n 2 /var/log/secure}
Codice: Seleziona tutto
${color lightgrey}File System:
/ $color${fs_free /}/${fs_size /} ${fs_bar /}
/home/ $color${fs_free /home/}/${fs_size /home/} ${fs_bar /home/}
/disco02/ $color${fs_free /disco02/}/${fs_size /disco02/} ${fs_bar /disco02/}Codice: Seleziona tutto
/dev/root on / type ext3 (rw,errors=continue,data=ordered)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda3 on /home type ext3 (rw)
/dev/sdb1 on /disco02 type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdc1 on /external01 type ext3 (rw,noexec,nosuid,nodev)Codice: Seleziona tutto
/dev/sda4 swap swap defaults 0 0
/dev/sda2 / ext3 defaults 1 1
/dev/sda3 /home/ ext3 defaults 1 2
/dev/sda1 /win/ ntfs-3g noauto,users,ro,umask=0000 1 0
/dev/sdb1 /disco02/ ext3 defaults 1 2
# /dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
# /dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
# inserisco alcune righe dal vecchio fstab.
/dev/hdc /mnt/cdwriter auto noauto,users,ro 0 0
/dev/hdd /mnt/cdrom auto noauto,users,ro 0 0
# questa configurazione funziona perfettamente se si avvia il pc con il
# card reader gia' inserito in una porta dell'hub (ed il resto dell'hub vuoto).
/dev/sdc1 /external01 ext3 defaults,auto,users 1 2
/dev/sdd1 /mnt/pen1 vfat noauto,users,rw,umask=0000 0 0
/dev/sde1 /mnt/pen2 vfat noauto,users,rw,umask=0000 0 0
/dev/sdf1 /mnt/pen3 vfat noauto,users,rw,umask=0000 0 0
/dev/sdg1 /mnt/pen4 vfat noauto,users,rw,umask=0000 0 0
/dev/sdh1 /mnt/pen5 vfat noauto,users,rw,umask=0000 0 0
/dev/sdi1 /mnt/pen6 vfat noauto,users,rw,umask=0000 0 0
/dev/sdm1 /mnt/pen7 vfat noauto,users,rw,umask=0000 0 0
/dev/sdn1 /mnt/pen8 vfat noauto,users,rw,umask=0000 0 0FileLight mi dice che sono utilizzati 381 Gb, contro i 366 di df...non capisco di chi mi debba fidare...
Ad ogni modo, avete idae del perche' Conky sbagli cosi' tanto?
C'e' un'altra sintassi da dargli nella config per far controllare lo spazio libero dei dischi?
Grazie come sempre