Re: [gentoo-user] dd'ing small drive to large one
Hi, On Mon, 2011-01-31 at 22:19 +0100, Alex Schuster wrote: Now I'm really really sure there will be no problem. What I wrote above about the gemotry is true I think, but all modern drives seem to have 255 heads and 63 sectors per track, so they will be compatible. Wonko The only problem I see with dd is that it won't do any error checking, afaik. Will you have the old drive in as #2 later to double check? The other option is clonezilla. It will be a bit more work for you, but you can script it to clone the partitions / drives / copy boot loaders and so on. Then the remote assistant can just boot it (from usb key even) and press go! -- Iain Buchanan iaindb at netspace dot net dot au I bought some used paint. It was in the shape of a house. -- Steven Wright
Re: [gentoo-user] HDD with too aggressive power management
Hi, On Mon, 2011-01-31 at 22:09 +0100, Nils Holland wrote: However, now comes the problem: It seems that whenever I change from wall power to battery power (probably also vice versa, but I haven't tested this often enough), the machine's HDD forgets about the settings I've made using hdparm and starts spinning down right again after only a few seconds of inactivity. That sucks. frustrating indeed! It could be a number of things: gnome, acpi, and/or bios making the changes automatically. My preference would be to fix it in acpid since it will work independent of the window manager or even X. emerge acpid, then edit /etc/acpi/default.sh similarly (sorry about the tabs/spaces): ... ac_adapter) case $value in *0) # code for unplugging the power echo conservative /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor echo conservative /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor ;; *1) # code for plugging in the power echo performance /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor echo performance /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor ;; ... Change (or add) your hdparm commands as required. You could have a different spin-down setting for power and battery if you wish. You'll still have to change the setting after booting, since acpi events usually aren't triggered then. Use local_start() as Paul suggested. If you suspend you may even have to do it after resuming as well. Note that if you use different spin down times you'll need to detect the state of AC before running the hdparm command. Something like this in /usr/local/bin/ should do: #!/bin/sh if ( awk '{print $2}' /proc/acpi/ac_adapter/AC/state | grep on-line ); then # AC adaptor is on-line! echo performance /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor echo performance /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor else # AC adaptor is off-line! echo conservative /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor echo conservative /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor fi then call that script from local_start(). HTH! -- Iain Buchanan iaindb at netspace dot net dot au I can write better than anybody who can write faster, and I can write faster than anybody who can write better. -- A.J. Liebling
[gentoo-user] [OT] quad vga - dual or single card?
Hi all, I'm appealing to your collective knowledge for something not really gentoo :) I'm looking at 4 independent VGA outputs for a church media / stage environment (dvds, videos, presentations, maybe some live camera backgrounds under text such). Do you think it would be better to get either: * Dual 256MB PCIe x16 nVidia NVS 295, or * Single 512MB PCIe x16 nVidia NVS 420 The single NVS 420 is about $350 more than the dual 295. (There is a dual 420 option but that's another $1000 so I'm hoping to avoid it!) both are quad-monitor capable. I'm considering performance, heat, power, noise, and anything else you can think of. The 295 is passively cooled, 23W each, whereas the 420 is active cooled but only 40W, or so they say! any tips much appreciated :) -- Iain Buchanan iaindb at netspace dot net dot au If you're not part of the solution, you're part of the precipitate.
Re: [gentoo-user] Hibernation doesn't work
On Mon, 2010-11-15 at 08:11 +0200, Benyamin Dvoskin 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 ? what hibernate? vanilla? tuxonice? I assume disk but you could also be talking about ram... it can all be managed by (and I highly recommend) using hibernate-script. It will handle blacklisted modules, starting/stopping services, filesystems, and more! -- Iain Buchanan iaindb at netspace dot net dot au One learns to itch where one can scratch. -- Ernest Bramah
Re: [gentoo-user] swap usage creeping up
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.
Re: [gentoo-user] swap usage creeping up
On Mon, 2010-11-15 at 17:43 -0600, Dale wrote: Fatih Tümen wrote: Okay I am getting suspicious of tuxonice. hm, maybe it was tuxonice, maybe it was 2.6.35, maybe it was the moon? I've just upgraded to 2.6.36 tuxonice and hence had to unmask nvidia-drivers 260.19.06. Changing windows and virtual desktops is now back to it's snappy old self... Let's hope I see some change in swap usage too. thanks, -- Iain Buchanan iaindb at netspace dot net dot au If it's too good to be true, it's probably a rigged demo.
Re: [gentoo-user] swap usage creeping up
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 %MEMTIME+ COMMAND 14072 iain 20 0 1369m 897m 15m S3 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. 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. -- Iain Buchanan iai...@netspace.net.au
Re: [gentoo-user] swap usage creeping up
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 %MEMTIME+ COMMAND 14072 iain 20 0 1369m 897m 15m S3 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. thanks, -- Iain Buchanan iaindb at netspace dot net dot au Politicians speak for their parties, and parties never are, never have been, and never will be wrong. -- Walter Dwight
Re: [gentoo-user] Bugzilla search
On Sat, 2010-10-30 at 10:13 +0300, Thanasis wrote: git-1.7.3.2-r1 prefix it with ALL, ie search for ALL git-1.7.3.2-r1. Because the bug is resolved it won't appear in basic searches. alternatively you could do an advanced search and select the statuses that you were interested in. -- Iain Buchanan iaindb at netspace dot net dot au If it ain't baroque, don't phiques it.
Re: [gentoo-user] Re: swap usage creeping up
On Thu, 2010-10-28 at 16:13 +, James wrote: Hello Iain, hey :) From a hardware guy; If you really need hibernate, use it. No laptop was designed to stay powered on continuously despite the features in software and hardware. [snip] If you need hibernate, use it. If you do not, your hardware will last longer being powered down. [snip] er, hibernate IS powering down. S3 powers off everything (Disks, CPU, fans) but leaves a minimal amount of power to the solid-state no-moveable-parts RAM. S4 writes a bunch of stuff to disks and then powers down just like a normal shut down (S5). You can even take out the battery (I even stripped an old laptop, removed the cpu, disks, heat pipes, fans, and put it all back together on S4 and then resumed). S4 can leave some bios function and power for WOL and other devices, but it's not essential. In fact S5 which every modern ATX computer does STILL leaves power to USB, WOL, modems keyboards, if required. So when I say 12 day uptimes, this is calculated by the kernel since I last rebooted, not since I last hibernated. I'm not actually running the laptop for 12 days continuously. Although, IMHO, there's no difference to a laptop or desktop in this regard. Push it to the limits I say ;) -- Iain Buchanan iaindb at netspace dot net dot au serendipity, n.: The process by which human knowledge is advanced.
Re: [gentoo-user] Laptop
On Thu, 2010-10-28 at 11:08 +0200, Roger Cahn wrote: Ask not will this work on Gentoo, rather ask will this work on Linux! Your answer is very interesting, Iain. I'll try what you wrote, and then take my decision ;-) no probs, but no need to reply to me AND the group, just the group reply will do :) -- Iain Buchanan iaindb at netspace dot net dot au He who renders warfare fatal to all engaged in it will be the greatest benefactor the world has yet known. -- Sir Richard Burton
Re: [gentoo-user] Re: Upgrading from FX-5200 to a GeForce 6200 512MB
On Tue, 2010-10-26 at 10:24 -0500, Paul Hartman wrote: On Mon, Oct 25, 2010 at 9:04 PM, Iain Buchanan iai...@netspace.net.au wrote: I'm having issues with the latest mix of nvidia-drivers, xorg, and whatever else it might be! I'm getting bad performance when switching virtual dekstops and moving windows and such. GL screensavers seem to be ok though. Same here. My fast desktop with Core i7 920, Nvidia GX 240, has a slower KDE UI than my 6-year-old laptop that has AMD Athlon 3200+ and ATI Radeon Mobility 9700. Simply opening a konsole window on my desktop with compositing enabled can take 2-3 seconds, when it is instant on the laptop. the difference being that for me, it wasn't always like this. I used to have a REALLY fast snappy UI, now it's a bit sluggish, so I assume it's a version of some package, not just all nvidia drivers for this chip... -- Iain Buchanan iaindb at netspace dot net dot au He who hates vices hates mankind.
Re: [gentoo-user] swap usage creeping up
On Tue, 2010-10-26 at 16:32 +0930, Iain Buchanan wrote: Seriously take a look at your swapiness value. The default value cannot be right every particular case. it's 60. That seems a little high based on what you told me, but I have no reference value to compare it to from 2-3 weeks ago. well, in the last few days I haven't seen any swap usage at all, which is how the system used to run! Strange how the swappiness changed so dramatically in recent kernels. thanks, -- Iain Buchanan iaindb at netspace dot net dot au I can't die until the government finds a safe place to bury my liver. -- Phil Harris
Re: [gentoo-user] Laptop
Hi, Ask not will this work on Gentoo, rather ask will this work on Linux! You'll get much better responses to your research on google at least. If it works on any mainstream Linux distribution, there's a 99.9% chance it will work on Gentoo. For example, I just did a google search for NVIDIA® GeForce® GT 425M linux and found out in a few seconds that it probably works with nvidia-drivers 260.19.06, but not nouveau (open source drivers). http://packages.gentoo.org/package/x11-drivers/nvidia-drivers tells me that nvidia-drivers 260.19.06 and 260.19.12 are hard-masked because they're in the beta phase, so you may or may not have success with them. You can repeat that search (hardware-device linux) for all the usual problematic hardware that you decide you must have working: * video camera * wireless * ethernet * bluetooth * audio however you need the actual chip or vendor name, for example Intel PRO/Wireless 4965 not just Integrated 802.11. The specs you gave are a bit light on those details. The best way to do this is run lspci on the box in the store as someone mentioned. Yes you will be able to install Linux on it for sure. Still not sure about 100% hardware compatibility. HTH, -- Iain Buchanan iaindb at netspace dot net dot au We have not inherited the earth from our parents, we've borrowed it from our children.
Re: [gentoo-user] swap usage creeping up
On Tue, 2010-10-26 at 17:16 +1100, Adam Carter wrote: So it looks like its RES to me by just looking at it. Did you RTFMan page? for top? no. I should add I wasn't sorting by the RES field, even though that's in the top listing. -- Iain Buchanan iaindb at netspace dot net dot au Snake: Adios-s-s, dos amigos-s-s!
Re: [gentoo-user] swap usage creeping up
Hi, 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 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 has it changed in recent kernels? I'm looking for the reason for the change in behaviour... useful though, thanks :) Seriously take a look at your swapiness value. The default value cannot be right every particular case. it's 60. That seems a little high based on what you told me, but I have no reference value to compare it to from 2-3 weeks ago. I'll set it lower and watch... thanks, -- Iain Buchanan iaindb at netspace dot net dot au Calculon: I was all of history's great acting robots: Acting Unit 0.8, Thespo-mat, David Duchovny!
Re: [gentoo-user] Re: Upgrading from FX-5200 to a GeForce 6200 512MB
On Tue, 2010-10-26 at 11:18 +0200, Marc Joliet wrote: Am Tue, 26 Oct 2010 11:34:58 +0930 schrieb Iain Buchanan iai...@netspace.net.au: [...] Someone posted recently about an upgrade that affected him (looking... can't find it). He downgraded to fix it, but it wasn't nvidia or x from memory. Sorry for being vague, I'll keep looking. Ah, I seem to remember the problem was/is mesa 7.8.2 being slow, in which case a downgrade helped. Was that it? I can't find the thread myself right now, though. That's it! mesa tinka yousa system broken! 7.8.2 down to 7.7.1 worked for the OP: http://article.gmane.org/gmane.linux.gentoo.user/234610 Preventing a package from being updated thanks, -- Iain Buchanan iaindb at netspace dot net dot au Chuck Norris doesnt wear a watch, HE decides what time it is.
Re: [gentoo-user] Re: Upgrading from FX-5200 to a GeForce 6200 512MB
On Mon, 2010-10-25 at 18:42 -0500, Dale wrote: So, same card as a year or so ago and same everything else but now I get only about 1/10th the frame rate. What gives? Is this a driver issue? I'm going to take the side off and blow out the case in a bit and test again. I'm open to ideas in the meantime tho. I may not need a upgrade, I may just need to fix what I got. Dale :-) :-) I'm having issues with the latest mix of nvidia-drivers, xorg, and whatever else it might be! I'm getting bad performance when switching virtual dekstops and moving windows and such. GL screensavers seem to be ok though. Someone posted recently about an upgrade that affected him (looking... can't find it). He downgraded to fix it, but it wasn't nvidia or x from memory. Sorry for being vague, I'll keep looking. -- Iain Buchanan iaindb at netspace dot net dot au When an episode of Walker Texas Ranger was aired in France, the French surrendered to Chuck Norris just to be on the safe side.
[gentoo-user] Re: vmware - help
Adam Carter adamcarter3 at gmail.com writes: My principle for using vmware on Gentoo is; use the latest vmware, do not use the latest kernel.I'm using Workstation 7.1.2, which works well with 2.6.34, also works with 2.6.35 (but wants to rebuild one kernel module every time it runs, which I havent tried to fix). Hi, thanks for the suggestions - unfortunately I have to use it since we've started giving VMWare images out internally for service guys to get software updates easily. And I'm also asking work to pay for an upgrade. I just tried 7.1.2 and I get similar results :/ $ vmware *** glibc detected *** vmware: malloc(): memory corruption: 0x08fa63a0 *** (it hangs - ctrl-c to kill it) or: $ VMWARE_USE_SHIPPED_GTK=force vmware *** glibc detected *** vmware: malloc(): memory corruption: 0x0886b3a0 *** (it hangs again), or: $ vmware-netcfg # (and after the password is entered): vmware-netcfg: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd old_size == 0) || ((unsigned long) (old_size) = (unsigned long)__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) ~((2 * (sizeof(size_t))) - 1))) ((old_top)-size 0x1) ((unsigned long)old_end pagemask) == 0)' failed. I think this is indicating some problem with my system, but what? Behaviour is identical with a fresh user. (sorry about the gmane reply, deleted the originals! gmane seems to think a mixed-quote reply is top posting - bah) thanks :) Iain.
Re: [gentoo-user] Re: Upgrading from FX-5200 to a GeForce 6200 512MB
On Mon, 2010-10-25 at 22:55 -0500, Dale wrote: I have a update. Check this out: hey, don't get my hopes up like that. Still no improvement on my box. But then, I am seeing nearly 6500 FPS :D -- Iain Buchanan iaindb at netspace dot net dot au The chief enemy of creativity is good sense -- Picasso
[gentoo-user] swap usage creeping up
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 sharedbuffers cached Mem: 3040859 2181 0 38415 -/+ buffers/cache:406 2634 Swap: 494431 62 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 %MEMTIME+ COMMAND 8318 iain 20 0 494m 150m 21m S0 5.0 1:20.67 evolution 20424 iain 20 0 342m 77m 30m S0 2.5 0:01.84 firefox 8009 root 20 0 83364 37m 6260 S7 1.2 38:34.31 X 8090 iain 20 0 159m 32m 1600 S1 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. any ideas? thanks :) -- Iain Buchanan iaindb at netspace dot net dot au Chuck Norris once skewered a man with the Eiffel tower.
[gentoo-user] vmware - help
00018000 08:07 5357849/usr/lib/libxcb.so.1.1.0 b4c87000-b4c88000 rw-p 00019000 08:07 5357849/usr/lib/libxcb.so.1.1.0 b4c88000-b4c89000 rw-p 00:00 0 b4c89000-b4cad000 r-xp 08:07 5194128/lib/libm-2.12.1.so b4cad000-b4cae000 r--p 00023000 08:07 5194128/lib/libm-2.12.1.so b4cae000-b4caf000 rw-p 00024000 08:07 5194128/lib/libm-2.12.1.so b4caf000-b4e03000 r-xp 08:07 5587283/lib/libc-2.12.1.so b4e03000-b4e05000 r--p 00154000 08:07 5587283/lib/libc-2.12.1.so b4e05000-b4e06000 rw-p 00156000 08:07 5587283/lib/libc-2.12.1.soAborted I have no idea how to debug this - I've rebuilt lots of stuff and still no dice... any help would be greatly appreciated :) -- Iain Buchanan iaindb at netspace dot net dot au Non-Reciprocal Laws of Expectations: Negative expectations yield negative results. Positive expectations yield negative results.
Re: [gentoo-user] Uploading Files to Windows CE
On Fri, 2010-10-08 at 05:30 -0400, dhk wrote: You know I have that installed. It looks like I tried it once, but didn't get far with it and then started exploring other options. Since I haven't found other options so I think I need to revisit this. version 0.15 is on the way, at the least try 0.14. You may not want the entire list of packages, probably just synce-hal, synce-sync-engine and synce-gvfs. gvfs will give you nautilus browsing of your device ;) -- Iain Buchanan iaindb at netspace dot net dot au The best cure for insomnia is to get a lot of sleep. -W.C. Fields
Re: [gentoo-user] Illegal instruction error
On Tue, 2010-10-12 at 00:26 +0200, Alan McKinnon wrote: glibc seems possible glibc is my cause of illegal instructions atm, although I haven't tried memtest... I should probably start treating this poor machine more like a notebook and less like a high performance machine - running flat out almost 24/7 is probably outside of it's design spec :-) naaah. Flog it. If it can't handle it, it's a design fault ;) -- Iain Buchanan iaindb at netspace dot net dot au It ain't over until it's over. -- Casey Stengel
Re: [gentoo-user] Suspend-to-disk stopped by xhci-module...
On Tue, 2010-10-12 at 00:38 +0100, Neil Bothwick wrote: AFAIK they can be used with the standard swsusp stuff, although I've only used it with a tuxonice-sources kernel. yup, hibernate script works with vanilla or tuxonice, both ram and disk :) -- Iain Buchanan iaindb at netspace dot net dot au It's no use crying over spilt milk -- it only makes it salty for the cat.
[gentoo-user] vmware fail - malloc other wierd errors
Hi all (I'm back briefly, only to go again soon) but I'm having some hassles with vmware. I'm running tuxonice 2.6.35, everything up to date. When I try and run vmplayer: ... vmplayer: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd old_size == 0) || ((unsigned long) (old_size) = (unsigned long)__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) ~((2 * (sizeof(size_t))) - 1))) ((old_top)-size 0x1) ((unsigned long)old_end pagemask) == 0)' failed. Aborted running with valgrind: $ vmplayer --valgrind /opt/vmware/player/lib/vmware/bin/launcher.sh: line 231: 28215 Illegal instruction ... the valgrind (snipped) log shows: ==28215== Memcheck, a memory error detector ... ==28215== vex x86-IR: unhandled instruction bytes: 0x66 0x66 0x2E 0xF ==28215== valgrind: Unrecognised instruction at address 0x6962e65. ... ==28215== ==28215== Process terminating with default action of signal 4 (SIGILL) ==28215== Illegal opcode at address 0x6962E65 ==28215==at 0x6962E65: __memset_sse2 (memset-sse2.S:258) ==28215==by 0x9A9D557: ??? (in /usr/lib/libnvidia-glcore.so.256.53) ==28215== ==28215== HEAP SUMMARY: ==28215== in use at exit: 0 bytes in 0 blocks ==28215== total heap usage: 0 allocs, 0 frees, 0 bytes allocated ==28215== ==28215== All heap blocks were freed -- no leaks are possible ==28215== ==28215== For counts of detected and suppressed errors, rerun with: -v ==28215== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 15 from 8) vmware-workstation gives all sorts of errors too from similar abortions, segfaults, and complaints about libGL.so, depending on weather I start it plainly or by using VMWARE_USE_SHIPPED_GTK=force. I've tried all sorts of things - from USE_SHIPPED_GTK to xorg-x11 opengl to reinstalling recompiling modules, but no luck. Google is unsympathetically silent on this one :( Please help! thanks :) -- Iain Buchanan iaindb at netspace dot net dot au The truth about a man lies first and foremost in what he hides. -- Andre Malraux
Re: [gentoo-user] vmware fail - malloc other wierd errors
it's always the way, but I have vmplayer running now, by some magic set of events: sudo emerge --config vmware-player sudo /opt/vmware/player/bin/vmplayer (didn't work) VMWARE_USE_SHIPPED_GTK=force vmplayer the final command worked, where it didn't before, so I don't get why. Now to try vmware-workstation and see... -- Iain Buchanan iaindb at netspace dot net dot au All laws are simulations of reality. -- John C. Lilly
Re: [gentoo-user] OT: tool for reading /etc/conf.d/net?
On Thu, 2010-07-08 at 15:06 +0300, Amit Dor-Shifer wrote: Can anyone recommend a tool that can parse networking info from a/m file, so one can use it to query, e.g. what is the static IP configured on eth0? Amit I'm a bit slow in replying, but there's a Google SOC project to integrate NetworkManager with Gentoo config files. Last time I looked it seemed to be mostly working. There's a blog somewhere *looking* http://qiaomuf.wordpress.com/ try that out. Don't think there's a command line interface to NM though so don't know how your parsing will go... -- Iain Buchanan iaindb at netspace dot net dot au It's God. No, not Richard Stallman, or Linus Torvalds, but God. (By Matt Welsh)
Re: [gentoo-user] Can we please get a USB-stick install boot image?
here's one I prepared earlier ;) This is from 2008: http://nthrbldyblg.blogspot.com/2008/06/gentoo-linux-live-usb-key.html and these are some notes of mine on syslinux which may help a bit too: http://nthrbldyblg.blogspot.com/2010/02/syslinux-from-linux.html HTH, -- Iain Buchanan iaindb at netspace dot net dot au Delay is preferable to error. -- Thomas Jefferson
[gentoo-user] caps lock osd
Hi, is there a way to get the num lock, caps lock and scroll lock state displayed in an OSD? I'm not looking for a panel applet, but something that throws the state onto the screen for a second or so. I thought lineakd and xosd might do it, but I can't figure out how to get it to respond to caps lock. There are various other utilities, but they all seem panel or krell based. Is there a way I can run a generic command when caps lock is pressed? thanks :) -- Iain Buchanan RD i...@pcorp.com.au Phone: 138
Re: [gentoo-user] caps lock osd
On Mon, 2010-06-07 at 12:11 +0930, Iain Buchanan wrote: Hi, is there a way to get the num lock, caps lock and scroll lock state displayed in an OSD? Still looking for a good solution, but the best I've come up with so far is this: 1. add to .xbindkeysrc: /home/iain/.bin/capstog m:0x12 + c:66 Mod2 + Caps_Lock 2. /home/iain/.bin/capstog is simply: #!/bin/sh mkdir -p ~/.run/ if ( grep On ~/.run/capstog 1/dev/null 21 ) ; then echo Caps Off ~/.run/capstog else echo Caps On ~/.run/capstog fi 3. then run in another shell: tail -f .run/capstog 2/dev/null | osd_cat --delay=1 --lines=1 --pos=bottom --offset=100 --indent=800 --shadow=3 --font=-*-times-*-*-*-*-34-*-*-*-*-*-*-* 4. finally run xbindkeys Now I get a Caps On and Caps Off message every time I press the caps lock. A lot of manual steps to get there though! Surely there's a tool to do this already?! -- Iain Buchanan iaindb at netspace dot net dot au I have never been one to sacrifice my appetite on the altar of appearance. -- A.M. Readyhough
Re: [gentoo-user] danger-deep
On Thu, 2010-05-27 at 14:18 +0300, Arttu V. wrote: On 5/27/10, Iain Buchanan iai...@netspace.net.au wrote: Doesn't run here. Something to do with getting the available resolutions: Anyone know about SDL? I really don't, but I'm just wondering if you are looking at the 0.3.0 source tarball code or their svn trunk? system.cpp is quite different in the trunk, including changes which probably should add support for less common screen sizes and modes. 0.3.0. I just emerged the version in portage. I might try svn later (when I'm not at work ;) -- Iain Buchanan iaindb at netspace dot net dot au Experience is that marvelous thing that enables you recognize a mistake when you make it again. -- Franklin P. Jones
[gentoo-user] danger-deep
On Wed, 2010-05-26 at 17:45 +, James wrote: Folks, I just had to share this. So I read the Linux journal, mostly to do my part to keep publications about Linux alive. Occationally they write about something cool, though rarely related to Gentoo FTA: The Web site provides a lovely binary installer that feels much like that of a commercial game. You can compile the game from source if you want, but would you really do that when you can simply click Next, Next, Next? *sigh* So I read about a very cool submarine game today on LJ: http://www.linuxjournal.com/content/danger-deep Only to discover it's already in portage. KUDOS to the Gentoo game devs for being on top of this one Doesn't run here. Something to do with getting the available resolutions: SDL_Rect** modes = SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE); must be returning nothing, because later when it tests the resolution it wants to use against the resolutions available: for (listvector2i::const_iterator it = available_resolutions.begin(); it != available_resolutions.end(); ++it) { if (*it == vector2i(res_x_, res_y_)) { ok = true; break; } } if (!ok) throw invalid_argument(invalid resolution requested!); I get the exception. No matter what res I specify on the command line :( $ dangerdeep Caught exception: invalid resolution requested! Anyone know about SDL? thanks, -- Iain Buchanan iaindb at netspace dot net dot au If you stand on your head, you will get footprints in your hair.
Re: [gentoo-user] Re: {OT} Basic device for a Gentoo router/firewall?
On Wed, 2010-05-26 at 10:28 +0100, Peter Humphrey wrote: All very well if you happen to have such a device lying around. I don't, however, and Google doesn't show me a source of them either, so I'll just wait for something more suitable to come along. Cheaper, too, with any luck, such as the devices Neil mentioned on Monday. Thanks anyway. no probs, they aren't cheap, but if you need the extra features, they're well worth it. Instead (as Neal or someone suggested) I'd go for a mini-itx atom board - easy to compile for, low noise, and many are fanless. Many come with gigabit (good for the router), multiple usb, sata, and so on. Some have sockets, some have the cpu built in. The Atom D510 is even dual core! have fun putting it together! -- Iain Buchanan iaindb at netspace dot net dot au Man is a rational animal who always loses his temper when he is called upon to act in accordance with the dictates of reason. -- Oscar Wilde
Re: [gentoo-user] Re: Harddisk trouble ... or not yet?
On Thu, 2010-05-27 at 11:52 +0800, W.Kenworthy wrote: So something like SMART is the only way for the average Joe to get the health of a drive. Google has lots on this sort of thing That sentence is correct in more than one way! Google the generic term for any web page found via searching on Google no doubt has lots on this sort of thing, but so does Google the company. I remember reading a SlasDot post about the results of their disk monitoring over the last x years, and they use and monitor a lot of disks. *looking* Here's the full study: http://labs.google.com/papers/disk_failures.html From the abstract: ...we conclude that models based on SMART parameters alone are unlikely to be useful for predicting individual drive failures. Surprisingly, we found that temperature and activity levels were much less correlated with drive failures than previously reported. I recall there were some summaries of this article, but I can't find them right now. An interesting read. Basically, you might not be able to get reliable warnings of impending failures. Keep Good Backups (so say we all) -- Iain Buchanan iaindb at netspace dot net dot au The naked truth of it is, I have no shirt. -- William Shakespeare, Love's Labour's Lost
Re: [gentoo-user] Re: {OT} Basic device for a Gentoo router/firewall?
On Tue, 2010-05-25 at 09:48 +0100, Peter Humphrey wrote: On Tuesday 25 May 2010 04:55:05 Iain Buchanan wrote: We buy about 5 - 10 of these (started on the net4801, now the net5501) per year at work: http://www.yawarra.com.au/hw-net5501.php And make them do various things ranging in intensity from data servers to gateway/firewall/routers and so on. We've used IDE and flash in them, usually IDE for the convenience. We compile for x86. The 4 network ports are nice, and there's some GPIO to boot. I'm intrigued. How do you connect displays to them? I assume you'd need one for at least the first steps of installing an OS, no? no :) There is a serial port which is good enough for a console, which you can use until your network is working. After you've set up the first one, then we copy the image to the next. -- Iain Buchanan iaindb at netspace dot net dot au Nothing is as simple as it seems at first Or as hopeless as it seems in the middle Or as finished as it seems in the end.
Re: [gentoo-user] Re: {OT} Basic device for a Gentoo router/firewall?
On Mon, 2010-05-24 at 20:39 +0100, Stroller wrote: On 24 May 2010, at 14:11, James wrote: ... Beware, it often becomes a life long passion to the point of an addition. This is exactly what I fear of using such specialist hardware! Far better to burn a few watts, than to have to learn such intricacies! We buy about 5 - 10 of these (started on the net4801, now the net5501) per year at work: http://www.yawarra.com.au/hw-net5501.php And make them do various things ranging in intensity from data servers to gateway/firewall/routers and so on. We've used IDE and flash in them, usually IDE for the convenience. We compile for x86. The 4 network ports are nice, and there's some GPIO to boot. They offer a range of free distributions for various purposes: http://www.yawarra.com.au/ti-software.php#free some are just links to the projects, some are pre-built for the device. Would be good to get you started before you've customised it the way you like. That's an Australian company, but the boards come from http://www.soekris.com/ so you may be able to order from them and build / buy your own case. hth, -- Iain Buchanan iaindb at netspace dot net dot au Lucas' Law: Good will always win, because evil hires the _stupid_ engineers.
Re: [gentoo-user] Re: New GPS amp; Gentoo?
On Fri, 2010-05-21 at 15:42 +, James wrote: * Online searching usb and bluetooth, should interact with PC (running Gentoo?) maybe. Sometimes they only tether with mobiles, but then you can make your laptop look like a mobile by altering the device class in /etc/bluetooth/hcid.conf I think. * Camera with geotagging I did not see this anywhere, do tell me more Only seen it on the off-road or hiking models. The inbuilt camera automatically tags your location into the exif data (as well as date, time, etc). You can then upload it to the right spot on google maps without you having to locate where you were at the time. The photo also comes up as an icon on the map next time you go by. I was not looking for a GPS with wifi, although that would be keen, in lieu of pay for usage based services. I was looking for points of interest on the GPS device, with a free wifi GPS guide location. Surely something like this exist for mobile laptops, or do folks run some scanning package to find free wifi locations. A GPS coordinate registry for free wifi is more what I'm looking for. Very cool if it's built in or easily addable to the Garmin 1490T. ah, I see. No doubt there is free wifi POI you can download. In my experience, free WIFI doesn't determine where I go. If it's free when I get there, then good, otherwise I'm there anyway! -- Iain Buchanan iaindb at netspace dot net dot au Success is in the minds of Fools. -- William Wrenshaw, 1578
Re: [gentoo-user] New GPS Gentoo?
On Wed, 2010-05-19 at 22:16 +, James wrote: Hello, Time for a new GPS. Any cool models out there that work well with a Gentoo laptop? That's like saying Time for a new car. Any cool models out there that work well with petrol? There are a plethora of GPSs! Do you want the typical in car voice navigation to take you to the restaurant; or off road waypoint and path tracking, route logging, or something else? Being unaware of the latest with GPS (features) I'd be most keen to hear what works well and what is cool for driving around with a GPS some features you might consider: * bluetooth for handsfree answering and dialling your mobile phone (if it's legal in your area) * map upgrades - make sure you can do it for a number of years and you're not stuck with this years maps forever * text to speech - for reading out street names (turn left at Smith St vs turn left in 100m) * tunnel mode (some use accelerometers and such to keep your position accurate in tunnels or city centres) * Online searching (watch out for data fees) useful for finding the nearest petrol station * Camera with geotagging * expandable memory * mp3 / video playing capability to use up that expandable memory * on road / off road modes and route logging (not that you have to go off road, but if you want to upload your tracks to a free mapping service, then it needs to be royalty free, which means you need to turn off the snap to nearest road function) * digital compass, odometer, log book facility * lane guidance and 3d features (I personally don't care for them, but some do) * etc Maybe searching out free wireless connections for bandwidth? not sure how many plain GPSs have wifi. hth, -- Iain Buchanan iaindb at netspace dot net dot au One person's error is another person's data.
[gentoo-user] NetworkManager SIGSEGV
After a recent upgrade, the NetworkManager daemon crashes (for me!). Thanks in advance to to those who are about to suggest that I use something else, but NM has features I use that nothing else provides :) The backtrace is HUGE, so there's obviously some loop going on somewhere, but according to my earlier problems with massive amounts of logging, I don't think this is the cause of the current seg fault. Can someone tell me what needs to be recompiled / downgraded to fix it? I've had no luck figuring it out so far! the innermost 10 frames are: #0 0xb794 in _IO_vfprintf_internal (s=0xbf80042c, format=0x80b38e4 WARN %s(): Trying to remove a non-existant call id.\n, ap=0xbf8009fc \\9\v\b\023좷ä\n\200¿¿\n\200¿\001) at vfprintf.c:197 #1 0xb79f12e2 in *__GI___vasprintf_chk (result_ptr=0xbf80053c, flags=1, format=0x80b38e4 WARN %s(): Trying to remove a non-existant call id.\n, args=0xbf8009fc \\9\v\b\023좷ä\n\200¿¿\n\200¿\001) at vasprintf_chk.c:68 #2 0xb7aebb4f in vasprintf (string=0xbf80053c, format=0x80b38e4 WARN %s(): Trying to remove a non-existant call id.\n, args=0xbf8009fc \\9\v\b\023좷ä\n\200¿¿\n\200¿\001) at /usr/include/bits/stdio2.h:199 #3 IA__g_vasprintf (string=0xbf80053c, format=0x80b38e4 WARN %s(): Trying to remove a non-existant call id.\n, args=0xbf8009fc \\9\v\b\023좷ä\n\200¿¿\n\200¿\001) at gprintf.c:315 #4 0xb7ad7a16 in IA__g_strdup_vprintf (format=0x80b38e4 WARN %s(): Trying to remove a non-existant call id.\n, args=0xbf8009fc \\9\v\b\023좷ä\n\200¿¿\n\200¿\001) at gstrfuncs.c:244 #5 0xb7abf3e0 in IA__g_logv (log_domain=value optimized out, log_level=G_LOG_LEVEL_WARNING, format=0x80b38e4 WARN %s(): Trying to remove a non-existant call id.\n, args1=0xbf8009fc \\9\v\b\023좷ä\n\200¿¿\n\200¿\001) at gmessages.c:516 #6 0xb7abf846 in IA__g_log (log_domain=0x0, log_level=G_LOG_LEVEL_WARNING, format=0x80b38e4 WARN %s(): Trying to remove a non-existant call id.\n) at gmessages.c:569 #7 0x0805e72c in nm_call_store_remove (store=0x80f8320, object=0x80f92e0, call_id=0x1) at nm-call-store.c:71 #8 0x0809f34a in nm_supplicant_info_destroy (user_data=0x80e3760) at nm-supplicant-interface.c:179 #9 0xb7c682f9 in d_pending_call_free (data=0x80d8388) at /var/tmp/portage/dev-libs/dbus-glib-0.86/work/dbus-glib-0.86/dbus/dbus-gproxy.c:1780 and most of this will repeat a few thousand times. and the outermost 10 frames are: #174513 0xb7bc6d76 in IA__g_signal_emit (instance=0x80d70b8, signal_id=8, detail=81) at gsignal.c:3037 #174514 0xb7c6d52d in dbus_g_proxy_emit_remote_signal (connection=0x80d5418, message=0x80d56d8, user_data=0x80d4878) at /var/tmp/portage/dev-libs/dbus-glib-0.86/work/dbus-glib-0.86/dbus/dbus-gproxy.c:1734 #174515 dbus_g_proxy_manager_filter (connection=0x80d5418, message=0x80d56d8, user_data=0x80d4878) at /var/tmp/portage/dev-libs/dbus-glib-0.86/work/dbus-glib-0.86/dbus/dbus-gproxy.c:1301 #174516 0xb7c31ecb in dbus_connection_dispatch (connection=0x80d5418) at dbus-connection.c:4451 #174517 0xb7c6360d in message_queue_dispatch (source=0x80d6d80, callback=0, user_data=0x0) at /var/tmp/portage/dev-libs/dbus-glib-0.86/work/dbus-glib-0.86/dbus/dbus-gmain.c:101 #174518 0xb7ab57b8 in g_main_dispatch (context=0x80d2e08) at gmain.c:1960 #174519 IA__g_main_context_dispatch (context=0x80d2e08) at gmain.c:2513 #174520 0xb7ab9050 in g_main_context_iterate (context=0x80d2e08, block=value optimized out, dispatch=1, self=0x80cc170) at gmain.c:2591 #174521 0xb7ab94bf in IA__g_main_loop_run (loop=0x80d2e98) at gmain.c:2799 #174522 0x0807f1ac in main (argc=1, argv=0xbfffee84) at NetworkManager.c:648 I've recompiled dbus, dbus-glib, networkmanager and a bunch of stuff, but to no avail. The last updates before it broke were: dev-libs/nspr-4.8.4-r1 dev-libs/libsigc++-2.2.7 dev-lang/swig-1.3.40-r1 dev-lang/orc-0.4.4 sci-libs/proj-4.7.0 media-libs/tiff-4.0.0_beta5 x11-libs/pixman-0.18.2 dev-perl/libwww-perl-5.836 sci-libs/libgeotiff-1.3.0_rc2-r1 net-dns/bind-tools-9.7.0_p1 sci-libs/gdal-1.7.1-r1 x11-proto/xproto-7.0.17 net-wireless/wpa_supplicant-0.7.2 sys-power/pm-utils-1.3.0-r3 media-fonts/urwvn-fonts-3.05 sys-auth/nss-mdns-0.10 dev-libs/totem-pl-parser-2.28.3 sys-fs/cryptsetup-1.1.1_rc2 sys-fs/udev-154 sci-geosciences/googleearth-5.1.3535.3218 gnome-base/librsvg-2.26.3 media-gfx/gtkam-0.1.17 x11-base/xorg-server-1.8.1 app-emulation/wine-1.1.44 sci-libs/libgeotiff-1.3.0_rc2-r1 sci-libs/gdal-1.7.1-r1 any ideas? thanks, -- Iain Buchanan iaindb at netspace dot net dot au Bombeck's Rule of Medicine: Never go to a doctor whose office plants have died.
Re: [gentoo-user] NetworkManager SIGSEGV
On Tue, 2010-05-18 at 22:05 -0400, Chris Reffett wrote: It was probably the wpa_supplicant update, see bug 320097 on bugs.gentoo.org. spot on! I didn't see it because I was searching for NetworkManager bugs, not wpa_supplicant bugs :) thanks, -- Iain Buchanan iaindb at netspace dot net dot au Being a mime means never having to say you're sorry.
Re: [gentoo-user] [SOLVED] identical drives, different free space!
On Mon, 2010-05-17 at 09:07 +0100, Neil Bothwick wrote: On Mon, 17 May 2010 11:21:50 +0930, Iain Buchanan wrote: Well, it turns out I have the distfiles mounted with --bind to my ftp/pub directory. And looking in the rsync man page: Why not set $DISTDIR to the true location of distfiles instead of using bind mounts? because /usr/portage/distfiles IS the real location, and /home/ftp/pub/gentoo/distfiles is the ftp shared location. vsftpd doesn't handle symlinks, so I have to bind it. Now that you mention it though, I could move it for real into /home/ftp/pub/gentoo/distfiles and change DISTDIR... hm. -- Iain Buchanan iaindb at netspace dot net dot au Real programmers don't bring brown-bag lunches. If the vending machine doesn't sell it, they don't eat it. Vending machines don't sell quiche.
Re: [gentoo-user] [SOLVED] identical drives, different free space!
On Mon, 2010-05-17 at 12:39 +0100, Neil Bothwick wrote: On Mon, 17 May 2010 12:31:17 +0100, David W Noon wrote: ... So the distfiles are actually in /usr/portage/distfiles? for me yes, it looks the same for David. I share my distfiles but I don't use FTP as that means storing copies of the same file on each computer. Instead, I use NFS. /mnt/portage is shared across all machines on the network and DISTDIR is set to /mnt/portage/distfiles in each make.conf. Sharing /mnt/portage like this means I can also share my overlay across the network at /mnt/portage/local. Until I pick up my laptop and drive to work, where network speeds to my server drop from 100Mbit to 50kbit and I need that local copy! Which is why I'm glad there are multiple ways to do it :) -- Iain Buchanan iaindb at netspace dot net dot au Old robot: I choose to believe what I was programmed to believe.
Re: [gentoo-user] identical drives, different free space!
On Sat, 2010-05-15 at 01:35 -0700, scott n-h wrote: Have you checked to see if it is following symlinks? Possibly add a -l option to copy symlinks as symlinks good idea, I didn't have the -l option. Now I run rsync like this: sudo /usr/bin/ionice -c 3 /usr/bin/rsync -aAlx --exclude suspend_file --delete --delete-excluded --delete-before --partial --human-readable / ${MOUNTPT} ${LOGFILE} Note the -l AND --delete-before. However I'm STILL filling up the second drive for some unknown reason. I've added --exclude /usr/portage/distfiles to the rsync options, since there's no need to back up my distfiles, but I'd like to know why it's not working... -- Iain Buchanan iain at pcorp dot com dot au It doesn't matter whether you win or lose -- until you lose.
Re: [gentoo-user] [SOLVED] identical drives, different free space!
So after I excluded distfiles from my rsync, I found that the two partitions had roughly the same free space... strange! How could excluding around 6G of distfiles make two copies of the same thing the same size? Well, it turns out I have the distfiles mounted with --bind to my ftp/pub directory. And looking in the rsync man page: -x, --one-file-system ... Also keep in mind that rsync treats a bind mount to the same device as being on the same filesystem. So my distfiles were being copied in /usr/portage as well as /home/ftp/pub! Unfortunately the only way to get around it seems to be another --exclude directive. At least I understand what's going on now :) thanks for all the suggestions, -- Iain Buchanan iaindb at netspace dot net dot au Mr. Cole's Axiom: The sum of the intelligence on the planet is a constant; the population is growing.
Re: [gentoo-user] identical drives, different free space!
On Fri, 2010-05-14 at 09:35 +0100, Neil Bothwick wrote: On Fri, 14 May 2010 11:21:02 +0930, Iain Buchanan wrote: I'm using the following rsync command to make the backup: sudo /usr/bin/ionice -c 3 /usr/bin/rsync -aAx --exclude suspend_file --delete --delete-excluded --partial --human-readable / /media/root-backup As the rsync command is failing with disk full, files are not being deleted. Try adding --delete-before to the options to have old files cleaned up before copying new ones. that's what I thought initially, hence: On Fri, 2010-05-14 at 11:21 +0930, Iain Buchanan wrote: I just deleted a bunch of /var/tmp and distfiles to free up some space, and ran the rsync again. Now it looks like this: $ df -h FilesystemSize Used Avail Use% Mounted on rootfs 92G 81G 6.1G 93% / /dev/sdd7 92G 89G 4.6M 100% /media/root-backup /dev/sda3 99M 39M 55M 42% /boot /dev/sdd3 99M 39M 55M 42% /media/boot-backup So the last rsync didn't fail with disk full - it's got about 3G left for use by root. Any other ideas? thanks, -- Iain Buchanan iaindb at netspace dot net dot au Yesterday I was a dog. Today I'm a dog. Tomorrow I'll probably still be a dog. Sigh! There's so little hope for advancement. -- Snoopy
[gentoo-user] identical drives, different free space!
Hi, I have two 160Gb drives, one internal and one USB. I've partitioned them the same and created an identical filesystem on the USB drive for backing up my internal drive. I'm using the following rsync command to make the backup: sudo /usr/bin/ionice -c 3 /usr/bin/rsync -aAx --exclude suspend_file --delete --delete-excluded --partial --human-readable / /media/root-backup however, after running this command sporadically for a few days, the USB partition is now full, whereas my root partition isn't! sda is internal, and sdd is external. sda7 is the one I'm interested in: $ sudo fdisk -l Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0080 Device Boot Start End Blocks Id System /dev/sda1 1 11 883266 FAT16 /dev/sda2 * 12487539070080b W95 FAT32 /dev/sda348764888 104422+ 83 Linux /dev/sda44889 19457 117025492+ 5 Extended /dev/sda54889732119543041 83 Linux /dev/sda673227384 506016 83 Linux /dev/sda77385 1945796976341 83 Linux Disk /dev/sdd: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x5d5d0036 Device Boot Start End Blocks Id System /dev/sdd1 1 11 883266 FAT16 /dev/sdd2 12487539070080b W95 FAT32 /dev/sdd348764888 104422+ 83 Linux /dev/sdd44889 19457 117025492+ 5 Extended /dev/sdd54889732119543041 83 Linux /dev/sdd673227384 506016 83 Linux /dev/sdd77385 1945796976341 83 Linux I just deleted a bunch of /var/tmp and distfiles to free up some space, and ran the rsync again. Now it looks like this: $ df -h FilesystemSize Used Avail Use% Mounted on rootfs 92G 81G 6.1G 93% / /dev/sdd7 92G 89G 4.6M 100% /media/root-backup /dev/sda3 99M 39M 55M 42% /boot /dev/sdd3 99M 39M 55M 42% /media/boot-backup I'm doing the /root backup from cron, but the /boot backup manually when I make changes. I thought perhaps the ext3 options were different (ie. different amount of reserved space) but that would make the Avail columns different, and shouldn't make the Used columns different. any thoughts as to why my USB partition is full? thanks, -- Iain Buchanan iaindb at netspace dot net dot au Most people have two reasons for doing anything -- a good reason, and the real reason.
Re: [gentoo-user] identical drives, different free space!
On Thu, 2010-05-13 at 20:22 -0700, Kaddeh wrote: Are you doing a full recursive copy of / from rootfs for sdd7 (aka cp -r /) if so, are the other partitions mounted as well? [snip] yes, but the rsync command -x or --one-file-system should stop rsync traversing to different mounts so (I hope) this should only copy the one partition. thanks, -- Iain Buchanan iaindb at netspace dot net dot au When you have eliminated the impossible, whatever remains, however improbable, must be the truth. -- Sherlock Holmes, The Sign of Four
[gentoo-user] kernel notification of file system changes
Hi, I'm looking for some kernel-based notification of changes to my file system. I've been looking at inotify, but it's not exactly what I want. Basically I want to know if _any_ write occurs anywhere. I don't want to register a whole bunch of files to watch, I just want to watch an entire mount. When a file is changed (ie. a write operation occurs), I then want to add that file or fd to a list in RAM. That's all. I know this may be a lot of data, considering streams and devices, but I can filter out /dev, /proc, etc. and just focus on real files. Is there anything that can do this? thanks :) -- Iain Buchanan iaindb at netspace dot net dot au I hate it when my foot falls asleep during the day cause that means it's going to be up all night. -- Steven Wright
Re: [gentoo-user] kernel notification of file system changes
On Wed, 2010-05-05 at 17:02 +0200, Helmut Jarausch wrote: Might be I've just asked a similar question on the ZSH mailing list. Please have a look at inotifywatch from the sys-fs/inotify-tools package. It can watch a directory tree recursively. it does look interesting, thanks. I would still run into the directory limit if I wanted to watch something large like / $ sudo find / -xdev -type d | wc -l 71168 ...The default maximum is 8192; it can be increased by writing to /proc/sys/fs/inotify/max_user_watches. but it's an angle to follow. I wonder how max_user_watches would handle being 100k or more... no doubt you just need some RAM?! thanks, -- Iain Buchanan iaindb at netspace dot net dot au drobbins we should send him a commemorative gentoo crack pipe for all his contributions to this project
Re: [gentoo-user] kernel notification of file system changes
On Wed, 2010-05-05 at 15:12 +0800, Bill Kenworthy wrote: Can the older dnotify do what you want? - it monitors files differently to inotify. There is also gammin/fam. dnotify locks the files or directories you want to watch, so it would prevent external media from being unmounted. dnotify also uses a file descripter per watched item, which could get interesting for large amounts of watches! I'm not sure about FAM, but Gamin uses inotify or dnotify anyway (in Linux). I think they're all designed in a similar way: you have to register a whole bunch of files or directories to watch. thanks, -- Iain Buchanan iaindb at netspace dot net dot au He that is giddy thinks the world turns round. -- William Shakespeare, The Taming of the Shrew
Re: [gentoo-user] kernel notification of file system changes
On Wed, 2010-05-05 at 18:35 +0100, Stroller wrote: On 5 May 2010, at 18:24, Florian Philipp wrote: ... man inotify(7): ... When a directory is monitored, inotify will return events for the directory itself, and for files inside the directory. ... To repeat my comment on Iain's original backup to a cold-swap drive thread ... Sorry, I started ignoring that almost immediately it was posted. ooohh, ouch! :) He rejected too quickly too many workable solutions to basically functional backup. Perhaps Iain is a perfectionist, but I did not wish to follow the thread. Perhaps I am a bit of a perfectionist, but I think you misunderstood my aim. I rejected 3 options straight away (dd, gparted, and Ghost4Linux) because they're not designed for backing up a live filesystem in a change only fashion (intelligent is the word I used). Beyond that I didn't reject anything else that anyone mentioned. ... Inotify has two drawbacks which make it hard or even impossible to use for Iain's use case: a) It does not work recursively which means that you have to create a new handle for each subdirectory. Of course, this only means more work for the programmer but there is also the problem that Pardon me. I assumed that files inside the directory meant that foo would be be changed when foo/bar changed, thus monitoring grunt would reflect changes in grunt/foo/bar. I overlooked that a directory is not a file. isn't it? I thought a directory was just a file containing names (or inodes) of other files? Which would explain why monitoring grunt wouldn't show changes in grunt/foo/bar, since the directory/file called grunt remains the same (ie. contains the same list of inodes) even if grunt/foo/bar changes. Let me tell you what I actually want to do, which I may not have made clear originally: I want to backup root to an external drive (or that could be rephrased as I want to backup any mount to any other mount), such that: 1. My backup is an hour or so out of date (at most) 2. I don't need to copy the entire filesystem every time To do that, I could either: * Run rsync every hour over the entire filesystem (I'm doing this now with ionice, takes about 10 minutes when there are no changes) * Use some file notification monitor to tell me which file was just changed, and only rsync that file The problems with rsync is that during the rsync process, the filesystem is changing, so I will end up with a slightly inconsistent backup. If I use some notification method that tells me a file has changed, I can greatly reduce any inconsistency, and I reduce my hour down to seconds or minutes, depending on how much changes at any one time. I'm considering LVM for it's snapshot capability, but I'd still have to rsync root. I would prefer a file notification method as well, so I can just rsync the file that just changed. So far all the file monitoring tools are based on individual files (even the recursive ones), and you eventually reach a system limit. Thanks, and willing to listen to any ideas from anyone (except Stroller :p ) -- Iain Buchanan iaindb at netspace dot net dot au Usually, when a lot of men get together, it's called a war. -- Mel Brooks, The Listener
Re: [gentoo-user] kernel notification of file system changes
On Thu, 2010-05-06 at 01:33 +0200, Volker Armin Hemmann wrote: oh god... fam... that crap caused me so much pain over the years. This bug ridden zombie is still around? thanks for the heads-up - I guess I should leave FAM to plan B? -- Iain Buchanan iaindb at netspace dot net dot au I am a friend of the working man, and I would rather be his friend than be one. -- Clarence Darrow
Re: [gentoo-user] kernel notification of file system changes
On Thu, 2010-05-06 at 08:54 +0930, Iain Buchanan wrote: but it's an angle to follow. I wonder how max_user_watches would handle being 100k or more... no doubt you just need some RAM?! thanks, To answer my own questions, I'm now trying this: # echo 10 /proc/sys/fs/inotify/max_user_watches $ time sudo find / -xdev -type d | sudo inotifywatch -v -t 1 -e modify,attrib,move,create,delete,delete_self,unmount --fromfile - Establishing watches... Total of 71169 watches. Finished establishing watches, now collecting statistics. Will listen for events for 1 seconds. total modify filename 6 6 /tmp/ 2 2 /dev/ real0m3.177s user0m0.768s sys 0m1.378s This sets up a watch on all directories under / that aren't part of another filesystem, and then exits after one second. It's quite fast :) The idea, off the top of my head, would be this: 1. inotifywatch as above but without the time restriction 2. wait for it to finishing setting up 3. rsync the whole directory structure to the backup 4. continuously do this loop: 1. get list of changes from inotifywatch 2. rsync those changes Unfortunately inotifywatch only returns output on ctrl-c, which I don't want to do or you loose anything changed between instances. This could be changed to another signal, no doubt. How does that sound for a continuous running backup? This is starting to stray OT from Gentoo, but your thoughts are welcome :) -- Iain Buchanan iaindb at netspace dot net dot au One cannot make an omelette without breaking eggs -- but it is amazing how many eggs one can break without making a decent omelette. -- Professor Charles P. Issawi
Re: [gentoo-user] backup to a cold-swap drive
On Thu, 2010-04-29 at 16:44 +0200, Alex Schuster wrote: [snip] All my partitions are LVM volumes, so before the backup starts, I make a LVM snapshot of the partition. This way I can modify it while the backup is still in progress. hmm, never got into LVM. Sounds interesting though... [snip] I wrote a shell script to do this, so I do not have to issue a lot of commands every time I want to do the backup. I don't use too many commands, something like this in /etc/cron.daily/custom-backup: sudo /usr/bin/ionice -c 3 /usr/bin/rsync -aAx --exclude suspend_file --delete-delay --delete-excluded --partial --human-readable / /unique-mount-of-external-drive || echo external backup failed! As there are now some others using this script, adapted to their needs, I started to rewrite it in a way that it reads a config file, and no modification of the script itself is necessary. If anyone is interested, send me an email. interested! So is it on sourceforge yet ;) thanks, -- Iain Buchanan iaindb at netspace dot net dot au BOFH Excuse #418: Sysadmins busy fighting SPAM.
Re: [gentoo-user] backup to a cold-swap drive
On Fri, 2010-04-30 at 16:24 +0200, Florian Philipp wrote: Am 29.04.2010 02:38, schrieb Iain Buchanan: Hi thanks, On Wed, 2010-04-28 at 17:31 +0200, Florian Philipp wrote: [...] If you can live with just one big partition as a backup (probably with separate /boot), you should replace fstab and grub.conf on the backup medium and blacklist them from the files which you want to back up. why wouldn't I backup fstab and grub.conf as well? If my internal disk dies, I assume I'll swap them over, meaning grub and fstab will have to be the same. I think you misunderstood me or I didn't explain it correctly. I try it again: [snip] ah, NOW I get it :) [snip] Ah, I see what you mean. I've never worked with the file alteration monitor (FAM) but once evaluated inotify for some administrative purposes. AFAIK they are not scalable good enough to work on a system wide basis. For example, I think the default limit of observable files with inotify is 8192. hm, there goes that idea! Is there any kernel based watch on all file based I/O that I could queue up somehow? Just thinking aloud here. I know everything is a file, but no doubt I could watch all write operations; filter out /dev and put the rest into a file; and then use it like an rsync file-list... thanks for the tips :) rsync will at least get me going quickly. Yesterday I tried iotop to with dd - some slowness but otherwise quite nice. To reduce the performance impact, you can also use the ionice command. whoops, that's what I meant. Even with ionice, there was some noticeable delay when switching screens, opening programs, etc. More so when my RAM had been swapped from the large amount of I/O (I assume). I didn't try ionice with nice. thanks, -- Iain Buchanan iaindb at netspace dot net dot au One family builds a wall, two families enjoy it.
Re: [gentoo-user] backup to a cold-swap drive
Hi thanks, On Wed, 2010-04-28 at 17:31 +0200, Florian Philipp wrote: Can md use one internal and one external disk in a RAID 1 setup, with the external disk not always there? Any other suggestions? thanks :) md would be extremely slow because it has to rebuild/resync the complete array. so every time you unplug and re-plug the external disk, it will essentially re-copy everything? Damn, there goes that fine idea! If you can live with just one big partition as a backup (probably with separate /boot), you should replace fstab and grub.conf on the backup medium and blacklist them from the files which you want to back up. why wouldn't I backup fstab and grub.conf as well? If my internal disk dies, I assume I'll swap them over, meaning grub and fstab will have to be the same. Concerning the backup tool, I would use `rsync --delete` plus all relevant switches for permissions, times, acls, etc. If you use another tool, just make sure it doesn't put some metadata onto the backup medium and that it can delete files which no longer exist on the original medium. I was thinking of rsync, but I didn't want to do it in an hourly cron fashion, I was hoping for some gamin alteration-triggered idea. With regard to your requirement to just 'pull the cord' without umounting it: I wasn't thinking of pulling the chord without unmounting, I was thinking of the machine dying, hence leaving the disk in a non-shutdown state. thanks for the tips :) rsync will at least get me going quickly. Yesterday I tried iotop to with dd - some slowness but otherwise quite nice. -- Iain Buchanan iaindb at netspace dot net dot au Real computer scientists don't comment their code. The identifiers are so long they can't afford the disk space.
Re: [gentoo-user] backup to a cold-swap drive
Hi, On Wed, 2010-04-28 at 23:16 +0200, Frank Steinmetzger wrote: After I upgraded my laptop with an internal HDD of 500 GB, I started using my old external 500 GB drive as backup. Though of different dimensions and makers, they both have the same number of sectors. So I dd'ed the entire disk first, which gave me an exact mirror of the internal disk. I though this would be faster, because I have lots of small files in some places. I tried that, but after dd finished, I was left with strange partitions and id's that I couldn't mount. The two disks are both 160Gb with the same sector size... It might be easier to do the fdisk-ing by hand. thanks, -- Iain Buchanan iaindb at netspace dot net dot au Necessity is the plea for every infringement of human freedom. It is the argument of tyrants; it is the creed of slaves. -- William Pitt, 1783
Re: [gentoo-user] backup to a cold-swap drive
On Wed, 2010-04-28 at 23:16 +0200, Frank Steinmetzger wrote: rsync -aX --delete / /dev/backup root partition/ -a (archive) copies permissions, ownerships and the likes -X stops at file system boundaries, i.e. it will only backup the actual root partition, without other mounted file systems such as /proc, /dev and /home. actually, lower case x is --one-file-system or don't cross filesystem boundaries. Upper case X is --xattrs or preserve extended attributes :) -- Iain Buchanan iaindb at netspace dot net dot au When you don't know what to do, walk fast and look worried.
[gentoo-user] backup to a cold-swap drive
Hi, A winblows colleague said he uses a utility to backup his internal hard drive to an external disk, such that if his internal disk fails he can replace it with the external disk and continue straight away. Since I go to weird locations with unreliable power and sometimes drop my laptop I thought it should be simple to do the same in Linux. I have an external disk the same size, but now what? * I want to copy changes intelligently (ie. no dd, gparted, or Ghost4Linux). * I want to copy a specific device only (no usb keys, etc) to a specific external device. * Windows partitions can be ignored. * It doesn't matter if the copy is not unmounted properly, eg. if power is shut of without shutting down. * The external disk must be able to be absent Can md use one internal and one external disk in a RAID 1 setup, with the external disk not always there? Any other suggestions? thanks :) -- Iain Buchanan iaindb at netspace dot net dot au Better tried by twelve than carried by six. -- Jeff Cooper
Re: [gentoo-user] Udev error and how to fix it.
On Tue, 2010-03-16 at 04:59 -0500, Dale wrote: If that don't work, I may go to Firefox, which is installed anyway, and Thunderbird. From what I have read I can transfer the emails and such over from there since they are set up like Seamonkey. That's my understanding at least. I could be wrong on that. I've transferred thousands of emails between evolution, thunderbird, claws and back again, no probs (except for the time it took). I assume seamonkey shouldn't be any different (although they may all end up blank?!) -- Iain Buchanan iaindb at netspace dot net dot au Order and simplification are the first steps toward mastery of a subject -- the actual enemy is the unknown. -- Thomas Mann
Re: [gentoo-user] Udev error and how to fix it.
On Wed, 2010-03-17 at 08:56 +0100, Zeerak Mustafa Waseem wrote: On Wed, Mar 17, 2010 at 01:17:58AM +, Peter Humphrey wrote: On Tuesday 16 March 2010 17:33:13 Zeerak Mustafa Waseem wrote: usually always look to see if ... Sorry, but I'm having terrible trouble parsing this expression. Haha, no wonder. In the initial reply I had written that I left my brain somewhere. I think that illustrates it quite well :P I don't see any need for excuses, it sounds like fine common English to me, with the possible exception of a run-on if. The full sentence was I usually always look to see if Dale has been involved in a thread if HAL is mentioned -- Iain Buchanan iaindb at netspace dot net dot au In war, truth is the first casualty. -- U Thant
Re: [gentoo-user] Re: Strategy for using SAN/NAS for storage with Gentoo...
On Mon, 2010-03-15 at 09:37 -0500, Harry Putnam wrote: There was talk of opensolaris going by the wayside with the Oracle takeover of Sun... but Oracle has since announced its intention of puttin even more resources into `opensolaris' development than Sun was doing. that will kill it for sure! (ok, maybe not, but you know the mythical man month...) -- Iain Buchanan iaindb at netspace dot net dot au Life is like a sewer. What you get out of it depends on what you put into it. -- Tom Lehrer
Re: [gentoo-user] Udev error and how to fix it.
On Wed, 2010-03-17 at 10:25 -0400, Willie Wong wrote: On Wed, Mar 17, 2010 at 02:05:12PM +0100, Zeerak Mustafa Waseem wrote: I don't see any need for excuses, it sounds like fine common English to me, with the possible exception of a run-on if. I meant to use the word apology instead of excuse, but it was late for me too :) The full sentence was I usually always look to see if Dale has been involved in a thread if HAL is mentioned Ah it's just using two different words that describe seeing something :-) I like to think that my english is a little better. I mean it should have been see if or look to see whether (as far as I remember anyway :-)) Huh, the look to see part, while inelegant and repetitive, is a common colloquialism, and I don't think was the problem. I was more thrown off by usually always, which is either an oxymoron (if you take a strict view of the word usually) or redundant (if you take usually to contain always as a subset). /pedant (Looks like I only have off-topic contributions to this thread.) me too. usually always is also a colloquialism which means almost always ;) ie. not quite always, but close to it... at least it usually always means that. But hey, if we were to be that picky on this list hardly anyone would be here. That's why we have programming languages, because English is too forgiving and fuzzy! -- Iain Buchanan iaindb at netspace dot net dot au War is like love, it always finds a way. -- Bertolt Brecht, Mother Courage
Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
On Mon, 2010-02-22 at 17:37 +0100, YoYo siska wrote: yop, that was it though you wrote about /dev/hda*, which means you should be a bit more carefull if you used the IDE drivers (under ATA/ATAPI/ support, thats the CONFIG_IDE option) and disabled the CONFIG_IDE options, you have to enable it under Serial ATA (prod) and Parallel ATA (experimental) drivers (CONFIG_ATA) and also your device might get renamed to sd* instead of hd* (I don't know, I have only a cdrom, that becomes sr0 ;) yep, switch from CONFIG_IDE to Parallel ATA. And the drives will be changed from hda to sda, so be prepared with a boot disk to change fstab. -- Iain Buchanan iaindb at netspace dot net dot au The best diplomat I know is a fully activated phaser bank. -- Scotty
Re: [gentoo-user] Skype pulseaudio
On Mon, 2010-02-22 at 11:42 -0500, David wrote: Alexander Puchmayr wrote: Am Montag 22 Februar 2010 10:48:37 schrieb David Abbott: Just tried this tool, but it seems to be a complete failure. Just gives a box with connection refused, but no information what it tries to connect to. The pulseaudio-deamon itself is running, and I can connect to it via pacmd without any problem. Alex I don't use it system wide, here are the guides I used; http://forums.gentoo.org/viewtopic-t-789181-highlight-pulseaudio.html http://pulseaudio.org/wiki/PerfectSetup agreed, try and solve the pulseaudio problems first by looking at the tips on those guides. Also you might find this useful: http://share.skype.com/sites/linux/2009/09/some_explanations.html -- Iain Buchanan iaindb at netspace dot net dot au Salesman: Hello, Mr. and Mrs. Griffin. Now, I know you've been here all day, so if you'll just sign this contract without reading it I'll take your blank check, and you won't not be not loving your time-share before you know it.
Re: [gentoo-user] recovering RAID from an old server
On Sat, 2010-02-20 at 16:22 +0100, Andrea Conti wrote: AFAICT this is all you need to know -- you definitely have two software (mdraid) RAID 1 volumes: md100 with hda2, hde2 and hdg2 as members md101 with hda5, hde5 and hdg5 as members Both arrays seem to have lost a member (I guess hdc2 and hdc5 respectively). Honestly I don't know what is the point of running RAID1 volumes with four mirrors, but that seems to be the way it was configured. strange, I'm pretty sure I didn't configure it like this - however it has an inbuilt snapshot feature so maybe that's what the mirrors are for... I'm having some luck chasing up the original CDs so I think I'll try that first. thanks :) -- Iain Buchanan iaindb at netspace dot net dot au If it smells it's chemistry, if it crawls it's biology, if it doesn't work it's physics.
Re: [gentoo-user] Re: recovering RAID from an old server
On Sat, 2010-02-20 at 10:46 +0100, Francesco Talamona wrote: Should I be able to mount them automatically and let the SW RAID module sort it out or do I have to know how they're tied together beforehand? md: looking for a shared spare drive md100: no spare disk to reconstruct array! -- continuing in degraded mode md: recovery thread finished ... md: hde5 [events: 03a5]6(write) hde5's sb offset: 273024 md: hdg5 [events: 03a5]6(write) hdg5's sb offset: 273024 XFS mounting filesystem md(9,100) Ending clean XFS mount for filesystem: md(9,100) The partitions look like: 9 100 546112 md100 9 101 273024 md101 It seems it has correctly mounted its partition... Can't you find it? This is with the server recovery console, which is basically just a web page. No shell access. There's not much I can do to get at md100 and md101 (is this what software RAID devices usually appear as?) I have the feeling that you are messing it up. If I understand it correctly the server has an hardware RAID controller, that has to be managed via its drivers. I think it's software RAID. There is no RAID controller AFAICT. All 4 drives are visible to the BIOS as Primary and Secondary Master and Slaves. Another thing can come very useful: we once had a similar problem, we ended up borrowing one identical disc from another running server to put the array back online, we recovered our data, then restored the other server's array. That's a possibility given what I can find on Google, however these are few and far between, so I'd have to find someone willing to send their drive to me (or vice versa) or send me the OS, which overlandstorage doesn't like! thanks, -- Iain Buchanan iaindb at netspace dot net dot au Come quickly, I am tasting stars! -- Dom Perignon, upon discovering champagne.
Re: [gentoo-user] recovering RAID from an old server
On Sat, 2010-02-20 at 13:39 +, Stroller wrote: On 20 Feb 2010, at 04:31, Iain Buchanan wrote: On Fri, 2010-02-19 at 14:44 +, Stroller wrote: On 19 Feb 2010, at 12:15, Iain Buchanan wrote: ... Can I randomly mount partitions read-only or will this screw things up further? If this is unsafe I will have ketchup mustard on my baseball cap. er... could you translate that? How about dead horse on my baggy green? http://idioms.thefreedictionary.com/I'll+eat+my+hat yeah, I got that, I was just picking on your use of ketchup baseball. Over here it's tomatoe sauce (dead horse) and cricket (baggy greens) :) Most of my jokes need explaining %-) I just don't see how you can break anything *as long as* you don't let the system write anything to the disks. How can read-only be unsafe? Perhaps something to do with the superblock or last mount time or something? I don't know! I know that mounting a drive while a system is hibernated, even ro, will kill kittens. One might be paranoid enough to clone images of the drive before proceeding, however. I don't have enough spare... My one concern is over how you know this system uses software RAID. You know that EIDE hardware RAID was available, right? I'm sure this would rarely be available built-in to the motherboard. well there appears to be no RAID controller, unless it's onboard, but as I mentioned to Francessco the BIOS can see all drives, so can gentoo minimal... I've since found that the OS is in flash RAM, and only the help files are on disk, so maybe I have bigger problems if I can't boot :( I hope to get a copy of Guardian OS somehow... thanks, -- Iain Buchanan iaindb at netspace dot net dot au Go ahead, bake my quiche -- Magrat instructs the castle cook (Terry Pratchett, Lords and Ladies)
Re: [gentoo-user] How should I clean up my broken system?
On Sat, 2010-02-20 at 12:08 +, Mick wrote: On Sunday 14 February 2010 11:32:12 Neil Bothwick wrote: On Sun, 14 Feb 2010 12:03:40 +0100, Volker Armin Hemmann wrote: On a more serious note, conf-update automatically merges trivial changes, so any configs you ran at the default, which is probably the majority, won't be flaged at all. so does cfg-update Every now and then, someone mentions cfg-update - usually you :) - and I give it another try, but I don't really get on with it and always go back to conf-update. There's nothing specific wrong with it, I just prefer (or am used to) conf-update. I expect that if I were still using etc-update or dispatch-conf I would welcome it with open arms though. You make me feel out of touch with Gentoo! Is dispatch-conf and etc-update that bad then? out of touch would be rolling your own config update tool, like me ;) It hasn't changed much since I started using Gentoo... -- Iain Buchanan iaindb at netspace dot net dot au In any formula, constants (especially those obtained from handbooks) are to be treated as variables.
RE: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
On Sat, 2010-02-20 at 12:44 -0500, James Homuth wrote: -Original Message- From: Hung Dang [mailto:hungp...@gmail.com] Sent: February 19, 2010 9:18 PM To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist... You could see your HDD because the boot CD have enabled all drivers. Could you double check if you have configured the kernel for your HDD correctly? The kernel was not updated or changed since the laptop's last fully successful boot. And, at that time, it was configured to acknowledge my HDD. thanks for bottom posting, but I'm having a hard time differentiating between your post and the one your responding to, because they're on the same level. I guess you're using Outlook because you can't boot properly? In Outlook you can tell it to prepend the standard before the original message in the menu somewhere. So back to your problem - you can boot but just how far? Can you log into X? What were the updates you applied? (Please list them all). What boot messages do you see? How do you log in? Type `fdisk -l` and post the output. thanks, -- Iain Buchanan iaindb at netspace dot net dot au Look, this is a man. He's got great numbers. He talks about numbers. I'm beginning to think not only did he invent the Internet, but he invented the calculator. George W. Bush October 3, 2000 First Presidential Debate. Boston, Massachusetts.
Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
On Fri, 2010-02-19 at 00:49 -0500, James Homuth wrote: I performed a bit of an update on my laptop a day or two ago, and after reboot, I lost the ability to do anything with /dev/hda*. I currently have 0 swap space, and according to stat, ls etc, they don't exist. But, booting to an install CD I burned for diagnostic purposes, it sees them just fine. Also, and this is the strange part. It boots no problem, so the OS is able to mount at least /dev/hda3, even though from the command line I'm not seeing it. I'm probably missing something completely dead obvious (it's after midnight here and all), and Google's turning up nothing, so if someone could kindly slap me in the face with it, that'd be appreciated. Thanks either way for whatever help comes my way. The first thing that jumps to my mind is you have an older initrd that has your HD drivers in it (such as ATA), but the newer kernel you've probably just built (is that what you mean by a bit of an update?) doesn't. Check for an initrd, and tell us what a bit of an update means :) You could also compare config files between your rescue CD and your system, if you can find it! HTH, -- Iain Buchanan iaindb at netspace dot net dot au Diplomacy is the art of saying nice doggie until you can find a rock. -- Wynn Catlin
Re: [gentoo-user] Can't see /dev/hda1,2,3 but I know they exist...
On Fri, 2010-02-19 at 09:24 +, Stroller wrote: I would try to help, but your text is too small. now, now, be nice ;) This is why you should post in plain-text format. he did, you're obviously favouring the html part. James: Content-Type: multipart/alternative; boundary==_NextPart_000_0612_01CAB0FD.6FF40D00 Stroller: Content-Type: multipart/alternative; boundary=Apple-Mail-27-501489522 Stroller. -- Iain Buchanan iaindb at netspace dot net dot au A debugged program is one for which you have not yet found the conditions that make it fail. -- Jerry Ogdin
Re: [gentoo-user] How to get text only console on livecd install
On Fri, 2010-02-19 at 05:38 -0600, Harry Putnam wrote: How can I force a text only console when installing from live cd? ... I think it's something to do with nox but I'm not sure exactly how. Either that or start using the minimal boot CD's - only about 100MB and no X :) -- Iain Buchanan iaindb at netspace dot net dot au Our vision is to speed up time, eventually eliminating it. -- Alex Schure
[gentoo-user] recovering RAID from an old server
Hi all, I'm trying to recover some data from and old Snap Server 4200 (c2003) belonging to a local charity. It has 4 80Gb IDE drives, and runs some sort of Linux kernel with their (snap's) own applications on top. It won't boot to the Snap OS (Guardian OS 3.1.079 - quite an old one, major version 4 and 5 have succeeded it) but it does boot to a recovery console with a simple web page showing some details. From my google searches the OS resides on the disks (perhaps just the first one?) but I don't know where this recovery console is coming from. I've managed to put Gentoo 2008.0_beta2 minimal (because I happened to have the iso) on a USB key and made it bootable. It boots and fdisk -l shows me the four drives and some partitions. (Ubuntu wouldn't even boot ;) I don't have the original CD's with the OS recovery on it, nor can I download it (upgraded versions are $600+). I can't even find any *ahem* backup versions online in the usual channels. OK so the question: How can I recover the RAID data? It's RAID5 (probably) with 4 disks. Can I just run some up-to-date raid tools and mount the drives or do I have to get exactly the same kernal and setup? I don't have much experience with RAID. (It's software raid - no card just 2 IDE channels with master and slave). Once I've recovered the data I don't really care what goes on it - there are some great free NAS OS's, but it's mounting the RAID partition that I'm not sure about. Can I randomly mount partitions read-only or will this screw things up further? thanks for any suggestions, -- Iain Buchanan iaindb at netspace dot net dot au Don't fear the pen. When in doubt, draw a pretty picture. --Baker's Third Law of Design.
Re: [gentoo-user] recovering RAID from an old server
On Fri, 2010-02-19 at 14:44 +, Stroller wrote: On 19 Feb 2010, at 12:15, Iain Buchanan wrote: ... Can I randomly mount partitions read-only or will this screw things up further? If this is unsafe I will have ketchup mustard on my baseball cap. er... could you translate that? How about dead horse on my baggy green? Should I be able to mount them automatically and let the SW RAID module sort it out or do I have to know how they're tied together beforehand? The message from the kernel is: Linux version 2.4.19-snap (r...@buildsys) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 Tue Jul 13 20:24:35 PDT 2004 and later there's output from md which is (I assume) the linux software raid module (this is a grep, so there are other messages in between): md: linear personality registered as nr 1 md: raid0 personality registered as nr 2 md: raid1 personality registered as nr 3 md: raid5 personality registered as nr 4 md: spare personality registered as nr 8 md: md driver 0.91.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. md: bindhdg2,1 md: bindhde2,2 md: bindhda2,3 md: hda2's event counter: 039d md: hde2's event counter: 039d md: hdg2's event counter: 039d md: md100: raid array is not clean -- starting background reconstruction md: RAID level 1 does not need chunksize! Continuing anyway. md100: max total readahead window set to 124k md100: 1 data-disks, max readahead per data-disk: 124k raid1: md100, not all disks are operational -- trying to recover array raid1: raid set md100 active with 3 out of 4 mirrors md: updating md100 RAID superblock on device md: hda2 [events: 039e]6(write) hda2's sb offset: 546112 md: recovery thread got woken up ... md: looking for a shared spare drive md100: no spare disk to reconstruct array! -- continuing in degraded mode md: recovery thread finished ... md: hde2 [events: 039e]6(write) hde2's sb offset: 546112 md: hdg2 [events: 039e]6(write) hdg2's sb offset: 546112 md: bindhdg5,1 md: bindhde5,2 md: bindhda5,3 md: hda5's event counter: 03a4 md: hde5's event counter: 03a4 md: hdg5's event counter: 03a4 md: md101: raid array is not clean -- starting background reconstruction md: RAID level 1 does not need chunksize! Continuing anyway. md101: max total readahead window set to 124k md101: 1 data-disks, max readahead per data-disk: 124k raid1: md101, not all disks are operational -- trying to recover array raid1: raid set md101 active with 3 out of 4 mirrors md: updating md101 RAID superblock on device md: hda5 [events: 03a5]6(write) hda5's sb offset: 273024 md: recovery thread got woken up ... md: looking for a shared spare drive md101: no spare disk to reconstruct array! -- continuing in degraded mode md: looking for a shared spare drive md100: no spare disk to reconstruct array! -- continuing in degraded mode md: recovery thread finished ... md: hde5 [events: 03a5]6(write) hde5's sb offset: 273024 md: hdg5 [events: 03a5]6(write) hdg5's sb offset: 273024 XFS mounting filesystem md(9,100) Ending clean XFS mount for filesystem: md(9,100) The partitions look like: 9 100 546112 md100 9 101 273024 md101 34 0 78150744 hdg 34 1 16041 hdg1 34 2 546210 hdg2 34 3 1 hdg3 34 4 76656636 hdg4 34 5 273104 hdg5 34 6 273104 hdg6 33 0 78150744 hde 33 1 16041 hde1 33 2 546210 hde2 33 3 1 hde3 33 4 76656636 hde4 33 5 273104 hde5 33 6 273104 hde6 22 0 78150744 hdc 22 1 16041 hdc1 22 2 546210 hdc2 22 3 1 hdc3 22 4 76656636 hdc4 22 5 273104 hdc5 22 6 273104 hdc6 3 0 78150744 hda 3 1 16041 hda1 3 2 546210 hda2 3 3 1 hda3 3 4 76656636 hda4 3 5 273104 hda5 3 6 273104 hda6 many thanks! -- Iain Buchanan iaindb at netspace dot net dot au By golly, I'm beginning to think Linux really *is* the best thing since sliced bread. -- Vance Petree, Virginia Power
Re: [gentoo-user] recovering RAID from an old server
On Sat, 2010-02-20 at 14:01 +0930, Iain Buchanan wrote: On Fri, 2010-02-19 at 14:44 +, Stroller wrote: On 19 Feb 2010, at 12:15, Iain Buchanan wrote: ... Can I randomly mount partitions read-only or will this screw things up further? OK, I've randomly mounted partitions, and now I'm stuck because I don't know what the original /etc/raidtab was. /proc/mdstat just says: Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] unused devices: none which looks like nothing is used in any RAID set. Autodetect seems not to be working, perhaps because the ID wasn't set to 0xFD or 253. Each drive has identical partitions: Device Boot Start End Blocks Id System /dev/hda1 * 1 2 16041+ 83 Linux /dev/hda2 3 70 546210 83 Linux /dev/hda3 71 138 5462105 Extended /dev/hda4 139968276656636 83 Linux /dev/hda5 71 104 273104+ 83 Linux /dev/hda6 105 138 273104+ 83 Linux and /dev/hd[aceg]1 is /boot on each one. all the other /dev/hd[aceg][2-6] mount says: mount: unknown filesystem type 'linux_raid_member obviously this is the raid. But how do I get to it? All /boots mount ok and are readable with some kernel files and stuff, however /dev/hdc1 give some errors: hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error } hdc: dma_intr: error=0x40 { UncorrectableError }, LBAsect=585, sector=575 hdc: possibly failed opcode: 0x25 end_request: I/O error, dev hdc, sector 575 __ratelimit: 22 callbacks suppressed Buffer I/O error on device hdc1, logical block 528 Buffer I/O error on device hdc1, logical block 529 Buffer I/O error on device hdc1, logical block 530 Buffer I/O error on device hdc1, logical block 531 Buffer I/O error on device hdc1, logical block 532 Buffer I/O error on device hdc1, logical block 533 Buffer I/O error on device hdc1, logical block 534 Buffer I/O error on device hdc1, logical block 535 Buffer I/O error on device hdc1, logical block 536 Buffer I/O error on device hdc1, logical block 537 so it looks like there's some problems with hdc. Are there any disk hardware testing tools on the gentoo minimal live cd? thanks, -- Iain Buchanan iaindb at netspace dot net dot au It's simply unbelievable how much energy and creativity people have invested into creating contradictory, bogus and stupid licenses... --- Sven Rudolph about licences in debian/non-free.
Re: [gentoo-user] [OT] Screen sharing software or similar
On Thu, 2010-02-18 at 14:15 +0100, Renat Golubchyk wrote: Hi all! I'm looking for a solution to the following problem. A lot of people have answered already, but you may be interested to know the current linux release of skype 2.1.0.81 lets you share part or all of your desktop. It's view only, and it replaces the webcam stream with your desktop - pretty neat. For 2-way desktop interaction we often use vnc. Use a vnc server and client capable of the tight extensions, and don't forget to use them: vncviewer -encodings tight host or vncviewer -via somehost -encodings tight localhost would ssh via somehost. Use localhost if you can ssh directly to the box, or the actual hostname accessible via 'somehost' if you have to go via a gateway. I use net-misc/tightvnc. If you can ssh to the box, you can vnc to it. You could run skype as well just for the audio. HTH, -- Iain Buchanan iaindb at netspace dot net dot au While it may be true that a watched pot never boils, the one you don't keep an eye on can make an awful mess of your stove. -- Edward Stevenson
Re: [gentoo-user] Re: [OT] Choice of Photo gallery tools
On Thu, 2010-02-18 at 08:50 -0600, Harry Putnam wrote: I'll look into JAlbum One main requirement is that user/viewer be able to download full resolution original photos. No commercial (shopping cart) type stuff is required just a family operation. from memory I did 3 sizes - the thumbnail, an intermediate size suitable for screen viewing after clicking on the thumbnail, and then a third size which was the original image size. In some cases I left the original size out to save space. I gave these out to family as well - some as CD's and some as zip files. In either case you just had to open index.htm and the rest was done (as mentioned, so long as you have java in your browser). -- Iain Buchanan iaindb at netspace dot net dot au A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of idea. -- John Ciardi
Re: [gentoo-user] [OT] Choice of Photo gallery tools
On Wed, 2010-02-17 at 17:14 -0600, Harry Putnam wrote: I wondered if anyone here can speak on the various photo and gallery generating tools available on linux. I have photos on smugmug.com and wondered if there is do it yourself tools that come anywhere close the sophisticated handling they do. never tried smugmug and don't know what your requirements are, but I push JAlbum. You can create some pretty good looking albums and run them from CD / HD / webserver (I especially like the fact that you don't need a webserver). It can synchronise to your website. There are a plethora of options and free + commercial skins, plus plug-ins to let you sell them online. Unfortunately it's just the generation tool, you have to find your own hosting. -- Iain Buchanan iaindb at netspace dot net dot au My education message will resignate amonst all parents. George W. Bush January 19, 2000 Quoted in the New York Post.
Re: [gentoo-user] Uh Oh!! Made the contents of my directory unreadable
On Fri, 2010-02-12 at 01:58 +0800, ubiquitous1980 wrote: With this command or similar, I made my directory and one file in / unreadable: for entry in $(find $HOME); do $entry found; done er... you just executed everything in your home directory and piped the output to a file... I think you wanted do echo $entry? or the simpler find $HOME found? anyway, it shouldn't have corrupted your filesystem, but it looks like it did. Any ideas on how to fix this? you probably want to shutdown and fsck your filesystem. Then, start looking for your backups :( -- Iain Buchanan iaindb at netspace dot net dot au Even with nougat you can have a perfect moment. -- (Terry Pratchett, Thief of Time)
Re: [gentoo-user] Broadcom firmware doesn't work with 2.6.32-r4
On Thu, 2010-02-11 at 08:48 -0800, Kaddeh wrote: Check out http://bugs.gentoo.org/show_bug.cgi?id=304265 and then update to 2.6.32-r5 thanks, that wasn't there when I started looking :) I'll see what they find (in the mean time, Go Flaky Wireless!) -- Iain Buchanan iaindb at netspace dot net dot au Whatever is not nailed down is mine. Whatever I can pry up is not nailed down. -- Collis P. Huntingdon, railroad tycoon
Re: [gentoo-user] How the HAL are you supposed to use these files?
On Fri, 2010-02-12 at 00:21 +0100, Volker Armin Hemmann wrote: oh yeah, it is just a great thing that the mail app constantly tries to reach servers and then throws errors. Not like this needs zero cpu cycles and zero ram. It is so much worse that the mail app knows that there is nothing to do and that it can sleep on... sarcasm worse than constantly tries to reach servers and then throws errors, evolution will stop you from closing it down or changing the online / offline state, unless you send it a SIGKILL. Very annoying. That's why I started using NetworkManager and the networkmanager USE flag for evolution... -- Iain Buchanan iaindb at netspace dot net dot au You! What PLANET is this! -- McCoy, The City on the Edge of Forever, stardate 3134.0
Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far
On Wed, 2010-02-10 at 06:59 +, Neil Walker wrote: Iain Buchanan wrote: I'm starting to stray OT here, but I'm considering a second-hand Adaptec 2420SA - this is real hardware raid right? It's a PCI-X card (not PCI-E). Are you sure that's right for your system? yes, I have an old server tower with everything but the disks (or RAID controller), so it needs PCI-X. thanks, -- Iain Buchanan iaindb at netspace dot net dot au Three minutes' thought would suffice to find this out; but thought is irksome and three minutes is a long time. -- A.E. Houseman
Re: [gentoo-user] How the HAL are you supposed to use these files?
On Wed, 2010-02-10 at 08:29 -0600, Dale wrote: chrome://messenger/locale/messengercompose/composeMsgs.properties: On Wed, 10 Feb 2010 07:57:57 -0500, Walter Dnes wrote: For example, Network Manager uses D-Bus to tell programs when your Internet connection is available and not, so your mail client goes into offline mode rather than pointlessly trying to access your mailbox. KDE4 uses it quite extensively, ust as KDE3 used DCOP. So that's why when I am downloading something it doesn't check my emails. I was always curious about that. that shouldn't be the case - what email client are you using? Evolution supports this (with the networkmanager USE flag*) but it goes offline when all your interfaces are down, not just in use like heavy downloading. * actually the USE flag (networkmanager instead of dbus) and the comments on it suggest that it talks directly to NetworkManager and not via dbus, but I don't actually know. $ equery u evolution ... - + networkmanager : Allows Evolution to automagically toggle online/offline mode by talking to net-misc/networkmanager and getting the current network state -- Iain Buchanan iaindb at netspace dot net dot au She always believed in the old adage -- leave them while you're looking good. -- Anita Loos, Gentlemen Prefer Blondes
Re: [gentoo-user] How the HAL are you supposed to use these files?
On Wed, 2010-02-10 at 22:54 -0600, Dale wrote: chrome://messenger/locale/messengercompose/composeMsgs.properties: what _is_ that?! (Don't tell me, if we ignore it maybe it will go away) On Wed, 2010-02-10 at 08:29 -0600, Dale wrote: I use Seamonkey 2 right now. You may be able to tell that by that pesky line at the top. It appears Seamonkey has a roach or two rambling around in there. Anyway, maybe it is just that the download is making it slow enough that it just cancels the request when it is busy. I dunno. I have noticed tho that I don't get emails for a while when I am downloading something large but if I hit the 'get messages' button, then I get a lot of messages that appear to be time stamped from a good while ago. Maybe this is just a coincidence or something. maybe. It could be that Seamonkey is detecting your network usage somehow, like azureus can, but I would think that emails are important and I doubt would be subject to this idea. Maybe the timestamps are when the message was sent but it took some time to get to you? (happens sometimes). Could also be the senders clock is wrong... Otherwise I'd get a can of bug-spray, spray your cat5 and phone cables and see what falls out ;) -- Iain Buchanan iaindb at netspace dot net dot au Tart words make no friends; a spoonful of honey will catch more flies than a gallon of vinegar. -- B. Franklin
[gentoo-user] Broadcom firmware doesn't work with 2.6.32-r4
Hi collective, I just upgraded from linux-2.6.32-tuxonice-r1 to r4 and my network card no longer works. It is Broadcom Corporation NetXtreme BCM5756ME Gigabit Ethernet PCI Express and previously I've downloaded firmware from http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware-from-kernel.git;a=tree;f=tigon and put it in /lib/firmware/tigon The config option is tg3, built into the kernel. dmesg shows: $ dmesg | grep -i tg3 tg3.c:v3.102 (September 1, 2009) tg3 :09:00.0: PCI INT A - GSI 17 (level, low) - IRQ 17 tg3 :09:00.0: setting latency timer to 64 tg3 :09:00.0: firmware: requesting tigon/tg3_tso.bin tg3: tg3_load_firmware_cpu: Trying to load TX cpu firmware on eth0 which is 5705. tg3: tg3_load_firmware_cpu: Trying to load TX cpu firmware on eth0 which is 5705. I don't know if the last two lines are normally there or not. The firmware at the above link hasn't changed (according to cksum). Google searches only produce the source code, which is pretty but doesn't help. The error detection around the print message hasn't changed since -r1. Any ideas? I'm stuck using wireless, but that's dropping in and out all the time! thanks, -- Iain Buchanan iaindb at netspace dot net dot au Experience is that marvelous thing that enables you recognize a mistake when you make it again. -- Franklin P. Jones
Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far
On Tue, 2010-02-09 at 08:47 +0100, J. Roeleveld wrote: I now only need to figure out the best way to configure LVM over this to get the best performance from it. Does anyone know of a decent way of figuring this out? I got 6 disks in Raid-5. why LVM? Planning on changing partition size later? LVM is good for (but not limited to) non-raid setups where you want one partition over a number of disks. If you have RAID 5 however, don't you just get one large disk out of it? In which case you could just create x partitions. You can always use parted to resize / move them later. IMHO recovery from tiny boot disks is easier without LVM too. -- Iain Buchanan iaindb at netspace dot net dot au Failure is not an option -- it comes bundled with Windows.
Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far
On Tue, 2010-02-09 at 13:34 +, Neil Bothwick wrote: On Tue, 9 Feb 2010 12:46:40 +, Stroller wrote: With the RAID, you could fail one disk, repartition, re-add it, rinse and repeat. But that doesn't take care of the time issue. Aren't you thinking of LVM, or something? No. The very nature of RAID is redundancy, so you could remove one disk from the array to modify its setup then replace it. so long as you didn't have any non-detectable disk errors before removing the disk, or any drive failure while one of the drives were removed. And the deterioration in performance while each disk was removed in turn might take more time than its worth. Of course RAID 1 wouldn't suffer from this (with 2 disks)... -- Iain Buchanan iaindb at netspace dot net dot au Keep on keepin' on.
Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far
On Tue, 2010-02-09 at 20:37 +0100, J. Roeleveld wrote: Don't get me started on those ;) The reason I use Linux Software Raid is because: 1) I can't afford hardware raid adapters 2) It's generally faster then hardware fakeraid I'm starting to stray OT here, but I'm considering a second-hand Adaptec 2420SA - this is real hardware raid right? If I'm buying drives in the 1Tb size - does this 4k issue affect hardware RAID and how do you get around it? (Never set up a HW RAID card before) thanks, -- Iain Buchanan iaindb at netspace dot net dot au You know you're using the computer too much when: you count from zero all the time. -- Stormy Eyes
Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far
On Tue, 2010-02-09 at 14:54 -0800, Mark Knecht wrote: On Tue, Feb 9, 2010 at 1:13 PM, Frank Steinmetzger war...@gmx.de wrote: When I use parted on the drives, it says (both the old external and my 2 months old internal): Sector size (logical/physical): 512B/512B So no speedup for me then. :-/ so does mine :) Frank, As best I can tell so far none of the Linux tools will tell you that the sectors are 4K. I had to go to the WD web site and find the actual drive specs to discover that was true. however if you use dmesg: $ dmesg | grep ata ata1: SATA max UDMA/133 irq_stat 0x00400040, connection status changed irq 17 ata2: DUMMY ata3: SATA max UDMA/133 abar m2...@0xf6ffb800 port 0xf6ffba00 irq 17 ioatdma: Intel(R) QuickData Technology Driver 4.00 ata3: SATA link down (SStatus 0 SControl 300) ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) ata1.00: ATA-7: ST9160823ASG, 3.ADD, max UDMA/133 ata1.00: 312581808 sectors, multi 8: LBA48 NCQ (depth 31/32) ... you can look up your drive model number (in my case ST9160823ASG) and find out the details. (That's a Seagate Momentus 160Gb with actual 512 byte sectors). saves having to open up your laptop / pc if you didn't order the drive separately or you've forgotten. -- Iain Buchanan iaindb at netspace dot net dot au polygon: Dead parrot.
Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far
On Tue, 2010-02-09 at 17:27 -0800, Mark Knecht wrote: On Tue, Feb 9, 2010 at 4:31 PM, Iain Buchanan iai...@netspace.net.au wrote: On Tue, 2010-02-09 at 14:54 -0800, Mark Knecht wrote: Frank, As best I can tell so far none of the Linux tools will tell you that the sectors are 4K. I had to go to the WD web site and find the actual drive specs to discover that was true. however if you use dmesg: Consider as an alternative hdparm dash capital eye. Not sure why you spelt it, but tee hach ae en kay ess! I knew there was another way somewhere, but it didn't spring to mind immediately. -- Iain Buchanan iaindb at netspace dot net dot au Actually, my goal is to have a sandwich named after me.
Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far
On Wed, 2010-02-10 at 07:31 +0100, Volker Armin Hemmann wrote: On Mittwoch 10 Februar 2010, Iain Buchanan wrote: so long as you didn't have any non-detectable disk errors before removing the disk, or any drive failure while one of the drives were removed. And the deterioration in performance while each disk was removed in turn might take more time than its worth. Of course RAID 1 wouldn't suffer from this (with 2 disks)... Raid 6. Two disks can go down. not that I know enough about RAID to comment on this page, but you might find it interesting: http://www.baarf.com/ specifically: http://www.miracleas.com/BAARF/RAID5_versus_RAID10.txt -- Iain Buchanan iaindb at netspace dot net dot au The executioner is, I hear, very expert, and my neck is very slender. -- Anne Boleyn
Re: [gentoo-user] How the HAL are you supposed to use these files?
On Mon, 2010-02-08 at 22:20 +, Alan Mackenzie wrote: Hi, Gentoo! OH HAI! [snip to the crux:] Can this new-style fragmented XML configuration do anything that a good old-fashioned, human-readable and compact xorg.conf can't? If so, what? What am I missing here? presumably you're missing the previous conversation on this topic: http://thread.gmane.org/gmane.linux.gentoo.user/225223/focus=225223 Please, somebody, tell me all this HAL stuff is straightforwardly explained in an easily accessible Gentoo document, so that I can hang my head in shame and apologise for the noise! ;-) isn't it just done for you? $ slocate 10-input-policy.fdi /usr/share/hal/fdi/policy/10osvendor/10-input-policy.fdi i...@orpheus ~ $ equery belongs /usr/share/hal/fdi/policy/10osvendor/10-input-policy.fdi * Searching for /usr/share/hal/fdi/policy/10osvendor/10-input-policy.fdi ... sys-apps/hal-0.5.14-r2 (/usr/share/hal/fdi/policy/10osvendor/10-input-policy.fdi) so why are you copying these files by hand? -- Iain Buchanan iaindb at netspace dot net dot au A university faculty is 500 egotists with a common parking problem.
[gentoo-user] severe tearing and system lockup
Hi all, I've had this problem with various nvidia-drivers and never been able to track it down. AFAIR it only happens during certain (one?) xscreensaver hack. One of the 3d ones, but not necessarily one named GL* When the hack starts, I see multiple tears every 1-2cm (10-15 in all), each one offset to the right by the same amount. The colours look inverted, or neon. The screen is frozen. I can ssh in and initiate a shutdown, although it doesn't complete; or I can use the magic sysrq key. When the shutdown locks up, I can't use sysrq. Perhaps this is related, but when I run MoebiusGears with the settings maxed I can get performance like this: FPS: 220 Load: 100 Polys: 12000+ but sometimes on a different instance the FPS drops drastically to 90. Don't know why. I have: nVidia Quadro FX 1600M (laptop) 2.6.32-tuxonice-r1 x11-drivers/nvidia-drivers-190.53-r1 x11-wm/compiz-0.8.4 x11-base/xorg-server-1.7.4 any ideas? thanks, -- Iain Buchanan iaindb at netspace dot net dot au Harp not on that string. -- William Shakespeare, Henry VI
Re: [gentoo-user] mysterious syslog message .
On Thu, 2010-02-04 at 09:15 +, Neil Bothwick wrote: On Thu, 04 Feb 2010 10:51:18 +0930, Iain Buchanan wrote: True, it's been on todo for a while. It's no longer an issue for me now as I use a Mi-Fi 3G modem, which connects to the computer via WiFi instead of having a dongle sticking out the side waiting to be knocked off. And how do you power it on the road? Much more hungry to have 2x wifi going than one usb 3G modem (imho) The Mi-Fi is self powered, so the laptop's power requirements are exactly the same as when using any other wifi connection. but more than when just using 3G with you're wifi off I bet... Not that I know how much power my wireless card uses. It also has the advantage that you can connect more than one computer through it. and the disadvantage that it's open to hackers... don't get me wrong - I looked at the mifi and it looks pretty cool (about the size of eight stacked credit cards) I'm just saying... You can send dbus messages from the command line you just need to know what to send to put Evolution offline. Not using Evolution, I wouldn't know, but you may not need dbus. At least with Claws, I can just run claws-mail --offline to put the running instance in offline mode. unfortunately evolution --offline opens a new instance of evolution and puts _that_ in offline mode... Time to look at the source. -- Iain Buchanan iaindb at netspace dot net dot au Every journalist has a novel in him, which is an excellent place for it.
Re: [gentoo-user] OT: DLNA saga
On Thu, 2010-02-04 at 13:55 +, James wrote: Hello Folks, In a previous thread I was curious about DLNA and anyone's experiences with it. DLNA is definitely a new MicroSoft Infection! As it turns out, a very bright (savant) EE friend of mine shared his recent experience with DLNA: QUOTE: [interesting story] end rant. END/QUOTE I just Don't Get It(TM). Being an embedded programmer, it is so friggin cheap and easy to chuck on a TTL-USB chip with drivers available for just about anything. Then you have usb-serial (or plain old serial if you want). Plonk your own version of a tiny binary protocol on it an voila! Why manufacturers crap around with complicated high-level non-compliant non-standards is beyond me. end rant :) -- Iain Buchanan iaindb at netspace dot net dot au It's now the GNU Emacs of all terminal emulators. -- Linus Torvalds, regarding the fact that Linux started off as a terminal emulator
Re: [gentoo-user] mysterious syslog message .
On Wed, 2010-02-03 at 09:37 +, Neil Bothwick wrote: On Wed, 03 Feb 2010 08:57:19 +0930, Iain Buchanan wrote: b. use wicd instead, which is decidedly not a piece of shit I had a look at that, but it doesn't do 2 things that I use NetworkManager for: 1. mobile broadband (essential for on the road) True, it's been on todo for a while. It's no longer an issue for me now as I use a Mi-Fi 3G modem, which connects to the computer via WiFi instead of having a dongle sticking out the side waiting to be knocked off. And how do you power it on the road? Much more hungry to have 2x wifi going than one usb 3G modem (imho) and many netbooks are integrating them so you won't have the dongle sticking out any more. 2. NetworkManager sends dbus messages that evolution uses to toggle its online / offline state. I was sick of forever waiting for evolution to time out because I'd gone offline. (Granted, you may think evolution is another POS, but it does certain things that no other mail client can do, but that's another story) Wicd can run any command or script you want before and after going on and offline. you're suggestions on exactly what script to run to tell the current evo process to go offline immediately is welcome :) I couldn't figure it out, but no doubt theres some way I could emulate the dbus message from NetworkManager... -- Iain Buchanan iaindb at netspace dot net dot au America: born free and taxed to death.
Re: [gentoo-user] mysterious syslog message .
On Wed, 2010-02-03 at 18:57 +0200, Alan McKinnon wrote: On Wednesday 03 February 2010 01:27:19 Iain Buchanan wrote: I appreciate the humour, but so far for me, it's Just Worked(TM). Even with this log file annoyance, it's still working. You're the lucky one :-) nm seems to work OK on the RedHats and SuSEs of this world, I've not seen many folk get it work smoothly on Gentoo Wow, I must remember to buy a lottery ticket on the way home :) Seriously, it was just emerge and go! I found a post that suggested in fact iwlagn wasn't reloading properly after a suspend, so I've added UnloadModules iwlagn to /etc/hibernate/common.conf and so far I haven't seen the spurious log messages (cross my fingers). Unfortunately, that sounds all too realistic. I gave up trying to use suspend some time ago after battling with wirelss and graphics hardware that wouldn't suspend/resume reliably. But with 4G of RAM here, I find it doesn't take much longer to power down/cold start than suspend/resume really? 4G RAM, Core 2 Duo T9500 @ 2.60GHz here, and hibernate is much faster. Do you have an SSD? Resuming with gnome, compiz, firefox, etc. already loaded is supremely better than my boot up AND log-in time otherwise. -- Iain Buchanan iaindb at netspace dot net dot au Pets are always a great help in times of stress. And in times of starvation too, o'course. -- (Terry Pratchett, Small Gods)
Re: [gentoo-user] mysterious syslog message .
On Wed, 2010-02-03 at 00:05 +0200, Alan McKinnon wrote: On Tuesday 02 February 2010 04:06:14 Iain Buchanan wrote: The 50k of messages all look like this: That's definitely not right. Even with full debugging enabled no app should emit that amount of logs. and yet with debugging disabled, there's no cpu usage, so perhaps there's just a problem with my syslog-ng rules? Seeing as we are dealing with networkmanager with it's long history of being hard to deal with, I recommend you a. recognize the truth - that it is a piece of shit I appreciate the humour, but so far for me, it's Just Worked(TM). Even with this log file annoyance, it's still working. b. use wicd instead, which is decidedly not a piece of shit I had a look at that, but it doesn't do 2 things that I use NetworkManager for: 1. mobile broadband (essential for on the road) 2. NetworkManager sends dbus messages that evolution uses to toggle its online / offline state. I was sick of forever waiting for evolution to time out because I'd gone offline. (Granted, you may think evolution is another POS, but it does certain things that no other mail client can do, but that's another story) I found a post that suggested in fact iwlagn wasn't reloading properly after a suspend, so I've added UnloadModules iwlagn to /etc/hibernate/common.conf and so far I haven't seen the spurious log messages (cross my fingers). :-) thanks, -- Iain Buchanan iain at pcorp dot com dot au This is the tomorrow you worried about yesterday. And now you know why.