PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Why there is no space left on root partition?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Why there is no space left on root partition?

Réponse
 
LinkBack Outils de la discussion
Vieux 18/01/2007, 23h10   #1
jie gong
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Why there is no space left on root partition?

Hi
I am a newbee to debian linux. I found my root partition is full.
My root partition has 4 GB, but I added the size of files under the root
partition, anyway they did not hit the 4GB, not even close.
Where did the space go?

Here is some output which may be useful.
command: du -hcs /*

3.3M /bin
5.8M /boot
128K /dev
23M /etc
4.0K /fai
893M /home
4.0K /initrd
44M /lib
16K /lost+found
4.0K /media
4.0K /mnt
4.0K /opt
507M /proc
3.8G /root
9.6M /sbin
4.0K /srv
4.0K /sys
68K /tmp
2.5G /usr
137M /var
0 /vmlinuz
0 /vmlinuz.old
7.9G total

Command: df

I run df, get the following
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda6 4032092 4032092 0 100% /
tmpfs 253668 0 253668 0%
/dev/shm
/dev/hda1 77749 10032 63703 14% /boot
/dev/hda10 12649928 946956 1574456 8% /home
/dev/hda8 2016016 32876 1983140 2% /tmp
/dev/hda9 15124868 2635568 11720996 19% /usr
/dev/hda7 4032092 172316 3654952 5% /var

How can I find the missing space?

Thanks

  Réponse avec citation
Vieux 18/01/2007, 23h30   #2
Andrew Sackville-West
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Why there is no space left on root partition?

On Thu, Jan 18, 2007 at 05:08:46PM -0600, jie gong wrote:
> Hi
> I am a newbee to debian linux. I found my root partition is full.
> My root partition has 4 GB, but I added the size of files under the root
> partition, anyway they did not hit the 4GB, not even close.
> Where did the space go?
>
> Here is some output which may be useful.
> command: du -hcs /*
>
> 3.3M /bin
> 5.8M /boot
> 128K /dev
> 23M /etc
> 4.0K /fai
> 893M /home
> 4.0K /initrd
> 44M /lib
> 16K /lost+found
> 4.0K /media
> 4.0K /mnt
> 4.0K /opt
> 507M /proc
> 3.8G /root


right here. your /root directory is 3.8G. How did you end up with so
much crap in /root? /root is the home directory for the root user and
should generally not be that full. regardless though, /root is part of
/ which is /dev/hda6. You have not mounted /root from another
partition. So that 3.8G has taken over your / partition.

>
> Command: df
>
> I run df, get the following
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/hda6 4032092 4032092 0 100% /


you have not put /root on another partition, so it is part of this
one, which is clearly full.

A

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFsADLaIeIEqwil4YRAipcAJ44OhTQns+206sjYSTvIr bpxsOpuQCfT+uC
cdm2g9HpvHYXgpSqgUls690=
=KZJ/
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 18/01/2007, 23h30   #3
Ron Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Why there is no space left on root partition?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/18/07 17:08, jie gong wrote:
> Hi
> I am a newbee to debian linux. I found my root partition is full.
> My root partition has 4 GB, but I added the size of files under the root
> partition, anyway they did not hit the 4GB, not even close.
> Where did the space go?
>
> Here is some output which may be useful.
> command: du -hcs /*
>
> 3.3M /bin
> 5.8M /boot
> 128K /dev
> 23M /etc
> 4.0K /fai
> 893M /home
> 4.0K /initrd
> 44M /lib
> 16K /lost+found
> 4.0K /media
> 4.0K /mnt
> 4.0K /opt
> 507M /proc
> 3.8G /root
> 9.6M /sbin
> 4.0K /srv
> 4.0K /sys
> 68K /tmp
> 2.5G /usr
> 137M /var
> 0 /vmlinuz
> 0 /vmlinuz.old
> 7.9G total
>
> Command: df
>
> I run df, get the following
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/hda6 4032092 4032092 0 100% /
> tmpfs 253668 0 253668 0%
> /dev/shm
> /dev/hda1 77749 10032 63703 14% /boot
> /dev/hda10 12649928 946956 1574456 8% /home
> /dev/hda8 2016016 32876 1983140 2% /tmp
> /dev/hda9 15124868 2635568 11720996 19% /usr
> /dev/hda7 4032092 172316 3654952 5% /var
>
> How can I find the missing space?


The 3.8GB of files under /root looks very suspicious.

Another thing I would do is not have so many partitions! If you are
a home user installing a lot of packages, Including OpenOffice.org,
Java, etc, etc, roll /tmp, /usr & /var back into /, and make / at
least 16GB.

$ df -m | sort
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/hda1 45 20 22 48% /boot
/dev/hda2 18778 10900 6925 62% /
/dev/hda3 18778 11942 5883 67% /home
/dev/hda4 197129 164934 22182 89% /data/01
tmpfs 506 0 506 0% /lib/init/rw
tmpfs 506 1 506 1% /dev/shm
udev 10 1 10 1% /dev

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFsAFhS9HxQb37XmcRAvFUAKC1W5G8c+eMyE3JLReLio 6S4P7GnQCdFPQy
v4/fQyX4ZBYCXf6jjp9Xz18=
=pDPK
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 18/01/2007, 23h30   #4
Kevin Ross
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: Why there is no space left on root partition?



_____

From: jie gong [mailto:gongtech2006@gmail.com]
Sent: Thursday, January 18, 2007 3:09 PM
To: debian-user@lists.debian.org
Subject: Why there is no space left on root partition?



Hi
I am a newbee to debian linux. I found my root partition is full.
My root partition has 4 GB, but I added the size of files under the root
partition, anyway they did not hit the 4GB, not even close.
Where did the space go?

Here is some output which may be useful.
command: du -hcs /*

3.3M /bin
5.8M /boot
128K /dev
23M /etc
4.0K /fai
893M /home
4.0K /initrd
44M /lib
16K /lost+found
4.0K /media
4.0K /mnt
4.0K /opt
507M /proc
3.8G /root

Looks like the bulk of your root partition is in /root. Did you not notice
the G after the 3.8?




9.6M /sbin
4.0K /srv
4.0K /sys
68K /tmp
2.5G /usr
137M /var
0 /vmlinuz
0 /vmlinuz.old
7.9G total

Command: df

I run df, get the following
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda6 4032092 4032092 0 100% /
tmpfs 253668 0 253668 0%
/dev/shm
/dev/hda1 77749 10032 63703 14% /boot
/dev/hda10 12649928 946956 1574456 8% /home
/dev/hda8 2016016 32876 1983140 2% /tmp
/dev/hda9 15124868 2635568 11720996 19% /usr
/dev/hda7 4032092 172316 3654952 5% /var

How can I find the missing space?

Thanks


  Réponse avec citation
Vieux 18/01/2007, 23h40   #5
jie gong
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Why there is no space left on root partition?

Thanks for the advice.
I looked at the files under /root, and found
there is a file .xsession-errors has size 4003647488.
What is that? Can I delete it?



On 1/18/07, Andrew Sackville-West <andrew@farwestbilliards.com> wrote:
>
> On Thu, Jan 18, 2007 at 05:08:46PM -0600, jie gong wrote:
> > Hi
> > I am a newbee to debian linux. I found my root partition is full.
> > My root partition has 4 GB, but I added the size of files under the root
> > partition, anyway they did not hit the 4GB, not even close.
> > Where did the space go?
> >
> > Here is some output which may be useful.
> > command: du -hcs /*
> >
> > 3.3M /bin
> > 5.8M /boot
> > 128K /dev
> > 23M /etc
> > 4.0K /fai
> > 893M /home
> > 4.0K /initrd
> > 44M /lib
> > 16K /lost+found
> > 4.0K /media
> > 4.0K /mnt
> > 4.0K /opt
> > 507M /proc
> > 3.8G /root

>
> right here. your /root directory is 3.8G. How did you end up with so
> much crap in /root? /root is the home directory for the root user and
> should generally not be that full. regardless though, /root is part of
> / which is /dev/hda6. You have not mounted /root from another
> partition. So that 3.8G has taken over your / partition.
>
> >
> > Command: df
> >
> > I run df, get the following
> > Filesystem 1K-blocks Used Available Use% Mounted on
> > /dev/hda6 4032092 4032092 0 100% /

>
> you have not put /root on another partition, so it is part of this
> one, which is clearly full.
>
> A
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFFsADLaIeIEqwil4YRAipcAJ44OhTQns+206sjYSTvIr bpxsOpuQCfT+uC
> cdm2g9HpvHYXgpSqgUls690=
> =KZJ/
> -----END PGP SIGNATURE-----
>
>
>


  Réponse avec citation
Vieux 18/01/2007, 23h50   #6
Greg Folkert
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Why there is no space left on root partition?

On Thu, 2007-01-18 at 17:39 -0600, jie gong wrote:
> Thanks for the advice.
> I looked at the files under /root, and found
> there is a file .xsession-errors has size 4003647488.
> What is that? Can I delete it?


That tells me you should not be using X as root.

Yes you can remove the file... ti probably is full of warnings to not
run "certain program as root".

You should be using a regular user to do most things and then use "sudo"
for administrative things.

--
greg, greg@gregfolkert.net

The technology that is
Stronger, better, faster: Linux

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBFsAYL7WZpcbUkaHwRAsoDAJ4pcbW2dMSju0vZcQ7NHm Kz/Jq76ACffgW3
gDLWfX41IzNFrDWTy2DOfRM=
=byy3
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 19/01/2007, 00h00   #7
Ron Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Why there is no space left on root partition?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/18/07 17:43, Greg Folkert wrote:
> On Thu, 2007-01-18 at 17:39 -0600, jie gong wrote:
>> Thanks for the advice.
>> I looked at the files under /root, and found
>> there is a file .xsession-errors has size 4003647488.
>> What is that? Can I delete it?

>
> That tells me you should not be using X as root.


But Microsoft lets me run *anything* as Administrator!!!!

Why can't I do the same thing in Stupid Old Linux?????

> Yes you can remove the file... ti probably is full of warnings to not
> run "certain program as root".
>
> You should be using a regular user to do most things and then use "sudo"
> for administrative things.
>


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFsAg9S9HxQb37XmcRAsKyAKDe+9dtq1YriyloVnSpcf Ni8rtBzwCbBUps
5HdM0jl9f3XQnnVy0YKH0SI=
=DBws
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 19/01/2007, 00h30   #8
Stephen Cormier
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Why there is no space left on root partition?

On Thursday 18 January 2007 19:43, Greg Folkert wrote:
> On Thu, 2007-01-18 at 17:39 -0600, jie gong wrote:
> > Thanks for the advice.
> > I looked at the files under /root, and found
> > there is a file .xsession-errors has size 4003647488.
> > What is that? Can I delete it?

>
> That tells me you should not be using X as root.
>
> Yes you can remove the file... ti probably is full of warnings to not
> run "certain program as root".
>


Either that or he is running programs like kaffeine, kplayer, kmplayer,
avidemux ... anything video related it seems which just pile a ton of junk
into the .xsessions-errors. The same partition full happened to me running as
normal user so using root has nothing to do with it really after I removed
the file I linked it to /dev/null which solved the problem.

Stephen

--
GPG Pubic Key: http://users.eastlink.ca/~stephencormier/publickey.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBFsA/PjgQLPii62a8RAv8qAJ9lKt+qwuZVBEdtF+eRbFF67zdMJQCgt CF2
n7VtBcTJKMQvnSuv2Y7EVrs=
=vxZF
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h47.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,24177 seconds with 16 queries