|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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----- |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
-----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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
_____ 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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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----- > > > |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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----- |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
-----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 |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
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----- |
|
![]() |
| Outils de la discussion | |
|
|