Re: [gentoo-user] E17 installation

2010-12-06 Thread Fatih Tümen
On Thu, Dec 2, 2010 at 12:55, Mick michaelkintz...@gmail.com wrote:
 On Wednesday 01 December 2010 19:55:03 Fatih Tümen wrote:
 On Sun, Nov 28, 2010 at 23:16, Alan McKinnon alan.mckin...@gmail.com
 wrote: [..]

  *and* to be able to configure
  windows so they don;t bounce all over the place when getting focus

 I knew I read somewhere that was possible.. :-) but failed to disable
 this annoying thing.
 Could you guide me through the menu please?

 Go to Settings Panel and then scroll down to find Composite.  Then it is a
 matter of selecting anything other than the top setting if I'm right (I've
 disabled composite here so can't check).


Of course I had tried every option on composite settings list before
asking here; none of them had worked.

Today updated and thought I would start with a fresh .e directory.
First thing I changed was the 'default' composite effect. Indeed
selecting anything other than the top [default] setting kills the
pain. Thanks.

--
   Fatih



Re: [gentoo-user] E17 installation

2010-12-01 Thread Fatih Tümen
On Sun, Nov 28, 2010 at 23:16, Alan McKinnon alan.mckin...@gmail.com wrote:
[..]
 *and* to be able to configure
 windows so they don;t bounce all over the place when getting focus

I knew I read somewhere that was possible.. :-) but failed to disable
this annoying thing.
Could you guide me through the menu please?

--
   Fatih



Re: [gentoo-user] E17 installation

2010-11-28 Thread Fatih Tümen
On Sun, Nov 28, 2010 at 09:56, Hung Dang hungp...@gmail.com wrote:
 Thanks a lot for your reply. I somehow can only get englightenment
 x11-wm/enlightenment-1.0.7 eventhough I could see other E17 packages.
 The output of emerge command is shown at the end without any warning. I
 have updated the make.conf, added
 PORTDIR_OVERLAY=/var/lib/layman/enlightenment $PORTDIR_OVERLAY, and
 symlinked packages.keywords/enlightenment to
 /var/lib/layman/enlightenment/scripts. /package.keywords.livecvs. What
 do I miss here?

Try to emerge -pv enlightenment:0.17 and see what it tells you. If it
complains about masking, then you did not do the keywording right.

Make sure you run layman -s enlightenment and symlink
packages.keywords/enlightenment is not broken.

--
Fatih



Re: [gentoo-user] Varying clocks freqs of CPU ?

2010-11-25 Thread Fatih Tümen
On Thu, Nov 25, 2010 at 21:51, Stroller strol...@stellar.eclipse.co.uk wrote:

 On 25/11/2010, at 1:24pm, App Deb wrote:
 On Wed, Nov 24, 2010 at 7:00 PM,  meino.cra...@gmx.de wrote:

  new features, new problems...
  Recent multi-core CPUs modify the clock freqs of their core
  if only a subset of all cores are used.

  Are their any CONFIGs need to be set in the linux kernel to
  guarantee a stable system running those kind of CPUs ?

  Thank you very much in advance for any help!

 Most Intel CPUs need: CONFIG_X86_ACPI_CPUFREQ

 All AMD CPUs need: CONFIG_X86_POWERNOW_K8

 enabled in the kernel.

 And after that you need to install and enable/run the cpufrequtils daemon.

 How does one determine whether one's CPU supports this, please?

 Stroller.




Doc for this is located at /usr/src/linux/Documentation/cpu-freq/

Speaking of my case, I first get to know my cpu looking at
/proc/cpuinfo and then grep the doc directory.

# grep Sempron /usr/src/linux/Documentation/cpu-freq/*
/usr/src/linux/Documentation/cpu-freq/amd-powernow.txt:8th Generation:
powernow-k8: Athlon, Athlon 64,

which tells me to select powernow-k8. powetnow-k7, for instance, wont
work. But for Intel I *guess* acpi-intel is the one.
--
   Fatih



Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration

2010-11-24 Thread Fatih Tümen
On Wed, Nov 24, 2010 at 22:51, Paul Hartman
paul.hartman+gen...@gmail.compaul.hartman%2bgen...@gmail.com
 wrote:

 On Sun, Nov 21, 2010 at 12:43 AM, Paul Hartman
 paul.hartman+gen...@gmail.com paul.hartman%2bgen...@gmail.com wrote:
  On Wed, Nov 17, 2010 at 12:03 AM, Paul Hartman
  paul.hartman+gen...@gmail.com paul.hartman%2bgen...@gmail.com wrote:
  On Thu, Nov 11, 2010 at 1:11 PM, J. Roeleveld jo...@antarean.org
 wrote:
  On Thursday 11 November 2010 18:07:35 Paul Hartman wrote:
  On Wed, Nov 10, 2010 at 12:05 PM, J. Roeleveld jo...@antarean.org
 wrote:
   If the soldering isn't done correctly, the battery-pack can
 literally
   explode when put under load.
 
  Yeah, I don't think the savings would be big enough to justify the
 risk.
 
  I found a replacement battery online for less than USD$30 so I ordered
  it. Hopefully it fits and holds a charge. :)
 
  Good luck :)
  If laptops would work with the same LIPO-packs that are used for Remote
  Control planes, then it would be cheaper and easier as the chargers
 used for
  those are better then the stuff they stick in laptops.
 
  But that's wishfull thinking
 
  The replacement battery is good, it fits perfectly and holds over 90%
  of maximum rated charge.
 
  I booted from Sabayon KDE LiveCD and the battery meter works fine in
  there, so there must be something wrong in my config. I will dig
  deeper to try to identify the differences.
 
  Thanks for all suggestions. :)
 
  After a combination of kernel upgrade, BIOS downgrade (to fix an
  unrelated bug with resuming from suspend), KDE upgrades, and of course
  general messing with stuff, now it is working most of the time. I
  have an actual battery meter and power management works and I am
  happy.
 
  I sometimes get ACPI/DSDT errors in dmesg from boot time, about
  infinite loops in 3 places, and when this happens the battery is
  either not present to ACPI or is present but the state never changes
  (for example remaining capacity at boot time is 2048 and this will
  remain to be the value even as battery is dying). This properly seems
  to happen randomly, or maybe affected somehow by dual-booting into MS
  Windows. I didn't think DSDT/ACPI changes by the OS were persistent?
  Perhaps it's something to do with warm rebooting vs powering off and
  back on. I will have to experiment with it some more to see if I can
  break it :)
 
  A long time ago I tried to extract and repair my broken DSDT but it
  was over my head. I don't understand why it doesn't always work but
  for now things seem to be functioning properly when ACPI is okay at
  boot time.

 Another follow-up. It seems to work normally until it gets this error,
 at which point batter monitor stops working. Sometimes this error
 happens right away, other times it works for hours and then breaks. I
 guess it's a DSDT problem:

 ACPI Error (psparse-0537): Method parse/execution failed
 [\_SB_.PCI0.PIB_.EC0_.SMRD] (Node 88007f826320),
 AE_AML_INFINITE_LOOP
 ACPI Error (psparse-0537): Method parse/execution failed
 [\_SB_.BAT1.CHBP] (Node 88007f81d0f0), AE_AML_INFINITE_LOOP
 ACPI Error (psparse-0537): Method parse/execution failed
 [\_SB_.PCI0.PIB_.EC0_.SMSL] (Node 88007f826398),
 AE_AML_INFINITE_LOOP
 ACPI Error (psparse-0537): Method parse/execution failed
 [\_SB_.PCI0.PIB_.EC0_._Q09] (Node 88007f826438),
 AE_AML_INFINITE_LOOP

 Does anyone here know about this kind of thing? I am not really sure
 what it means. I've decompiled my DSDT but really don't know anything
 about how to fix it. Maybe I need to find some ACPI mailing list.
 Thanks.


Usually a BIOS update will do it or a kernel update. You can also try to
disable acpi and see if you can keep it working.

kernel parameters come to mind are acpi=off and pci=noacpi. The first one
completely disables acpi and the latter AFAIR just disables acpi routing for
pci subsystem. Look at kernel-parameters in linux Doc for more
combinations.

--
   Fatih


Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration

2010-11-24 Thread Fatih Tümen
On Thu, Nov 25, 2010 at 06:49, Paul Hartman
paul.hartman+gen...@gmail.compaul.hartman%2bgen...@gmail.com
 wrote:

 2010/11/24 Fatih Tümen fthtmn+gen...@gmail.comfthtmn%2bgen...@gmail.com
 :
 
  On Wed, Nov 24, 2010 at 22:51, Paul Hartman 
 paul.hartman+gen...@gmail.com paul.hartman%2bgen...@gmail.com
  wrote:
 
  On Sun, Nov 21, 2010 at 12:43 AM, Paul Hartman
  paul.hartman+gen...@gmail.com paul.hartman%2bgen...@gmail.com
 wrote:
   On Wed, Nov 17, 2010 at 12:03 AM, Paul Hartman
   paul.hartman+gen...@gmail.com paul.hartman%2bgen...@gmail.com
 wrote:
   On Thu, Nov 11, 2010 at 1:11 PM, J. Roeleveld jo...@antarean.org
   wrote:
   On Thursday 11 November 2010 18:07:35 Paul Hartman wrote:
   On Wed, Nov 10, 2010 at 12:05 PM, J. Roeleveld jo...@antarean.org
 
   wrote:
If the soldering isn't done correctly, the battery-pack can
literally
explode when put under load.
  
   Yeah, I don't think the savings would be big enough to justify the
   risk.
  
   I found a replacement battery online for less than USD$30 so I
   ordered
   it. Hopefully it fits and holds a charge. :)
  
   Good luck :)
   If laptops would work with the same LIPO-packs that are used for
   Remote
   Control planes, then it would be cheaper and easier as the chargers
   used for
   those are better then the stuff they stick in laptops.
  
   But that's wishfull thinking
  
   The replacement battery is good, it fits perfectly and holds over 90%
   of maximum rated charge.
  
   I booted from Sabayon KDE LiveCD and the battery meter works fine in
   there, so there must be something wrong in my config. I will dig
   deeper to try to identify the differences.
  
   Thanks for all suggestions. :)
  
   After a combination of kernel upgrade, BIOS downgrade (to fix an
   unrelated bug with resuming from suspend), KDE upgrades, and of course
   general messing with stuff, now it is working most of the time. I
   have an actual battery meter and power management works and I am
   happy.
  
   I sometimes get ACPI/DSDT errors in dmesg from boot time, about
   infinite loops in 3 places, and when this happens the battery is
   either not present to ACPI or is present but the state never changes
   (for example remaining capacity at boot time is 2048 and this will
   remain to be the value even as battery is dying). This properly seems
   to happen randomly, or maybe affected somehow by dual-booting into MS
   Windows. I didn't think DSDT/ACPI changes by the OS were persistent?
   Perhaps it's something to do with warm rebooting vs powering off and
   back on. I will have to experiment with it some more to see if I can
   break it :)
  
   A long time ago I tried to extract and repair my broken DSDT but it
   was over my head. I don't understand why it doesn't always work but
   for now things seem to be functioning properly when ACPI is okay at
   boot time.
 
  Another follow-up. It seems to work normally until it gets this error,
  at which point batter monitor stops working. Sometimes this error
  happens right away, other times it works for hours and then breaks. I
  guess it's a DSDT problem:
 
  ACPI Error (psparse-0537): Method parse/execution failed
  [\_SB_.PCI0.PIB_.EC0_.SMRD] (Node 88007f826320),
  AE_AML_INFINITE_LOOP
  ACPI Error (psparse-0537): Method parse/execution failed
  [\_SB_.BAT1.CHBP] (Node 88007f81d0f0), AE_AML_INFINITE_LOOP
  ACPI Error (psparse-0537): Method parse/execution failed
  [\_SB_.PCI0.PIB_.EC0_.SMSL] (Node 88007f826398),
  AE_AML_INFINITE_LOOP
  ACPI Error (psparse-0537): Method parse/execution failed
  [\_SB_.PCI0.PIB_.EC0_._Q09] (Node 88007f826438),
  AE_AML_INFINITE_LOOP
 
  Does anyone here know about this kind of thing? I am not really sure
  what it means. I've decompiled my DSDT but really don't know anything
  about how to fix it. Maybe I need to find some ACPI mailing list.
  Thanks.
 
 
  Usually a BIOS update will do it or a kernel update. You can also try to
  disable acpi and see if you can keep it working.
  kernel parameters come to mind are acpi=off and pci=noacpi. The first one
  completely disables acpi and the latter AFAIR just disables acpi routing
 for
  pci subsystem. Look at kernel-parameters in linux Doc for more
  combinations.

 Thanks, unfortunately it is an old computer (from 2004), the newest
 BIOS, which is several years old, breaks suspend (it does not resume
 from suspend, not even Windows XP works...), so I'm using the
 penultimate BIOS. It's an Acer Ferrari 3400, back in the time when I
 bought it, the internet was full of people who have to edit their DSDT
 on Acer laptops in order to fix it, many people had no battery support
 at all.

 I know I used some magic kernel parameters at some point, I'm not
 sure if it was ACPI related, though. I will look into them to see if
 there's anything new in the past 5 years of kernel development that
 might help me. :)



Have a look at this bug affecting acer laptops. there is a solution proposed
in its

Re: [gentoo-user] Advice for System monitor + Intrusion Detection tools?

2010-11-20 Thread Fatih Tümen
On Sat, Nov 20, 2010 at 00:06, Stroller strol...@stellar.eclipse.co.uk wrote:

 On 19/11/2010, at 8:45pm, Fatih Tümen wrote:
 I just want to beware of anything unusual instantly, preferably by
 email. This is a single or two user laptop.

 I've been meaning for some time to look for something like this myself. I'm 
 personally only interested in messages from the RAID controller, and I'm not 
 sure that I'm a high-risk for intrusion, but I do want to know about it 
 *immediately* if a drive fails, so that ideally I can pop into the store on 
 the way home and pick up a new disk to replace the one that failed.

 ...
 I also checked logsurfer which comes with a init script, however, no
 working configuration file and sort of confusing examples.

 I don't really have a problem with the examples on these pages:
 http://www.crypt.gen.nz/papers/logsurfer.html
 http://www.crypt.gen.nz/logsurfer/man_logsurfer_conf.html

 Or with these explanations [PDF]:
 http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.5.8610rep=rep1type=pdf
 http://www.laptopmobilesecurity.com/papers/Logsurfer.pdf

 The examples contain a lot of brackets and stuff, but those seem merely to be 
 regular expressions, and if you don't know regex then learning them will pay 
 dividends in other future projects. logsurfer's syntax and the use of 
 contexts is not completely clear to me with only the quick glance I've made 
 in the 10 minutes its taken me to write this message, but I'm extremely 
 confident I could have it up and running to meet my needs within an hour. The 
 documentation seems no more complex than any other man page. I'm pretty sure 
 you would understand what's going on if you were only to follow the examples 
 and have a play with them.

 Be sure to use the `start-mail` script you find in the doc/contrib directory, 
 not any others you find floating around the net:
 http://lists.grok.org.uk/pipermail/full-disclosure/2008-February/060389.html

 The doc/contrib script seems to address the issue of escape sequences 
 (although I'm about to do some more homework on this subject).

 Stroller.


Thanks for the links. Example links seems to be down for me but I will
check back later.

--
   Fatih



[gentoo-user] Advice for System monitor + Intrusion Detection tools?

2010-11-19 Thread Fatih Tümen
Hi,

I just want to beware of anything unusual instantly, preferably by
email. This is a single or two user laptop. Here are the few I gave a
shot:

Logsentry is very simple and easy to use with its plain rule files and
check script. It just works out of the box with almost zero
configuration. I only had to add couple of rules and modify
logcheck.sh according to my syslog setup. But it seems to be
unmaintained and more importantly it is not real time. There is an
hourly cron job shipped with the package but running it more frequent
sounds like overdoing it.

I also checked logsurfer which comes with a init script, however, no
working configuration file and sort of confusing examples.

Aide, as an intrusion detection tool, has also very simple
configuration but it does not report in real time either. You have to
place the example cron job to cron directory of your choice manually.
Running it hourly loads the system every hour for couple of minutes.
Running it daily mean knowing about the intrusion only the day after.
I don't see the point of that, it may be too late for everything.

I read somewhere that snort was the most used one. At first glance
there are too many configuration variables. It just seems overmuch for
what I want on my system.

What I want is something like tail using inotify:
tail -f / | mail $ME :)

Seriously, are there [or is there a single] tool/s for {system,
network, log} monitoring and intrusion detection, using inotify to
watch and email the instant changes on a system? What do you use and
recommend for a home pc?

eix -cSz ntrusion and log monitor show what is available in portage
but asking to share experience is a lot better than emerge-try-unmerge
cycle. Hope you agree.

--
   Fatih



Re: [gentoo-user] swap usage creeping up

2010-11-15 Thread Fatih Tümen
On Mon, Nov 15, 2010 at 07:09, Iain Buchanan iai...@netspace.net.au wrote:
 On Tue, 2010-11-09 at 23:24 +0200, Fatih Tümen wrote:
 On Fri, Nov 5, 2010 at 08:45, Iain Buchanan iai...@netspace.net.au wrote:
  OK so vm.swappiness seemed to help a bit but today I notice that swap
  usage is up again.  It's firefox:
 
   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  14072 iain      20   0 1369m 897m  15m S    3 29.5 113:14.91 firefox
 
  I think that's 1.3Gb + 900Mb... sounds like a memory leak to me.
 
  Anyone else run firefox for 113+ hours?  I'm using 3.6.9-r1.
 

 1.3G is the grant total of Res and Swap.  You need to read man top
 before judging not-entirely-accurate values reported by top.

 judging? I only said I think!

 sure, top has it's quirks, but it's ok for comparing against itself.

 900M is resident on your main memory. '113+ hours' is not a decent
 information to draw conclusion from. Running firefox for 113+ hours
 with a single tab on a text-only website is not same as running dozens
 of tabs with dozens of multimedia/embedded objects.

 sure, but running it for 10 or 100 or 1000 hours should produce roughly
 the same characteristics for the same browsing behaviour if all other
 things are equal.  A few months ago this didn't cause any issues at all,
 now I'm seeing high swap usage.  I usually never use my 3G of physical
 RAM.


Can you recall what significant change have you made to the system?
For emerged packages you can try smth like genlop --list --date 1
month ago and then check against the versions upgraded from.

 Again today I see it is using about 900Mb in total, which seems quite
 large.  vm.swappiness is set to 0.  I've upgraded firefox to 3.6.12.

 I had to reboot, but I'll check the usual statistics next time I see it.


You say swappiness is set to 0 but dont give any swap usage info. If
there is any swap usage while swapiness is 0 then it would be weird
and we could blame it on the kernel.

I just googled mem usage firefox as I am running out of ideas. It seem
like you are not the only one complaining about this. Take a look at
these top results. There are some tweaking advice, see it they work
for you.
http://kb.mozillazine.org/Memory_Leak
http://support.mozilla.com/en-US/kb/high+memory+usage

Chromium, which I have been happily using for almost a year now, has a
task manager which shows mem usage of every extension and tab. If
firefox has switched to multiprocessing, which was a feature plan some
time ago, similar tool should likely be available for firefox as well.

--
   Fatih



Re: [gentoo-user] Hibernation doesn't work

2010-11-15 Thread Fatih Tümen
On Mon, Nov 15, 2010 at 08:11, Benyamin Dvoskin
benyamin.dvos...@gmail.com wrote:
 Hi ,

 I've been trying to configure hibernation to work on my netbook , and
 for some reason it doesnt work
 when I go to hibernate , and then power up again , it starts as if from 
 scratch

 what can i check ?
 what is the right way to configure it ?

 Thanks
 Benny



Did you remember to add resume=/dev/swap partition to which you
hibernated  to kernel line in grub.conf?

--
   Fatih



Re: [gentoo-user] swap usage creeping up

2010-11-15 Thread Fatih Tümen
Okay I am getting suspicious of tuxonice. Setting swappiness to zero
does not mean kernel wont use any swap but it should not be prefering
swap over ram when 2G of ram is out there either.

Just out of curiosity, can you find out which app(s) being swapped ?

I would give a try to gentoo-sources and see if the issue can be reproduced.

On 15/11/2010, Iain Buchanan iai...@netspace.net.au wrote:
 On Mon, 2010-11-15 at 10:41 +0200, Fatih Tümen wrote:
 On Mon, Nov 15, 2010 at 07:09, Iain Buchanan iai...@netspace.net.au
 wrote:

  sure, but running it for 10 or 100 or 1000 hours should produce roughly
  the same characteristics for the same browsing behaviour if all other
  things are equal.  A few months ago this didn't cause any issues at all,
  now I'm seeing high swap usage.  I usually never use my 3G of physical
  RAM.
 

 Can you recall what significant change have you made to the system?
 For emerged packages you can try smth like genlop --list --date 1
 month ago and then check against the versions upgraded from.

 sure, only EVERYthing has been updated... including firefox and the
 kernel!

  Again today I see it is using about 900Mb in total, which seems quite
  large.  vm.swappiness is set to 0.  I've upgraded firefox to 3.6.12.
 
  I had to reboot, but I'll check the usual statistics next time I see it.
 

 You say swappiness is set to 0 but dont give any swap usage info.

 that's cause I had to reboot and swap was back to 0.

  If
 there is any swap usage while swapiness is 0 then it would be weird
 and we could blame it on the kernel.

 _any_ swap usage?  right now I'm using 110Mb of swap with 1.8Gb free
 physical RAM and vm.swapiness is 0!

 $ free -m
  total   used   free sharedbuffers cached
 Mem:  3040   1206   1834  0 61246
 -/+ buffers/cache:898   2142
 Swap:  494110383


 $ cat /proc/sys/vm/swappiness
 0

   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND

  3192 iain  20   0  554m 204m  27m S9  6.7  26:31.94 firefox



 I just googled mem usage firefox as I am running out of ideas.

 but thanks for the suggestions anyway :)  I'll keep googling!

 --
 Iain Buchanan iaindb at netspace dot net dot au

 Allen's Axiom:
   When all else fails, read the instructions.




-- 
Sent from my mobile device

--
  Fatih



Re: [gentoo-user] import site fails - why

2010-11-12 Thread Fatih Tümen
On Fri, Nov 12, 2010 at 15:56, Helmut Jarausch
jarau...@igpm.rwth-aachen.de wrote:
 mount -o bind /proc /nroot/proc
 mount -o bind /dev /nroot/proc

That looks a bit strange to me, doesnt it to you? :) I would retype
that as follow:

mount -t proc none /nroot/proc
mount -o bind /dev/ /nroot/dev

--
   Fatih



Re: [gentoo-user] import site fails - why

2010-11-12 Thread Fatih Tümen
On Fri, Nov 12, 2010 at 16:32, Helmut Jarausch
jarau...@igpm.rwth-aachen.de wrote:
 On 11/12/10 15:24:44, Fatih Tümen wrote:
 On Fri, Nov 12, 2010 at 15:56, Helmut Jarausch
 jarau...@igpm.rwth-aachen.de wrote:
  mount -o bind /proc /nroot/proc
  mount -o bind /dev /nroot/proc

 That looks a bit strange to me, doesnt it to you? :) I would retype
 that as follow:

 mount -t proc none /nroot/proc
 mount -o bind /dev/ /nroot/dev


 Thanks Faith,

 unfortunately this doesn't solve the problem.
 (My version has been working for years, and
 I can mount /usr in the chrooted system.)

 Helmut.




Ok so I learn one more thing, thanks.

I think its better if you post the exact error message.

--
Fatih



Re: [gentoo-user] import site fails - why

2010-11-12 Thread Fatih Tümen
On Fri, Nov 12, 2010 at 17:44, Helmut Jarausch
jarau...@igpm.rwth-aachen.de wrote:
 Meanwhile, I have run python-updater on the master machine and I have
 re-install portage.
 Then I resync'ed the new machine against this master.

 Still, env-update fails after chroot
 Here is the output

 Python 2.6.6 (r266:84292, Oct 13 2010, 09:06:24)
 [GCC 4.4.4] on linux2
 Type help, copyright, credits or license for more information.
 dlopen(/usr/lib64/python2.6/lib-dynload/readline.so, 2);
 import readline # dynamically loaded from /usr/lib64/python2.6/lib-
 dynload/readline.so
 import site
 # /usr/lib64/python2.6/site.pyc matches /usr/lib64/python2.6/site.py
 import site # precompiled from /usr/lib64/python2.6/site.pyc
 Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib64/python2.6/site.py, line 526, in module
    main()
  File /usr/lib64/python2.6/site.py, line 509, in main
    known_paths = addsitepackages(known_paths)
  File /usr/lib64/python2.6/site.py, line 289, in addsitepackages
    addsitedir(sitedir, known_paths)
  File /usr/lib64/python2.6/site.py, line 185, in addsitedir
    addpackage(sitedir, name, known_paths)
  File /usr/lib64/python2.6/site.py, line 159, in addpackage
    if not dircase in known_paths and os.path.exists(dir):
  File /usr/lib64/python2.6/genericpath.py, line 18, in exists
    st = os.stat(path)
 TypeError: stat() argument 1 must be encoded string without NULL bytes,
 not str


 This is with portage-2.2.0-alpha4 which works flawlessly on the master
 machine.

 I'm puzzled!

It looks like an encoding problem of some path but we wont know which
one unless you try to catch it with strace -e trace=open `which
env-update`. Otherwise I am puzzled as much as you are.
--
   Fatih



Re: [gentoo-user] which NIC is which?

2010-11-12 Thread Fatih Tümen
On Fri, Nov 12, 2010 at 21:14, Stefan G. Weichinger li...@xunil.at wrote:
 I want to somehow find out the relation between loaded kernel-module and
 ethernet-devicefile. Without physical access ...

 In another way: Which kernel-module is in use for /dev/ethX ?


# ethtool -i eth1
driver: foo_driver
version: 22-Aug-2005
firmware-version: FOO Ethernet Device
bus-info: usb-:00:03.3-1.4

# ifconfig eth1 | grep HW
eth1  Link encap:Ethernet  HWaddr 00:00:00:00:00:00

--
Fatih



Re: [gentoo-user] Can't update dev-lib/nss

2010-11-10 Thread Fatih Tümen
On Wed, Nov 10, 2010 at 01:45, Stroller strol...@stellar.eclipse.co.uk wrote:

 On 9/11/2010, at 9:03pm, Fatih Tümen wrote:
 On Tue, Nov 9, 2010 at 22:05, Alan McKinnon alan.mckin...@gmail.com wrote:

 The language of this list is English. You might be lucky and find 
 someonewhounderstands French and knows the answer to your problem, but the 
 odds arenotgood. I don't speak French at all, I can't even make jokes about 
 leBigMacand get it right, so I can't help you much :-)

 I suggest you find and post to a French speaking list, or translate 
 theFrencherror messages to English.

 Come on, there was nothing French there except 'Leaving directory' message
 preceded by its mnemonic 'make[1]':)

 The point is that I don't know that the error message translates to 'Leaving 
 directory'. And it's the only error message there is.


Sorry for assuming that the words 'quitant' and 'enterant' were
trivial for a English speaker.  Anyway that line was not an error
line. Correct me if I am wrong but make usually [always?] shouts the
errors with triple asteriks followed by error numbers as in:

make[1]: *** [../../dist/public/dbm] Erreur 134
make: *** [export] Erreur 2

package name, make, and error nr are the keyword of my search.

 Isn't it possible for non-English speakers to set something like 
 LANG=en_GB.UTF-8 in /etc/env.d/02locale and then simply `export 
 LANG=en_GB.UTF-8` before posting their errors?


If it is not a bug of portage to produce error messages in English on
a system with non-English locale then it should be a feature of
portage to reproduce all error messages in English.

--
   Fatih



Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration

2010-11-10 Thread Fatih Tümen
On Tue, Nov 9, 2010 at 23:52, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 Hi,

 I have a laptop running Gentoo (with dual-boot to Windows XP). It was
 manufactured in 2004 and battery life have been consistent for all
 those years. However, it sat dormant for almost a year, after which I
 did a few days worth of updating to bring it up to current kernel and
 ~amd64 package levels. There are two issues that have arisen:

 1) The smart battery is not so smart anymore. It only charges about
 halfway, then the charging light turns green and it stops. Effective
 battery capacity is about one-third of what it used to be. From what I
 understand, while Li-ion don't have memory like old Ni-Cd batteries,
 the smart circuitry cannot account for power drain that happens when
 the battery is not in use. Say the battery lost half of its power
 while it was in storage, so the chip thinks charge is at one level
 when it is really much lower. When recharging, it stops when it is
 full even though it's only halfway there.

 Has anyone successfully re-calibrated one of these batteries to
 recognize a larger capacity?

 My understanding is that, to do this, I should discharge at a constant
 rate until it is empty, then charge to full. Repeat ?? times. I've
 drained the poor little battery after regular usage (not a constant
 rate of discharge) a few times and haven't noticed any change so far.
 So I'm probably doing it wrong (or completely misunderstanding...)


AFAIK, this is the advised way to dis/charge Li-ion batteries to keep
their performance up. But since you left it to sleep for a year, you
probably lost some of the cells to death. You can perhaps try keep
doing that not to loose any more of them.

 This is complicated by my second problem:

 2) If I click on the Power Management in the KDE system settings, it
 says Number of CPUs 0 Number of batteries 0 and battery-related
 options are greyed out. Since battery monitoring does not work, I have
 no idea how much battery life is left and have no warning when it
 suddenly shuts down, causing filesystem corruption and who knows what
 other problems.

 Everything in /proc/acpi/battery/ seems normal and /proc/cpuinfo does as well:

 $ cat /proc/acpi/battery/BAT1/info
 present:                 yes
 design capacity:         4400 mAh
 last full capacity:      1984 mAh
[..]
 $ cat /proc/acpi/battery/BAT1/state
 present:                 yes
 capacity state:          ok
 charging state:          charged
 present rate:            0 mA
 remaining capacity:      1984 mAh
 present voltage:         16384 mV

Only ~45% [1985/4400*100] of your battery seems to be alive. For
reference, I have 3062/4400*100 ~70% of a 5 year old battery here and
I have not paid attention to the above mentioned dis/charge advise.

I don't know why KDE cannot read. Try to check ~/.xsession-error for
some useful error. FYI the remaining battery level is calculated by
the following formula FYI:

remaining capacity / last full capacity * 100

If youre planning to use this battery, either try other battery
monitors or have a script to calculate above values periodically and
give a warning. Otherwise at some point your system will get as
corrupted as your battery. Good luck.

--
   Fatih



Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Fatih Tümen
Googling your error messages give Bug #339157 and some  forums threads, one
of which is in french. The bug still open but there is a patch claimed to be
working. Give it a shot after trying Dale's sandbox trick.

bugs.gentoo.org/show_bug.cgi?id=339157

--
   Fatih


On Tue, Nov 9, 2010 at 19:56, alain.didierj...@free.fr wrote:

 Selon Alan McKinnon alan.mckin...@gmail.com:

  Apparently, though unproven, at 10:21 on Tuesday 09 November 2010,
  alain.didierj...@free.fr did opine thusly:
 
   As the subject says, here's what I get:
 
  What's the output just before the section you posted?
 

 Here you are :

 make[1]: quittant le répertoire «

 /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/coreconf/nsinstall
 »
 make -j3 -j1 CC=x86_64-pc-linux-gnu-gcc
 cd include; make export
 make[1]: entrant dans le répertoire «

 /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/dbm/include
 »
 Creating ../../dist/public/dbm
 /usr/lib/libsandbox.so(+0x3972)[0x2b497350a972]
 /usr/lib/libsandbox.so(+0x3a03)[0x2b497350aa03]
 /usr/lib/libsandbox.so(+0xbdfc)[0x2b4973512dfc]
 /usr/lib/libsandbox.so(+0x413c)[0x2b497350b13c]
 /usr/lib/libsandbox.so(+0x749c)[0x2b497350e49c]
 /usr/lib/libsandbox.so(mkdir+0x37)[0x2b4973511807]

 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall(+0x191c)[0x2b49730e391c]

 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall(+0x19e0)[0x2b49730e39e0]
 /proc/13606/cmdline:

 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall
 -D ../../dist public dbm

  
   /bin/sh: line 3: 10089 Abandon
  
 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_
   64_OPT.OBJ/nsinstall -D ../../dist/public/dbm
   make[1]: *** [../../dist/public/dbm] Erreur 134
   make[1]: quittant le répertoire «
  
 /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/dbm/i
   nclude »
   make: *** [export] Erreur 2
* ERROR: dev-libs/nss-3.12.8 failed:
*   dbm make failed
*
* Call stack:
* ebuild.sh, line  54:  Called src_compile
*   environment, line 2703:  Called die
* The specific snippet of code:
*   emake -j1 CC=$(tc-getCC) || die dbm make failed;
*
* If you need support, post the output of 'emerge --info
   =dev-libs/nss-3.12.8', * the complete build log and the output of
 'emerge
   -pqv =dev-libs/nss-3.12.8'. * The complete build log is located at
   '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
* The ebuild environment file is located at
   '/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
* S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'
  
Failed to emerge dev-libs/nss-3.12.8, Log file:
 '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'
  
* Messages for package dev-libs/nss-3.12.8:
  
* ERROR: dev-libs/nss-3.12.8 failed:
*   dbm make failed
*
* Call stack:
* ebuild.sh, line  54:  Called src_compile
*   environment, line 2703:  Called die
* The specific snippet of code:
*   emake -j1 CC=$(tc-getCC) || die dbm make failed;
*
* If you need support, post the output of 'emerge --info
   =dev-libs/nss-3.12.8', * the complete build log and the output of
 'emerge
   -pqv =dev-libs/nss-3.12.8'. * The complete build log is located at
   '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
* The ebuild environment file is located at
   '/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
* S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'
   isba alain # emerge -pqv =dev-libs/nss-3.12.8
   [ebuild U ] dev-libs/nss-3.12.8 [3.12.7] USE=utils
   isba alain # emerge --info =dev-libs/nss-3.12.8
   Portage 2.1.8.3 (hardened/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3,
   2.6.34-gentoo-r12 x86_64)
  
  
   Any cue ?
 
  --
  alan dot mckinnon at gmail dot com
 






Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Fatih Tümen
On Tue, Nov 9, 2010 at 22:05, Alan McKinnon alan.mckin...@gmail.com wrote:

 The language of this list is English. You might be lucky and find someone
 who
 understands French and knows the answer to your problem, but the odds are
 not
 good. I don't speak French at all, I can't even make jokes about le
 BigMac
 and get it right, so I can't help you much :-)

 I suggest you find and post to a French speaking list, or translate the
 French
 error messages to English.



Come on, there was nothing French there except 'Leaving directory' message
preceded by its mnemonic 'make[1]':)
--
   Fatih


Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Fatih Tümen
2010/11/9 Fatih Tümen fthtmn+gen...@gmail.com

 On Tue, Nov 9, 2010 at 22:05, Alan McKinnon alan.mckin...@gmail.com wrote:

 The language of this list is English. You might be lucky and find someone who
 understands French and knows the answer to your problem, but the odds are not
 good. I don't speak French at all, I can't even make jokes about le BigMac
 and get it right, so I can't help you much :-)

 I suggest you find and post to a French speaking list, or translate the 
 French
 error messages to English.

 Come on, there was nothing French there except 'Leaving directory' message 
 preceded by its mnemonic 'make[1]':)

..and  'entering directory' ofcourse

--
    Fatih



Re: [gentoo-user] swap usage creeping up

2010-11-09 Thread Fatih Tümen
On Fri, Nov 5, 2010 at 08:45, Iain Buchanan iai...@netspace.net.au wrote:
 OK so vm.swappiness seemed to help a bit but today I notice that swap
 usage is up again.  It's firefox:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 14072 iain      20   0 1369m 897m  15m S    3 29.5 113:14.91 firefox

 I think that's 1.3Gb + 900Mb... sounds like a memory leak to me.

 Anyone else run firefox for 113+ hours?  I'm using 3.6.9-r1.


1.3G is the grant total of Res and Swap.  You need to read man top
before judging not-entirely-accurate values reported by top.

900M is resident on your main memory. '113+ hours' is not a decent
information to draw conclusion from. Running firefox for 113+ hours
with a single tab on a text-only website is not same as running dozens
of tabs with dozens of multimedia/embedded objects.

You say swap usage was up again but dont give data about it. 472M is
what top would report in the above case but it is an unrealictic
values as it is uncompressed size. output of cat /proc/swaps or free
is what one needs to see.

Also make sure that you put the swapiness value which you say worked
for you in /etc/sysctl.conf.

--
   Fatih



Re: [gentoo-user] usb error log spam

2010-11-04 Thread Fatih Tümen
On Thu, Nov 4, 2010 at 14:53, a...@sourcegarden.de a...@sourcegarden.de wrote:
 On 11/04/10 12:32, Neil Bothwick wrote:
 On Thu, 04 Nov 2010 11:21:29 +0100, a...@sourcegarden.de wrote:

 Got some strange usb errors message all time plug in a usb storage key.
 Are they errors, they return status 0?

 You probably have CONFIG_USB_DEBUG or CONFIG_USB_STORAGE_DEBUG enabled in
 your kernel.


 no, it's not:
 CONFIG_USB_DEBUG is not set
 That also why, i think this more a error message than a debug

Make sure you have the line HALD_VERBOSE=no in /etc/conf.d/hald.

--
Fatih



Re: [gentoo-user] Bugzilla search

2010-10-30 Thread Fatih Tümen
2010/10/30 Thanasis thana...@asyr.hopto.org:
 I was searching Bugzilla for a bug namely #342845, which I found via
 google
 (http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-vcs/git/git-1.7.3.2-r1.ebuild?view=markup),
 because when I put git-1.7.3.2-r1 in the Find field of Bugzilla
 (http://bugs.gentoo.org/) it returns Zarro Boogs found. Is this normal?
 Am I missing something in the way I should use the Bugzilla interface to
 do a seach?



Default is to search within unconfirmed, new, assigned and reopened
bugs where as #342845 is resolved.

Either 'edit search' and 'ctrl+left click' 'resolved' to include it
from 'status' list or just simply type bugs - hit End key ((assuming
your browaser's omnibox will autocompletes it to bugs.gentoo.org) -
slash - paste the bug number -  bugs.gentoo.org/342845.

Searching for bug number should also redirect to the bug page.

--
Fatih



Re: [gentoo-user] How to record a dvb-t stream for a specific time ?

2010-10-30 Thread Fatih Tümen
On Sat, Oct 30, 2010 at 14:55, meino.cra...@gmx.de wrote:

 Hi,


  I am looking for a way to record from a dvb-t card a stream of a
  certain channel fpr a specific time.

  Is there any tool of application to do this from the commandline
  so that there is no additional mousclick is needed?

  Best regards,
  mcc




I know that mplayer can do it but I did not try it myself.
mplayer record dvb gives these

[MPlayer-dvb] Record dvb-t on Ubuntu linux
I want to record my favorite dvb-t channels and I found in docs the   way ...
http://lists.mplayerhq.hu/pipermail/mplayer-dvb/2007-March/001911.html

Record dvb-t at night - Ubuntu Forums
I want to record my favorite dvb-t channels and I found in docs the
way to do it : mplayer -dumpfile r1.ts -dumpstream dvb://CHANNEL ...
http://ubuntuforums.org/showthread.php?t=394308

--
   Fatih



Re: [gentoo-user] Re: scrapping hal

2010-10-29 Thread Fatih Tümen
On Thu, Oct 28, 2010 at 21:21, Neil Bothwick n...@digimed.co.uk wrote:
 On Thu, 28 Oct 2010 18:11:42 +0300, Fatih Tümen wrote:

 I agree putting -hal is not a good idea unless you dare to break the
 packages that need hal. But I think there is a third option here

 Packages that need hal won't have a hal use flag.


True, not every package that needs hal has hal use flag. I should have
made clear that my implication was those which have (optional)
dependency on hal  (thus) has hal flag. For packages that need hal
it doesn't matter whether you have -hal in your make.conf anyway, does
it?

--
   Fatih




 --
 Neil Bothwick

 Oxymoron: Reagan memoirs.




[gentoo-user] emerge --buildpkg --unmerge

2010-10-29 Thread Fatih Tümen
Hi,

Is there a way tell portage to build binary package before removing it
from the system?

man emerge says:
--buildpkg (-b)
  Tells  emerge  to  build binary packages for all ebuilds
processed in addition to actually **merging** the packages.
  [...]
  An alternative for already-merged packages is to use
quickpkg(1) which creates a tbz2 from the live filesystem.

I have about 20 packages to unmerge or remerge with new use flags. But
I want to keep binary copies (with old use settings) before unmerging
them. Unfortunately I did not have buildpkg in FEATURES at the time of
emerging them. Doing this now by hand sounds kinda fatigue unless...
the output of --pretend was parsable so I do what I want by..

for pkg in ${PKGS}; do quickpkg --include-config\=y $pkg; done

or by something better?

Thanks for ideas in advance.
--
   Fatih



Re: [gentoo-user] emerge --buildpkg --unmerge

2010-10-29 Thread Fatih Tümen
On Fri, Oct 29, 2010 at 21:18, Alan McKinnon alan.mckin...@gmail.com wrote:
 Apparently, though unproven, at 18:46 on Friday 29 October 2010, Fatih Tümen
 did opine thusly:

 Hi,

 Is there a way tell portage to build binary package before removing it
 from the system?

 man emerge says:
 --buildpkg (-b)
               Tells  emerge  to  build binary packages for all ebuilds
 processed in addition to actually **merging** the packages.
               [...]
               An alternative for already-merged packages is to use
 quickpkg(1) which creates a tbz2 from the live filesystem.

 I have about 20 packages to unmerge or remerge with new use flags. But
 I want to keep binary copies (with old use settings) before unmerging
 them. Unfortunately I did not have buildpkg in FEATURES at the time of
 emerging them. Doing this now by hand sounds kinda fatigue unless...
 the output of --pretend was parsable so I do what I want by..

 for pkg in ${PKGS}; do quickpkg --include-config\=y $pkg; done

 or by something better?

 Thanks for ideas in advance.
 --
    Fatih


 Write a wrapper script around quickpkg and emerge.

 And set buildpkg in FEATURES so this doesn't happen again :-)


'wrapper' rang the bell. Thanks.

The only one I recalled was post_src_install from lafilefixer thing.
So I grepped /usr/lib/portage/ for it and found the list of others at
/usr/lib/portage/bin/isolated-functions.sh +521 and wrote this inside
/etc/portage/bashrc

pkg_prerm() {
echo  Building binary package before unmerging ;)
if [[ -f /var/db/.pkg.portage_lockfile ]]; then
rm -f /var/db/.pkg.portage_lockfile #2/dev/null
fi
quickpkg --include-config\=y =$CATEGORY/$P
touch /var/db/.pkg.portage_lockfile
}

Voila! :)

--
   Fatih



Re: [gentoo-user] Laptop

2010-10-28 Thread Fatih Tümen
The best would be to run lspci on the machine as others suggested. You
can paste the lspci -n output here and get the availability of drivers
for linux. http://kmuto.jp/debian/hcl/

There is also lists of hardware/laptops known to be working on Gentoo.
N series is not listed on Gentoo wiki but perhaps you can find it on
other distros' wiki or at least find laptops with common hardware.

http://en.gentoo-wiki.com/wiki/Index:Laptops

--
Fatih



Re: [gentoo-user] Re: scrapping hal

2010-10-28 Thread Fatih Tümen
On Thu, Oct 28, 2010 at 11:26, Alan McKinnon alan.mckin...@gmail.com wrote:
 Apparently, though unproven, at 05:22 on Thursday 28 October 2010, Harry
 Putnam did opine thusly:

 Philip Webb purs...@ca.inter.net writes:
  101027 Harry Putnam wrote:
  I wondered if there is some kind of guide to scrap hal.
 
  From my notes, having done it on  2  desktops machines +  1  netbook :
 Nice .. many thanks but one question

    To remove Hal : drop '-hal' flag, add 'udev' flag ;

 So no kind of hal flag in make.conf, or is `-hal' a typo that
 should be `drop 'hal' flag?


 I wouldn't advise putting -hal in make.conf - that's globally and too many
 other things on the desktop still need it. Either

 a) disable it in /etc/make.conf and enable it in packages.use for stuff that
 needs it
 b) enable it in make.conf and disable it in packages.use for xorg-server

 I prefer b) as it's too easy to miss things using a).


I agree putting -hal is not a good idea unless you dare to break the
packages that need hal. But I think there is a third option here

c) take the default: if you dont put hal in make.conf or package.use,
packages will decide best for themselves..

Thu Oct 28 | 18:08:45 log # equery -C hasuse hal
[ Searching for USE flag hal in all categories among: ]
 * installed packages
[I--] [  ] media-sound/pulseaudio-0.9.21.1 (0)
[I--] [ -] app-emulation/wine-1.2 (0)
[I--] [  ] x11-base/xorg-server-1.7.7-r1 (0)
[I--] [  ] sys-fs/ntfs3g-2010.3.6 (0)
[I--] [ ~] kde-base/solid-4.5.2 (4.5)
[I--] [  ] media-libs/libgphoto2-2.4.9 (0)
[I--] [  ] x11-drivers/xf86-input-synaptics-1.2.1 (0)
[I--] [  ] xfce-base/exo-0.3.107 (0)
[I--] [  ] xfce-base/thunar-1.0.2 (0)
Thu Oct 28 | 18:08:56 log # grep ^hal /etc/make.conf
Thu Oct 28 | 18:08:58 log # grep ^hal /etc/portage/ -R
Thu Oct 28 | 18:09:00 log #

When kde gets rid of hal I might as well give up on all other packages
depend on it and totally get rid of the curst thing.

--
   Fatih



Re: [gentoo-user] How can I unmask package and mask just its one version?

2010-10-28 Thread Fatih Tümen
On Thu, Oct 28, 2010 at 20:13, Jarry mr.ja...@gmail.com wrote:
 Hi,
 how can I unmask (generally) certain M~ masked package and
 mask one particular version of that package? I want to use
 that package, but skip just one x.y.z upgrade, and continue
 with any future higher upgrades (x.y.z+1).

 So I entered tree/package in /etc/portage/package.unmask, and
 tree/package_x.y.z into /etc/portage/package.mask. But this
 does not work, that x.y.z version still wants to be installed...

 Jarry

 --
 ___
 This mailbox accepts e-mails only from selected mailing-lists!
 Everything else is considered to be spam and therefore deleted.



# emerge app-portage/autounmask
# autounmask category/package-version

Watch the output of autounmask, read the written files, you will see how to.

--
   Fatih



Re: [gentoo-user] swap usage creeping up

2010-10-26 Thread Fatih Tümen
On Tue, Oct 26, 2010 at 8:49 AM, Iain Buchanan iai...@netspace.net.au wrote:
 Hi,

 over the last week or so I've noticed unusually large swap usage.  I
 usually hibernate this laptop and have uptimes up to 12 days so apps can
 run for a long time.  I don't usually use any swap space (except for a
 few k).

 If I swapoff and swapon, the usage falls back to zero but then creeps up
 again over a few days.

 $ free -m
             total       used       free     shared    buffers     cached
 Mem:          3040        859       2181          0         38        415
 -/+ buffers/cache:        406       2634
 Swap:          494        431         62


Looking at above values 494MB does not seem to be enough for
hibernation. Do you add extra swap or close some apps before
hibernation?

If your system trying to fill up your swap while you have more than
2GB of main memory available, only thing I can think of is your
swapiness is set very high. You check and alter is as follows

$ cat /proc/sys/vm/swappiness
and
# echo N  /proc/sys/vm/swappiness

where N is a value between 0 and 100. Higher number means more
swapping. If I had 3GB of ram I would set it to something closer to 0
or even 0 if I am just gonna use it for hibernation.

 nothing unusual there, except for the swap usage itself.  'top' doesn't
 show any large apps.  sorted by mem the top 4 are:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  8318 iain      20   0  494m 150m  21m S    0  5.0   1:20.67 evolution
 20424 iain      20   0  342m  77m  30m S    0  2.5   0:01.84 firefox
  8009 root      20   0 83364  37m 6260 S    7  1.2  38:34.31 X
  8090 iain      20   0  159m  32m 1600 S    1  1.1   3:48.08 skype

 Hm, I just noticed Mem is in %.  % of what?  % total or % used?  Even if
 it was % of total RAM that could be as much as 152Mb for evo and 76Mb
 for firefox.  Not that much really.


% of total main memory excluding swap because its rather difficult to
take it into account.
3040*0.05 = 152 evolution


 any ideas?


You can try to view swap usage on top by pressing f then p and enter
and sort by it by F then P and enter. The values wont be very
realistic though. Alternatively you could try is to compare resident
memory usages  before and after swapoff.

Given the mem usage of your apps, total mem usage looks normal.  What
does not seem normal is that swap inclined mem usage. Seriously take a
look at your swapiness value. The default value cannot be right every
particular case.


 thanks :)
 --
 Iain Buchanan iaindb at netspace dot net dot au

 Chuck Norris once skewered a man with the Eiffel tower.





--
   Fatih



Re: [gentoo-user] swap usage creeping up

2010-10-26 Thread Fatih Tümen
On Tue, Oct 26, 2010 at 10:02 AM, Iain Buchanan iai...@netspace.net.au wrote:
 On Tue, 2010-10-26 at 09:30 +0300, Fatih Tümen wrote:

 Looking at above values 494MB does not seem to be enough for
 hibernation. Do you add extra swap or close some apps before
 hibernation?

 Tuxonice filewriter :)

 $ ls -alh /suspend_file
 -rw--- 1 root root 1001M May 17 12:02 /suspend_file

Ah, hadn't thought of that, thanks.

--
   Fatih



Re: [gentoo-user] Preventing a package from being updated

2010-10-25 Thread Fatih Tümen
On Mon, Oct 25, 2010 at 5:36 AM, Dale rdalek1...@gmail.com wrote:
 FEATURES= buildpkg sandbox fixpackages parallel-fetch --keep-going

I thought --keep-going goes into EMERGE_DEFAULT_OPTS, no?

--
   Fatih



Re: [gentoo-user] usb stick autodiscovery

2010-10-25 Thread Fatih Tümen
On Sat, Oct 23, 2010 at 10:44 PM, James wirel...@tampabay.rr.com wrote:
 Hello,

 On most of my kde workstations when I plug in a
 usb(memory)stick and popup screen appears
 Devices recently plugged in:

 On one kde system, this does not occur and I
 do not know what app/software to install or configure


 lsusb shows the device properly, just like the other
 system. None of the systems that work correctly use
 coldplug, all have the dbus flag set in make.conf.

 Any hints are most appreciated.

 James



Last time device notifier stopped popping up was when I fed up with
hal and built xorg-server without it. This does not seem to be your
case but just for the record...
--
   Fatih



Re: [gentoo-user] emerge/python failure

2010-10-15 Thread Fatih Tümen
On Fri, Oct 15, 2010 at 5:35 PM, Mark Knecht markkne...@gmail.com wrote:
 c2stable ~ # eix-sync
  * Running emerge --sync
 Traceback (most recent call last):
  File /usr/bin/emerge, line 43, in module
    retval = emerge_main()
  File /usr/lib64/portage/pym/_emerge/main.py, line 1604, in emerge_main
    return action_sync(settings, trees, mtimedb, myopts, myaction)
  File /usr/lib64/portage/pym/_emerge/actions.py, line 2134, in action_sync
    // + user_name + ip + port + /, 1))
 TypeError: cannot concatenate 'str' and 'int' objects
  * emerge --sync failed
  * Time statistics:
     4 seconds for syncing
     4 seconds total
 c2stable ~ # emerge --sync
 Traceback (most recent call last):
  File /usr/bin/emerge, line 43, in module
    retval = emerge_main()
  File /usr/lib64/portage/pym/_emerge/main.py, line 1604, in
 emerge_main
    return action_sync(settings, trees, mtimedb, myopts, myaction)
  File /usr/lib64/portage/pym/_emerge/actions.py, line 2134, in
 action_sync
    // + user_name + ip + port + /, 1))
 TypeError: cannot concatenate 'str' and 'int' objects
 c2stable ~ # eselect python list
 Available Python interpreters:
  [1]   python2.6 *
  [2]   python3.1
 c2stable ~ #


At first sight it seems to me that someone made a typo in there..  ip
should be ips[0]
Which specific version of portage and python are you using?

--
Fatih



Re: [gentoo-user] emerge/python failure

2010-10-15 Thread Fatih Tümen
2010/10/15 Fatih Tümen fthtmn+gen...@gmail.com:
 On Fri, Oct 15, 2010 at 5:35 PM, Mark Knecht markkne...@gmail.com wrote:
 c2stable ~ # eix-sync
  * Running emerge --sync
 Traceback (most recent call last):
  File /usr/bin/emerge, line 43, in module
    retval = emerge_main()
  File /usr/lib64/portage/pym/_emerge/main.py, line 1604, in emerge_main
    return action_sync(settings, trees, mtimedb, myopts, myaction)
  File /usr/lib64/portage/pym/_emerge/actions.py, line 2134, in action_sync
    // + user_name + ip + port + /, 1))
 TypeError: cannot concatenate 'str' and 'int' objects
  * emerge --sync failed
  * Time statistics:
     4 seconds for syncing
     4 seconds total
 c2stable ~ # emerge --sync
 Traceback (most recent call last):
  File /usr/bin/emerge, line 43, in module
    retval = emerge_main()
  File /usr/lib64/portage/pym/_emerge/main.py, line 1604, in
 emerge_main
    return action_sync(settings, trees, mtimedb, myopts, myaction)
  File /usr/lib64/portage/pym/_emerge/actions.py, line 2134, in
 action_sync
    // + user_name + ip + port + /, 1))
 TypeError: cannot concatenate 'str' and 'int' objects
 c2stable ~ # eselect python list
 Available Python interpreters:
  [1]   python2.6 *
  [2]   python3.1
 c2stable ~ #


 At first sight it seems to me that someone made a typo in there..  ip
 should be ips[0]
 Which specific version of portage and python are you using?

 --
    Fatih


I just checked the code to verify myself. I was wrong,  ip is the loop
variable of ips list I recalled which is being iterated over.

Rsync server maybe down or smth, Did you try with a differnt rsync server?

Btw, AFAIR eix-sync can sync overlays, why you sync them individually?

--
Fatih



Re: [gentoo-user] emerge/python failure

2010-10-15 Thread Fatih Tümen
On Fri, Oct 15, 2010 at 6:58 PM, Mark Knecht markkne...@gmail.com wrote:
 2010/10/15 Fatih Tümen fthtmn+gen...@gmail.com:
 On Fri, Oct 15, 2010 at 5:35 PM, Mark Knecht markkne...@gmail.com wrote:
 c2stable ~ # eix-sync
  * Running emerge --sync
 Traceback (most recent call last):
  File /usr/bin/emerge, line 43, in module
    retval = emerge_main()
  File /usr/lib64/portage/pym/_emerge/main.py, line 1604, in emerge_main
    return action_sync(settings, trees, mtimedb, myopts, myaction)
  File /usr/lib64/portage/pym/_emerge/actions.py, line 2134, in action_sync
    // + user_name + ip + port + /, 1))
 TypeError: cannot concatenate 'str' and 'int' objects
  * emerge --sync failed
  * Time statistics:
     4 seconds for syncing
     4 seconds total
 c2stable ~ # emerge --sync
 Traceback (most recent call last):
  File /usr/bin/emerge, line 43, in module
    retval = emerge_main()
  File /usr/lib64/portage/pym/_emerge/main.py, line 1604, in
 emerge_main
    return action_sync(settings, trees, mtimedb, myopts, myaction)
  File /usr/lib64/portage/pym/_emerge/actions.py, line 2134, in
 action_sync
    // + user_name + ip + port + /, 1))
 TypeError: cannot concatenate 'str' and 'int' objects
 c2stable ~ # eselect python list
 Available Python interpreters:
  [1]   python2.6 *
  [2]   python3.1
 c2stable ~ #


 At first sight it seems to me that someone made a typo in there..  ip
 should be ips[0]
 Which specific version of portage and python are you using?

 --
    Fatih

 Hi Fatih,

 It seems that the failure (so far) is only with syncing and not with
 using the tools to look at the system. That's good.

 c2stable ~ # eix -Ic python
 [I] app-admin/eselect-python (20100...@05/26/10): Eselect module for
 management of multiple Python versions
 [I] app-admin/python-updater (0...@05/18/10): Script used to remerge
 python packages when changing Python version.
 [I] dev-lang/python (2.6.5-r3(2.6)[...@10/12/10
 3.1.2-r4(3.1)@09/30/10): Python is an interpreted, interactive,
 object-oriented programming language.
 SNIP

 Note that it seems the 2.6.5-r3 version is coming from the Pentoo
 overlay if it makes a difference.

 c2stable ~ # eix -Ic portage
 [I] app-portage/portage-utils (0@06/11/10): small and fast portage
 helper tools written in C
 [I] sys-apps/portage (2.2_r...@10/13/10): Portage is the package
 management and distribution system for Gentoo
 Found 2 matches.
 c2stable ~ #

 As for syncing individually it's just an old-dog, new-trick thing.
 I've done it this way for years and somehow never got in the swing of
 doing anything else.

 Thanks for looking at the code. That's beyond my scope of expertise.

 - Mark



Got it, you hit the bug 340899 and its already fixed, just apply the patch
http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c54c1af789b306a85e9d7e79fb54f02a05346616

--
Fatih



Re: [gentoo-user] emerge/python failure

2010-10-15 Thread Fatih Tümen
On Fri, Oct 15, 2010 at 7:27 PM, Albert Hopkins mar...@letterboxes.org wrote:
 On Fri, 2010-10-15 at 07:35 -0700, Mark Knecht wrote:
   File /usr/lib64/portage/pym/_emerge/actions.py, line 2134, in
 action_sync
     // + user_name + ip + port + /, 1))
 TypeError: cannot concatenate 'str' and 'int' objects

 This is a bug... shuld be more something like:

                uris.append(syncuri.replace(
                    //%s%s%s/ % (user_name, hostname, port),
                    //%s%s%s/ % (user_name, ip, port), 1))

 Probably needs to be reported.





Coding against PEP8 is not a bug. I guess devs find string
concatenation more handy and maintainable.

The bug was about the addrinfos data gotten from the server. I thought
the response of possibly down rsync server was not handled well, which
is why I offered to change rsync server, but the actual problem was
caused by assuming that IPv6 is supported on the machine.

--
Fatih



Re: [gentoo-user] emerge/python failure

2010-10-15 Thread Fatih Tümen
On Fri, Oct 15, 2010 at 8:29 PM, Mark Knecht markkne...@gmail.com wrote:
 Got it, you hit the bug 340899 and its already fixed, just apply the patch
 http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c54c1af789b306a85e9d7e79fb54f02a05346616

 --
    Fatih



 Thanks - I got the patch and that seems to have fixed eix-sync.

 Should anyone else run into this I did the following:

 Right click and save the patch file on the link provided by Fatih

 cd /usr/lib64/portage
 patch -p1 --dry-run Patch_Name
 patch -p1 Patch_Name

 and then things started working again.

 Note that when I finished the sync and emerged the newer version of
 portage I got messages I had not seen before about colliding with a
 couple of files. Those collisions were the files modified by the
 patch.

 Many thanks Fatih!

 Cheers,
 Mark


Yw. Thanks for posting step-by-step solution for others' future reference.

--
   Fatih



Re: [gentoo-user] emerge/python failure

2010-10-15 Thread Fatih Tümen
On Fri, Oct 15, 2010 at 9:19 PM, Albert Hopkins mar...@letterboxes.org wrote:
 On Fri, 2010-10-15 at 19:55 +0300, Fatih Tümen wrote:
  This is a bug... shuld be more something like:
 
                 uris.append(syncuri.replace(
                     //%s%s%s/ % (user_name, hostname, port),
                     //%s%s%s/ % (user_name, ip, port), 1))
 
  Probably needs to be reported.
 
 
 
 

 Coding against PEP8 is not a bug.

 I was referring to the adding a string to an integer.




1 was the count argument of replace, the third one (not second) and
variables added together (concatenation) supposed to be string there.
I think you got the wrong impression because of the line wrapping;
traceback unfortunately prints the last (wrapped) line of the buggy
statement/expression. That line belongs to the following block:

for ip in ips:
uris.append(syncuri.replace(
// + user_name + hostname + port + /,
// + user_name + ip + port + /, 1))

Seeing you changed the formatting style I thought your referring to
suggested string formating in pep. Sorry.

--
Fatih



Re: [gentoo-user] Re: USB Disk failure - Buffer I/O error on device sda2, logical block 1289 lost page write due to I/O error on sda2

2010-10-11 Thread Fatih Tümen
On Mon, Oct 11, 2010 at 1:02 AM, Stroller
strol...@stellar.eclipse.co.uk wrote:

 On 10 Oct 2010, at 17:21, Fatih Tümen wrote:
 There problem is I have two more partition with about 80GB of data.

 
 If you need to get data off this disk then we can advise (but search the 
 archives for GNU dd_rescue, or just read its manual) but apart from that 
 there's nothing we can do for this drive.

 I will that a look at dd_rescue, thanks.


 My previous spelling was wrong - the GNU version is without the underscore. 
 You want ddrescue NOT dd_rescue.

 $ eix -I rescue
 [I] sys-fs/ddrescue
     Available versions:  1.9 1.11 ~1.12
     Installed versions:  1.11(12:52:56 05/03/10)
     Homepage:            http://www.gnu.org/software/ddrescue/ddrescue.html
     Description:         Copies data from one file or block device to another 
 with read-error recovery

 $

 I have found it very useful. From my previous casual glance at your logs you 
 have some hopes - you may not be able to read block 1289,  but you may well 
 be able to get blocks 1288  1290. My (limited) experience has been that even 
 with a *really* badly failing hard-drive, over 99% of the blocks are 
 recoverable.

 Confer with the manual 
 http://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html#Examples 
 and then do something like:

  ddrescue -f -n /dev/sda2 /mnt/volumes/my_disk/recovered.img recovery.log
  wait a day or two
  ddrescue -d -f -r3 /dev/sda2 /mnt/volumes/my_disk/recovered.img recovery.log

 (where /dev/sda2 is the partition containing the data you want to recover).

 Keep running `ddrescue -r X` (where X is a number) for as many passes as you 
 can. If you get data off on one pass, then another one may get more, if you 
 have the time for it. If you're really lucky then you'll find that only a 
 block or two are unrecoverable, if you're unlucky then the unrecoverable 
 blocks will be measured in megabytes.

 If you have multiple partitions then post back here (with their sizes and the 
 total size of the disk). You'll need to have at least enough empty space (on 
 a single usable partition) for the whole partition that you want to recover. 
 Ideally you'll have twice that much space, or even three times - this is not 
 the time to skimp on hard-drive capacity. Ideally what you want to do when 
 the above commands have finished is make a copy of recovered.img, so that if 
 one method of recovery doesn't work, you can try another.

 I'm not sure what will happen if you simply tried to loopback mount 
 recovered.img - hopefully fsck would run on it automagically, but I suspect 
 that would be too easy. You might have to use losetup to treat the .img as a 
 block device, and then run fsck on /dev/loop0, or something like that. 
 http://tinyurl.com/2bllb25

 If the disk / partition image fscks without too many errors (and a page 
 or two of them would probably be quite acceptable - expect one error per 
 unrecoverable block) then you still need enough free disk space for all the 
 files you intend to copy off.

 Keep posting your progress back here, so we can advise further.

 Stroller.




Thank you very much for sharing your experience.

ddrescue sounds quiet promising. The disk was of 160GB I think. Right
now I wont have enough space for recovery until I will order a new
disk. I will post the result here as soon as I am done.

P.S. Would you recommend against 7200rpm usb 2.5 disks?

--
Fatih



Re: [gentoo-user] Re: USB Disk failure - Buffer I/O error on device sda2, logical block 1289 lost page write due to I/O error on sda2

2010-10-11 Thread Fatih Tümen
On Mon, Oct 11, 2010 at 3:33 PM, Stroller
strol...@stellar.eclipse.co.uk wrote:

 On 11 Oct 2010, at 12:51, Fatih Tümen wrote:
 ...
 P.S. Would you recommend against 7200rpm usb 2.5 disks?

 I'm aware of no reason to do so.

 Typically usb 2.5 disks can be powered off the USB cable, which is much more 
 portable than the PSU required by external USB 3.5 drives.


Perhaps there a bit noisier and shortening battery life?

 I would guess that most drives are generally about as reliable as each other. 
 They are inherently at risk from mechanical failure, but some succumb within 
 weeks of purchase, others not after a decade - it's just a matter of pot luck 
 (which is why backups are so important).


I would love to see a decade. This one could not make it 5, but the
other one I got is alive for 7 years.

--
Fatih



Re: [gentoo-user] Re: USB Disk failure - Buffer I/O error on device sda2, logical block 1289 lost page write due to I/O error on sda2

2010-10-10 Thread Fatih Tümen
On Sun, Oct 10, 2010 at 12:23 PM, Stroller
strol...@stellar.eclipse.co.uk wrote:

 On 10 Oct 2010, at 04:58, Fatih Tümen wrote:
 ...
 I'm not using the dreaded 'hardware' word yet, though I'm suspicious.

 If you heard the noise coming from the drive when plugged in you be
 more than suspicious I think.


 So what's the problem? Bin or warranty the drive - you already told us, I 
 think, there's no important data on there.

There problem is I have two more partition with about 80GB of data.

 Messages like this:

   Oct  9 20:38:20 elsewhere kernel: [265637.556281] EXT3-fs error (device 
 sda2): ext3_get_inode_loc: unable to read inode block - inode=24579, 
 block=99331
   Oct  9 20:38:20 elsewhere kernel: [265637.558352] end_request: I/O error, 
 dev sda, sector 1156680
   Oct  9 20:38:20 elsewhere kernel: [265637.558363] Buffer I/O error on 
 device sda2, logical block 0
   Oct  9 20:38:20 elsewhere kernel: [265637.558370] lost page write due to 
 I/O error on sda2
   Oct  9 20:39:25 elsewhere kernel: [265702.325464] end_request: I/O error, 
 dev sda, sector 1166992

 most likely indicate physical failure of the drive. If it's making noises 
 then it *definitely* means the bearings have gone, guv.

 If you need to get data off this disk then we can advise (but search the 
 archives for GNU dd_rescue, or just read its manual) but apart from that 
 there's nothing we can do for this drive.


I will that a look at dd_rescue, thanks.

--
Fatih



Re: [gentoo-user] Re: USB Disk failure - Buffer I/O error on device sda2, logical block 1289 lost page write due to I/O error on sda2

2010-10-10 Thread Fatih Tümen
On Sun, Oct 10, 2010 at 1:01 PM, Mick michaelkintz...@gmail.com wrote:
 On Sunday 10 October 2010 04:58:04 Fatih Tümen wrote:
 On Sun, Oct 10, 2010 at 12:15 AM, walt w41...@gmail.com wrote:

  Will fdisk read and recognize the partition table on the USB disk? If
  fdisk results in disk read errors then I'd begin to think more about
  'hardware' :(

 No Unable to read /dev/sda is what fdisk says. I never had a disk
 (hardware) failure before. Is there no way to extract data from it?

 The noise you're describing is indicative of mechanical failure.


That I was fearing but I cant understand how it can fail all of a
sudden. I did not drop it or something. Just ran eix and boom. Would
you call it a coincidence of running eix with the best before date of
the disk?

 Unless your PC can access the drive (dmesg will show what the kernel sees)
 then there is no easy way of getting the data out of it.

 I have heard of people opening the USB enclosure of external drives and
 removing the drive, which they then installed in a laptop.  However, these
 were cases where the USB controller was faulty, rather than the moving
 elements of the drive itself.


I tried that to a friend laptop's dead drive. It Didt work. I am
afraid im in a similar situation here.

 If you had access to a forensics lab you could even take the platters out of
 the drive itself and read them on platter reader.  On the other hand, if you
 only had ccache, distfiles and packages a resync with a new external drive
 will get you a working system again.


I actually thought about that too. There is a forensic lab quite close
to me but I doubt that they would bother with this or whether it would
worth the effort.

 Before you head for the shops you would at least want to try another USB cable
 as Walter suggested, just in case.

I found the cable and tried. Same!
Anyway thanks for the suggestion.



Re: [gentoo-user] openrc fails

2010-10-10 Thread Fatih Tümen
On Sun, Oct 10, 2010 at 1:17 PM, Stéphane Guedon steph...@22decembre.eu wrote:
 Anyone have an idea where to start to solve the problem ?

I am on baselayout1 and had a similar thing with cron couple of days
ago. I noticed I was not receiving mails from my system for the last
three hours. Cron seemed to be running but hang there, sleeping but
not zombie. I think I suspending in the middle of a cron job.
Restarting, zapping the service would not work.

The solution for me was to kill all instances of cron processes and start cron.

--
Fatih



[gentoo-user] USB Disk failure - Buffer I/O error on device sda2, logical block 1289 lost page write due to I/O error on sda2

2010-10-09 Thread Fatih Tümen
Hi,

When I ran eix hdf command, all of a sudden my usb drive started
making weird noises. I only have ccache, distfiles and packaes
directories on sda2, the usb disk partition. I don't know why eix
waked up the disk. Eix hung there non-responding for a moment as the
disk kept making noises, so I interrupted the task. Immediately
checked the logs[0] and umounted the device as a reflex.

The time 20:38 in [0] corresponds to the time I issues eix. There was
nothing in the logs for 8 minutes. The last operation I had on the
disk was fetching kde updates which finished at about 19:00.

I wanted to fsck the device and got:
# fsck.ext3 -pvf /dev/sda2
fsck.ext3: Attempt to read block from filesystem resulted in short
read while trying to open /dev/sda2
Could this be a zero-length partition?

fdisk -l was not showing the device anymore. I could not mounted it back.

Googling the subject brought some unsolved threads so far. There were
some similar issues, one with ext4, one with ipod. But in all those
cases they still had their device alive whereas I seem to completely
lost it. Here is what smartmontools says:

# smartctl -d /dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== INVALID ARGUMENT TO -d: /dev/sda
=== VALID ARGUMENTS ARE: ata, scsi, marvell, sat, 3ware,N,
hpt,L/M/N cciss,N ===

Use smartctl -h to get a usage summary

21:08:23 | log # smartctl -a /dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Device: WDVersion: 1.02
 Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or
more '-T permissive' options.
21:08:31 | log # fdisk /dev/sda

Unable to read /dev/sda
21:14:33 | log # ll /dev/sda
brw-rw 1 root disk 8, 0 Oct  9 21:14 /dev/sda

I tried to plug it in a ubuntu box on a different machine, the result was same.
And this is the messages I get upon plugging[1]. For comparison here
is usual message I got last time mounted[2]

I am not sure what may have caused the issue but there are two things
I suspect that may have caused this.
1. I usually forget the device is mounted and sda1 partition swappedon
while suspending/sleeping the system. I run fsck.ext3 on the
complaining dirty partitions.
2. I accidentally ran grub-install /dev/sda instead of /dev/hda last
week and interrupted immediately. There is no sign of a problem in the
logs for a week. I had install grub on sda couple of years ago  but
hadnt used it for a long time.

I thought this may be related because interrupting the grub-install
left in complete mbr. So I ran grub-install on sda again but it could
not find the disk[3].

I cannot think of anything else to try. I hope you can suggest me a
way to recover the device or to extract data from it.


[0]
Oct  9 20:30:01 elsewhere cron[3670]: (root) CMD (test -x
/usr/sbin/run-crons  /usr/sbin/run-crons )
Oct  9 20:38:00 elsewhere kernel: [265616.964879] sd 8:0:0:0: [sda]
Result: hostbyte=0x00 driverbyte=0x08
Oct  9 20:38:00 elsewhere kernel: [265616.964893] sd 8:0:0:0: [sda]
Sense Key : 0x5 [current]
Oct  9 20:38:00 elsewhere kernel: [265616.964904] Info fld=0x0
Oct  9 20:38:00 elsewhere kernel: [265616.964909] sd 8:0:0:0: [sda]
ASC=0x21 ASCQ=0x0
Oct  9 20:38:00 elsewhere kernel: [265616.964918] sd 8:0:0:0: [sda]
CDB: cdb[0]=0x28: 28 00 00 19 b6 78 00 00 08 00
Oct  9 20:38:00 elsewhere kernel: [265616.964938] end_request: I/O
error, dev sda, sector 1685112
Oct  9 20:38:00 elsewhere kernel: [265616.964972] EXT3-fs error
(device sda2): ext3_find_entry: reading directory #8238 offset 0
Oct  9 20:38:20 elsewhere kernel: [265637.556176] sd 8:0:0:0: [sda]
Result: hostbyte=0x00 driverbyte=0x08
Oct  9 20:38:20 elsewhere kernel: [265637.556190] sd 8:0:0:0: [sda]
Sense Key : 0x5 [current]
Oct  9 20:38:20 elsewhere kernel: [265637.556200] Info fld=0x0
Oct  9 20:38:20 elsewhere kernel: [265637.556206] sd 8:0:0:0: [sda]
ASC=0x21 ASCQ=0x0
Oct  9 20:38:20 elsewhere kernel: [265637.556214] sd 8:0:0:0: [sda]
CDB: cdb[0]=0x28: 28 00 00 1d c6 60 00 00 08 00
Oct  9 20:38:20 elsewhere kernel: [265637.556234] end_request: I/O
error, dev sda, sector 1951328
Oct  9 20:38:20 elsewhere kernel: [265637.556281] EXT3-fs error
(device sda2): ext3_get_inode_loc: unable to read inode block -
inode=24579, block=99331
Oct  9 20:38:20 elsewhere kernel: [265637.558297] sd 8:0:0:0: [sda]
Result: hostbyte=0x00 driverbyte=0x08
Oct  9 20:38:20 elsewhere kernel: [265637.558310] sd 8:0:0:0: [sda]
Sense Key : 0x5 [current]
Oct  9 20:38:20 elsewhere kernel: [265637.558320] Info fld=0x0
Oct  9 20:38:20 elsewhere kernel: [265637.558325] sd 8:0:0:0: [sda]
ASC=0x21 ASCQ=0x0
Oct  9 20:38:20 elsewhere kernel: [265637.558333] sd 8:0:0:0: [sda]
CDB: cdb[0]=0x2a: 2a 00 00 11 a6 48 00 00 08 00
Oct  9 20:38:20 elsewhere kernel: [265637.558352] end_request: I/O
error, dev sda, sector 1156680

[gentoo-user] Re: USB Disk failure - Buffer I/O error on device sda2, logical block 1289 lost page write due to I/O error on sda2

2010-10-09 Thread Fatih Tümen
2010/10/9 Fatih Tümen fthtmn+gen...@gmail.com:
 I am not sure what may have caused the issue but there are two things
 I suspect that may have caused this.
 1. I usually forget the device is mounted and sda1 partition swappedon
 while suspending/sleeping the system. I run fsck.ext3 on the
 complaining dirty partitions.
 2. I accidentally ran grub-install /dev/sda instead of /dev/hda last
 week and interrupted immediately. There is no sign of a problem in the
 logs for a week. I had install grub on sda couple of years ago  but
 hadnt used it for a long time.

 I thought this may be related because interrupting the grub-install
 left in complete mbr. So I ran grub-install on sda again but it could
 not find the disk[3].

 I cannot think of anything else to try. I hope you can suggest me a
 way to recover the device or to extract data from it.

The attached file should be better for viewing the logs.

--
Fatih
[0]
Oct  9 20:30:01 elsewhere cron[3670]: (root) CMD (test -x /usr/sbin/run-crons 
 /usr/sbin/run-crons )
Oct  9 20:38:00 elsewhere kernel: [265616.964879] sd 8:0:0:0: [sda] Result: 
hostbyte=0x00 driverbyte=0x08
Oct  9 20:38:00 elsewhere kernel: [265616.964893] sd 8:0:0:0: [sda] Sense Key : 
0x5 [current]
Oct  9 20:38:00 elsewhere kernel: [265616.964904] Info fld=0x0
Oct  9 20:38:00 elsewhere kernel: [265616.964909] sd 8:0:0:0: [sda] ASC=0x21 
ASCQ=0x0
Oct  9 20:38:00 elsewhere kernel: [265616.964918] sd 8:0:0:0: [sda] CDB: 
cdb[0]=0x28: 28 00 00 19 b6 78 00 00 08 00
Oct  9 20:38:00 elsewhere kernel: [265616.964938] end_request: I/O error, dev 
sda, sector 1685112
Oct  9 20:38:00 elsewhere kernel: [265616.964972] EXT3-fs error (device sda2): 
ext3_find_entry: reading directory #8238 offset 0
Oct  9 20:38:20 elsewhere kernel: [265637.556176] sd 8:0:0:0: [sda] Result: 
hostbyte=0x00 driverbyte=0x08
Oct  9 20:38:20 elsewhere kernel: [265637.556190] sd 8:0:0:0: [sda] Sense Key : 
0x5 [current]
Oct  9 20:38:20 elsewhere kernel: [265637.556200] Info fld=0x0
Oct  9 20:38:20 elsewhere kernel: [265637.556206] sd 8:0:0:0: [sda] ASC=0x21 
ASCQ=0x0
Oct  9 20:38:20 elsewhere kernel: [265637.556214] sd 8:0:0:0: [sda] CDB: 
cdb[0]=0x28: 28 00 00 1d c6 60 00 00 08 00
Oct  9 20:38:20 elsewhere kernel: [265637.556234] end_request: I/O error, dev 
sda, sector 1951328
Oct  9 20:38:20 elsewhere kernel: [265637.556281] EXT3-fs error (device sda2): 
ext3_get_inode_loc: unable to read inode block - inode=24579, block=99331
Oct  9 20:38:20 elsewhere kernel: [265637.558297] sd 8:0:0:0: [sda] Result: 
hostbyte=0x00 driverbyte=0x08
Oct  9 20:38:20 elsewhere kernel: [265637.558310] sd 8:0:0:0: [sda] Sense Key : 
0x5 [current]
Oct  9 20:38:20 elsewhere kernel: [265637.558320] Info fld=0x0
Oct  9 20:38:20 elsewhere kernel: [265637.558325] sd 8:0:0:0: [sda] ASC=0x21 
ASCQ=0x0
Oct  9 20:38:20 elsewhere kernel: [265637.558333] sd 8:0:0:0: [sda] CDB: 
cdb[0]=0x2a: 2a 00 00 11 a6 48 00 00 08 00
Oct  9 20:38:20 elsewhere kernel: [265637.558352] end_request: I/O error, dev 
sda, sector 1156680
Oct  9 20:38:20 elsewhere kernel: [265637.558363] Buffer I/O error on device 
sda2, logical block 0
Oct  9 20:38:20 elsewhere kernel: [265637.558370] lost page write due to I/O 
error on sda2
Oct  9 20:39:25 elsewhere kernel: [265702.325405] sd 8:0:0:0: [sda] Result: 
hostbyte=0x00 driverbyte=0x08
Oct  9 20:39:25 elsewhere kernel: [265702.325419] sd 8:0:0:0: [sda] Sense Key : 
0x5 [current]
Oct  9 20:39:25 elsewhere kernel: [265702.325430] Info fld=0x0
Oct  9 20:39:25 elsewhere kernel: [265702.325435] sd 8:0:0:0: [sda] ASC=0x21 
ASCQ=0x0
Oct  9 20:39:25 elsewhere kernel: [265702.325444] sd 8:0:0:0: [sda] CDB: 
cdb[0]=0x2a: 2a 00 00 11 ce 90 00 00 08 00
Oct  9 20:39:25 elsewhere kernel: [265702.325464] end_request: I/O error, dev 
sda, sector 1166992
Oct  9 20:39:25 elsewhere kernel: [265702.325475] Buffer I/O error on device 
sda2, logical block 1289
Oct  9 20:39:25 elsewhere kernel: [265702.325482] lost page write due to I/O 
error on sda2
Oct  9 20:39:25 elsewhere kernel: [265702.325533] [ cut here 
]
Oct  9 20:39:25 elsewhere kernel: [265702.325547] WARNING: at fs/buffer.c:1151 
mark_buffer_dirty+0x23/0x6b()
Oct  9 20:39:25 elsewhere kernel: [265702.325554] Hardware name: Amilo A1640
Oct  9 20:39:25 elsewhere kernel: [265702.325563] Pid: 3711, comm: umount Not 
tainted 2.6.35-gentoo-r4 #1
Oct  9 20:39:25 elsewhere kernel: [265702.325569] Call Trace:
Oct  9 20:39:25 elsewhere kernel: [265702.325584]  [c1031c61] 
warn_slowpath_common+0x60/0x75
Oct  9 20:39:25 elsewhere kernel: [265702.325593]  [c10b3012] ? 
mark_buffer_dirty+0x23/0x6b
Oct  9 20:39:25 elsewhere kernel: [265702.325604]  [c1031c85] 
warn_slowpath_null+0xf/0x13
Oct  9 20:39:25 elsewhere kernel: [265702.325612]  [c10b3012] 
mark_buffer_dirty+0x23/0x6b
Oct  9 20:39:25 elsewhere kernel: [265702.325624]  [c1133e7b] 
journal_update_superblock+0x62/0xab
Oct  9 20:39:25 elsewhere kernel: [265702.325634]  [c1132a38] 
cleanup_journal_tail+0xd2/0xdb
Oct  9 20:39:25

Re: [gentoo-user] Re: USB Disk failure - Buffer I/O error on device sda2, logical block 1289 lost page write due to I/O error on sda2

2010-10-09 Thread Fatih Tümen
On Sun, Oct 10, 2010 at 12:15 AM, walt w41...@gmail.com wrote:
 On 10/09/2010 12:36 PM, Fatih Tümen wrote:

 2. I accidentally ran grub-install /dev/sda instead of /dev/hda

 If you still actually have an 'hda' then you should start using the new
 disk drivers in the kernel CONFIG_ATA section rather than the older
 and deprecated CONFIG_IDE section.

I was happy with the distinction between local and external disk. But
thanks for the advice.

 That will make all of your /dev/hd* devices become /dev/sd* instead.  This
 may have nothing to do with your current problem, but it's time to make the
 change in any case.  (You will need to make appropriate changes in fstab.)

 grub  setup  --stage2=/boot/grub/stage2 --prefix=/grub (hd1)
 Error 21: Selected disk does not exist

 What choices does grub show you when you type root (hd and then hit
 TAB?  That should list all hard disks that your BIOS knows about.  The
 list will change, of course, depending on whether your USB disk is plugged
 in (and working) or not.  (grub always refers to 'hd' and never 'sd', which
 I'm sure you already know :)

Grub currently know only  about hd0, hd1 was what grub called the usb disk.

 I'm not using the dreaded 'hardware' word yet, though I'm suspicious.

If you heard the noise coming from the drive when plugged in you be
more than suspicious I think.

 When you tested the drive on the other machine, did you use a different
 USB cable?

No but I will do, as soon as I find the other cable.But as I just
noted, drive makes some noise when plugged in. The noise is similar
but less worrying that the one it make first time I ran eix.

 Will fdisk read and recognize the partition table on the USB disk? If fdisk
 results in disk read errors then I'd begin to think more about 'hardware' :(

No Unable to read /dev/sda is what fdisk says. I never had a disk
(hardware) failure before. Is there no way to extract data from it?

--
Fatih



Re: [gentoo-user] ridiculously wide handbook pages

2010-10-04 Thread Fatih Tümen
On Sat, Oct 2, 2010 at 1:18 AM, Renat Golubchyk ragerm...@gmx.net wrote:
 Unfortunately Gentoo documentation uses table layout instead of
 relying entirely on CSS. Therefore it is not easy to make the docs
 beautiful for everybody right now. But there is a simple workaround
 which you may find good enough. Add the following CSS rule into your
 ~/.mozilla/...your profile.../chrome/userContent.css or install the
 Stylish add-on [3] and create a style with the rule:

 -
 @namespace url(http://www.w3.org/1999/xhtml);

 @-moz-document domain(gentoo.org) {
  td.content p {
    width: 40em;
  }
 }
 -

 Change 40em to anything you like.



Thank you very much for this tip. I use chromium and fortunately there
exists the Stylish chrome extension. I got it working with the code
you gave by just snipping the moz-document line.

When I inspect the element and check the page source I understand
where td.content and p comes from but could you explain what 'em'
suffix to 40 means please?


--
Fatih



Re: [gentoo-user] ridiculously wide handbook pages

2010-10-04 Thread Fatih Tümen
On Mon, Oct 4, 2010 at 9:27 PM, Derek Tracy trac...@gmail.com wrote:

 2010/10/4 Fatih Tümen fthtmn+gen...@gmail.com

 On Sat, Oct 2, 2010 at 1:18 AM, Renat Golubchyk ragerm...@gmx.net wrote:
  Unfortunately Gentoo documentation uses table layout instead of
  relying entirely on CSS. Therefore it is not easy to make the docs
  beautiful for everybody right now. But there is a simple workaround
  which you may find good enough. Add the following CSS rule into your
  ~/.mozilla/...your profile.../chrome/userContent.css or install the
  Stylish add-on [3] and create a style with the rule:
 
  -
  @namespace url(http://www.w3.org/1999/xhtml);
 
  @-moz-document domain(gentoo.org) {
   td.content p {
     width: 40em;
   }
  }
  -
 
  Change 40em to anything you like.
 
 

 Thank you very much for this tip. I use chromium and fortunately there
 exists the Stylish chrome extension. I got it working with the code
 you gave by just snipping the moz-document line.

 When I inspect the element and check the page source I understand
 where td.content and p comes from but could you explain what 'em'
 suffix to 40 means please?


 --
    Fatih


 The em is just a length measurement.

 You can read more about it here:
 http://www.w3.org/TR/CSS2/syndata.html#length-units


Thank you Grant and Derek.

--
Fatih