Re: [gentoo-user] RAID help
On Tue, Oct 15, 2013 at 2:34 AM, Mick michaelkintz...@gmail.com wrote: Hi All, I haven't had to set up a software RAID for years and now. I want to set up two RAID 1 arrays on a new file server to serve SBM to MSWindows clients. The first RAID1 having two disks, where a multipartition OS installation will take place. The second RAID1 having two disks for a single data partition. From what I recall I used mdadm with --auto=mdp, to create a RAID1 from 2 disks, before I used fdisk to partition the new /dev/md0 as necessary. All this is lost in the fog of time. Now I read that these days udev names the devices/partitions, so I am not sure what the implication of this is and how to proceed. What is current practice? Create multiple /dev/mdXs for the OS partitions I would want and then stick a fs on each one, or create one /dev/md0 which thereafter is formatted with multiple partitions? Grateful for any pointers to resolve my confusion. One of the best resources is the kernel RAID wiki: https://raid.wiki.kernel.org/
[gentoo-user] vmware-player cannot start any virtual machines [solved]
Hi, After upgrading to nvidia-drivers-331.13 I could no longer start any virtual machines in vmware-player (version 5.0.2.1031769). It would either close the vmware player application immediately without any message, or would tell me The virtual machine is busy. No combination of rebuilding vmware modules, rebooting, moving virtual machines, etc. would work. Finally I considered what has changed recently, and identified nvidia-drivers. Downgrading it back down to version 325.15 made everything start working normally again. Just thought I would post here in case anyone else runs into the same problem. Thanks, Paul
Re: [gentoo-user] emerge --sync issue on only one comp on LAN
On Wed, Oct 2, 2013 at 4:51 PM, Alan McKinnon alan.mckin...@gmail.com wrote: On 02/10/2013 19:37, Paul Hartman wrote: On Tue, Oct 1, 2013 at 10:45 AM, Alan McKinnon alan.mckin...@gmail.com wrote: On 01/10/2013 17:17, Greg Turner wrote: Rsync mirrors don't grow on trees, man. People pay good money to provide that service to us. You should seriously be embarrassed to have posted this. Really? Then you can all use mine with the greatest of pleasure: SYNC=rsync://ftp.is.co.za/gentoo-portage I have the NetOps team BEGGING me weekly to try and generate more traffic out of our network going international. The in-out ratio on the peering links is seriously screwed and they badly want something to even it out a bit :-) Challenge accepted. :) Here's my sync summary (I'm in the USA): Number of files: 174305 Number of files transferred: 50913 ^ Total file size: 305.99M bytes Total transferred file size: 73.98M bytes Literal data: 73.98M bytes Matched data: 0 bytes File list size: 4.31M File list generation time: 343.526 seconds ^^^ File list transfer time: 0.000 seconds Total bytes sent: 1.12M Total bytes received: 41.37M sent 1.12M bytes received 41.37M bytes 64.33K bytes/sec total size is 305.99M speedup is 7.20 You don't sync very often, right? I usually sync manually daily or every other day if I'm busy and don't get a chance. I assumed there was some mass change to ebuild headers or license text or something which caused everything in the tree to get touched this week. My local portage tree is on a fast SSD in an 8-core box with 32GB of RAM and a 100mbit internet connection, so the bottleneck hopefully is not on my side of the transaction. ;) Let's do some more trials. Between yesterday and today, I have synced with my normal mirror, but I'm syncing with your server again now: Number of files: 174410 Number of files transferred: 17372 Total file size: 306.28M bytes Total transferred file size: 22.32M bytes Literal data: 22.32M bytes Matched data: 0 bytes File list size: 4.31M File list generation time: 379.920 seconds File list transfer time: 0.000 seconds Total bytes sent: 382.35K Total bytes received: 15.71M sent 382.35K bytes received 15.71M bytes 29.33K bytes/sec total size is 306.28M speedup is 19.04 Now I'm immediately doing another sync, first deleting timestamp.chk to force it to sync again. There should be zero files to transfer (except the timestamp file). Number of files: 174410 Number of files transferred: 1 Total file size: 306.28M bytes Total transferred file size: 32 bytes Literal data: 32 bytes Matched data: 0 bytes File list size: 4.31M File list generation time: 28.612 seconds File list transfer time: 0.000 seconds Total bytes sent: 183 Total bytes received: 4.31M sent 183 bytes received 4.31M bytes 128.75K bytes/sec total size is 306.28M speedup is 71.01 Now I'm switching back to my beloved mirror.steadfast.net and running another sync. Number of files: 174409 Number of files transferred: 17364 Total file size: 306.30M bytes Total transferred file size: 21.74M bytes Literal data: 21.74M bytes Matched data: 0 bytes File list size: 4.39M File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 355.23K Total bytes received: 15.67M sent 355.23K bytes received 15.67M bytes 191.93K bytes/sec total size is 306.30M speedup is 19.11 Interestingly it transferred almost the same number of files as my first sync with yours. Comparing timestamps, your server's latest update is about 5 hours older than Steadfast's, so things must be changing frequently in portage these days! 17k changes in 5 hours... My ping to your server is 300ms, my ping to steadfast is 18ms. I don't know anything about how rsync works behind the curtain, if a higher latency would cause the file list generation to be slower, or if that is a measurement of server performance or something else. Total sync times from my log: 1380814364: Starting rsync with rsync://196.4.160.12/gentoo-portage 1380814916: === Sync completed with rsync://196.4.160.12/gentoo-portage (first sync, 17k files updated, 552 seconds) 1380815150: Starting rsync with rsync://196.4.160.12/gentoo-portage 1380815188: === Sync completed with rsync://196.4.160.12/gentoo-portage (sync with no updates except timestamp.chk, 38 seconds) 1380815292: Starting rsync with rsync://208.100.4.53/gentoo-portage 1380815375: === Sync completed with rsync://208.100.4.53/gentoo-portage (re-sync with steadfast, 17k files updated, 83 seconds) 1380816062: Starting rsync with rsync://208.100.4.53/gentoo-portage 1380816074: === Sync completed with rsync://208.100.4.53/gentoo-portage (sync with no updates except timestamp.chk, 12 seconds) HTH and thanks for the mirror :) Paul
Re: [gentoo-user] Sloppy sterm screen update over ssh
On Mon, Sep 30, 2013 at 7:10 PM, Walter Dnes waltd...@waltdnes.org wrote: I've recently noticed when ssh'ing into another machine that the xterm display doesn't fully update. I.e. there are holes where an app updates over a previous screen. I've tried Google, but any mention of screen is interpreted as the screen utility. Hi, Are you running xterm over ssh (X11 forwarding) or are you running an ssh session inside of an xterm? If the latter I have experienced something similar when my TERM variable was not set correctly and things like Midnight Commander would not fill in the blue background (for example) or fail to blank the screen on updates.
Re: [gentoo-user] emerge --sync issue on only one comp on LAN
On Tue, Oct 1, 2013 at 10:45 AM, Alan McKinnon alan.mckin...@gmail.com wrote: On 01/10/2013 17:17, Greg Turner wrote: Rsync mirrors don't grow on trees, man. People pay good money to provide that service to us. You should seriously be embarrassed to have posted this. Really? Then you can all use mine with the greatest of pleasure: SYNC=rsync://ftp.is.co.za/gentoo-portage I have the NetOps team BEGGING me weekly to try and generate more traffic out of our network going international. The in-out ratio on the peering links is seriously screwed and they badly want something to even it out a bit :-) Challenge accepted. :) Here's my sync summary (I'm in the USA): Number of files: 174305 Number of files transferred: 50913 Total file size: 305.99M bytes Total transferred file size: 73.98M bytes Literal data: 73.98M bytes Matched data: 0 bytes File list size: 4.31M File list generation time: 343.526 seconds File list transfer time: 0.000 seconds Total bytes sent: 1.12M Total bytes received: 41.37M sent 1.12M bytes received 41.37M bytes 64.33K bytes/sec total size is 305.99M speedup is 7.20
Re: [gentoo-user] [Hardware Error]: MC1 Error: Copyback Parity/Victim error.
On Mon, Sep 23, 2013 at 1:45 PM, Grant emailgr...@gmail.com wrote: Can anyone tell me how to decipher this which has appeared in dmesg? Google wasn't very helpful. [Hardware Error]: MC1 Error: Copyback Parity/Victim error. [Hardware Error]: Error Status: Corrected error, no action required. [Hardware Error]: CPU:3 (10:2:3) MC1_STATUS[-|CE|-|-|-]: 0x9171 [Hardware Error]: cache level: L1, tx: INSN, mem-tx: EV Looks like machine check error, it detected an error in the L1 cache on your CPU. Since it says Corrected error, no action required I would not worry about it. If that makes you feel any better. :)
Re: [gentoo-user] Comparing RAID5/6 rebuild times, SATA vs SAS vs SSD
On Sat, Sep 21, 2013 at 11:56 AM, Tanstaafl tansta...@libertytrek.org wrote: On 2013-09-20 6:43 PM, Paul Hartman paul.hartman+gen...@gmail.com wrote: A couple weeks ago one of the drives died. I hot-swap replaced it with a new one (with no down-time) and the rebuild took exactly 10 hours. Under normal operation, the speed of the array for contiguous read/writes is about 600MB/sec, which is faster than my SSD (single drive, not RAIDed). Thanks... But... RAID read/writes under normal operating conditions has nothing whatsoever to do with REBUILD speeds/times. Of course, I just added that as additional info. Doing the numbers, my actual rebuild speed was roughly 83MB/sec average. Again, the reason I'm interested in this is, if the rebuild times are 'blindingly fast' (as compared to the times for SATA or even fast SAS drives - ie, 1 hour vs your 10 hours)), then maybe a RAID6 with SSDs is back in the realm of doable, since you don't lose 50% of available storage with RAID6... Mathematically, a 256GB drive will take 1/12th as long as a 3TB drive with all other factors being equal. Using the speed of my rebuild above, that would require less than an hour to rebuild a 256GB drive. I can only imagine SSDs or high-class HDDs would be even faster. So I think your goal of a 1-hour rebuild is a definite possibility, depending on your capacity needs and CPU/controller capabilities. You may need to tweak the RAID speed limit, cache settings, disable NCQ, enable read-ahead, etc. to realize the maximum speed depending on your particular hardware. There are dozens of pages online explaining how to speed up RAID syncs like that. Many people report seeing a 5x speed increase after making those adjustments, compared to linux default values. I searched for, but could not find, definitive references about SSD RAID build times. I found a lot of tweaker/overclocker type of sites bragging about their 3000MB/sec SSD RAID read speeds but no mention of replacing a failed drive. With SSDs, writes are considered the enemy, so using a pair of new SSDs in a mirrored raid is considered bad practice, because both drives will suffer the same number of writes, causing them both to reach their limit at around the same time. In that case it's considered safer to replace one of the working drives early, perhaps rotating a few extra working drives in and out every so often, to keep both sides of the mirror different ages or from varied manufacturing batches. Using SSDs in RAID5/6 also causes extra writes to occur for the parity, of course, but not as bad as mirroring, and you get the speed benefits from striping. One good thing with SSDs is that when they fail, it tends to fail on a write, so the chances of it failing to read when rebuilding in a RAID5/6 should be very small -- for HDDs that is the biggest fear during a rebuild. Enterprise SSDs can have 10x as many rated write/erase cycles than consumer SSDs (for nearly 10x the price), but even the cheapest SSD with 3000 write cycle lifetime should last you a hundred years if you write less than a few dozen GB a day to it. In a RAID5/6 you's spreading those writes out so it should last even longer, even with the parity overhead. If your RAID setup does not support passing the TRIM command to your SSDs it could cut your speed and lifetime down significantly. In the end it depends on your particular requirements and use case... as always. :) Here is a calculator that lets you plug in different drive sizes and rebuild speeds to see how long it will take, along with some other info: https://www.memset.com/tools/raid-calculator/ Good luck!
Re: [gentoo-user] Comparing RAID5/6 rebuild times, SATA vs SAS vs SSD
On Fri, Sep 20, 2013 at 6:20 AM, Tanstaafl tansta...@libertytrek.org wrote: Hi all, Being that one of the big reasons I stopped using RAID5/6 was the rebuild times - can be DAYS for a large array - I am very curious if anyone has done, or knows of anyone who has done any tests comparing rebuild times when using slow SATA, faster SAS and fastest SSD drives. Of course, this question is moot if using ZFS RAID, but not every situation or circumstance will allow it... I don't have an all-out comparison, but at least a data point for you with somewhat cheap and recent hardware. I have a new (2 months old) home RAID6 made out of: 6 Western Digital Red 3TB SATA drives LSI 9200-8e SAS JBOD controller Sans Digital TR8X+B SAS/SATA enclosure w/ SFF-8088 cables I created a standard linux software RAID6 using mdadm, resulting in 11TB of usable space (4 data drives, 2 parity). A couple weeks ago one of the drives died. I hot-swap replaced it with a new one (with no down-time) and the rebuild took exactly 10 hours. Under normal operation, the speed of the array for contiguous read/writes is about 600MB/sec, which is faster than my SSD (single drive, not RAIDed). FWIW
Re: [gentoo-user] KDE: unwanted dependencies
On Fri, Sep 13, 2013 at 5:14 AM, Alan McKinnon alan.mckin...@gmail.com wrote: On 13/09/2013 12:10, Yuri K. Shatroff wrote: Hi people, I am about to update KDE from 4.10.4 to 4.11.1. Is it possible to avoid installing various nepomuks and akonadis which No appear to be required now? I have set USE=-semantic-desktop but it doesn't seem to help. My current KDE installation is quite happy without that stuff (which also brings along tons of other crap). The KDE maintainers posted quite extensively about this some time back. It is too hard to try and extract semantic-desktop out of the KDE build whilst not breaking everything else. What you now do is allow the stuff to be built, and disable the function in System Settings. What this in effect means is you spend an extra 20 minutes building and have a few more meg of disk space consumed by code than you never run. There was a series of threads recently in the gentoo-desktop mailing list about someone proposing an overlay for KDE minus the semantic/nepomuk stuff. Search the archives for kde-lean.
Re: [gentoo-user] Gentoo on System76 laptop, and Netflix
On Tue, Sep 10, 2013 at 3:04 PM, fe...@crowfix.com wrote: 2. If I use kvm/virsh, is it possible to install a Mac image to watch Netflix streaming movies? Or, yecch, Windows, but I'd really rather not try that, as I haven't touched Windows for 15-20 years and see no reason to enrich Boll Gates' pension. Check out the Gentoo Wiki for a couple alternative ways to possibly watch Netflix in Linux without needing a virtual machine at all: http://wiki.gentoo.org/wiki/Netflix http://wiki.gentoo.org/wiki/Netflix/Pipelight
Re: [gentoo-user] A drive in my RAID6 has failed
On Fri, Sep 6, 2013 at 12:46 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: So, I simply inserted and partitioned the new drive, added it to the array and away we go! md0 : active raid6 sde1[6] sdd1[5] sdg1[4] sdh1[2] sdf1[1] sdi1[0] 11720009728 blocks super 1.2 level 6, 512k chunk, algorithm 2 [6/5] [UUU_UU] [] recovery = 2.3% (69513216/2930002432) finish=428.7min speed=111206K/sec When I wake up in the morning, I hope there won't be any errors. Success! It took 10 hours to rebuild the drive (speeds near the start of the disk are significantly faster than those near the end of the disk, so early estimates quoted by /proc/mdstat above were overly optimistic): [3720270.120695] md: bindsde1 [3720270.162933] RAID conf printout: [3720270.162942] --- level:6 rd:6 wd:5 [3720270.162949] disk 0, o:1, dev:sdi1 [3720270.162954] disk 1, o:1, dev:sdf1 [3720270.162958] disk 2, o:1, dev:sdh1 [3720270.162962] disk 3, o:1, dev:sde1 [3720270.162965] disk 4, o:1, dev:sdg1 [3720270.162969] disk 5, o:1, dev:sdd1 [3720270.163060] md: recovery of RAID array md0 [3720270.163067] md: minimum _guaranteed_ speed: 1000 KB/sec/disk. [3720270.163071] md: using maximum available idle IO bandwidth (but not more than 20 KB/sec) for recovery. [3720270.163085] md: using 128k window, over a total of 2930002432k. [3756293.459324] md: md0: recovery done. [3756294.797961] RAID conf printout: [3756294.797969] --- level:6 rd:6 wd:6 [3756294.797974] disk 0, o:1, dev:sdi1 [3756294.797979] disk 1, o:1, dev:sdf1 [3756294.797982] disk 2, o:1, dev:sdh1 [3756294.797986] disk 3, o:1, dev:sde1 [3756294.797989] disk 4, o:1, dev:sdg1 [3756294.797992] disk 5, o:1, dev:sdd1
Re: [gentoo-user] Deficient Gnome Window Frames
On Fri, Sep 6, 2013 at 2:28 PM, gevisz gev...@gmail.com wrote: But I have not found MATE in portage... I see there is a mate overlay available in layman
Re: [gentoo-user] A drive in my RAID6 has failed
On Thu, Sep 5, 2013 at 11:52 AM, Michael Orlitzky mich...@orlitzky.com wrote: This is the process I always follow: http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array The sfdisk trick will save you a bit of hassle. Thanks, it looks like I was on the right path! Crossing my fingers...
[gentoo-user] A drive in my RAID6 has failed
Hi, I woke up this morning to see the dreaded email from mdadm telling me one of my drives failed overnight, while I was happily dreaming about cute puppies and kittens installing a rainbow-colored roof on my house. The array is a RAID6 (two parity drives) and this is the current state: md0 : active raid6 sdd1[5] sdg1[4] sde1[3](F) sdh1[2] sdf1[1] sdi1[0] 11720009728 blocks super 1.2 level 6, 512k chunk, algorithm 2 [6/5] [UUU_UU] I've been using RAID in Linux for years, but this is actually the first time I've had a disk fail in one. If I remember correctly, the process should be as simple as: #remove the failed disk from the array: mdadm /dev/md0 -r /dev/sde1 #pull the drive, replace with new one, partition it, then add it to the array: mdadm /dev/md0 -a /dev/sde1 and sit back and eat popcorn while I enjoy the blinkenlights for the next several hours/days? :) Any advice/suggestions for managing this process any differently? For now I have unmounted the filesystem that sits atop it, to prevent any more writes from occurring, just in case... Thanks, Paul
Re: [gentoo-user] {OT} image metadata and privacy
On Thu, Sep 5, 2013 at 8:32 AM, Grant emailgr...@gmail.com wrote: Has anyone found a way to completely sanitize images of all potentially privacy-invading metadata for posting online? I recently discovered that there is actually an EXIF thumbnail image. So if you have a photo and you crop it and post it online, the EXIF thumbnail of the original uncropped image is still there for all to see. Whether or not the thumbnail remains uncropped depends on the cropping software. Competent software should not do that to you, but as we know not all software has been created equal. You can use jpegoptim --strip-all to remove any and all extra data from your picture. Gentoo package name is media-gfx/jpegoptim.
Re: [gentoo-user] A drive in my RAID6 has failed
On Thu, Sep 5, 2013 at 12:11 PM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Thu, Sep 5, 2013 at 11:52 AM, Michael Orlitzky mich...@orlitzky.com wrote: This is the process I always follow: http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array The sfdisk trick will save you a bit of hassle. Thanks, it looks like I was on the right path! Crossing my fingers... So, I probably should not have attempted to do this immediately after eating dinner. My brain was not operating at full speed, and I went ahead and pulled the drive before removing it from the array. Oops! As soon as I pulled the latch to release the drive, I had that oh no! moment. Luckily, as it turns out, md (or mdadm? or udev?) was nice enough to automatically remove it for me when the drive ceased to exist. So, I simply inserted and partitioned the new drive, added it to the array and away we go! md0 : active raid6 sde1[6] sdd1[5] sdg1[4] sdh1[2] sdf1[1] sdi1[0] 11720009728 blocks super 1.2 level 6, 512k chunk, algorithm 2 [6/5] [UUU_UU] [] recovery = 2.3% (69513216/2930002432) finish=428.7min speed=111206K/sec When I wake up in the morning, I hope there won't be any errors. BTW -- a couple tips I found which speed up RAID building/recovery tremendously (season to taste): echo 32768 /sys/block/md0/md/stripe_cache_size echo 20 /proc/sys/dev/raid/speed_limit_max
Re: [gentoo-user] How can I unsubscribe from gentoo-news?
On Tue, Aug 27, 2013 at 3:59 PM, Alan McKinnon alan.mckin...@gmail.com wrote: man 5 make.conf also documents FEATURES=news Oddly enough, we all know how to enable FEATURES (just add to the list), but I have no idea how to disable them! I don't have news in my FEATURES but I do get the newsitems. Is FEATURES=-news even valid sysntax? I believe that is the correct way to do it.
Re: How hard is it to move separate /usr to / partition? - WAS Re: [gentoo-user] Optional /usr merge in Gentoo
On Fri, Aug 16, 2013 at 10:04 AM, Tanstaafl tansta...@libertytrek.org wrote: And really, maybe you could try an initramfs? It will be much more easy than any juggle of filesystems. I always compile my kernels manually, by choice - so, no desire to use genkernel or dracut. How would I then create one? I am *not* a programmer, just a reasonably competent general sys admin. Is there a 'generic' one that I can use? Or is there a separate tool that will create one based on my system profile (or whatever)? I think dracut is actually exactly the tool you are looking for. It does not have anything to do with building your kernel, its sole job in life is to generate an initramfs built to your specifications. It contains sane defaults but you can tweak it to include or exclude things as you see fit. I build my kernel by hand and then run dracut afterward to generate the initramfs.img. I believe mounting /usr is enabled by default in dracut. I would recommend checking out the documentation and seeing all the different options and modules that are available so you can customize it to match your needs. For example you may want to have it import your LVM configuration, assemble a RAID, use the reiserfs or btrfs filesystem, etc. Once it generates the initramfs it's as simple as adding a line to your grub config and off you go. If it doesn't work right away you can just comment out that line and boot without it, for now, while your existing setup is still valid. (It took me a few reboots to find the right combination of options.) Then someday if separate /usr is no longer allowed without an initramfs, you'll be prepared for it. I always regenerate my initramfs using dracut after every time i build a new kernel, but I'm not sure if that's truly necessary. Honestly it's all still a bit of a black box to me.
Re: [gentoo-user] OpenRc-0.12 is coming soon
On Wed, Aug 14, 2013 at 6:12 PM, Neil Bothwick n...@digimed.co.uk wrote: On Wed, 14 Aug 2013 15:04:38 -0500, William Hubbs wrote: For the folks who lost /etc/conf.d/net, was it the stub file that came with OpenRC, or had you modify it? I've tried the update on two systems, both with modified config files (the second one modified just before the upgrade to see if that made a difference). The first one lost it's file, the second one kept it. I've got a couple more t update so I'll see if I can see a pattern. Looks like they've solved the mystery: https://bugs.gentoo.org/show_bug.cgi?id=481336 Sounds like if you modified the file BEFORE installing the previous version of openrc, it got removed, but if you modified it AFTER installing your previous openrc it would be kept.
Re: [gentoo-user] Re: What (free) remote desktop do you use
On Thu, Aug 15, 2013 at 4:20 AM, Nikos Chantziaras rea...@gmail.com wrote: On 15/08/13 11:26, Helmut Jarausch wrote: Hi, some recent updates of X11, gtk++ or glib has broken the possibility to use some gnome3 applications (like a recent balsa) via nxclient. Since NX3's internal X-server has some known deficiencies and Nomachine has stopped the development of NX3 and has closed sources of NX4, I am in need for some replacement since 'ssh -Y' is dead slow even on an 15 megabit/sec connection. What remote desktop do you use? I've been using x2go for years. It's based on NX, so not sure if it will exhibit the same problem. I also use x2go, but not gnome3 so I cannot speak to whether or not it has issues with that specifically. NX has had issues for past couple years with bad combinations of cairo + Xorg + NX libs causing weird things like missing fonts in gtk+ apps and random crashing/stalling. Latest version of x2go does not seem to suffer this problem, for now. The official x2go-client is not as good compared to nxclient, in my opinion, as far as managing connections and general look and feel and behavior of the app, but once you're connected it works just the same. I connect to my home computer from my mobile phone over 3G and the speed is great, but too bad the screen is so small! :)
Re: [gentoo-user] OpenRc-0.12 is coming soon
On Thu, Aug 15, 2013 at 10:54 AM, Walter Dnes waltd...@waltdnes.org wrote: WTF is the openrc ebuild doing deleting /etc/conf.d/net ?!?!? In many cases, removing a package will not remove its config file. The ebuild doesn't touch it, as far as I can tell. But you are right, portage shouldn't remove a file if it has been changed, as far as I know. /etc/conf.d/net is not owned by any package anymore, so maybe that plays into it as well.
Re: [gentoo-user] How to determine 'Least Common Denominator' between Xen(Server) Hosts
On Thu, Aug 15, 2013 at 12:41 PM, Kerin Millar kerfra...@fastmail.co.uk wrote: I use -mtune=native rather than -march=native, that way I can use some advanced processor features if they are available, but my system will still run if moved to a different host. That's not how -mtune works. If -march is unspecified, it will default to the lowest common denominator for the platform which prevents the use of any distinguished processor features. For an amd64 install, that would be -march=x86-64. Instead, -mtune affects everything that -march doesn't. Though it doesn't affect the instructions that *can* be used, it may effect which of the allowed instructions are used and how. For instance, gcc includes processor pipeline descriptions for different microarchitectures so as to emit instructions in a way that tries to avoid pipeline hazards: Thanks very much for the clarification, I appreciate it.
Re: [gentoo-user] How to determine 'Least Common Denominator' between Xen(Server) Hosts
On Wed, Aug 14, 2013 at 12:18 AM, Pandu Poluan pa...@poluan.info wrote: I know that the (theoretical) best performance is to use -march=native , but since the processors of the HP servers are not exactly the same as the Dell's, I'm concerned that compiling with -march=native will render the VMs unable to migrate between the different hosts. I use -mtune=native rather than -march=native, that way I can use some advanced processor features if they are available, but my system will still run if moved to a different host.
Re: [gentoo-user] Strange segfaults during PHP emerge - during .configure phase I believe...
On Sat, Aug 10, 2013 at 2:25 PM, Tanstaafl tansta...@libertytrek.org wrote: Anyone ever seen/can explain these? I had 3 of them, again, apparently during the .configure phase: 2013-08-10T15:08:36-04:00 myhost kernel: conftest[12233]: segfault at 1 ip 7f1fc65e8e47 sp 7690d6e0 error 4 in libc-client.so.1.0.0[7f1fc65a8000+102000] 2013-08-10T15:10:04-04:00 myhost kernel: conftest[23852]: segfault at 1 ip 7fb1e5887e47 sp 7fff7f03f4a0 error 4 in libc-client.so.1.0.0[7fb1e5847000+102000] 2013-08-10T15:11:32-04:00 myhost kernel: conftest[3249]: segfault at 1 ip 7f0077cd6e47 sp 7fff70306050 error 4 in libc-client.so.1.0.0[7f0077c96000+102000] Yes, I have seen them all the time on multiple boxes. AFAIK this is perfectly normal behavior, I think it comes from autoconf trying -- on purpose -- to find broken configuration options so it knows what to avoid.
Re: [gentoo-user] Killing Adobe Flash
On Tue, Aug 6, 2013 at 2:49 AM, Pavel Volkov negai...@gmail.com wrote: Is anyone able to run Gnash or Lightspark in Gentoo? Now is the second time I tried it (because yesterday I noticed that Gnash performs not bad in another distro, Trisquel). I'm on ~amd64. Both Gnash and Lightspark have similar problems in Firefox and Chromium. Youtube videos stop and twitch, sound is distorted and has noise. Is anyone luckier than me in burying proprietary software? For youtube you can enable HTML5 mode and avoid flash entirely for many videos (but not all). Does not help with other sites but at least it's something. :) http://youtube.com/html5
Re: [gentoo-user] Killing Adobe Flash
On Tue, Aug 6, 2013 at 9:20 AM, Tanstaafl tansta...@libertytrek.org wrote: On 2013-08-06 10:12 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: For youtube you can enable HTML5 mode and avoid flash entirely for many videos (but not all). Does not help with other sites but at least it's something. :) http://youtube.com/html5 Interesting... if you do enable HTML5 mode, and still have Flash installed, what happens? Is HTML5 'preferred'? Yes, some older unpopular videos that were uploaded before HTML5 support was added might not support it, but otherwise most videos seem to play using HTML5 instead of Flash once you've opted-in.
Re: [gentoo-user] Killing Adobe Flash
On Tue, Aug 6, 2013 at 9:32 AM, Michael Orlitzky mich...@orlitzky.com wrote: On 08/06/2013 10:24 AM, Paul Hartman wrote: On Tue, Aug 6, 2013 at 9:20 AM, Tanstaafl tansta...@libertytrek.org wrote: On 2013-08-06 10:12 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: For youtube you can enable HTML5 mode and avoid flash entirely for many videos (but not all). Does not help with other sites but at least it's something. :) http://youtube.com/html5 Interesting... if you do enable HTML5 mode, and still have Flash installed, what happens? Is HTML5 'preferred'? Yes, some older unpopular videos that were uploaded before HTML5 support was added might not support it, but otherwise most videos seem to play using HTML5 instead of Flash once you've opted-in. You're better off using media-video/get_flash_videos- to download these anyway. As long as you don't need flash for anything else, there's a huge number of video sites supported. With it downloaded, you can use e.g. mplayer to move around the file like any other video. And when you're done, you can keep it. net-misc/youtube-dl is another one that supports many sites and is updated in portage quite often (to keep up with changes to the websites).
Re: [gentoo-user] Freeze after suspend-to-ram with kernel 3.10
On Fri, Aug 2, 2013 at 6:21 AM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am 02.08.2013 12:47, schrieb Frank Steinmetzger: Hey list My netbook doesn't freeze so often during operation any more. But now it’s started to not properly wake up from suspend-to-ram. It’s like with my big laptop: when that one runs on nouveau instead of nvidia-drivers, it behaves the very same way, i.e. I switch it on and the screen stays blank. Not even sysrq are working then, only hard power-down. I tried to confirm my oberservation by deliberately hibernating it multiple times yesterday -- it always woke up with 3.9. Now I booted it with 3.10 and it didn't come up on the first try. Do you have any suggestion how I might debug this? I can’t simply report to kernel blokes “3.10 is crap on my netbook, you put in a regression somewhere”. I don’t really have the time right now to go after hunches, such as the new tikless system, as building a kernel takes up to 45 minutes on that thing. well, take your 3.9 config and don't change it. If the config change doesn't reveal anything, you can do git bisect of the kernel to find out which patch broke it. When you do git bisect you don't need to recompile the whole kernel every time, it only compiles the changed files, which are usually not many. So even on a slower machine it's not so bad once the first compile is finished. https://wiki.gentoo.org/wiki/Kernel_git-bisect
Re: [gentoo-user] ata6: exception Emask 0x10 SAct 0x0 SErr 0x4000000 action 0xe frozen
On Thu, Aug 1, 2013 at 2:51 AM, Thanasis thana...@asyr.hopto.org wrote: on 08/01/2013 01:10 AM Bruce Hill wrote the following: On Wed, Jul 31, 2013 at 11:17:02PM +0300, Thanasis wrote: on 07/31/2013 10:06 PM Paul Hartman wrote the following: There are a few approaches to try figuring it out explained here: http://serverfault.com/questions/244944/linux-ata-errors-translating-to-a-device-name Looking into /sys/dev/block it seems like /dev/sda is on ata1 and /dev/sdb is on ata2, and since there is nothing else attached to the system, the ata6 problem may be related to a controller (as Bruce said), and hopefully not a disk drive. Sorry I don't have time to reply atm. If either drive has errors continuing, please change the SATA cable for a new one. Or, at least, reseat them, and aftewards report results. I keep the cable connected to both the motherboard's sata port and to the external eSata disk enclosure. I noticed that the cable indeed needed reseating, but on the other hand, the external disk had *not* been powered on since last reboot, i.e. before these errors or warnings in dmesg had appeared. Some internal SATA ports apparently don't support hotplugging. I don't know if perhaps your chipset is one of them, if you Google your motherboard's SATA chipset maybe you can find out. If it has always worked before and now suddenly throws errors, that seems unlikely to be the cause... FWIW, after reseating the cable, I powered the external disk on, run a forced fsck on it, and no errors where reported. Or maybe that's all it was. :)
Re: [gentoo-user] euse after portage upgrade
On Thu, Aug 1, 2013 at 2:42 AM, András Csányi sayusi.a...@sayusi.hu wrote: Hi All, Yesterday there was an portage upgrade and after that I got it if I would like to use euse: sayusi-desktop sayusi # euse -E gtk3 ERROR: $PORTDIR couldn't be determined What is it and why that variable not determined? I did not do anything and my machine was estarted since portage upgrade. According to the logs I use sys-apps/portage-2.1.13.2 - 07/30/2013 and gentoolkit package was re-emerged. Should I file a bug on bugs.gentoo.org? When I upgraded portage yesterday, it added this PORTDIR line to make.conf for me when I ran etc-update. Did you update your config files after upgrading portage?
Re: [gentoo-user] Moving from old udev to eudev
On Thu, Aug 1, 2013 at 11:28 AM, Tanstaafl tansta...@libertytrek.org wrote: Hi all, Ok, rehashing this, but please don't turn it into another udev vs systemd thread. I have an older server that I have been putting off this update, debating on whether to update to the regular udev, or to eudev. I've googled until my fingers are blue, but cannot for the life of me find any explicit instructions for *how* to switch from udev to eudev. The eudev project page is sparse, to say the least. Anyone? (I haven't done it myself, but...) I assume one would simply unmerge sys-fs/udev and emerge sys-fs/eudev and then do any configuration file changes necessary. virtual/udev covers the possibility of using either package. Unless you're asking more about the configuration changes themselves, in which case I have no idea.
Re: [gentoo-user] ata6: exception Emask 0x10 SAct 0x0 SErr 0x4000000 action 0xe frozen
On Wed, Jul 31, 2013 at 1:11 PM, Thanasis thana...@asyr.hopto.org wrote: Early during booting phase, dmesg shows: [0.515651] ata6: SATA max UDMA/133 abar m8192@0xfdefe000 port 0xfdefe180 irq 17 [0.833387] ata6: SATA link down (SStatus 0 SControl 300) But later, it reports lots like the following stanza: [164362.715469] ata6: exception Emask 0x10 SAct 0x0 SErr 0x400 action 0xe frozen [164362.715474] ata6: irq_stat 0x0040, connection status changed [164362.715479] ata6: SError: { DevExch } [164362.715490] ata6: hard resetting link [164363.433615] ata6: SATA link down (SStatus 0 SControl 300) [164363.446934] ata6: EH complete Is it related to a disk drive, and if so, is there a way to know which drive is on ata6? PS: There are two drives attached to the system, reported by dmesg like so: [0.872490] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB) [0.874828] sd 1:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB) There are a few approaches to try figuring it out explained here: http://serverfault.com/questions/244944/linux-ata-errors-translating-to-a-device-name
Re: [gentoo-user] ata6: exception Emask 0x10 SAct 0x0 SErr 0x4000000 action 0xe frozen
On Wed, Jul 31, 2013 at 1:11 PM, Thanasis thana...@asyr.hopto.org wrote: Early during booting phase, dmesg shows: [0.515651] ata6: SATA max UDMA/133 abar m8192@0xfdefe000 port 0xfdefe180 irq 17 [0.833387] ata6: SATA link down (SStatus 0 SControl 300) But later, it reports lots like the following stanza: [164362.715469] ata6: exception Emask 0x10 SAct 0x0 SErr 0x400 action 0xe frozen [164362.715474] ata6: irq_stat 0x0040, connection status changed [164362.715479] ata6: SError: { DevExch } [164362.715490] ata6: hard resetting link [164363.433615] ata6: SATA link down (SStatus 0 SControl 300) [164363.446934] ata6: EH complete Is it related to a disk drive, and if so, is there a way to know which drive is on ata6? PS: There are two drives attached to the system, reported by dmesg like so: [0.872490] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB) [0.874828] sd 1:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB) If no disks are attached, I wonder if something is probing it? I checked my dmesg and every time I plug in my eSATA enclosure, I see this very similar message: [156541.724580] ata7: exception Emask 0x10 SAct 0x0 SErr 0x404 action 0xe frozen [156541.724587] ata7: irq_stat 0x0040, connection status changed [156541.724593] ata7: SError: { CommWake DevExch } [156541.724604] ata7: hard resetting link [156551.725559] ata7: softreset failed (device not ready) [156551.725567] ata7: hard resetting link (and then a bunch of lines initializing all of the disks in the enclosure).
Re: [gentoo-user] Chromium: questions
On Tue, Jul 30, 2013 at 3:11 AM, Pavel Volkov negai...@gmail.com wrote: I have 2 questions about how Chromium operates with a clean profile. I run it like this: % chromium --user-data-dir=dir Directory dir is empty (at first launch). After the first launch, some entries immediately appear in History. I visited those before, but it's not everything I visited. Approximately 10-20 entries. From where is this information taken? If it's Google servers, what info is used for identification? IP address, system user name, something else? Next question is about certificates. I have 2 personal certificates installed in my main profile and they appear in the clean profile, too. Where are those certificates stored? I couldn't find them in KDE configuration app (System Settings). Are they taken from main profile? I would look in the ~/.config/ directory for any chrome/chromium/google stuff which might possibly contain this data... (even if you specified otherwise)
Re: [gentoo-user] /etc/profile is gone - how to chroot
On Wed, Jul 24, 2013 at 9:25 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Hi, previously and still documented nearly everywhere one has to do env-update source /etc/profile after chroot but in recent systems, the file /etc/profile is gone. How to adapt the environment in a new system? Hi, Do you have baselayout installed? /etc/profile should be included in baselayout.
Re: [gentoo-user] /etc/profile is gone - how to chroot
On Wed, Jul 24, 2013 at 10:16 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: On 07/24/13 16:34:46, Paul Hartman wrote: On Wed, Jul 24, 2013 at 9:25 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Hi, previously and still documented nearly everywhere one has to do env-update source /etc/profile after chroot but in recent systems, the file /etc/profile is gone. How to adapt the environment in a new system? Hi, Do you have baselayout installed? /etc/profile should be included in baselayout. Thanks, I had to reinstall baselayout (2.2). I wonder which package (systemd?) has removed /etc/profile since I didn't do it myself. Helmut. looks like both openrc and systemd should depend on baselayout, so that is very strange... Maybe you should file a bug about it.
Re: [gentoo-user] SSD partitioning and migration
On Mon, Jul 22, 2013 at 4:42 PM, Stefan G. Weichinger li...@xunil.at wrote: Am 19.07.2013 21:02, schrieb Paul Hartman: Old SSDs that did not support TRIM would suffer write amplification after a certain amount of data had been written to them, but any modern SSD and modern OS will keep it nice and tidy. What's the best practice now for TRIM? I changed to manual fstrim -v / back then as they wrote that the fstab-options weren't the right way of doing it. Any news on this? I have root-fs on ext4, btw ... I think it depends on your usage patterns. discard will trim unused space immediately as files are deleted. Putting fstrim in your cron jobs will wait to free all unused space at once. If you delete many files, or large files, you may notice performance slowdowns by using discard. On the other hand, if your SSD is near full you may benefit from discard to allow faster write speed before the cron job runs. As far as I remember, some filesystems don't support discard option, but do support fstrim. So fstrim job may be safer as generic advice... and it was older advice, before discard existed, so old SSD guides may refer to it by default. I personally use discard with ext4 and btrfs, but I have not done tests or have evidence that it is the best choice for me. It's simply what I chose and never changed it. :)
Re: [gentoo-user] SSD partitioning and migration
On Mon, Jul 22, 2013 at 5:26 PM, Stefan G. Weichinger li...@xunil.at wrote: Am 23.07.2013 00:22, schrieb Paul Hartman: I personally use discard with ext4 and btrfs, but I have not done tests or have evidence that it is the best choice for me. It's simply what I chose and never changed it. :) Thanks, Paul! More of a I do it MY way than a generic best practice for all as recommended by upstream devs, right? ;-) Basically I think it is like so many things in Linux, use whatever works best for you :)
Re: [gentoo-user] SSD partitioning and migration
On Fri, Jul 19, 2013 at 1:56 AM, Dale rdalek1...@gmail.com wrote: Do you really want to put /home on a SSD? My first step into SSD on my desktop was to put everything-but-home onto it. I left home on a HDD. Speedup was very noticeable! Especially portage-related things were very much faster (accessing thousands of small files). I later added a second SSD for home, but kept the old HDD for huge directories like photos, videos, downloads, ISOs/virtual disk images, Steam games folder, etc. There was honestly not a very appreciable speedup from adding the home SSD, in my opinion. But that probably depends highly on individual usage patterns.
Re: [gentoo-user] SSD partitioning and migration
On Fri, Jul 19, 2013 at 1:45 PM, Mick michaelkintz...@gmail.com wrote: On Friday 19 Jul 2013 17:43:39 Dale wrote: luis jure wrote: on 2013-07-19 at 01:56 Dale wrote: Do you really want to put /home on a SSD? well, not actually the whole /home, the SSD is too small for that. i'm not sure yet, i might keep /home on a HDD and mount the partition on the SSD as a directory under /home for some special uses. or the other way around... Size was one issue I thought of but I was more concerned with the wear and tear part but that was explained by others. It seems that is not as much a issue any more. At one time, I had a /data directory. I stored large stuff there: camera pics, videos, audio stuff and such. If you put /home on SSD, you could always put the larger stuff on another mount point. One thing about Linux, you can mount stuff wherever you want. Post back how it works out and any speed improvements you see. I'm really curious since I would like to get one that is at least big enough for the OS itself. My /home is over 1Tb, that is Tb too. I'm not buying one big enough for all that. lol Dale :-) :-) I have a MUCH smaller /home than Dale and on a new box I was thinking of having it on a HDD, along with all things portage related. I typically resync 3 -4 times a week but I am not sure how much erase/write cycles this represents. Also, /home is written all the time with mail and various application profile folders, browser cache and what have you. That's why I was thinking that /usr/portage, /var/tmp/portage, /var/log, /home and /swap were candidates for HDD. /usr/portage is one of the things that benefits the most from being on a SSD, thousands of tiny files scattered all over the place. It really is a tremendous difference compared to running portage on a HDD. I guess the rest under / does not change that often and a weekly or even monthly back up would be all that is necessary to facilitate recovery when the SSD dies on me. Am I being too cautious with current technology SSDs? I think you are. Unless you are moving massive terabytes of data across your drive on a constant basis I would not worry about regular everyday write activity being a problem. I think the SSD is more likely to die due to electrical shock or surge than by normal wear and tear. Of course backups are always a good idea, no matter what. :) Old SSDs that did not support TRIM would suffer write amplification after a certain amount of data had been written to them, but any modern SSD and modern OS will keep it nice and tidy. BTW, unless anyone advises differently, I was thinking of buying a SanDisk Extreme II, SATA III, 2.5 240GB SSD. I read that its SLC cache improves speed and reliability, but I don't know if true. My personal experience is with these: Samsung 830, 128GB Samsung 840, 250GB Intel 330, 180GB Sandisk Extreme, 120GB Sandisk Extreme, 240GB (note mine are the older Extreme, not the new Extreme II's that you're looking at) The Samsung 830 and Intel 330 are the winners, they consistently had the best random read/write performance in my testing, as well as intangible feeling of responsiveness. The Samsung 840 had lower write speeds (because it is TLC). The Sandisk Extreme had a bit worse random I/O performance than the leaders, but still not bad. The worst part about the Sandisks was that it took them forever to release a firmware upgrade. They used the infamous buggy Sandforce firmware, which every other SSD maker released fixes for, but it took Sandisk what seemed like an eternity to finally make it available.
Re: [gentoo-user] SSD partitioning and migration
On Fri, Jul 19, 2013 at 6:03 PM, Dale rdalek1...@gmail.com wrote: Neil Bothwick wrote: On Fri, 19 Jul 2013 11:43:39 -0500, Dale wrote: My /home is over 1Tb, that is Tb too. I'm not buying one big enough for all that. 1Tb is only 125GB, well within the capacity of current SSDs :P Switching to an SSD, particularly on a laptop where you can't add a second drive, really helps you decide how much of the content of ~ you really need. Mine is mostly videos and some smaller amount of pics. 1 Tb is 125Gb? 1Tb is 1,000Gb or so. I would also be concerned about the cost of one that large too. Confused. Watch out for the b vs B... bits-vs-bytes :)
Re: [gentoo-user] SSD partitioning and migration
On Fri, Jul 19, 2013 at 12:47 PM, Bruce Hill da...@happypenguincomputers.com wrote: I won't buy any SATA mechanical drives except Hitachi. Hitachi's storage division was sold off and split up last year. Their 2.5 HDD and SDD lines now belong to Western Digital (who continue to sell the *Star models under the HGST brand name), while their 3.5 HDD lines now belong to Toshiba who are selling them under the Toshiba brand name. Toshiba never made 3.5 HDD's before, and they purchased Hitachi's brands, designs, patents and factories relating to 3.5 HDDs. Many of the Toshiba HDD's being sold today, in Toshiba boxes with Toshiba labels and new model numbers, in fact still have the Hitachi brand name and model number embedded in the chipset when you hook it up to your computer.
Re: [gentoo-user] Locking down a user with a shell account and SSH access
On Mon, Jul 1, 2013 at 6:24 PM, Grant emailgr...@gmail.com wrote: My backup user needs a shell on the backup server in order to execute rsync and needs to be included in /etc/ssh/sshd_config AllowUsers in order to SSH in. My authorized_keys file is locked-down. The second field for the user in /etc/shadow is an exclamation point which I think means the user can not log in with a password. Should I take any additional steps to prevent that user from logging in and not being subject to the authorized_keys restrictions? There are a few distinct problems and solutions that come to mind. Here's my take as an uncertified non-expert: Problem: I want different SSHD config for different users Solution: use the Match directive in sshd_config (as Adam already pointed out) and enable or disable password authentication for users who are exceptions to the system-wide setting Problem: I don't want the backup user to be able to login using a password anywhere except ssh Solution 1: set the password to an * in /etc/shadow (disabled password login permanently) Solution 2: prefix the existing password with an ! in /etc/shadow (this disables pw login temporarily, remove the ! to restore the password) Solution 3: set the user's shell to /sbin/nologin in /etc/passwd Note: there are slight differences between these approaches, see man 5 passwd for details Problem: backup user should only be allowed to run the rsync command Solution 1: set a forced command in sshd_config for that user Solution 2: set a forced command in authorized_keys for that key I think if you combine that with what you've already done, that user should be well and truly locked down. That is based on using the standard Gentoo configuration... I'm sure there are 1000 different ways to do it and probably a lot of them better than what I suggested, so take it FWIW. :)
Re: [gentoo-user] SSD partitioning and migration
On Thu, Jul 18, 2013 at 4:22 PM, luis jure l...@internet.com.uy wrote: hello list, Hi! i want to migrate my system, currently in a HD, to a new SSD. i thought it would be easy, but i decided to read a little before partitioning the disk (my first SDD) and now i'm really confused... i intend to have only two partitions in the SSD: one for / and the other for /home. i have another HD for storage, where i'm going to put swap. Sounds like a good plan. I used the same strategy here. apparently it's better to use a GPT partitioning. are there any catches i should take into account? what about grub, can i just install it later on the ssd? GPT is not required, if you use MBR it should work just as well. If you use GPT you must enable GUID partition table support in your kernel and ensure your boot loader supports it. thanks for any comment or pointers, i found so many different guides saying different things that i'm really confused. Here are the basic steps I used for doing the same thing: 1. partition SSD (start sector at a multiple of 1MB to ensure proper alignment) 2. format new partitions using discard-capable filesystem like ext4, xfs, btrfs 3. mount them in a temporary mount point 4. rsync your filesystem from old drive to new drive 5. edit /etc/fstab on the new drive to use the new mount points 6. edit boot loader config to point to correct drive 7. install boot loader on new drive if it becomes your new boot device 8. (optionally) swap drive cables so the new drive shows up first if it is your new boot device Depending on whether you use UUID, labels, or device names you may not need to change names or swap cables in your computer so drives show up in the correct order. Good luck :)
Re: [gentoo-user] hp H222 SAS controller
On Mon, Jul 15, 2013 at 2:39 AM, Mick michaelkintz...@gmail.com wrote: I've been watching this thread with interest, because I've been trying to find out which HDD I should be buying for a new PC. For every person reporting problematic Seagates there's another person complaining about Western Digital being too noisy, failing, or in the case of the black versions, far too expensive. Amidst all the anecdotal aphorisms against one or the other manufacturer, I saw mentioned that the likelihood of failure doubles up when you go from 1TB to 2 TB. If true, I guess that the 3TB would have fewer failures than 4TB drive. For what it's worth I have had a number of Seagates failing on me, but since this was in the 90's. On my laptop a Seagate Momentus 7200.4 (ST9500420ASG) is running fine for the last 3.5 years so, I was thinking of taking a punt on a 'Seagate Barracuda 3.5 inch 2TB 7200 RPM 64MB 6GB/S Internal SATA'. But what you're mentioning here gives me cause to pause. One important thing to know is that there are only 3 HDD manufacturers remaining: Seagate, WD and Toshiba. Any other brand names you see are just relabeled versions of those. Maxtor/IBM/Hitachi/Fujitsu/Samsung and all those who came before them are gone. My personal preference the last several years was always Samsung, I never had a single problem with one of those. Unfortunately they are no longer in the HDD business... In general, for 3.5 drives, I think NAS or RAID or Enterprise branded drives tend to be more expensive, but of a higher quality and rated to run in 24/7 environments. Even if you're not using it that way, it suggests that it's a more rugged drive. The Personal, Desktop, Budget etc. and drives that come in external enclosures tend to be a roll of the dice. Some have speculated that the HDDs which score lower on quality assurance tests get stuck into these lower-priced lines (kind of like CPU binning). The Seagate Desktop 4TB drives I got for $140 have extremely aggressive power-saving and spin-down (sometimes it takes 10 seconds just to access the drive after it spins down!). They are 5400rpm, but that is unadvertised and some people claim to have received 7200rpm. The specs on lifetime are pretty poor. I read that they are only rated for something like 200 days of cumulative use. But I expected it to at least work for a week! I keep running passes of badblocks and it keeps finding new bad sectors that weren't there the previous time I ran it. It is literally degrading before my very eyes. I have zero trust in it. For 2.5 hard drives, I have seen many, many crashed 2.5 drives from every brand, but never had one fail on me personally. I've always attributed it to human influence, people tend to be rough on laptops, tossing them onto the table, dropping them, leaving them in a hot or freezing cold car, etc. Also the nature of laptop use means a lot of on/off which means a lot of hot/cold which is really bad for hard drives. And for 5.25 hard drives I have an old 1.2 GB Quantum drive that sounds like a screaming cat going through a jet engine. You can seriously hear it from outside my house with all the windows and doors closed. But it actually still works all these years later. :)
Re: [gentoo-user] hp H222 SAS controller
On Mon, Jul 8, 2013 at 10:58 AM, Alan McKinnon alan.mckin...@gmail.com wrote: On 08/07/2013 17:39, Paul Hartman wrote: On Thu, Jul 4, 2013 at 9:04 PM, Paul Hartman paul.hartman+gen...@gmail.com wrote: ST4000DM000 As a side-note these two Seagate 4TB Desktop edition drives I bought already, after about than 100 hours of power-on usage, both drives have each encountered dozens of unreadable sectors so far. I was able to correct them (force reallocation) using hdparm... So it should be fixed, and I'm reading that this is normal with newer drives and don't worry about it, but I'm still coming from the time when 1 bad sector = red alert, replace the drive ASAP. I guess I will need to monitor and see if it gets worse. Way back when in the bad old days of drives measured in 100s of megs, you'd get a few bad sectors now and then, and would have to mark them as faulty. This didn't bother us then much Nowadays we have drives that are 8,000 bigger than that so all other things being equal we'd expect sectors to fail 8,000 time more (more being a very fuzzy concept, and I know full well I'm using it loosely :-) ) Our drives nowadays also have smart firmware, something we had to introduce when CHS no longer cut it, this lead to sector failures being somewhat invisible leaving us with the happy delusion that drives were vastly reliable etc etc etc. But you know all this. A mere few dozen failures in the first 100 hours is a failure rate of (Alan whips out the trust sci calculator) 4.8E-6%. Pretty damn spectacular if you ask me and WELL within probabilities. There is likely nothing wrong with your drives. If they are faulty, it's highly likely a systemic manufacturing fault of the mechanicals (servo systems, motor bearing etc) You do realize that modern hard drives have for the longest time been up there in the Top X list of Most Reliable Devices Made By Mankind Ever? An update: the Seagate drives have both continued to spit more unrecoverable errors and find more and more bad sectors. Including some end-to-end errors indicated as critical FAILING NOW status in SMART. From what I have read that error means the drive's internal cache did not match the data written to disk, which seems like a serious flaw. The threshold is 1 which means if it happens at all, the drive should be replaced. It has happened half a dozen times on each disk so far (but not at the exact same time, so I don't think it is a host controller problem -- and other disks on the same controller and cable have had no issues). They have also been disconnecting and resetting randomly, sometimes requiring me to pull the drive and reinsert it into the enclosure to make it reappear. It happens even after I disabled APM, so I know it isn't a spin-down/idle timeout thing. Temperatures are actually very good (low 30's) so they are not overheating. I think I will try to trade them in to Seagate for a new pair under warranty replacement. And then probably try to sell the replacements and be rid of them. Meanwhile, during that experiment, I bought 2 brand new Western Digital Red 3TB drives last week. No problems in SMART testing or creating LVM/RAID/Filesystems. I have now been running the destructive write/read badblocks tests for 24+ hours and they have been perfect so far, exactly 0 errors. They are more expensive (3TB for the same price as the 4TB seagate) and slightly slower read/write speed (150MB/sec peak vs 170MB/sec peak), but I value reliability over all other factors. These Seagate drives must have some kind of manufacturing defect, or perhaps were damaged in shipping... UPS have been known to treat packages like a football!
Re: [gentoo-user] hp H222 SAS controller
On Thu, Jul 11, 2013 at 5:06 PM, Stefan G. Weichinger li...@xunil.at wrote: Am 03.07.2013 00:42, schrieb Paul Hartman: On Tue, Jul 2, 2013 at 2:56 PM, Stefan G. Weichinger li...@xunil.at wrote: Does anyone use that controller with gentoo? If yes, which driver/module does support it? I ordered one for a server and did not really check the facts ;-) Looks like it uses the LSI SAS2008 chipset (basically LSI controller with HP branding), so you should enable kernel module mpt2sas (CONFIG_SCSI_MPT2SAS) and probably some other SAS-related options will be required as well if you don't already use them. lspci shows something else here: # lspci | grep SATA 00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04) 38:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11) 3d:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11) so I have to look for Marvell stuff ... module mv_sas does not work yet, no scsi-tape-device visible. Hmmm, even the data on HP's website says H222 uses LSI SAS2x08 chipset and mpt2sas driver. I think maybe those Marvell entries are SATA/eSATA ports on your motherboard. Or you don't have the same H222 I am seeing online when I search. :) BTW that Marvell chipset should work with the ordinary kernel AHCI driver.
Re: [gentoo-user] hp H222 SAS controller
On Mon, Jul 8, 2013 at 1:27 PM, Stefan G. Weichinger li...@xunil.at wrote: Does it make sense to apply some sort of burn-in-procedure before actually formatting and using the disks? Running badblocks or something? I ask because I wait for that shiny new server and doing so might not hurt before installing gentoo. Or is that too paranoid and a waste of time? Initially I ran the SMART long test and it found no errors. Then I did badblocks read-only scan and it found some bad sectors. After that, SMART tests failed to complete due to failure reading LBA x. I used hdparm to remap those sectors, but didn't feel entirely confident in the disk at that point in time. So I ran the badblocks destructive read-write test and it completed (after a couple days) with zero errors! How can it be? Checking the SMART statistics afterward, I can see now there are dozens of newly reallocated sectors. So that means the drive silently replaced those bad sectors with spares, which is good! That is what it is supposed to do! I don't feel happy about the fact that those bad sectors exist in the first place, but the drive did what it was designed to do when it encountered them. After the r/w badblocks test cycle finished, I ran SMART long-scan again and this time it completed with no errors. So I recommend to do the destructive read-write badblocks test, if you can afford the hours (or days) spent waiting for it to complete. SMART alone did not detect the errors initially, but neither did badblocks actually identify the errors during its write test (because the drive hides it). But the combination of badblocks and the self-repairing code in the drive's firmware accomplished the goal of making my disk free of errors (logically). Notes: WARNING! Be careful to give the correct device name when doing the badblocks write test! There is no confirmation prompt! It immediately starts destroying data at the beginning of the disk. If you have a disk with 4k sector size, be sure to tell badblocks to use a 4096 byte block size. It uses 1k block size by default, which can cause the test to be very slow! In my system badblocks with 1k block size read at 15MB/sec, while 4k block size read at over 160MB/sec! Using 1k block size on a 4k-sector disk also causes all errors to be reported 4 times each. Good luck :)
Re: [gentoo-user] Linux viruses
On Mon, Jul 8, 2013 at 8:24 AM, Dale rdalek1...@gmail.com wrote: Questions. Can a virus infect the OS when running on Linux through java/javascript/flash? Or would the infection at the least be limited to that user? I think how they typically work, on any OS, is they exploit a bug in the browser (or a browser plug-in) to run code on your local machine, and then that code exploits the operating system in order to get root-level privileges. After it has that, the possibilities are endless... There's nothing special about Linux that would make that scenario play out any better than it does on Windows, but in reality the number of exploits found for Windows has been greater, and the number of Linux web browser users is far fewer, so it's pretty rare to see web pages that target Linux exploits (but I do read about them from time to time). I personally use Firefox with RequestPolicy, NoScript and Adblock Plus. That still won't protect me from a bug in Firefox itself. I suppose if I really wanted to be paranoid I would run it in a virtual machine (but, hey, those can be exploited, too). At some point, you have to just go with it and hope for the best. Either that or turn off the computer. :) How is html5 going to affect this? Better or worse? HTML5 is already here and you're probably already using it. :) The biggest benefit to using anything but Flash is the idea that the code is not in Adobe's hands and that the community would identify and fix bugs sooner. But that's not guaranteed to be the case. A web browser is perhaps the most complicated piece of software most of us will ever run on our computers, and there's a lot of room for mistakes to happen in those millions of lines of code. Anything can happen.
Re: [gentoo-user] hp H222 SAS controller
On Thu, Jul 4, 2013 at 9:04 PM, Paul Hartman paul.hartman+gen...@gmail.com wrote: ST4000DM000 As a side-note these two Seagate 4TB Desktop edition drives I bought already, after about than 100 hours of power-on usage, both drives have each encountered dozens of unreadable sectors so far. I was able to correct them (force reallocation) using hdparm... So it should be fixed, and I'm reading that this is normal with newer drives and don't worry about it, but I'm still coming from the time when 1 bad sector = red alert, replace the drive ASAP. I guess I will need to monitor and see if it gets worse.
Re: [gentoo-user] k3b burning BD-Disk pretends to fail at 99.99%
On Sat, Jul 6, 2013 at 11:33 AM, Alexander Puchmayr alexander.puchm...@linznet.at wrote: I just burned all my pictures from my last vacation on a blueray-disk using k3b, and for no apparent reason it stoped at 99.8% and complained an error (I/O error). I checked the logs (see attached file), but could not find a hint. I compared each and every file on the disk with its original, but yould not find any problem. Maybe it is same as described in this bug: https://bugs.kde.org/show_bug.cgi?id=255483 I don't use k3b but I know when I burn a 25GB disc image using growisofs, I have to disable the spare sectors otherwise it won't fit on the disc, and it burns all the way until the end where it fails, rather than knowing ahead of time that it won't fit.
[gentoo-user] Mouse/pointing stick/trackpoint calibration?
Hi, I have a keyboard with built-in pointing stick (like IBM trackpoint). It shows up like a standard USB mouse. Problem is: it moves to the right at a rate about 6x faster than it moves to the left... For example I can move the mouse cursor from left to right in 1 second, but from right to left it takes 6 seconds to cross the screen. Is there a way to calibrate the mouse in Xorg so that the directions will move at the same rate? Perhaps it's a physical defect and I need to take apart the keyboard, but if I can compensate somehow that would be great. I looked in the Xorg mouse settings, but the only sensitivity options seem to be global and not directional. Thanks, Paul
Re: [gentoo-user] [OT] What's up with Firefox?
On Fri, Jul 5, 2013 at 4:28 AM, Peter Humphrey pe...@humphrey.ukfsn.org wrote: Perhaps I shouldn't mention Konsole, of which I have four instances on one desktop. In two of them, turning the mouse wheel scrolls the output as expected, but in the other two it scrolls the command-line buffer! I assume this is just one more artefact of the mess that is KDE these days. Looks like this 5-year-old bug has other people wondering/complaining about it, too: https://bugs.kde.org/show_bug.cgi?id=170582
Re: [gentoo-user] Linux viruses
On Fri, Jul 5, 2013 at 3:12 PM, Dale rdalek1...@gmail.com wrote: I had a interesting adventure the other day. A friend of mine's son is getting ready to go to college. Budget is tight so we went to find a used laptop for him. I went into the local puter shop and the techie guy there had a interesting statement that makes me think I'm not recommending them for computer service to anyone else. While we was chatting, he said that Linux is just as prone to getting a virus as windoze and so is a Mac. I think my laughing let him know I wasn't buying his comment. I since did some googling and it seems I am right and he just thought I was some know nothing guy he could sell some service too. Anyway, has anything changed to make Linux more prone to viruses than it used to be? I read a percentage somewhere that said like 99% of viruses are windoze only. Is there a indisputable source of information on this? There have absolutely been viruses and various root exploits for Linux systems, but to say it is even 1% as many as Windows would probably be a massive overstatement. Not that Linux or Mac are necessarily inherently more secure than Windows, but Windows (and software that runs on Windows) is by far the biggest target for bad guys, and the most used by careless users. On any operating system, proper maintenance with regard to security updates, and smart behavior (don't run that EXE attachment the Nigerian prince just sent you) will keep you safe. For people who don't do that, Linux is typically set up more securely than Windows, by default... but the person sitting at the keyboard is usually capable of screwing it up more than any virus. :)
Re: [gentoo-user] xscavenger - game
On Fri, Jul 5, 2013 at 7:49 PM, Joseph syscon...@gmail.com wrote: I installed xscavenger and it installed without any problems but I can seems to find this game anywhere. Yes, I'm in games group. From the command line: /usr/games/bin/scavenger -bash: /usr/games/bin/scavenger: Permission denied /usr/games/bin/scavenger -rwxr-x--- 1 root games 70496 Jul 5 18:39 /usr/games/bin/scavenger Probably does not help you solve your problem, but I just tried here and it worked for me. I am running as my normal user. The permissions of the installed binary look the same as yours. Where I start the game I saw some messages like: $ scavenger No /home/paul/.scavenger/!!! Setting one up... No /home/paul/.scavenger/levels.scl, setting one up... Trying to copy /usr/share/games/scavenger/levels.scl..copied. No /home/paul/.scavenger/scavrc, setting one up... Also BTW -- there is a more modern SDL-based version on the author's website. I don't see any ebuild but maybe you can compile it and see how it goes.
Re: [gentoo-user] xscavenger - game
On Fri, Jul 5, 2013 at 10:27 PM, Joseph syscon...@gmail.com wrote: Maybe /usr/games/bin/ is not on the path? How do I check it, I forgot :-/ echo $PATH
Re: [gentoo-user] hp H222 SAS controller
On Thu, Jul 4, 2013 at 4:21 AM, Stefan G. Weichinger li...@xunil.at wrote: My planned box will be a stable gentoo installation so that will mean 3.8.13 for now. No problem, I assume. No problem, I think the mpt2sas driver appeared in kernel around 2.6.3X series. Thanks for your description ... good luck with that! I will maybe pre-install that system in a VM until the hardware gets here ;-) Today I installed my drives into the SAS enclosure. Everything is working great and I'm getting maximum speed from all drives with simultaneous access. So far I have not experienced any errors or problems. Hopefully your luck is as good as mine! Here is how it looks in dmesg: [4.260179] mpt2sas version 14.100.00.00 loaded [4.265444] mpt2sas0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (32800384 kB) [4.265498] mpt2sas :06:00.0: irq 98 for MSI/MSI-X [4.265607] mpt2sas0-msix0: PCI-MSI-X enabled: IRQ 98 [4.265609] mpt2sas0: iomem(0xfe3c), mapped(0xc9038000), size(16384) [4.265611] mpt2sas0: ioport(0xb000), size(256) [4.344822] mpt2sas0: sending message unit reset !! [4.346817] mpt2sas0: message unit reset: SUCCESS [4.390041] mpt2sas0: Allocated physical memory: size(4219 kB) [4.390048] mpt2sas0: Current Controller Queue Depth(1867), Max Controller Queue Depth(2040) [4.390052] mpt2sas0: Scatter Gather Elements per IO(128) [4.450285] mpt2sas0: LSISAS2008: FWVersion(16.00.00.00), ChipRevision(0x03), BiosVersion(07.31.00.00) [4.450291] mpt2sas0: Protocol=(Initiator,Target), Capabilities=(TLR,EEDP,Snapshot Buffer,Diag Trace Buffer,Task Set Full,NCQ) [4.453850] mpt2sas0: sending port enable !! [4.459383] mpt2sas0: host_add: handle(0x0001), sas_addr(0x500605b0060f40d0), phys(8) [4.464832] mpt2sas0: port enable: SUCCESS The disks appear as SCSI disks like normal, but with the SAS address included: [4.466217] scsi 10:0:0:0: Direct-Access ATA ST4000DM000-1F21 CC52 PQ: 0 ANSI: 6 [4.466228] scsi 10:0:0:0: SATA: handle(0x0009), sas_addr(0x44332211), phy(0), device_name(0x5000c500508bcc46) [4.466234] scsi 10:0:0:0: SATA: enclosure_logical_id(0x500605b0060f40d0), slot(0) [4.466359] scsi 10:0:0:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y) [4.466369] scsi 10:0:0:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(7), cmd_que(1) [4.466710] sd 10:0:0:0: Attached scsi generic sg4 type 0 [4.467172] sd 10:0:0:0: [sdd] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB) [4.467180] sd 10:0:0:0: [sdd] 4096-byte physical blocks Good luck, Paul
Re: [gentoo-user] [OT] What's up with Firefox?
On Thu, Jul 4, 2013 at 10:29 AM, Peter Humphrey pe...@humphrey.ukfsn.org wrote: Sorry to be a nuisance but I can't think of where else to ask. On the website I run I have a link to our Twitter profile (or whatever it's called). This is the link: https://twitter.com/TideswellMVC If I examine the page using the web host's file editor I see exactly that, yet if I press CTRL-U in www-client/firefox-17.0.7 it shows this: https://twitter.com/#%21/TideswellMVC and if I click the link in the main window I'm asked for a login and password. Very strange! Trying the latest Windows version of Firefox in an XP virtual box I get the unaltered link. I can't tell what version that is because About Firefox merely checks, then tells me I'm up to date. The latest release of Firefox is version 22.0, however version 17 is the latest Extended Support Release and coincidentally also the latest stable version in Gentoo. The url about: will show the version information in Firefox (and most other browsers). If you want to ensure you are comparing apples to apples, you can download the version 17 ESR Windows installer from: http://www.mozilla.org/en-US/firefox/organizations/all.html Incidentally, I have a web server running on my LAN with an identical copy of the site. Using that as the target, rather than the public version, gives the same results. I haven't used JavaScript anywhere. What's going on here? I don't know, but here is what I am thinking: A) Does it do the same if you use a different browser? opera or google-chrome are binaries and don't require any compilation, so they might be fast to emerge if you haven't got any other browsers installed. You could also simply use wget or curl to fetch a copy of the page and look at it in a text editor. If other browsers experience the same thing, go to C) B) I would first try to rule out a configuration or plug-in/add-on causing the issue. On the Firefox Help menu there is an option to restart with add-ons disabled. This will restart Firefox in safe mode. Please be aware that it also gives you an option to Reset Firefox -- this will reset it to factory default configuration, while supposedly preserving your personal information. I have not actually tried that so I would backup your profile beforehand just in case it goes off the rails. Once you're in safe mode, simply quitting firefox and reopening it will bring it back to normal mode again. If safe mode doesn't help, I would try creating a new profile. You can do this without any effect on your existing profile. Start firefox from shell prompt by firefox -P to launch the profile manager. Alternatively, you could login using a different user on your machine. C) If browser or settings don't make a difference, I would ask if you're using any sort of proxy or ad-blocker/parental control/spam filter on your network. That might be silently altering the pages in an unintended way. Also, some employers, ISPs and governments perform content modification on HTTP requests to insert ads or block disallowed URLs. If your web server supports HTTPS I would try fetching the page using that to see if it is the same. That should eliminate the possibility of outside interference as far as manipulation of the page contents goes. D) If this is a website you created, I would ask if you might have your /etc/hosts file pointing at a different server's IP. I have seen a similar problem where someone had their domain name on their web development laptop pointing to a test server rather than the live public server. That's probably not the case since you've experienced the same problem on your local web server, but I thought I would mention it just in case it might spark any ideas if everything else failed to work. Good luck, Paul
Re: [gentoo-user] hp H222 SAS controller
On Wed, Jul 3, 2013 at 2:29 AM, Stefan G. Weichinger li...@xunil.at wrote: Am 03.07.2013 00:42, schrieb Paul Hartman: On Tue, Jul 2, 2013 at 2:56 PM, Stefan G. Weichinger li...@xunil.at wrote: Does anyone use that controller with gentoo? If yes, which driver/module does support it? I ordered one for a server and did not really check the facts ;-) Looks like it uses the LSI SAS2008 chipset (basically LSI controller with HP branding), so you should enable kernel module mpt2sas (CONFIG_SCSI_MPT2SAS) and probably some other SAS-related options will be required as well if you don't already use them. I actually just installed a card with this same chipset in my Gentoo machine yesterday! I have not attached disks to it yet, as I am waiting for the enclosure to be delivered, but so far nothing froze or burst into flames when the module loaded. :) I even upgraded the BIOS and firmware on the card from within linux and everything seems okay, so far. Thanks a lot, Paul, for that feedback. Seems that you will be the first to really test it, my box will arrive next week, I assume. This will be an installation from scratch so no SAS-related stuff there already. I wonder if it makes sense to attach the disks to that adapter as well? This box will do amanda backups ... so there will be the amanda holding disk and it is important to have maximum speed between that holding area and the tape drive. I plan RAID1 on 2x2TB disks at least or maybe even RAID0 (it's a rather temporary storage area so the redundancy isn't that important). Testing will show! Mine will be attached to an external 8-disk storage array with 2 external SAS cables (4 disks per cable). I had a 5-disk 8TB software RAID5 in my computer that I had to remove due to an unplanned motherboard upgrade. Right now the disks are in a cheap external 5-disk eSATA/USB JBOD enclosure plugged into the eSATA port on my motherboard, but it's not able to access all disks at the same time, so the RAID5 performance is awful. Around 10-20 MB/sec on writes and max 50MB/sec on reads. (It was previously 100MB+/sec for both operations.) In the eSATA enclosure, a single scrub (check) of my array takes FOUR DAYS to complete! I worry about what will happen if I have to replace a disk, the rebuild would take forever... what if there is a power outage and my UPS battery only lasts around 30 minutes? I bought two of the lowest-quality 4tb Seagate drives for US$140 each on sale and plan to use them to make a backup copy of my files from the RAID onto those drives. So far I have never made a backup of my RAID because I never had enough storage space to duplicate it all. RAID is not a backup has been repeating in my head for all these years. Horror stories about a corrupt filesystem, or 1 bad sector causing the whole RAID5 rebuild to fail. Now that I will have extra drive bays, maybe I can add a second parity drive and try to do an online upgrade from RAID5 to RAID6. I definitely want to make a good backup before I try that... I am hopeful that the SAS controller and enclosure should give me high performance again! I will let you know how it goes. BTW, I am using the latest 3.9 series linux kernel.
Re: [gentoo-user] Re: Can't find init due to inconsistent drive order
On Tue, Jul 2, 2013 at 11:57 AM, Grant Edwards grant.b.edwa...@gmail.com wrote: All the references Google can find for me say that you have to use a GPT partition table if you want to specify a boot partition using root=PARTUUID=partition-uuid. Does the root=PARTUUID option work for you? Can you point to some documentation on how you can use root=PARTUID=partition-uuid with an DOS/MBR partition table? As Neil alluded to, you can use UUID with MBR (instead of PARTUUID and GPT). I have DOS/MBR partition table and my kernel commandline looks like: root=UUID=1d21fa55-0fa9-4d43-8d41-8b4193900efa ro log_buf_len=1M quiet rootfstype=ext4 raid=noautodetect (along with an initramfs)
Re: [gentoo-user] Re: Can't find init due to inconsistent drive order
On Tue, Jul 2, 2013 at 3:27 PM, Grant Edwards grant.b.edwa...@gmail.com wrote: Can you point to some documentation on how you can use root=PARTUID=partition-uuid with an DOS/MBR partition table? As Neil alluded to, you can use UUID with MBR (instead of PARTUUID and GPT). I have DOS/MBR partition table and my kernel commandline looks like: root=UUID=1d21fa55-0fa9-4d43-8d41-8b4193900efa ro log_buf_len=1M quiet rootfstype=ext4 raid=noautodetect (along with an initramfs) Yes, we've already discussed that if you have an initrd (or initramfs), and an 'init' program that handles it, you can use filesystem labels and filesystem uuids. The option we were discussing in the posting to which you replied is that of using the root=PARTUUID method which is handled directly by the kernel. Ah, sorry, I missed that detail. I thought I was helping to clear up confusion, when in fact I was the confused one! :)
Re: [gentoo-user] hp H222 SAS controller
On Tue, Jul 2, 2013 at 2:56 PM, Stefan G. Weichinger li...@xunil.at wrote: Does anyone use that controller with gentoo? If yes, which driver/module does support it? I ordered one for a server and did not really check the facts ;-) Looks like it uses the LSI SAS2008 chipset (basically LSI controller with HP branding), so you should enable kernel module mpt2sas (CONFIG_SCSI_MPT2SAS) and probably some other SAS-related options will be required as well if you don't already use them. I actually just installed a card with this same chipset in my Gentoo machine yesterday! I have not attached disks to it yet, as I am waiting for the enclosure to be delivered, but so far nothing froze or burst into flames when the module loaded. :) I even upgraded the BIOS and firmware on the card from within linux and everything seems okay, so far.
Re: [gentoo-user] Can't find init due to inconsistent drive order
On Mon, Jul 1, 2013 at 4:52 PM, Grant Edwards grant.b.edwa...@gmail.com wrote: I've just recently run into a problem where sometimes when a machine boots, the kernel can't find init. This appears to be because my grub configuration line says root=/dev/sda5 and _sometimes_ the drive that contains my root partition is sdb instead of sda. AFAICT, for the past 30 years the linux kernel was 100% consistent in the order that hard drives were labelled -- but recently that has seems to have changed. I wonder if it could be related to parallel initialization of disks. I think there's a kernel toggle for that. I wonder if sometimes one drive spins up faster than the other. (If that's even how it works...) I have experienced situations where the drive names change depending on what devices were plugged into the computer when it was turned on, especially external hard drives, card readers or flash drives, or if a disc in the CDROM drive. Not sure if that is due to the way the computer's BIOS handled things during POST, or the way the linux kernel does its thing. Are we really expected now to set up an initrd just so that the kernel can find the root partition?? As far as I know, the answer is yes. FWIW, I always resisted making an initrd until very recently, but wanted to use UUID in my bootup on my new system. I used this command (which I re-run whenever I deploy a new kernel): dracut -H -o i18n -o resume -o usrmount --force /boot/initramfs.img And then added one line to my grub2 config: initrd /initramfs.img and it just simply works... though it's still a bit of black magic to me, and every time I reboot I feel a bit of nervousness when I see Loading initial ramdisk... and don't breathe until it succeeds. :)
Re: [gentoo-user] Re: Any way of tracing kernel freezes?
On Thu, Jun 13, 2013 at 9:05 AM, Nikos Chantziaras rea...@gmail.com wrote: On 13/06/13 16:47, Frank Steinmetzger wrote: recently my netbook got the habit of freezing sporadically. [...] [...] I ran a memtest a few months back and stopped it after 8 successful passes. I might try that again as soon as I find out how¹, but I'd think that a corrupt memory would cause something different than a full freeze. It usually manifests in segfaults that seem to come at random. But it's still worth a shot. It's very easy. Emerge sys-apps/memtest86+ and add this grub entry: title=Memtest86+ root (hd0,0) kernel /boot/memtest86plus/memtest.bin (Adapt the hd0,0 of course to be the same disk as the one you're using to boot your kernel.) That's it. Now your boot menu will include a Memtest86+ option. This is for grub 1 though. If you migrated to grub 2 by now, then I don't know how that boot entry would look like. I suspect it will be some 300-line monstrosity or something :-| Actually it is -- dare I say it -- even more simple in grub2 :) menuentry Memtest86+ 4.20 { linux16 /memtest86plus/memtest.bin } That's from my grub.cfg... I don't use the grub auto-configuration tools. I just made a manual grub.cfg like in the grub1 days. It is quite similar to the old grub syntax, but more can do more stuff. BTW there is a new version 5.00 of memtest86+ which is on rc1 release right now, it supports multi-core processors (and tests/uses them), shows system temperature while testing, is much faster than the old one, and has a few new tests. There is a link to it on the memtest forums.
Re: [gentoo-user] [OT] Recent git kernels break rtc (real-time-clock)
On Mon, Jun 10, 2013 at 7:31 PM, walt w41...@gmail.com wrote: After the recent 3.9 -- 3.10 kernel merge window, udev no longer creates /dev/rtc (or /dev/rtc0) during bootup on my ~amd64 machines. (The only machines I have now.) Not a git-kernel nerd, but just an ordinary kernel nerd. :) The kernel RTC driver creates /dev/rtc0 and then I assume udev creates /dev/rtc from there, so if you are missing rtc0 that's a possible source of the problem. Which would coincide with your kernel upgrade. I know 3.9 introduced a couple new RTC-related option so maybe it changed around some more to 3.10 series. I would run menuconfig and see what it thinks you have enabled in that section, just in case something got lost in transition from one kernel to the next. In dmesg on my non-git 3.9.4 kernel it looks like: [1.237994] rtc_cmos 00:04: RTC can wake from S4 [1.238158] rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0 [1.238177] rtc_cmos 00:04: alarms up to one month, y3k, 114 bytes nvram, hpet irqs [1.241101] rtc_cmos 00:04: setting system clock to 2013-06-04 04:28:34 UTC (1370320114) I'm using the PC-Style CMOS RTC driver, and I have all of the RTC-related options enabled except for the debugging options.
Re: [gentoo-user] Crash dumps
On Wed, Jun 5, 2013 at 1:09 PM, Michael Mol mike...@gmail.com wrote: With some recent software updates (well, a month's worth...didn't realize I wasn't syncing on my laptop), X now frequently dies on me. As it happens, I've already rebuilt all the software on the system...I do an emerge -e @world every time there's a gcc update. To my knowledge, there's no old cruft, no old binaries, nothing for depclean to remove or revdep-rebuild to fix, etc. etc. The next step is to actually inspect the crashes and see what's happening...but for this to be even remotely convenient, I'd like my system to start accumulating crash dumps for my inspection. Fortunately, I have -ggdb in CFLAGS for just such occasions, so I'm not wanting for symbols... Trouble is...I don't remember how to do this. How do I enable crash dumps, and how do I control where the dump files are dropped? You may have already seen it, but this article may lend some clues: http://www.gentoo.org/proj/en/qa/backtraces.xml
Re: [gentoo-user] Nvidia drivers and KDE problem
On Sun, May 26, 2013 at 4:12 AM, Dale rdalek1...@gmail.com wrote: The problem. After I am logged into KDE for a good while, like several hours to maybe a day or so, the kicker thingy at the bottom locks up tight. I can't switch desktops, clock stops working, can't click the K menu thingy either. Everything in the kicker thingy is dead as a door nail. I can switch desktops with the keyboard and everything else works in KDE just fine. I can also switch to a console too. Killing X and restarting it fixes it, xdm restart in my case. I don't have to reload drivers or restart the system. I do go back and downgrade the drivers after testing it. I recently started having trouble where KDE becomes unresponsive at login and logout for about 20 seconds or more. In my case it was because of pulseaudio and KDE not getting along together for some reason. The facts are a bit more nuanced but the work-around that makes everything normal for me again was to edit /etc/xdg/autostart/pulseaudio.desktop and add a line which says: NotShowIn=KDE Maybe unrelated to your problem but I thought I would mention it just in case.
Re: [gentoo-user] external SSD problem
On Tue, May 28, 2013 at 2:23 PM, Grant emailgr...@gmail.com wrote: I just got one of these: http://www.newegg.com/Product/Product.aspx?Item=N82E16820208913 It seems to work fine except that once I eject it in Thunar, I get this in dmesg: sd 8:0:0:0: [sdb] Synchronizing SCSI cache sd 8:0:0:0: Device offlined - not ready after error recovery The only way to get the /dev/sdb device back is to 'modprobe -r xhci_hcd modprobe xhci_hcd'. I've tried two different USB3 cables. I have an external USB3 hard drive that works fine but /dev/sdb doesn't appear after ejecting the SSD unless I modprobe xhci_hcd. Should I file a kernel bug? You can maybe also post it to the linux-usb mailing list (linux-...@vger.kernel.org), I think there is at least one person there who works exclusively on XHCI stuff in the kernel. You might also want to check if there are any firmware updates for the USB3 chipset on your motherboard. lspci should reveal the chipset. My old motherboard had a flaky USB3 chipset (Renesas/NEC) that could only be updated from Windows, so I never bothered with updating it, but there are some that are updatable from within linux or from a DOS boot disk.
Re: [gentoo-user] Homeboy (Gentoo) Cloud storage
On Thu, May 23, 2013 at 12:03 PM, James Horton PE wirel...@tampabay.rr.com wrote: Hello, Background. One thing that intrigues me is that one storage server can intellegently store files from a variety of hardware devices. I like this concept, but, many of my devices are not common retail systems. Nor do I like the idea of my file being on a server under the control of others. So I first need to use something like owncloud and build a single server at a one location? Then I need to build another server at a diffent location. 2 or 3 physically differnt locations should work for my needs, for now. The File System to choose for this is an area where input from others is important. If you are basically looking for run my own dropbox then I think owncloud should work for you. I think mobile clients and replication to multiple servers are additional features that cost money, not included in the free version.
Re: [gentoo-user] boot-time message about nic firmware patch
On Fri, May 17, 2013 at 10:04 AM, waltd...@waltdnes.org wrote: The last 4 lines from dmesg... [4.299946] r8169 :04:00.0 eth0: unable to load firmware patch rtl_nic/rtl8168e-3.fw (-2) [4.312766] r8169 :04:00.0 eth0: link down [4.312784] r8169 :04:00.0 eth0: link down [6.019910] r8169 :04:00.0 eth0: link up It works. I'm sending this email via that nic, but I wonder if it could cause problems down the road. Here's what lspci -v shows for the nic. You need to install the package linux-firmware, it contains that file and others. Then the message should go away! :)
Re: [gentoo-user] high resolution console
On Thu, May 16, 2013 at 9:05 AM, Tamer Higazi th9...@googlemail.com wrote: Hi people! I want to have a feature installed on my gentoo machine, that if I boot I am will see a high resolution console. When I boot from the system rescue cd, at boot time it is being switch to a higher resolution, which I want to have on my default system as well. Can somebody of you tell me, how to accomplish this task?! Possible solutions that you can google for more details: kernel modesetting (if you don't use nvidia-drivers) uvesafb vesafb fbterm (a userland program) jfbterm (like fbterm focused on multilingual/utf8 support) You may also want or need to install gpm for console mouse support
Re: [gentoo-user] Calibre Update Problems
On Thu, May 9, 2013 at 3:28 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote: I'm puzzled by the following, which I checked to compare with the import error you quoted: $ eix -c qtwebkit [I] dev-qt/qtwebkit (4.8.4(4){tbz2}@08/05/13): The WebKit module for the Qt toolkit $ equery f qtwebkit | grep '.so.' /usr/lib64/qt4/libQtWebKit.so.4 /usr/lib64/qt4/libQtWebKit.so.4.9 /usr/lib64/qt4/libQtWebKit.so.4.9.3 $ qfile /usr/lib64/qt4/libQtWebKit.so.4.9.3 dev-qt/qtwebkit (/usr/lib64/qt4/libQtWebKit.so.4.9.3) Why the mismatched version numbers, anyone? The soname version number does not necessarily have to be the same as the release version, as you see in this case, it's actually somewhat common. MOST packagers try to keep them the same but there's no technical reason for them to be. Most noticeably I see a lot of KDE-related packages having so versions that differ from the release version. In this case I guess it is because QtWebkit kind of exists on its own, despite being part of Qt proper since 4.8-ish. Probably QtWebKit interface changes are happening on a different schedule than Qt version releases so they have to keep bumping the so version? Maybe somebody with more knowledge of Qt would know for sure.
Re: [gentoo-user] Setting size of /dev/shm or cleaning up ancient /etc/fstab
On Wed, May 8, 2013 at 12:55 AM, Walter Dnes waltd...@waltdnes.org wrote: I'm running mdev, so that may be related. Here's my story... a script I run to automatically process digital photos started blowing up on me. After much bashing of head against brick wall, I determined that /dev/shm now has an absolute max size of 10 megabytes! Any larger files could not be written to it. Here's all the uncommented stuff in /etc/fstab /dev/sda5 / ext2 noatime,nodiratime,async0 1 /dev/sda7 /home reiserfs noatime,nodiratime,async,notail 0 1 /home/bindmounts/opt/opt auto bind0 0 /home/bindmounts/var/var auto bind0 0 /home/bindmounts/usr/usr auto bind0 0 /home/bindmounts/tmp/tmp auto bind0 0 /dev/sda6 noneswapsw 0 0 /dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0 /dev/sr0/mnt/dvdautonoauto,users,ro 0 0 devpts /dev/pts devpts defaults 0 0 none /dev/shmtmpfs rw,noatime,noexec,nosuid,nodev 0 0 Meanwhile, my netbook, with the /dev/shm line commented out, runs just fine and handles large files in /dev/shm. I followed the example at http://wiki.gentoo.org/wiki/Complete_Handbook/Configuring_the_system with slightly more paranoid settings, e.g. noexec. What gives? You can forcefully specify the size of /dev/shm like this: none/dev/shm tmpfs defaults,size=10G 0 0 But it should default to 50% of your system RAM... weird... do you have any local scripts that are remounting it, maybe? There's a lot more information in the kernel documentation: /usr/src/linux//Documentation/filesystems/tmpfs.txt The default fstab from latest baselayout does not contain /dev/shm at all: # /etc/fstab: static file system information. # # noatime turns off atimes for increased performance (atimes normally aren't # needed); notail increases performance of ReiserFS (at the expense of storage # efficiency). It's safe to drop the noatime options if you want and to # switch between notail / tail freely. # # The root filesystem should have a pass number of either 0 or 1. # All other filesystems should have a pass number of 0 or greater than 1. # # See the manpage fstab(5) for more information. # # fs mountpointtype opts dump/pass # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. /dev/BOOT /boot ext2noauto,noatime 1 2 /dev/ROOT / ext3noatime 0 1 /dev/SWAP noneswapsw 0 0 /dev/cdrom /mnt/cdrom autonoauto,ro 0 0 /dev/fd0/mnt/floppy autonoauto 0 0
Re: [gentoo-user] Recover on SSD
On Sun, May 5, 2013 at 7:49 PM, Randolph Maaßen r.maasse...@gmail.com wrote: I'm so damn lucky I dd'ed the SSD onto an external drive and worked at first on the image with qemu. A simple recreation of the partition brought the system back to live on the image. I tried the same on the real machine and Gentoo works again. Wow, congratulations. In the old days when I first started using Linux, I used to keep a backup of my boot sector and partition table on a floppy disk. Maybe I should consider this practice again as part of my backup routine. :)
Re: [gentoo-user] Server system date synchronizaion
On Thu, Apr 25, 2013 at 9:33 AM, Nick Khamis sym...@gmail.com wrote: Hello Everyone, We are trying to sync our server's time with an accurate ntp server, and was wondering which of the many solutions are considered viable. I did see the http://en.gentoo-wiki.com/wiki/Time_Synchronization. Our services are quite time sensitive. I think the classic method is to use net-misc/ntp See the extensive article at http://en.gentoo-wiki.com/wiki/NTP for great examples and description.
Re: [gentoo-user] Re[2]: [gentoo-user] Server system date synchronizaion
On Fri, Apr 26, 2013 at 3:54 PM, Alan McKinnon alan.mckin...@gmail.com wrote: On 26/04/2013 22:46, the guard wrote: Пятница, 26 апреля 2013, 22:41 +02:00 от Alan McKinnon alan.mckin...@gmail.com: Do none of us here ever deal with Windows? :-) I notice that no-one has yet mentioned that Windows does not do ntp, as Windows does not do time right, doesn't do timezones right and I strongly suspect can't even do dates right (this latter still unproven) Windows time servers need some magic Microsoft thing called ENTP which is in no way related to the ntp we all know and love It refuses to adjust time if you have a wrong date. timezone is set in your system I was thinking more along the lines of how Windows has no concept of UTC set in the hw clock and a local timezone, and how timezones are odd things like Harare/Pretoria instead of the official names like SAST GMT+2 as set by the scientific timekeeping community. How about daylight savings? Can Windows deal with that? Other than by just shoving the clock back and forward by an hour on the right days? I've used windows for the past 25,000+ work hours at my job (I wish that were an exaggeration) in an all-Microsoft corporate environment. I dare not declare myself an expert in anything Windows so as not to encourage more of it. :) AFAIK the windows time service (w32time) does everything internally and between machines using UTC, but translates to/from local time for updating the hardware clock and the OS time. When daylight saving time happens it just changes the clock, though I have heard of some sites where the time change does not occur until the next time sync happens. If DST happens when the machine is powered off, it changes it at the next reboot (and usually pops up a little window to let you know what has happened). Sometimes if you reboot multiple times on a DST changeover day it can adjust the clock repeatedly... If you haven't installed Windows Updates or are using an unsupported version, your DST and time zone info may be outdated. For example, in the US about 10 years ago they changed the start and end of DST by a few weeks. Any devices using the old logic will be wrong for about a month out of the year. If someone manually fixes the time on their workstation, it will be correct until it changes itself and then it'll be wrong again. :) Also, being Windows, people tend to set the wrong time zone, don't check the use daylight saving box, choose Central America (continent) instead of Central US (country) time zone, etc. Then they send out meeting invitations in Outlook and the time gets shifted by the Exchange server and everybody shows up to a conference room an hour early, except for the person who organized the meeting, naturally. Time sync has been built into Windows since Win 2000, and machines who are part of a domain sync time with their domain controller using some proprietary protocol called NT5DS. If you have admin rights you can edit the registry and change it to use plain old NTP and sync with a regular NTP server. The DC can sync with other DCs or standard NTP server(s) over the internet. Home machines w/o a domain can set an NTP server in the date and time settings without messing with the registry, I think. (I don't use Windows at home.) The time sync service by default changes the time gradually, taking up to an hour to make the adjustment when there is a difference. Not sure if there is an upper limit where it refuses to adjust if it's too wrong. You can also force an immediate sync in those cases. There is a multi-purpose time utility built-in to windows called w32tm.exe that lets you do various time operations, giving some insight into the way Windows sees the world. I can do things like: C:\Windows\system32w32tm /tz Time zone: Current:TIME_ZONE_ID_DAYLIGHT Bias: 360min (UTC=LocalTime+Bias) [Standard Name:Central Standard Time Bias:0min Date:(M:11 D:1 DoW:0)] [Daylight Name:Central Daylight Time Bias:-60min Date:(M:3 D:2 DoW:0)] The interesting part there is UTC=LocalTime+Bias. So that seems to be how they handle that. The other lines show what it knows about when DST kicks in and the additional bias. C:\Windows\system32w32tm /query /status Leap Indicator: 0(no warning) Stratum: 4 (secondary reference - syncd by (S)NTP) Precision: -6 (15.625ms per tick) Root Delay: 0.2329102s Root Dispersion: 0.3298777s ReferenceId: 0x0A010046 (source IP: 10.1.0.70) Last Successful Sync Time: 4/26/2013 10:37:44 AM Source: DC1.example.com Poll Interval: 15 (32768s) Tells me about the time sync status on my workstation and info about the last sync. C:\Windows\system32w32tm /stripchart /computer:time-a.nist.gov /samples:10 Tracking time-a.nist.gov [129.6.15.28:123]. Collecting 10 samples. The current time is 4/26/2013 4:08:03 PM. 16:08:03 d:+00.0467925s o:-00.2902514s [ *| ] 16:08:05 d:+00.0623842s o:-00.2958840s [ *|
Re: [gentoo-user] How reliable is ext3?
On Tue, Apr 23, 2013 at 4:10 PM, Jarry mr.ja...@gmail.com wrote: On 23-Apr-13 22:40, Alan McKinnon wrote: ext4 is fine. All the horror stories ended years ago and almost all major distros ship it as a default. Hm, I remember one horror story about ext4 data corruption bug which circulated in public just a few months ago: https://lkml.org/lkml/2012/10/23/690 AFAIR the widely-reported bug was actually limited to a very obscure circumstance using a certain non-default filesystem configuration and only 1 or 2 people were known to report corruption. And it was fixed in 3.6.6, I think. :)
Re: [gentoo-user] How reliable is ext3?
I'll add my anecdotes :) On Tue, Apr 23, 2013 at 3:40 PM, Alan McKinnon alan.mckin...@gmail.com wrote: In over 10 years, I have never had a file system failure with any of these (all used a lot): ext2 ext3 ext4 zfs reiser3 ext2, ext3, ext4, btrfs here. ext4 for years (ever since it lost the dev suffix in the kernel) without a single hiccup, and btrfs on a laptop with no battery monitor, meaning the battery would die with no warning (unclean shutdowns x1000) and never had an issue that prevented it from mounting on the next reboot. Also have used btrfs on a mobile phone running Mer development snapshots which tends to crash, reboot, freeze and requires the battery pulled, also never failed to remount after that constant abuse. btrfs has some features similar to zfs, reiser, lvm, dm... I still haven't decided whether that feature-creep makes me think oh cool! or oh no! :) I have had failures with these (used a lot): Oh wait, there aren't any of those. JFS is on my never again list, I have used it on a few drives and two of them ended with catastrophic failure after an unexpected shutdown. journal replay failed is a phrase I still see in my nightmares... The recovery stripped names from inodes resulting in millions of files like I01039130.RCN or something like that... not sorted into directories or anything, though the timestamps survived, strangely. It has been several years since then and I've avoided JFS ever since. I actually had a third JFS incident, but by then I had disabled auto-fsck. I was unable to mount it read-only, but found a shareware tool for OS/2 that was able to recover files from a corrupt JFS volume, complete with filenames and directories. I slapped the drive into an OS/2 machine and it took several DAYS to complete the recovery, but it did in fact complete and I happily sent the guy ten dollars. It looks like nowadays there is an open-source tool for linux called jfsrec which does the same kind of recovery from broken JFS volumes. I used XFS on a drive which had a bad cable, and it wound up being unmountable and unfixable by fsck, though (after replacing the cable) I was able to do read-only dump all of the files from it using the xfs utils, after which I reformatted and copied everything back. Can't fault the filesystem for a bad cable but any time fsck is unable to fix an unmountable filesystem, it scares me. So, for me the rule of thumb is: ext4 on important drives (servers, my main desktop system, RAID array, backups), and btrfs on drives where I'm more willing to experiment and take a chance at something weird happening (laptop, web surfing workstation, mobile phone, virtual machines).
Re: [gentoo-user] OT: emoticon display with Thunderbird
On Mon, Apr 22, 2013 at 9:51 AM, James wirel...@tampabay.rr.com wrote: Hello, I can display the basic emoticons when I receive them in email via thunderbird. Many of the newer, more sophisticated emoticons only show the raw ascii characters. [1] Fixes for thunderbird (10.0.11) and suggestions are most welcome, as I cannot upgrade thunderbird at this time. I haven't tried it but this was the first Google result: http://kb.mozillazine.org/Add_emoticons
Re: SOLVED - was Re: [gentoo-user] Serious problem with linode vm
On Tue, Apr 16, 2013 at 1:09 PM, Michael Mol mike...@gmail.com wrote: It's unfortunate there's no tool to perform as revdep-rebuild, except checking that, e.g. a package was built with the current CHOST or CFLAGS set. The fact that I can run 'emerge --info $atomname' to get the build environment for a given $atomname tells me the system has enough information that this is possible. I simply don't know the finer details of where all this information lurks. But if I had such a tool, it would be of immense use to me while installing new systems; no need to emerge -e @world... Check out /var/db/pkg/$CATEGORY/$PKGNAME/ -- there are text files containing CFLAGS, CHOST and many others. You or someone like you should be able to hack together a simple script to look for differences. :)
Re: [gentoo-user] GCC 4.7.2-r1 build failing with bus error
On Fri, Apr 12, 2013 at 11:37 PM, Nilesh Govindrajan m...@nileshgr.com wrote: Hi, For some weird reason, I'm unable to build gcc 4.7.2-r1. This is the error - /bin/sh: line 1: 3871 Bus error build/genautomata /var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/gcc-4.7.2/gcc/config/i386/i386.md insn-conditions.md tmp-automata.c The thing is, I had downloaded a hardened stage 3 by mistake and then switched profile to non hardened. Could it be because the kernel is compiled with the hardened toolchain? I think bus error means the compiler tried to access illegal memory region or illegal instruction. Maybe a compiler bug? Wrong arch? I don't know anything about hardened so I don't know if it could be blocking access to memory somehow.
Re: [gentoo-user] Re: Udev update and persistent net rules changes
On Mon, Apr 1, 2013 at 7:00 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote: The most important para to me in the news item was: The feature can also be completely disabled using net.ifnames=0 on the kernel command line. I just added that to my grub.conf entries and I sail blissfully on with eth0. I updated remote virtual server (xen guest) and added this same option, crossed my fingers and rebooted, eth0 was still there and I was happy.
Re: [gentoo-user] Difference between --update and --emptytree?
On Sun, Mar 31, 2013 at 8:09 AM, Walter Dnes waltd...@waltdnes.org wrote: What do you mean by sane depclean? Are there any problems with --depclean that I am not aware of? emerge -p --depclean generates dire warnings. I keep a previous version of the kernel (gentoo-sources) as a fallback, and --depclean wants to remove that, which I want to keep. Quoted below is a solution that was posted to this list a few years ago, I use it for exactly that situation: to prevent kernels from ever getting depcleaned. On Thu, Jun 11, 2009 at 11:45 AM, Mike Kazantsev mk.frag...@gmail.com wrote: So, my question: Is there a way to tell depclean to never remove *any* version of gentoo-sources? That's where portage-2.2 sets find another use. Just add following set to /usr/share/portage/config/sets.conf: [kernels] class = portage.sets.dbapi.OwnerSet world-candidate = False files = /usr/src And append @kernels line to /var/lib/portage/world_sets Now any installed (even with -1) kernel should be safe from ravenous depclean. Hope that helps!
Re: [gentoo-user] How to prevent a dns amplification attack
On Thu, Mar 28, 2013 at 3:51 AM, Norman Rieß nor...@smash-net.org wrote: Hello, i am using pdns recursor to provide a dns server which should be usable for everybody.The problem is, that the server seems to be used in dns amplification attacks. I googled around on how to prevent this but did not really find something usefull. Does anyone got an idea about this? Coincidentally, yesterday US-CERT published a small article about DNS amplification attacks and mitigation strategies: http://www.us-cert.gov/ncas/alerts/TA13-088A
Re: [gentoo-user] ext4 inline data
On Fri, Mar 29, 2013 at 8:48 AM, Florian Philipp li...@binarywings.net wrote: Hi list! I noticed that beginning with kernel 3.8, ext4 can store small files entirely inside the inode. But I couldn't find much additional information: - Is the improvement automatically enabled? I don't believe so. I think you need to explicitly enable the feature inline_data when you mkfs. - Is the change backwards compatible? Can I still read such files with kernel 3.7? It is defined as INCOMPAT_INLINE_DATA so an older kernel should refuse to mount it at all if it does not know how to handle this option. Depending on your partition layout, you may also need a boot loader which knows how to read inline data. I think there is a patch to enable it on grub2, not sure if it is included in mainline or not. - Can current stable e2fsprogs (especially e2fsck) handle this? I grepped sources of e2fsprogs 1.42.7 and it contains references to inline data, but manpages don't. mkfs looks like it might not support the inline_data option yet? So I'm not sure if things are quite ready for prime time... If you try, please let us know how it goes. :)
Re: [gentoo-user] ext4 inline data
On Fri, Mar 29, 2013 at 2:20 PM, Pandu Poluan pa...@poluan.info wrote: My question would be: Will it introduce a significant advantage to my situation, so much so that I'm willing to live with the obvious drawbacks? Here are some benchmarks: http://permalink.gmane.org/gmane.comp.file-systems.ext4/34290
Re: [gentoo-user] How to prevent a dns amplification attack
On Thu, Mar 28, 2013 at 7:49 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote: On Thursday 28 March 2013 20:53:49 Paul Hartman wrote: In my case, my ISP's DNS servers are slow (several seconds to reply), fail randomly when they should resolve, return an IP (which goes to their ad-laden helper website if you are using a web browser) when they should instead return nxdomain, and they have openly admitted to selling customer DNS lookup history to marketers for targeted advertising. That is just evil. Have you no alternative to this ISP? Not really. I have a 100 megabit connection through the cable company; my only wired alternative is DSL (1.5 mbit for almost half the price I'm paying for 100mbit). Cellular or satellite are not viable options for me because of comparatively poor value, latency and miniscule data usage caps. In the USA, the local governments (cities and towns, etc.) are in control of regulating which utilities can use public land, and are entitled to compensation from those who use it. Cable companies negotiate rental of that space called a franchise fee so they can bury cables, etc. The franchise fee used to be a government-protected monopoly. In the 1980's, when cable television started booming, regional pockets of cable providers were built up thanks to these local monopolies allowing them to move into towns with no competition. For the sake of efficiency, cable companies would build out in adjacent towns and kept spreading and growing outward until at some point nearly everyone in the country had cable TV services available to them, with the exception of those living in rural areas which were not dense enough to justify the cost of laying cables, even when presented with a monopoly. It is no longer legal for local governments to award monopolies, but the damage has been done. What we have is essentially the cable TV infrastructure that was laid out during the decade when local cable monopolies were legal, and the cost of entry for a new player into the market now is so high that nobody ever bothers. End result for consumers is a lack of choice. There are some places where competition exists, but those places are pretty rare, in my experience. There are some other possible alternatives to cable internet and DSL, such as municipal wifi, mesh networks, powerline and FTTx, but none are available where I live. The service I receive from the cable company here is actually excellent, with the exception of the aforementioned DNS woes. Pretty much every major ISP in the US does DNS-hijacking and other shenanigans, so there's no avoiding the evilness. I believe the board members of major cable and telecom companies would sell their own mothers into slavery if it meant a rise in share prices or a larger bonus at the end of the year...
Re: [gentoo-user] abi_x86_32
On Thu, Mar 28, 2013 at 1:59 AM, Raffaele BELARDI raffaele.bela...@st.com wrote: I recently switched from no- to multilib. In yesterday's emerge I got tens of blockers due to conflict with emul-linux-x86-xlibs-20130224. I solved as suggested in http://forums.gentoo.org/viewtopic-t-953900.html?sid=f7a643eca8ec01540164578f372c374f and http://bugs.gentoo.org/461608 that is by adding abi_x86_32 to USE and unmasking emul-linux-x86-xlibs-20130224-r1, but didn't really understand what I was doing. Can anybody shed some light on this USE flag and what's going on with multilib? Old binary emul-linux* multilib packages are being replaced by a true compiled-from-source multilib solution. There are a few packages still need to be updated but it mostly works already. I think it will allow for more fine-grained dependencies as well for 32-bit apps on 64-bit systems. Like the forum post you linked says, instead of setting abi_x86_32 as a USE flag, what you can do in your make.conf is set: ABI_X86=64 32 (if you want to build both 32bit and 64bit) You may need to unmerge the emul-linux* packages manually then emerge deep world and figure out if you have any packages that have not yet been updated to the new way of doing things.
Re: [gentoo-user] How to prevent a dns amplification attack
On Thu, Mar 28, 2013 at 3:02 PM, Alan McKinnon alan.mckin...@gmail.com wrote: Or just use the ISP's DNS caches. In the vast majority of cases, the ISP knows how to do it right and the user does not. Generally true, though I've known people to choose not to use ISP caches owing to the ISP's implementation of things like '*' records, ISPs applying safety filters against some hostnames, and concerns about the persistence of ISP request logs. I get a few of those too every now and again. I know for sure in my case their fears are unfounded, but can't prove it. Those few (and they are few) can go ahead and deploy their own cache. I can't stop them, they are free to do it, they are also free to ignore my advice of they choose. In my case, my ISP's DNS servers are slow (several seconds to reply), fail randomly when they should resolve, return an IP (which goes to their ad-laden helper website if you are using a web browser) when they should instead return nxdomain, and they have openly admitted to selling customer DNS lookup history to marketers for targeted advertising. Thanks for being one of the good guys. :)
Re: [gentoo-user] Sync, emerge -puND world, and WHAM!!! ~100 packages to merge.
On Wed, Mar 27, 2013 at 1:09 PM, Alan Mackenzie a...@muc.de wrote: Hi, Gentoo! Has anybody else seen this? I did a sync, then emerge -puND world and got a list of ~100 packages to merge. About a third of them seem to be new perl stuff, 13 packages with gnome, and a lot of this and that. Most worrying is sys-fs/udisks-2.1.0. Should I be worried about this (all my other udev-ish stuff is up to date), or will it just work? But getting such a large update, all at once, seems worrying. Should I worry about anything, or just plough ahead with the update? You must not be a KDE user. Hundreds of upgraded packages at once is a monthly routine... :) I wouldn't worry about it. Sometimes if I have a really large list of packages, I will upgrade @system first and then upgrade @world second, but there's no real scientific reason to do so, just my own good feelings...
Re: [gentoo-user] Re: System freezes during compiles
On Wed, Mar 20, 2013 at 11:14 AM, Grant Edwards grant.b.edwa...@gmail.com wrote: On 2013-03-20, Carlos Hendson skyc...@gmx.net wrote: That's by no means conclusive, however, I've also run a complete pass of memcheck for over an hour without any issues reported. FWIW. I've had flakey memory that ran memcheck fine for several hours and multiple passes -- but if I let it run long enough, it would fail. I wouldn't be confident unless memtest ran for at least 12 hours (24 would be even better). When I've had memory problems, it seemed like it was always shown in tests 5 and 8 from memtest86+. So, now, to expedite the tests, I set it to only run tests 5 and 8. A few hours of those can find problems faster than a couple days of running the full battery of tests. I always run the full set at least once, but my experience and those of people I've seen on Google seems to indicate that on modern systems 5 and 8 are where errors are exposed. YMMV of course. :)
Re: [gentoo-user] OT: parental control software
On Wed, Mar 20, 2013 at 6:04 AM, Neil Bothwick n...@digimed.co.uk wrote: I'm looking for software that can be used to control a child's usage of the computer (not Internet filtering). At the very least it should be able to control length of login sessions and when the child is able to login. Ideally it would also be able to control access to programs, for example education programs can be used for a couple of hours but games for only 30 mins at a time (net control software can be used to deal with online versions). There are other situations where this sort of thing is useful, so it need not necessarily be a package aimed specifically at parental controls. Timekpr looks the ideal candidate, except it hasn't had a release in over three years. Any suggestions? I have not tried it, but: Gnome Nanny is an easy way to control what your kids are doing in the computer. You can limit how much time a day each one of them is browsing the web, chatting or doing email. You can also decide at which times of the day the can do this things. Gnome Nanny filters what web pages are seen by each user, so you can block all undesirable webs and have your kids enjoy the internet with ease of mind, no more worries! http://projects.gnome.org/nanny/
Re: [gentoo-user] System freezes during compiles
On Tue, Mar 19, 2013 at 11:42 PM, Carlos Hendson skyc...@gmx.net wrote: For last few weeks or so, I've been getting intermittent hard lock-ups during the emerge of various packages. It appears the more compile intensive the package, the more likely the lock-up. These lock-ups have occurred under kernels 3.4.9 and 3.7.10 with gcc 4.5.4 and 4.6.3. I had a virtual server that kept crashing/rebooting during compiles of large packages such as php. It ended up being because it was running out of memory. Added another 1GB of swap space and it has been happy ever since.
Re: [gentoo-user] OT: parental control software
On Wed, Mar 20, 2013 at 6:04 AM, Neil Bothwick n...@digimed.co.uk wrote: I'm looking for software that can be used to control a child's usage of the computer (not Internet filtering). At the very least it should be able to control length of login sessions and when the child is able to login. Ideally it would also be able to control access to programs, for example education programs can be used for a couple of hours but games for only 30 mins at a time (net control software can be used to deal with online versions). There are other situations where this sort of thing is useful, so it need not necessarily be a package aimed specifically at parental controls. Timekpr looks the ideal candidate, except it hasn't had a release in over three years. Any suggestions? I think logoutd from sys-apps/shadow can control allowed login windows by day-of-week and time-of-day, by user or group. Not sure if it translates to the X era or only applies to consoles.
Re: [gentoo-user] Can I chroot to a folder?
On Mon, Mar 18, 2013 at 1:43 PM, João Matos jaon...@gmail.com wrote: Hi list, I want to install a samba server using Gentoo. But I decided to start the installation o my machine and make a stage4 at some folder. The idea is to spent less time at the target machine. But, when I try to chroot, I get the error: chroot: failed to run command '/bin/bash': Permission Denied the permitions are ok: ls -l /media/outro/gentoo/bin/bash -rwxr-xr-x 1 root root 737808 Jan 30 02:55 /media/outro/gentoo/bin/bash Is that partition mounted with noexec option? or user option without explicit exec option? Do I need to create a partition just for this? Nope
Re: [gentoo-user] Gentoo speed comparison to other distros
On Thu, Mar 14, 2013 at 7:12 AM, Pandu Poluan pa...@poluan.info wrote: Why I prefer Gentoo over other distros: Full control. That's it, in a nutshell. I mean, I can (and do) leverage -march=native. I've been scared away from -march and instead of -mtune in case i need to drop my hard drive into another system for recovery which might have an incompatible CPU.
Re: [gentoo-user] make modules_install error; modules not recognized as ELF files
On Thu, Mar 14, 2013 at 4:14 PM, Walter Dnes waltd...@waltdnes.org wrote: On Wed, Mar 13, 2013 at 10:47:34PM -0400, Walter Dnes wrote Is my netbook dying, or is something else wrong? This is an older 32-bit Atom netbook, with CFLAGS=-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables and 'MAKEOPTS=-j1'. Compiling the kernel works OK, but make modules_install dies as follows... I unmasked kernel 3.5.7-r1 (no, I don't run ext4) and tried again. I got... [aa1][root][/usr/src/linux] make modules_install INSTALL drivers/char/kcopy/kcopy.ko INSTALL drivers/scsi/scsi_wait_scan.ko INSTALL drivers/usb/host/ehci-hcd.ko DEPMOD 3.5.7-gentoo-r1 depmod: /lib/modules/3.5.7-gentoo-r1/modules.builtin is not an ELF file depmod: /lib/modules/3.5.7-gentoo-r1/modules.order is not an ELF file make: *** [_modinst_post] Error 1 Both of these are textfiles, but there were a few *.bin files in the previous kernel build error list. This is a 32-bit machine running gcc 4.6.3. My desktop, also running in 32-bit mode with kernel 3.5.7-r1 and gcc 4.6.3, has no such problem. Any ideas? At some point in the past few months I think module-init-tools was replaced by another package (kmod perhaps, I'm going from memory)... I am wondering if it has something to do with that transition.
Re: [gentoo-user] Frustration with attempt to fix out of date java ebuild [SOLVED]
On Fri, Mar 8, 2013 at 10:27 AM, Matt Joyce mjo...@mttjocy.co.uk wrote: Ok, I really just do not get what on earth it thinks I'm doing wrong here, trying to install java firstly the ebuild in portage it appears is too old, it wants me to fetch a copy of 7u15 from a page that now only has 7u17 on it so fail there no problem just update it surely can't be that hard err right so created an up to date copy of the ebuild in my overlay directory except it wont create the manifest repeatedly tells me to put the file jre-7u17-linux-x64.tar.gz in /usr/portage/distfiles, great ok so... Like Alan said you should emerge --sync and portage has an u17 ebuild. Otherwise Oracle lets you download old versions from: http://www.oracle.com/technetwork/java/javase/archive-139210.html
Re: [gentoo-user] Programm for Floor Plans
On Mon, Mar 4, 2013 at 5:56 PM, Silvio Siefke siefke_lis...@web.de wrote: Hello, know someone a program for draw floor plans? I has use normal Visio for it, but unter Linux? If you're able to use a real CAD program, LibreCAD is good one. It's not in portage but in the science overlay.
Re: [gentoo-user] Java - which version does my browser use?
On Tue, Feb 26, 2013 at 2:50 PM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Hi, when I direct my browser (opera or firefox, both at most recent versions) to http://javatester.org/version.html they both say I'm using Java Version: 1.7.0_13 from Oracle Corporation but eselect java-vm list shows oracle-jre-bin-1.7 and eix oracle-jre-bin shows version 1.7.0.15 and eselect java-nsplugin shows icedtea-7 How does this fit together? I'm pretty sure icedtea is what presents itself as 1.7.0_13 from Oracle Corporation in your browser plugin, so java-nsplugin set to icedtea makes sense. It is not up-to-date with the official Oracle released version number.