View previous topic :: View next topic |
Author |
Message |
battistis Apprentice
Joined: 20 Jul 2006 Posts: 249
|
Posted: Thu Aug 24, 2006 7:46 pm Post subject: usr e tmp troppo grosse |
|
|
Salve,
ho montato la root su una partizione di 10 gb perchè con debian bastavano abbondantemente per una installazione "desktop"
con gentoo i 10 gb sono finiti in un paio di giorni nonostante avessi installato pochissimo software.
le cartelle piu' grosse sono TMP e USR
mi chiedevo se svuotando la tmp non avrei avuto problemi?
Code: | battisti@rizla ~ $ sudo du -hs /tmp/
3.4G /tmp/
|
Code: |
battisti@rizla ~ $ ls -al /tmp/
total 1952
drwxrwxrwt 23 root root 1000 Aug 24 21:57 .
drwxr-xr-x 20 root root 552 Aug 22 06:02 ..
drwxrwxrwt 2 root root 72 Aug 23 20:09 .ICE-unix
-r--r--r-- 1 root root 11 Aug 23 20:09 .X0-lock
drwxrwxrwt 2 root root 72 Aug 23 20:09 .X11-unix
-rw-r--r-- 1 root root 0 Feb 14 2006 .clst_portage
srw-rw-rw- 1 root root 0 Aug 23 20:09 .gdm_socket
drwx------ 2 root root 48 Aug 21 18:02 .xorg.conf16277
drwx------ 2 root root 48 Aug 21 18:06 .xorg.conf16281
drwx------ 2 root root 48 Aug 21 18:02 .xorg.conf6373
drwx------ 2 root root 48 Aug 21 18:03 .xorg.conf6374
drwx------ 2 root root 48 Aug 23 21:08 dispatch-conf.8teaIvV1
drwx------ 3 battisti users 72 Aug 24 11:55 fr-O4yNT3
drwx------ 3 battisti users 72 Aug 24 18:02 fr-UNgEjt
drwx------ 3 battisti users 72 Aug 24 12:25 fr-aH7Biv
drwx------ 3 battisti users 72 Aug 23 17:50 gconfd-battisti
drwx------ 2 root root 48 Aug 23 20:37 gconfd-root
srwxr-xr-x 1 battisti users 0 Aug 22 17:38 gnome-system-monitor.battisti.2081453307
drwxr-xr-x 2 battisti users 48 Aug 24 10:45 hsperfdata_battisti
drwxr-xr-x 2 root root 48 Aug 24 05:05 hsperfdata_root
drwx------ 2 battisti users 72 Aug 23 20:09 keyring-6RnCaf
drwx------ 2 battisti users 72 Aug 22 17:40 keyring-aPmFBD
srwxr-xr-x 1 battisti users 0 Aug 24 21:13 mapping-battisti
srwxr-xr-x 1 root root 0 Aug 23 20:34 mapping-root
drwx------ 2 battisti users 1360 Aug 24 21:33 orbit-battisti
drwx------ 2 root root 144 Aug 23 20:37 orbit-root
drwx------ 2 battisti users 48 Aug 24 18:26 plugtmp
drwx------ 2 battisti users 80 Aug 23 20:09 ssh-amJrwB7274
-rw-r--r-- 1 battisti users 1005356 Aug 23 11:21 tmp-1.xpi
-rw-r--r-- 1 battisti users 980394 Aug 22 14:26 tmp.xpi
drwx------ 2 battisti users 48 Aug 24 21:13 virtual-battisti.7uyUIe
|
e se fosse normale che usr abbia queste dimensioni con una gentoo+gnome+openoffice+firefox+thunderbird?
Code: | battisti@rizla ~ $ sudo du -hs /usr/
4.6G /usr/
|
e sopratutto questo "link ricorsivo infito" ???
Code: | battisti@rizla ~ $ ls -al /usr/X11R6
lrwxrwxrwx 1 root root 6 Aug 21 15:58 /usr/X11R6 -> ../usr
battisti@rizla ~ $ ls -al /usr/X11R6/X11R6
lrwxrwxrwx 1 root root 6 Aug 21 15:58 /usr/X11R6/X11R6 -> ../usr
...cosi' all'infinito
|
come anche in boot:
Code: |
battisti@rizla ~ $ ls -al /boot/boot
lrwxrwxrwx 1 root root 1 Aug 20 18:08 /boot/boot -> .
battisti@rizla ~ $ ls -al /boot/boot/boot
lrwxrwxrwx 1 root root 1 Aug 20 18:08 /boot/boot/boot -> .
...cosi' all'infinito
|
_________________ \\ba7/ |
|
Back to top |
|
|
syntaxerrormmm Guru
Joined: 17 Apr 2005 Posts: 449 Location: Romano di Lombardia - BG - ITALY
|
Posted: Thu Aug 24, 2006 8:28 pm Post subject: Re: usr e tmp troppo grosse |
|
|
battistis wrote: | mi chiedevo se svuotando la tmp non avrei avuto problemi? | Lo dovrebbe fare il sistema in automatico a boot-time, ma se non lo facesse, basterebbe un Code: | echo "rm -rf /tmp/* 2>&1 > /dev/null" >> /etc/conf.d/local.start && rc-update add local default |
battistis wrote: | e se fosse normale che usr abbia queste dimensioni con una gentoo+gnome+openoffice+firefox+thunderbird? | Non ci trovo nulla di così strano; ma in linea di principio, controlla le tue useflags, dai un e vedi se non è rimasta sporcizia con .
battistis: | e sopratutto questo "link ricorsivo infito" ??? | Anche qui nulla di strano... è ovvio che se nella cartella /boot ci sia un link a . che si chiama 'boot' ti troverai cartelle /boot/boot/boot/boot... Quello a boot è stato fatto per evitare errori di configurazioni con grub.
Fossi in te non mi spaventerei così tanto e comincerei, invece, a lavorare con dep (emerge -av udept) e emerge --depclean per pulire roba in eccesso, se ci fosse... e a sfoltire le useflags che non ti sono strettamente necessarie.
Ciao. _________________ "Every rule can be broken, but no rule may be ignored."
Last.fm - Gentoo 2006.1 on:
Acer Aspire 1355LC - suspend2-sources-2.6.18-r3
IBM Thinkpad T30 - suspend2-sources-2.6.19-r3 |
|
Back to top |
|
|
Ic3M4n Advocate
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Fri Aug 25, 2006 12:48 am Post subject: |
|
|
aggiungo anche che solitamente è buona norma tenere sotto controllo i distfiles e gli eventiali pacchetti precompilati in /usr/portage/distfiles e /usr/portage/packages con eclean. magari mettendolo in esecuzione giornaliera con cron. purtroppo sono due dir che tendono ad ingrossare parecchio giorno dopo giorno ma ritengo anche saggio mantenere i sorgenti dei programmi installati in modo da non aumentare il traffico sui server gentoo nel momento di cambi di revisione del programma. un'altro posto in cui puoi sterminare ogni cosa è /var/tmp/portage in cui rimane sempre un po' di sporcizia. |
|
Back to top |
|
|
battistis Apprentice
Joined: 20 Jul 2006 Posts: 249
|
Posted: Fri Aug 25, 2006 2:14 am Post subject: |
|
|
grazie siete stati + che esaustivi
domattina faccio n po' di pulizia
cmq. ho trovato anche questo howto interessante sul wiki riguardo \tmp\
HOWTO clean /tmp
http://gentoo-wiki.com/HOWTO_clean_/tmp _________________ \\ba7/ |
|
Back to top |
|
|
=DvD= Veteran
Joined: 25 Mar 2004 Posts: 1353
|
Posted: Fri Aug 25, 2006 7:17 am Post subject: |
|
|
c'e' anche /usr/portage/distfiles il cui contenuto puo' essere cancellato: sono i sorgenti da compilare, ma una volta compilati se hai bisogni di spazio puoi rimuoverli (li ci va tutta la roba che scarca emerge) |
|
Back to top |
|
|
Ic3M4n Advocate
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Fri Aug 25, 2006 9:36 am Post subject: |
|
|
=DvD= wrote: | c'e' anche /usr/portage/distfiles il cui contenuto puo' essere cancellato: sono i sorgenti da compilare, ma una volta compilati se hai bisogni di spazio puoi rimuoverli (li ci va tutta la roba che scarca emerge) |
è bello sapere che si viene completamente ignorati quando si scrive. |
|
Back to top |
|
|
=DvD= Veteran
Joined: 25 Mar 2004 Posts: 1353
|
Posted: Fri Aug 25, 2006 10:18 am Post subject: |
|
|
Ic3M4n wrote: | =DvD= wrote: | c'e' anche /usr/portage/distfiles il cui contenuto puo' essere cancellato: sono i sorgenti da compilare, ma una volta compilati se hai bisogni di spazio puoi rimuoverli (li ci va tutta la roba che scarca emerge) |
è bello sapere che si viene completamente ignorati quando si scrive. |
Deh non l'avevo visto =P |
|
Back to top |
|
|
battistis Apprentice
Joined: 20 Jul 2006 Posts: 249
|
Posted: Fri Aug 25, 2006 10:49 am Post subject: |
|
|
quindi eclean non fa altro che rimuovere alcuni sorgenti in /usr/portage/distfiles seguendo criterii particolarii? (che non ho ancora capito )
ps. altra scoperta tardiva sul wiki http://gentoo-wiki.com/TIP_Free_up_disk_space_in_Gentoo _________________ \\ba7/ |
|
Back to top |
|
|
syntaxerrormmm Guru
Joined: 17 Apr 2005 Posts: 449 Location: Romano di Lombardia - BG - ITALY
|
Posted: Fri Aug 25, 2006 12:15 pm Post subject: |
|
|
[OT]
=DvD= wrote: | Deh non l'avevo visto =P | Deh, e si vede che sei pisano... (Ho studiato a Pisa per 4 anni...)
[/OT] _________________ "Every rule can be broken, but no rule may be ignored."
Last.fm - Gentoo 2006.1 on:
Acer Aspire 1355LC - suspend2-sources-2.6.18-r3
IBM Thinkpad T30 - suspend2-sources-2.6.19-r3 |
|
Back to top |
|
|
Kernel78 Moderator
Joined: 24 Jun 2005 Posts: 3654
|
Posted: Fri Aug 25, 2006 12:59 pm Post subject: |
|
|
battistis wrote: | quindi eclean non fa altro che rimuovere alcuni sorgenti in /usr/portage/distfiles seguendo criterii particolarii? (che non ho ancora capito )
|
eclean rimuove i file relativi a pacchetti non più presenti in portage oppure con l'opzione -d cancella tutti i file relativi a pacchetti non installati. _________________ Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con Code: | grep -vE '(^[[:space:]]*($|(#|!|;|//)))' |
|
|
Back to top |
|
|
Ic3M4n Advocate
Joined: 02 Nov 2004 Posts: 3489 Location: Bergamo.
|
Posted: Fri Aug 25, 2006 7:57 pm Post subject: |
|
|
direi che un man eclean è necessario oltre che utile. |
|
Back to top |
|
|
battistis Apprentice
Joined: 20 Jul 2006 Posts: 249
|
Posted: Sat Aug 26, 2006 8:16 am Post subject: |
|
|
Ic3M4n wrote: | direi che un man eclean è necessario oltre che utile. |
si hai ragione, ma alle volte per tradurre un man ci vorrebbe l'autore stesso ... _________________ \\ba7/ |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Aug 26, 2006 11:11 am Post subject: Re: usr e tmp troppo grosse |
|
|
per svuotare la directory /tmp fai riferimento al documento Linux Filesystem Hierarchy
per la dimensione di /usr, dovresti considerare l'uso di eclean
tutti argomenti già trattati. sarebbe bastata una ricerca sul forum |
|
Back to top |
|
|
|