FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-24-2011, 11:20 AM
Camaleón
 
Default regards the /

On Fri, 23 Sep 2011 19:24:37 +0200, Martin Steigerwald wrote:

> Am Donnerstag, 22. September 2011 schrieb Camaleón:
>> The above experience I posted it happened on a VM I have to run testing
>> for well... "testing" purposes. I wanted to try something (don't
>> remember exactly what, either "hibernation" or "suspension") and
>> something went wrong so one of the logs was being flooded with errors.
>> The experiment (suspension or hibernation) did not succeed and after a
>> hard reset, once a I logged I received a message popup stating that
>> fact, then issued "df - h" to check, went to /var/log and saw the big
>> file. I deleted and all were happy again.
>
> /var is used for other stuff except logs which might be relevant to
> important operations on the machine, so when you want to drive it to the
> maximum, I suggest separating /var/log as well. And possibly /tmp.

(...)

I usually haven't had any problem with /var/log and when I had such
problem then what worried me is what happened to make /var/log increased
its size.

This is from my VM:

root@debian:~# du -hs /var/log
5,3M /var/log

But I may be experiencing another size problem elsewhere:

root@debian:~# du -hs /var
988M /var

So I should make a little clean. Let's see what is reducing my /var
partition:

root@debian:~# du -h /var | sort -hr
988M /var
677M /var/cache
655M /var/cache/apt
625M /var/cache/apt/archives
298M /var/lib
117M /var/lib/apt-xapian-index
116M /var/lib/apt-xapian-index/index.1
63M /var/lib/dpkg
56M /var/lib/dpkg/info
56M /var/lib/apt/lists
56M /var/lib/apt
42M /var/lib/gconf/defaults
42M /var/lib/gconf
(...)

Ah, wow... apt archives. Let's clean them:

root@debian:~# apt-get clean

root@debian:~# du -h /var | sort -hr
364M /var
298M /var/lib
117M /var/lib/apt-xapian-index
116M /var/lib/apt-xapian-index/index.1
63M /var/lib/dpkg
56M /var/lib/dpkg/info
56M /var/lib/apt/lists
56M /var/lib/apt
53M /var/cache
42M /var/lib/gconf/defaults
42M /var/lib/gconf
(...)

Much better :-)

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2011.09.24.11.20.10@gmail.com">http://lists.debian.org/pan.2011.09.24.11.20.10@gmail.com
 
Old 09-24-2011, 03:06 PM
Martin Steigerwald
 
Default regards the /

Am Samstag, 24. September 2011 schrieb lina:
> On Sat, Sep 24, 2011 at 2:02 AM, Martin Steigerwald
<Martin@lichtvoll.de>wrote:
> > Am Donnerstag, 22. September 2011 schrieb Camaleón:
[...]
> $ uname -a
> Linux debian 3.0.0-mbp82-lina #1 SMP Tue Jul 26 21:52:57 SGT 2011
> x86_64 GNU/Linux
[...]
> > cat /proc/version
[...]
> Linux version 3.0.0-mbp82-lina (3.0.0) (root@debian) (gcc version 4.6.1
> (Debian 4.6.1-4) ) #1 SMP Tue Jul 26 21:52:57 SGT 2011
>
> > and
> >
> > ls -lh /boot/{vm,init}*
>
> It's the only kernel I have had on the laptop.
>
> seems nothing left to remove.

So better do not remove that kernel.

Did you compile the kernel? It doesn´t look like an official one.

You might consider installing an official 3.0.0 kernel package for 64-bit
(amd64) and then remove that other one. But anyway, if the current one
works fine...

Did you compile it yourself?

Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201109241706.14024.Martin@lichtvoll.de">http://lists.debian.org/201109241706.14024.Martin@lichtvoll.de
 
Old 09-24-2011, 03:08 PM
Martin Steigerwald
 
Default regards the /

Am Samstag, 24. September 2011 schrieb lina:
> On Sat, Sep 24, 2011 at 2:01 AM, Martin Steigerwald
<Martin@lichtvoll.de>wrote:
[...]
> $ dpkg -l | grep linux-
> ii doc-linux-text 2008.08-1
> Linux HOWTOs and FAQs in ASCII format
> ii linux-base 3.3
> Linux image base package
> ii linux-headers-3.0.0-mbp82-lina 1900
> Header files related to Linux kernel, specifically,
> ii linux-image-3.0.0-mbp82-lina 1900
> Linux kernel binary image for version 3.0.0-mbp82-lina
> ii linux-libc-dev 3.0.0-3
> Linux support headers for userspace development
> ii linux-sound-base 1.0.23+dfsg-4
> base package for ALSA and OSS sound systems
> ii linux-source-2.6.39 2.6.39-3
> Linux kernel source for version 2.6.39 with Debian patches
> ii linux-source-3.0.0 3.0.0-3
> Linux kernel source for version 3.0.0 with Debian patches
>
>
> Can I remove
> ii linux-source-2.6.39 2.6.39-3
> Linux kernel source for version 2.6.39 with Debian patches

Yes.

> > or
> >
> > ls -lh /boot/{vm,init}*
> >
> >
> > show?
>
> $ ls -lh /boot/{vm,init}*
> -rw-r--r-- 1 root root 9.9M Sep 8 10:25
> /boot/initrd.img-3.0.0-mbp82-lina -rw-r--r-- 1 root root 3.1M Jul 26
> 22:12 /boot/vmlinuz-3.0.0-mbp82-lina

So better not remove that one and only bootable kernel unless you install
and boot an official debian kernel first.

Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201109241708.20941.Martin@lichtvoll.de">http://lists.debian.org/201109241708.20941.Martin@lichtvoll.de
 

Thread Tools




All times are GMT. The time now is 09:29 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org