Re: [gentoo-user] df and du difference
On Samstag, 16. August 2008, [EMAIL PROTECTED] wrote: Hi, I've a strange problem with my root partion: # du -hxs / 188M/ and # du -hx --max-dep=1 / 24M /root 4.0K/cdrom 19M /etc 76K /.nvclock 12K /media 100K/chroot 4.0K/home 4.0K/usr 1.9M/package 5.5M/bin 4.0K/windows2 125M/lib 4.0K/service 4.0K/opt 4.0K/var 4.0K/command 12M /sbin 4.0K/tmp 0 /dev 1.3M/lost+found 0 /proc 4.0K/boot 4.0K/mnt 4.0K/windows 40K /.subversion 0 /sys 4.0K/boot2 188M/ but when I run df: df -h FilesystemSize Used Avail Use% Mounted on /dev/sda3 2.0G 640M 1.3G 35% / . the difference between du and df is about 640 - 188 = 452 MB. and df is showing that my root is full 2.4 times more than du. which one is the correct one? I've another server that this difference is about 7 GiG and on that server root is 80% full. The type of partition is ext3. df is 'more correct'. Do others have this kind of inconsistancy on their systems? yes
Re: [gentoo-user] df and du difference
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) [16.08.08 07:51]: Hi, I've a strange problem with my root partion: the difference between du and df is about 640 - 188 = 452 MB. and df is showing that my root is full 2.4 times more than du. which one is the correct one? I've another server that this difference is about 7 GiG and on that server root is 80% full. The type of partition is ext3. df shows you the available space on the fs and du the size of the files inside it. The difference is caused by the journal and the 5% reserved for the superuser, which du does not take in account Do others have this kind of inconsistancy on their systems? I would think everyone, who does not have changed the default settings from mkfs.ext3. Best regards Platoali HTH Sebastian -- Religion ist das Opium des Volkes. Karl Marx [EMAIL PROTECTED]@N GÜNTHER mailto:[EMAIL PROTECTED] pgptkEJtHCoTw.pgp Description: PGP signature
[gentoo-user] Re: df and du difference
Sebastian Günther wrote: df shows you the available space on the fs and du the size of the files inside it. The difference is caused by the journal and the 5% reserved for the superuser, which du does not take in account Do others have this kind of inconsistancy on their systems? I would think everyone, who does not have changed the default settings from mkfs.ext3. I've another question. On my server root is 80% full and last weed it was 98% full. if it get to 100% , How can I delete or flush Journals to free some space? best wishes Platoali
Re: [gentoo-user] Re: df and du difference
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) [16.08.08 10:08]: I've another question. On my server root is 80% full and last weed it was 98% full. if it get to 100% , How can I delete or flush Journals to free some space? That is what the 5% are for, as you saw there where stated as not available but they are for the superuser for such things. BTW: Why is your root so full, or didn't you partionate your disk? best wishes Platoali HTH Sebastian -- Religion ist das Opium des Volkes. Karl Marx [EMAIL PROTECTED]@N GÜNTHER mailto:[EMAIL PROTECTED] pgpqwDZGH2Mnm.pgp Description: PGP signature
Re: [gentoo-user] Re: df and du difference
[EMAIL PROTECTED] wrote: Sebastian Günther wrote: df shows you the available space on the fs and du the size of the files inside it. The difference is caused by the journal and the 5% reserved for the superuser, which du does not take in account Do others have this kind of inconsistancy on their systems? I would think everyone, who does not have changed the default settings from mkfs.ext3. I've another question. On my server root is 80% full and last weed it was 98% full. if it get to 100% , How can I delete or flush Journals to free some space? best wishes Platoali I think this may help you get more information. What exactly does your server have installed? What is it used for? Web server? File server? DVR? Could it be that some log file is growing and taking up that space? How is your system partitioned? I'm not guru but some more info may help. Dale :-) :-)
[gentoo-user] Re: df and du difference
Sebastian Günther wrote: That is what the 5% are for, as you saw there where stated as not available but they are for the superuser for such things. So there is no way to free some space from journals. BTW: Why is your root so full, or didn't you partionate your disk? I did not partitioned it myself. This server is inherited to me from last admin. ~# df -h FilesystemSize Used Avail Use% Mounted on /dev/sda1 19G 14G 3.5G 81% / varrun2.0G 76K 2.0G 1% /var/run varlock 2.0G 0 2.0G 0% /var/lock udev 2.0G 88K 2.0G 1% /dev devshm2.0G 0 2.0G 0% /dev/shm /dev/sdb5 93G 59G 27G 69% /mnt/backup /dev/mapper/main-usr 15G 601M 14G 5% /usr /dev/mapper/main-var 30G 1.7G 27G 6% /var /dev/mapper/main-db69G 9.5G 56G 15% /var/lib/postgresql /dev/sdc1 68G 35G 30G 55% /home/archive ~# du --max-dep 1 -c -hx / 4.2M/etc 36M /tftpboot 16K /lost+found 3.8G/tmp 18M /boot 1.4G/home 8.0K/mnt 12K /media 254M/root 4.0K/var 4.0K/srv 0 /sys 4.0K/initrd 77M /lib 0 /proc 4.0K/opt 4.0K/usr 6.4M/sbin 3.5M/bin 0 /dev 5.5G/ 5.5Gtotal Last week, I was alarmed that / root is 98 percent full. but I could not find any reason why server is full. and a restart freed 8 gig of space. but now it is again getting full slowly. Any comment? best wishes Platoali
Re: [gentoo-user] Re: df and du difference
Platoali wrote: Sebastian Günther wrote: That is what the 5% are for, as you saw there where stated as not available but they are for the superuser for such things. So there is no way to free some space from journals. BTW: Why is your root so full, or didn't you partionate your disk? I did not partitioned it myself. This server is inherited to me from last admin. ~# df -h FilesystemSize Used Avail Use% Mounted on /dev/sda1 19G 14G 3.5G 81% / varrun2.0G 76K 2.0G 1% /var/run varlock 2.0G 0 2.0G 0% /var/lock udev 2.0G 88K 2.0G 1% /dev devshm2.0G 0 2.0G 0% /dev/shm /dev/sdb5 93G 59G 27G 69% /mnt/backup /dev/mapper/main-usr 15G 601M 14G 5% /usr /dev/mapper/main-var 30G 1.7G 27G 6% /var /dev/mapper/main-db69G 9.5G 56G 15% /var/lib/postgresql /dev/sdc1 68G 35G 30G 55% /home/archive ~# du --max-dep 1 -c -hx / 4.2M/etc 36M /tftpboot 16K /lost+found 3.8G/tmp 18M /boot 1.4G/home 8.0K/mnt 12K /media 254M/root 4.0K/var 4.0K/srv 0 /sys 4.0K/initrd 77M /lib 0 /proc 4.0K/opt 4.0K/usr 6.4M/sbin 3.5M/bin 0 /dev 5.5G/ 5.5Gtotal Last week, I was alarmed that / root is 98 percent full. but I could not find any reason why server is full. and a restart freed 8 gig of space. but now it is again getting full slowly. Any comment? best wishes Platoali Sebastian may have more and better ideas but if a reboot gave you some space back, then you should check the tmp directories that are usually cleared when rebooting. I notice that in your list /tmp takes up 3.8Gb which is a good bit. May want to see what is in there. Just my thoughts. Dale :-) :-)
[gentoo-user] mov to dvd
Hi All, Is there a way to convert a .mov file to be playable by a dvd player? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] Re: df and du difference
On Saturday 16 August 2008, Dale wrote: Sebastian may have more and better ideas but if a reboot gave you some space back, then you should check the tmp directories that are usually cleared when rebooting. I notice that in your list /tmp takes up 3.8Gb which is a good bit. May want to see what is in there. Just my thoughts. Absolutely right! Double check what's stuffing /tmp. You also could try to mount /tmp on a larger partition (like /usr and /var). Ciao Francesco -- Linux Version 2.6.26-gentoo, Compiled #2 PREEMPT Sat Aug 9 20:21:11 CEST 2008 One 1GHz AMD Athlon 64 Processor, 2GB RAM, 2004.04 Bogomips Total aemaeth
Re: [gentoo-user] df and du difference
On Sat, Aug 16, 2008 at 07:50, [EMAIL PROTECTED] wrote: the difference between du and df is about 640 - 188 = 452 MB. and df is showing that my root is full 2.4 times more than du. which one is the correct one? I've another server that this difference is about 7 GiG and on that server root is 80% full. The type of partition is ext3. Next to the difference due journaling etc, there is one important difference between du en df: deleted files held open by a running process. du doesn't count these files, df does. You can find those files with lsof | grep deleted. Try closing the process with deleted files and suddenly your du en df will give the same free diskspace. Ofcourse, a reboot does also the trick. Ward
Re: [gentoo-user] Re: df and du difference
* Platoali ([EMAIL PROTECTED]) [16.08.08 11:14]: Sebastian Günther wrote: That is what the 5% are for, as you saw there where stated as not available but they are for the superuser for such things. So there is no way to free some space from journals. BTW: Why is your root so full, or didn't you partionate your disk? I did not partitioned it myself. This server is inherited to me from last admin. ~# df -h FilesystemSize Used Avail Use% Mounted on /dev/sda1 19G 14G 3.5G 81% / varrun2.0G 76K 2.0G 1% /var/run varlock 2.0G 0 2.0G 0% /var/lock udev 2.0G 88K 2.0G 1% /dev devshm2.0G 0 2.0G 0% /dev/shm /dev/sdb5 93G 59G 27G 69% /mnt/backup /dev/mapper/main-usr 15G 601M 14G 5% /usr /dev/mapper/main-var 30G 1.7G 27G 6% /var /dev/mapper/main-db69G 9.5G 56G 15% /var/lib/postgresql /dev/sdc1 68G 35G 30G 55% /home/archive ~# du --max-dep 1 -c -hx / 4.2M/etc 36M /tftpboot 16K /lost+found 3.8G/tmp There is definetly to much in it... 18M /boot 1.4G/home From the df I would have thought here is more in it... Are there any normal users on this machine 8.0K/mnt 12K /media 254M/root 4.0K/var 4.0K/srv 0 /sys 4.0K/initrd 77M /lib 0 /proc 4.0K/opt 4.0K/usr 6.4M/sbin 3.5M/bin 0 /dev 5.5G/ 5.5Gtotal OK here is a diference to big to be normal between df and du. 14GB against 5.5GB We are definetly missing something... Last week, I was alarmed that / root is 98 percent full. but I could not find any reason why server is full. and a restart freed 8 gig of space. but now it is again getting full slowly. That's /tmp: try to watch, what actually is writing in it. Any comment? best wishes Platoali There is something wrong in the state of denmark... Sebastian -- Religion ist das Opium des Volkes. Karl Marx [EMAIL PROTECTED]@N GÜNTHER mailto:[EMAIL PROTECTED] pgplM3aMmhUdr.pgp Description: PGP signature
Re: [gentoo-user] mov to dvd
Mick schrieb: Hi All, Is there a way to convert a .mov file to be playable by a dvd player? Maybe this will help: http://forums.gentoo.org/viewtopic-t-117709.html and http://gentoo-wiki.com/HOWTO_Create_a_DVD:Encode kh
[gentoo-user] Re: df and du difference
Ward Poelmans wrote: You can find those files with lsof | grep deleted. Try closing the process with deleted files and suddenly your du en df will give the same free diskspace. Ofcourse, a reboot does also the trick. lsof | grep -i deleted ... /dev/console (deleted) mysqld 5679mysql5u REG8,1 01009860 /tmp/iby8kN8L (deleted) mysqld 5679mysql6u REG8,1 01009861 /tmp/ib3OyWjn (deleted) mysqld 5679mysql7u REG8,1 01009862 /tmp/ibCqa6uY (deleted) mysqld 5679mysql8u REG8,1 01009863 /tmp/ibnDCmHz (deleted) mysqld 5679mysql 12u REG8,1 01009864 /tmp/ibaQcs5a (deleted) ... Nothing so big. just about 20 lines and the biggest ones are these. This server hosts accounting software for an ISP: just a couple python scripts, apache with PHP and a small Postgresql database. Bests Platoali t
[gentoo-user] Re: df and du difference
Sebastian Günther wrote: OK here is a diference to big to be normal between df and du. 14GB against 5.5GB We are definetly missing something... Yes, that is the strange thing. Last week, I was alarmed that / root is 98 percent full. but I could not find any reason why server is full. and a restart freed 8 gig of space. but now it is again getting full slowly. That's /tmp: try to watch, what actually is writing in it. I will add a new hard and mount /tmp to it. I thing that is them most sensible solution. Thanks Platoali
Re: [gentoo-user] mov to dvd
On Saturday 16 August 2008, KH wrote: Mick schrieb: Is there a way to convert a .mov file to be playable by a dvd player? Maybe this will help: http://forums.gentoo.org/viewtopic-t-117709.html and http://gentoo-wiki.com/HOWTO_Create_a_DVD:Encode Thanks KH. That's what I was familiar with but wasn't sure if a one-button-operation had been developed since. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: unicode losting
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alle giovedì 14 agosto 2008, Daniel Pielmeier ha scritto: Rev. Ferris schrieb am 14.08.2008 19:26: #cat /etc/locale.gen it_IT UTF-8 de_DE ISO-8859-1 [EMAIL PROTECTED] ISO-8859-15 de_DE UTF-8 it_IT ISO-8859-1 [EMAIL PROTECTED] ISO-8859-15 pl_PL ISO-8859-1 [EMAIL PROTECTED] ISO-8859-15 pl_PL UTF-8 try this: de_DE.UTF-8 UTF-8 de_DE ISO-8859-1 [EMAIL PROTECTED] ISO-8859-15 it_IT.UTF-8 UTF-8 it_IT ISO-8859-1 [EMAIL PROTECTED] ISO-8859-15 pl_PL.UTF-8 UTF-8 pl_PL ISO-8859-1 [EMAIL PROTECTED] ISO-8859-15 Regards, Daniel It's work again! Thanks, Luigi -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkimxu0ACgkQYoDKzgS2pLManQCcDZLO57OR/AG/Z7EuwmjmokrZ r/kAn2DgmDrTtBsnPTwllAwPqXQ2RePb =C3Hb -END PGP SIGNATURE-
Re: [gentoo-user] Re: df and du difference
* Platoali ([EMAIL PROTECTED]) [16.08.08 13:13]: Sebastian Günther wrote: OK here is a diference to big to be normal between df and du. 14GB against 5.5GB We are definetly missing something... Yes, that is the strange thing. This should definetly be investigated. This could be a hint that there is someone else using this server, e.g. it could be hacked... Last week, I was alarmed that / root is 98 percent full. but I could not find any reason why server is full. and a restart freed 8 gig of space. but now it is again getting full slowly. That's /tmp: try to watch, what actually is writing in it. I will add a new hard and mount /tmp to it. I thing that is them most sensible solution. No, you should definetly find out, who is writing such an enourmous amount of data into your /tmp. This is not OK, especially, if you can't find, what this actually is. Thanks Platoali A sysadmin has always to be paranoid. And if I don't know what's going on THEY are involved... concerned Sebastian -- Religion ist das Opium des Volkes. Karl Marx [EMAIL PROTECTED]@N GÜNTHER mailto:[EMAIL PROTECTED] pgp9p9n0KPw8J.pgp Description: PGP signature
Re: [gentoo-user] kwin-4.1 sometimes leaves konsole undecorated
On Friday 15 August 2008 15:41:04 Volker Armin Hemmann wrote: On Freitag, 15. August 2008, Alan McKinnon wrote: Oddly enough, 3D is very very snappy. It's the 2D stuff that cripples the performance, and on a desktop, 2D is exactly what you want. AFAIK the problem is that the 8XXX series doesn't really have 2d hardware anymore - everything is done in the 3d part - and the drivers to support that are harder to write than anticipated. Sorry for the delayed reply. nvnews was unreachable for me all yesterday afternoon. This post is straight from the horses mouth, from Aaron Platter. He's the nvidia driver author: http://www.nvnews.net/vbulletin/showpost.php?p=1704502postcount=17 Compiz window resizing is slow for a number of reasons mostly related to the inefficient way that the X server resizes redirected windows. Performance should be significantly better with InitialPixmapPlacement=2, except that most window decorators use currently- unaccelerated convolution filters for their shadows, bogging it down. Please try solid resizing with IPP=2 and the window decorator disabled, to see how much of an effect it has. Improving the performance of convolution filters and redirected window resizing in general is something we're working on for future driver releases. Also, you should see a significant improvement in redirected window resizing performance with IPP=1 if you use one of the xserver 1.5 prereleases. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] kwin-4.1 sometimes leaves konsole undecorated
On Saturday 16 August 2008 03:57:42 b.n. wrote: Volker Armin Hemmann ha scritto: In short: all 8XXX chips are bad. Because of the thermal environment laptops are on a different place of the bell curve than desktops. Laptops with nvidia graphic are failing left and right. Whole series of HP, Dell, Asus, laptops are walking ghosts. Desktops might be in the mess soon too. Just to know: what to do when your laptop graphic card fries? I don't think I can just take it out of a socket and change it. Correct. You have a few options, none good: 1. Replace the motherboard 2. Lean on the dealer to replace the laptop with a different model using a non-nvidia card 3. Take it in the shorts -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] kwin-4.1 sometimes leaves konsole undecorated
On Samstag, 16. August 2008, Alan McKinnon wrote: On Friday 15 August 2008 15:41:04 Volker Armin Hemmann wrote: On Freitag, 15. August 2008, Alan McKinnon wrote: Oddly enough, 3D is very very snappy. It's the 2D stuff that cripples the performance, and on a desktop, 2D is exactly what you want. AFAIK the problem is that the 8XXX series doesn't really have 2d hardware anymore - everything is done in the 3d part - and the drivers to support that are harder to write than anticipated. Sorry for the delayed reply. nvnews was unreachable for me all yesterday afternoon. This post is straight from the horses mouth, from Aaron Platter. He's the nvidia driver author: http://www.nvnews.net/vbulletin/showpost.php?p=1704502postcount=17 Compiz window resizing is slow for a number of reasons mostly related to the inefficient way that the X server resizes redirected windows. Performance should be significantly better with InitialPixmapPlacement=2, except that most window decorators use currently- unaccelerated convolution filters for their shadows, bogging it down. Please try solid resizing with IPP=2 and the window decorator disabled, to see how much of an effect it has. Improving the performance of convolution filters and redirected window resizing in general is something we're working on for future driver releases. Also, you should see a significant improvement in redirected window resizing performance with IPP=1 if you use one of the xserver 1.5 prereleases. I don't use compiz ;) and people have reported slowdowns even with kde3.5.9 - with 4.1 it is just much severe. And when I say 'severe' I talk about lagging for several seconds between 'key pressed' and 'sign appears on screen'. Or 'mouse button pressed' and 'desktop menu appears' and even more seconds between 'menu appears' and 'menu reacts to input'. Yes, all that IPP and glyphcatch stuff helped a bit. But they made user stuff slower. So at the end zero or very small actual improvements.
Re: [gentoo-user] mov to dvd
On Sat, 16 Aug 2008 10:38:31 +0100, Mick wrote: Is there a way to convert a .mov file to be playable by a dvd player? media-video/tovid -- Neil Bothwick MIPS: Meaningless Indication of Processor Speed signature.asc Description: PGP signature
[gentoo-user] MPlayer build fails
loader/module.o: In function `MODULE_GetProcAddress': module.c:(.text+0x109): undefined reference to `wrapper_target' module.c:(.text+0x10e): undefined reference to `wrapper' module.c:(.text+0x114): undefined reference to `report_entry' module.c:(.text+0x11e): undefined reference to `report_ret' loader/module.o: In function `LoadLibraryExA': module.c:(.text+0xe02): undefined reference to `report_entry' module.c:(.text+0xe0c): undefined reference to `report_ret' module.c:(.text+0xe16): undefined reference to `wrapper' module.c:(.text+0xe1b): undefined reference to `wrapper_target' collect2: ld returned 1 exit status make: *** [mplayer] Error 1 * * ERROR: media-video/mplayer-1.0_rc2_p26753-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2570: Called die * The specific snippet of code: * emake || die Failed to build MPlayer!; * The die message: * Failed to build MPlayer! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-video/mplayer-1.0_rc2_p26753-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/mplayer-1.0_rc2_p26753-r1/temp/environment'. * I've found several references to this on the web, including one bug report which was solved by revdep-rebuild. revdep-rebuild runs clean on my system. Despite the many mentions, however, I've yet to find a solution. Any help or hints appreciated.
[gentoo-user] KDE 4.1 with connection problems
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I notice a net problem with the new KDE version. If I use konqueror as browser I failed each first connection trial on all website. After timeout, I must just press reload and it cnnect with the website. With Kmail if I use manual email download (or the automatic download on startup) it failed and, again, the second trial works. How can I improve it? I must use yet firefox as standard browser and wait every time to second check (and close all error pop-ups)... Thank you, Luigi -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkinGYwACgkQYoDKzgS2pLN4rQCeP9IApFfWda6yQPshKU8C5PHo +wYAn1gDN1sPoq9QrIX6CVS0WlFeEDBd =pmrR -END PGP SIGNATURE-
Re: [gentoo-user] kwin-4.1 sometimes leaves konsole undecorated
Volker Armin Hemmann wrote: I don't use compiz ;) and people have reported slowdowns even with kde3.5.9 - with 4.1 it is just much severe. And when I say 'severe' I talk about lagging for several seconds between 'key pressed' and 'sign appears on screen'. Or 'mouse button pressed' and 'desktop menu appears' and even more seconds between 'menu appears' and 'menu reacts to input'. Yes, all that IPP and glyphcatch stuff helped a bit. But they made user stuff slower. So at the end zero or very small actual improvements. I use 3.5.9 and with a newer kernel, I get the same slowdowns. Could this me something to do with the kernel? I'm using 2.6.23 but the 2.6.25 kernel does this slow thing. It started in 2.6.24 range. Dale :-) :-)
Re: [gentoo-user] df and du difference
On Sat, 16 Aug 2008, Ward Poelmans wrote: On Sat, Aug 16, 2008 at 07:50, [EMAIL PROTECTED] wrote: the difference between du and df is about 640 - 188 = 452 MB. and df is showing that my root is full 2.4 times more than du. which one is the correct one? I've another server that this difference is about 7 GiG and on that server root is 80% full. The type of partition is ext3. Next to the difference due journaling etc, there is one important difference between du en df: deleted files held open by a running process. du doesn't count these files, df does. You can find those files with lsof | grep deleted. Try closing the process with deleted files and suddenly your du en df will give the same free diskspace. Ofcourse, a reboot does also the trick. Ward Actually, there is one more way to hide a file from du If there is a file in the /var directory *BEFORE* the /var partition is mounted onto the directory, then du won't find it, but df will know about the space it is using. You will probably need to boot from a live CD of some sort to be able to umount the partitions and check the underlying directory, but it might be worth it there is still space unaccounted for after a reboot. -- Reverend Paul Colquhoun, ULC.http://andor.dropbear.id.au/~paulcol Asking for technical help in newsgroups? Read this first: http://catb.org/~esr/faqs/smart-questions.html#intro
Re: [gentoo-user] kwin-4.1 sometimes leaves konsole undecorated
On Saturday 16 August 2008 23:40:21 Dale wrote: I use 3.5.9 and with a newer kernel, I get the same slowdowns. Could this me something to do with the kernel? I'm using 2.6.23 but the 2.6.25 kernel does this slow thing. It started in 2.6.24 range. what video card do you have? -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] df and du difference
On Sunday 17 August 2008 01:18:21 Paul Colquhoun wrote: Actually, there is one more way to hide a file from du If there is a file in the /var directory *BEFORE* the /var partition is mounted onto the directory, then du won't find it, but df will know about the space it is using. You will probably need to boot from a live CD of some sort to be able to umount the partitions and check the underlying directory, but it might be worth it there is still space unaccounted for after a reboot. There's a much easier way. As root: mount -o bind / /path/to/some/arb/dir see man mount -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] kwin-4.1 sometimes leaves konsole undecorated
Alan McKinnon wrote: On Saturday 16 August 2008 23:40:21 Dale wrote: I use 3.5.9 and with a newer kernel, I get the same slowdowns. Could this me something to do with the kernel? I'm using 2.6.23 but the 2.6.25 kernel does this slow thing. It started in 2.6.24 range. what video card do you have? I have a Nvidia FX-5200 but still the same things are happening. Just thought it would be worth a mention. KDE is basically unusable to me when in the newer kernel. Dale :-) :-)
Re: [gentoo-user] Cleaning out my world file
Albert Hopkins wrote: On Fri, 2008-08-15 at 08:38 -0500, Dale wrote: Alan McKinnon wrote: On Friday 15 August 2008 14:36:58 Dale wrote: Somewhat still on the same subject since I am still cleaning. Anyway to clean out unneeded files in /etc? I'm thinking about files that may be there but the programs are no longer installed. I read the man page for dep but didn't see anything. Dang thing does a lot tho. You could use the very long way round, something based on this: find /etc/ -type f -exec equery belongs {} \; then leave it alone for an hour or three H, I had to stop that after a few minutes. It sort of took away from my folding. Pushed my CPU to about 80% or so. There has to be a tool for this too. Gentoo has about everything else. I do a similar thing every month as a cron job. It' runs at night so I just get an email the next day. -- #!/bin/bash # Print out orphan files in specified directories find /etc -xdev -type f -print|xargs qfile -o find /usr -xdev \( -path /usr/src -prune \) -o -type f -not -name '*.pyc' \ -not -name '*.pyo' -not -name .keep -print | \ xargs qfile -o find /lib -xdev \( -path /lib/modules -prune \) -o -type f |xargs qfile -o Will this work without a email? I could just run it in screen if needed. Dale :-) :-)
Re: [gentoo-user] Cleaning out my world file
On 19:56 Sat 16 Aug, Dale wrote: Albert Hopkins wrote: On Fri, 2008-08-15 at 08:38 -0500, Dale wrote: Alan McKinnon wrote: On Friday 15 August 2008 14:36:58 Dale wrote: Somewhat still on the same subject since I am still cleaning. Anyway to clean out unneeded files in /etc? I'm thinking about files that may be there but the programs are no longer installed. I read the man page for dep but didn't see anything. Dang thing does a lot tho. You could use the very long way round, something based on this: find /etc/ -type f -exec equery belongs {} \; then leave it alone for an hour or three H, I had to stop that after a few minutes. It sort of took away from my folding. Pushed my CPU to about 80% or so. There has to be a tool for this too. Gentoo has about everything else. I do a similar thing every month as a cron job. It' runs at night so I just get an email the next day. -- #!/bin/bash # Print out orphan files in specified directories find /etc -xdev -type f -print|xargs qfile -o find /usr -xdev \( -path /usr/src -prune \) -o -type f -not -name '*.pyc' \ -not -name '*.pyo' -not -name .keep -print | \ xargs qfile -o find /lib -xdev \( -path /lib/modules -prune \) -o -type f |xargs qfile -o Will this work without a email? I could just run it in screen if needed. Dale :-) :-) It looks like it uses crons email output to handle the mail, so you probably could run it under screen/dtach and not have a problem. You could also run it through nice and redirect the output to a file in your home dir so that you won't even have to bother with reattaching the term. -- I'm not anti-social, I'm just not user friendly
Re: [gentoo-user] Cleaning out my world file
forgottenwizard wrote: On 19:56 Sat 16 Aug, Dale wrote: Albert Hopkins wrote: On Fri, 2008-08-15 at 08:38 -0500, Dale wrote: Alan McKinnon wrote: On Friday 15 August 2008 14:36:58 Dale wrote: Somewhat still on the same subject since I am still cleaning. Anyway to clean out unneeded files in /etc? I'm thinking about files that may be there but the programs are no longer installed. I read the man page for dep but didn't see anything. Dang thing does a lot tho. You could use the very long way round, something based on this: find /etc/ -type f -exec equery belongs {} \; then leave it alone for an hour or three H, I had to stop that after a few minutes. It sort of took away from my folding. Pushed my CPU to about 80% or so. There has to be a tool for this too. Gentoo has about everything else. I do a similar thing every month as a cron job. It' runs at night so I just get an email the next day. -- #!/bin/bash # Print out orphan files in specified directories find /etc -xdev -type f -print|xargs qfile -o find /usr -xdev \( -path /usr/src -prune \) -o -type f -not -name '*.pyc' \ -not -name '*.pyo' -not -name .keep -print | \ xargs qfile -o find /lib -xdev \( -path /lib/modules -prune \) -o -type f |xargs qfile -o Will this work without a email? I could just run it in screen if needed. Dale :-) :-) It looks like it uses crons email output to handle the mail, so you probably could run it under screen/dtach and not have a problem. You could also run it through nice and redirect the output to a file in your home dir so that you won't even have to bother with reattaching the term. I'll try it in screen and see what happens. I didn't see anything related to mail but thought I may be missing something. Will report back later. I do wish portage had this little feature builtin tho. Oh, got my backups handy too. LOL Dale :-) :-)
Re: [gentoo-user] Cleaning out my world file
On 20:21 Sat 16 Aug, Dale wrote: forgottenwizard wrote: On 19:56 Sat 16 Aug, Dale wrote: Albert Hopkins wrote: On Fri, 2008-08-15 at 08:38 -0500, Dale wrote: Alan McKinnon wrote: On Friday 15 August 2008 14:36:58 Dale wrote: Somewhat still on the same subject since I am still cleaning. Anyway to clean out unneeded files in /etc? I'm thinking about files that may be there but the programs are no longer installed. I read the man page for dep but didn't see anything. Dang thing does a lot tho. You could use the very long way round, something based on this: find /etc/ -type f -exec equery belongs {} \; then leave it alone for an hour or three H, I had to stop that after a few minutes. It sort of took away from my folding. Pushed my CPU to about 80% or so. There has to be a tool for this too. Gentoo has about everything else. I do a similar thing every month as a cron job. It' runs at night so I just get an email the next day. -- #!/bin/bash # Print out orphan files in specified directories find /etc -xdev -type f -print|xargs qfile -o find /usr -xdev \( -path /usr/src -prune \) -o -type f -not -name '*.pyc' \ -not -name '*.pyo' -not -name .keep -print | \ xargs qfile -o find /lib -xdev \( -path /lib/modules -prune \) -o -type f |xargs qfile -o Will this work without a email? I could just run it in screen if needed. Dale :-) :-) It looks like it uses crons email output to handle the mail, so you probably could run it under screen/dtach and not have a problem. You could also run it through nice and redirect the output to a file in your home dir so that you won't even have to bother with reattaching the term. I'll try it in screen and see what happens. I didn't see anything related to mail but thought I may be missing something. Will report back later. I do wish portage had this little feature builtin tho. Oh, got my backups handy too. LOL Dale :-) :-) I think I've heard of such a program, but it wasn't much better than the one provided here, and still required the user to go hunting through the orphan list to see what may or may not be truly orphaned. -- I'm not anti-social, I'm just not user friendly
Re: [gentoo-user] kwin-4.1 sometimes leaves konsole undecorated
On Sonntag, 17. August 2008, Dale wrote: Alan McKinnon wrote: On Saturday 16 August 2008 23:40:21 Dale wrote: I use 3.5.9 and with a newer kernel, I get the same slowdowns. Could this me something to do with the kernel? I'm using 2.6.23 but the 2.6.25 kernel does this slow thing. It started in 2.6.24 range. what video card do you have? I have a Nvidia FX-5200 but still the same things are happening. Just thought it would be worth a mention. KDE is basically unusable to me when in the newer kernel. Dale :-) :-) more likely that you enabled something 'stupid' in your kernel.
Re: [gentoo-user] Cleaning out my world file
Dale schrieb am 17.08.2008 05:06: Dale wrote: Will report back later. Dale :-) :-) OK. I ran it but not real sure what the output is. Text file attached. Looks like a error or two and not sure if that matters or not. Info: portage-utils-0.1.29 portage-2.2_rc8 Thanks Dale :-) :-) Try the attached file, putting the script directly into the mail probably broke it! Regards, Daniel #!/bin/bash # Print out orphan files in specified directories find /etc -xdev -type f -print | xargs qfile -o find /usr -xdev \( -path /usr/src -prune \) -o -type f -not -name '*.pyc' -not -name '*.pyo' \ -not -name .keep -print | xargs qfile -o find /lib -xdev \( -path /lib/modules -prune \) -o -type f | xargs qfile -o
Re: [gentoo-user] kwin-4.1 sometimes leaves konsole undecorated
Volker Armin Hemmann wrote: On Sonntag, 17. August 2008, Dale wrote: Alan McKinnon wrote: On Saturday 16 August 2008 23:40:21 Dale wrote: I use 3.5.9 and with a newer kernel, I get the same slowdowns. Could this me something to do with the kernel? I'm using 2.6.23 but the 2.6.25 kernel does this slow thing. It started in 2.6.24 range. what video card do you have? I have a Nvidia FX-5200 but still the same things are happening. Just thought it would be worth a mention. KDE is basically unusable to me when in the newer kernel. Dale :-) :-) more likely that you enabled something 'stupid' in your kernel. Well, I configured it just like the old one. I tried oldconfig and comparing them side by side, using Konsole and tabs, and they are identical except for the new crap which I disabled. I think something got changed with the CPU stuff. It's not using the drives but the CPU acts funny. Oh well, I'll just use my old one. Dale :-) :-)
Re: [gentoo-user] Cleaning out my world file
Daniel Pielmeier wrote: Try the attached file, putting the script directly into the mail probably broke it! Regards, Daniel OK. Did that. No errors. It is a HUGE list of files. Here is a SMALL snippet: /etc/make.conf /etc/wvdial.conf /etc/default/foldingathome /etc/prelink.cache /etc/hotplug.d/.keep /etc/csh.env /etc/csh.cshrc /etc/CORBA/servers/gnomecc.gnorba /etc/csh.login /etc/modprobe.conf /etc/env.d/gcc/config-i686-pc-linux-gnu /etc/env.d/gcc/config-i386-pc-linux-gnu /etc/env.d/03opengl /etc/env.d/binutils/config-i686-pc-linux-gnu /etc/env.d/.keep /etc/env.d/90games /etc/env.d/99aim /etc/env.d/99local /etc/env.d/50guile /etc/env.d/05binutils /etc/env.d/05gcc-i386-pc-linux-gnu /etc/env.d/02distcc /etc/env.d/20java /etc/env.d/02locale /etc/env.d/60prelink /etc/env.d/05gcc-i686-pc-linux-gnu AND /usr/share/services/ksycoca /usr/share/applications/kde/converticon.png /usr/share/applications/mimeinfo.cache /usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info/dir /usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info/dir.old /usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info/dir /lib/cpp /lib/dev-state/.keep /lib/libgcc_s.so.1 /lib/rcscripts/awk/.keep /lib/rcscripts/awk/fixlafiles.awk They all look about the same as those listed above. What would it look like if one was orphaned? Dale :-) :-)
Re: [gentoo-user] Cleaning out my world file
Dale schrieb am 17.08.2008 05:35: OK. Did that. No errors. It is a HUGE list of files. Here is a SMALL snippet: snipping the snippet :-) They all look about the same as those listed above. What would it look like if one was orphaned? Dale :-) :-) Detecting real orphan files is not a trivial task, it requires some knowledge about the installed packages, packages which have been installed before and which are now removed. Files which are essential to the system and which are not part of any packages (/etc/make.conf, /etc/passwd). There are also files which are generated by portage but can not be tracked by portage. The script already tries to exclude some false positive like *.pyc, *.pyo, .keep files. The pyc and pyo files are bite compiled python modules which are generated after the files are installed to the file system and thus are not known by portage. .keep files are normally generated by portage to prevent empty directories from being removed. It also excludes the directories /usr/src (there are kernel and other sources stored) and /lib/modules (location of the kernel modules) both locations contain files not known by portage too. But there are many other files not excluded by the script which are essential to the system. So you should know what you do when deleting any of the files you get from the script. Regards, Daniel
Re: [gentoo-user] Cleaning out my world file
Daniel Pielmeier wrote: Dale schrieb am 17.08.2008 05:35: OK. Did that. No errors. It is a HUGE list of files. Here is a SMALL snippet: snipping the snippet :-) They all look about the same as those listed above. What would it look like if one was orphaned? Dale :-) :-) Detecting real orphan files is not a trivial task, it requires some knowledge about the installed packages, packages which have been installed before and which are now removed. Files which are essential to the system and which are not part of any packages (/etc/make.conf, /etc/passwd). There are also files which are generated by portage but can not be tracked by portage. The script already tries to exclude some false positive like *.pyc, *.pyo, .keep files. The pyc and pyo files are bite compiled python modules which are generated after the files are installed to the file system and thus are not known by portage. .keep files are normally generated by portage to prevent empty directories from being removed. It also excludes the directories /usr/src (there are kernel and other sources stored) and /lib/modules (location of the kernel modules) both locations contain files not known by portage too. But there are many other files not excluded by the script which are essential to the system. So you should know what you do when deleting any of the files you get from the script. Regards, Daniel I agree that it would be a heck of a challenge to track what is supposed to be there, what was not placed there by portage but belongs there anyway, and what just got left there by mistake. /etc/portage/* is just a small example of that. Portage didn't put it there but I would not be happy if it got removed. Then add in that there are hundreds of different packages to keep up with and not all of them can be on one install. Even if this script said something belonged to nothing installed, I would still check to make sure it was safe to delete. I also keep backups of not only my whole system but also a separate backup of /etc, just in case I edit something badly. Thanks Dale :-) :-)