Re: [gentoo-user] r8169 unable to apply firmware patch
On 2011-08-01 20:35, Grant wrote: > Does anyone know if this is the case? Doesn't seem very Gentoo-like, > although it should minimize package management for the devs which is > good. I assume they're just following kernel.org; since the kernel devs (at least the ones that have to deal with firmware drivers) use the firmware to build in I assume they are interested in having one, "official", source from where to take them from... http://www.kernel.org/pub/linux/kernel/people/dwmw2/firmware/ HTH Best regards Peter K
Re: [gentoo-user] Listing partition labels
On Tue, Aug 02, 2011 at 10:12:33AM +0800, Andrew Lowe wrote: > Greetings all, > I'm probably in the situation where I can't see the wood for the trees > so a bit of help would be appreciated. I've decided to go the LABEL > route in fstab and have set the labels on my partitions a few days ago. > I now want to update fstab but can't remember the names. I can't find a > command that will list the partitions and the names I've given them. I'm > sure fdisk does not list them when I do just "fdisk" at the command > prompt, but then again as I said above, I think I'm in the wood/forest > mode at the moment. Any idea on the command? > > Any thoughts greatly appreciated, > Andrew Others have replied with possible options, here is another one, maybe the easiest one that shows all the labels/uuids at once ;) ls -l /dev/disk/by-label/ and ls -l /dev/disk/by-uuid/ yoyo
Re: [gentoo-user] Re: RAID-1 install
On 2011-08-01 19:49, James wrote: > Sorry for delayed response, I've been reading up > on gpt-fdisk [1]. > Interesting reading on gpt-patch-fdisk Thanks for the link; I haven't done such a thorough investigation as you seem to have done... :-) > So "parted" 2.3 in on the minimal cd I'm using: > install-amd64-minimal-20110714.iso > should be as sufficient as gparted? As long as it has support for GPT and 4k-disks it should be sufficient... > If so, it looks like my disk(s) setups > which are identical are ok? [2] seems to Ok or not... do they work as intended? If so I would say they work fine... If you are asking if they are optimised or not I can honestly say: I don't know. Also, if what you are after is an optimised setup for your particular needs then you need to take into account the file system (and, if so required, raid and/or lvm system setup). Which leads this into a whole world of things to work out (workloads/usage patterns)... You need to decide how much time you want to spend on optimising this... Myself, I've given up on that. But since you're doing a raid 1 setup (mirrored) I assume the theoretical limit (i.e. MB/s) would be the individual disks. > suggest that what I originally used (fdisk) > to partition a 4K block drive > (fdisk-H 224 -S 56 -l) will > work, but the drive is NOT optimized? This[*1] seems to suggest that the above fdisk line will create partition aligned to 128k boundaries (excepting the first partition which is aligned to 4k) for SSDs... again, haven't delved into the breadth and depth needed for this to say something with something with authority... :-) [*1] http://www.linuxfoundation.org/news-media/blogs/browse/2009/02/aligning-filesystems-ssd%E2%80%99s-erase-block-size > (parted) print > Model: ATA ST32000542AS (scsi) > Disk /dev/sda: 2000GB > Sector size (logical/physical): 512B/512B ^ Hm... this may be an indication that the disks are "lying" to the kernel about it's physical layout, telling it that it's a 512B sector size disk when it's really a 4k sector disk... But I think parted can align correctly anyway... see below Gentoo forum link for details... > Partition Table: msdos ^ This seems to suggest you are using MBR and not GPT, if that's what you wanted (the size of your disks suggests you don't need GPT - <=2TB is fine with MBR, only with sizes >2TB you need GPT)... I think that parted can change the partition layout to GPT if you really want, but I don't have it installed currently since I used the Gentoo live cd to partition/install so I can't check on which command to perform that. However, a word of caution: If you're trying to boot from a GPT disk then you need (U)EFI firmware as opposed to "regular" bios (I think)... For booting from an GPT disk there are some other hiccups as well, which I've discovered, in that you _may_ need something called an EFI System Partition, which is a VFAT formatted partition which is reserved for the (U)EFI firmware (my system wouldn't boot without it - although I'm using an SASWT4I "fake" raid card from Intel and GRUB2, which may have complicated things...). > Number Start End SizeType File system Flags > 1 1049kB 269MB 268MB primary boot, raid > 2 269MB 5414MB 5144MB primary raid > 3 5414MB 2000GB 1995GB primary raid > > and > (parted) align-check minimal 1 > 1 aligned > (parted) align-check optimal 1 > 1 aligned > (parted) align-check optimal 2 > 2 aligned > (parted) align-check optimal 3 > 3 aligned > (parted) Hm... afaik the alignment issue is digital; either it's aligned (to 4k or whatever) or it's not... as long as the tool used can handle it there shouldn't be any differences (fdisk/gdisk/parted). That said, I think that parted always issues the "aligned" message when doing the align-check command (assuming it was succesfull) so you can't judge if any previous attempts was succesful or not (I think that's what you were trying to do if I understand you correctly). > Should I conclude that sda and sdb are > correct and optimized for 4K block drives? Perhaps this may help (I don't have any 4k sector disks so...): http://forums.gentoo.org/viewtopic-t-838522-start-0.html > I never used parted before, so I can easily be making > a mistake [3] or poor assumption? Hm... the only way to be sure is to test it ( or "nuke it from above" ;-) ). I hope I have (accidentally or not) made some sense... :-D Best regards Peter K
Re: [gentoo-user] SSDs, swap, caching, other unusual uses
On 1 August 2011, at 17:29, Paul Hartman wrote: > ... > You can also buy a hybrid hard drive, it is a traditional HDD with SSD > built-in for caching. That is transparent to the operating system. I looked at these earlier this year. They seem a good compromise of price vs performance. They're faster than a 2.5" SATA hard-drive, they're about 3x the price. They're about 1/3 "as fast" as an SSD, and about ⅓ the price. Stroller.
Re: [gentoo-user] r8169 unable to apply firmware patch
>> # ls /sys/bus/pci/devices/:04:00.0 >> broken_parity_status device irq msi_bus reset >> resource2_wc subsystem_device vpd >> class dma_mask_bits local_cpulist net >> resource resource4 subsystem_vendor >> config driver local_cpus remove >> resource0 resource4_wc uevent >> consistent_dma_mask_bits enable modalias rescan >> resource2 subsystem vendor >> >> So I guess I'm missing net:eth0 in that last one? > > Looks that way. > >> >> It's a nearly brand new motherboard: >> >> http://www.newegg.com/Product/Product.aspx?Item=N82E16813128490 >> >> Maybe the r8169 driver hasn't caught up? > > I dunno; you said it worked in 2.6.36, but not in 2.6.38 and 2.6.39, > so that sounds like a regression. I don't know where you'd go from > here. Possibly contact the group that maintains the driver. Well, I'm getting different behavior from the device on my laptop and on my desktop so I guess the devices are a bit different even though they look the same with lspci. On my laptop, everything is good under 2.6.36 without linux-firmware, on 2.6.39 everything is good as long as I install linux-firmware. On my desktop with linux-firmware, I get eth0 under ifconfig -a and iwconfig, but not ifconfig. On my laptop, it appears under all three. > If you do that, then they'd probably find it helpful if you checked to > see if 2.6.37 worked; that'd let them narow things down a bit. Also, > they'd likely find the relevant lines from "lspci -vv" useful. OK, thanks. - Grant
Re: [gentoo-user] r8169 unable to apply firmware patch
> IIRC > 'ifconfig -a' will show interfaces that are physically present, and > the driver available. > 'ifconfig' will only show those interfaces that are also activated or > "up", which means configured up - nothing to do with link. OK, with net.eth0 stopped and the cable unplugged, eth0 does appear under ifconfig -a and not under ifconfig on my desktop. It sounds like this is normal behavior so the question becomes why does eth0 appear under ifconfig on my laptop with net.eth0 stopped and the cable unplugged? I thought it could be wicd on my laptop but I shut down the daemon with no change. - Grant
[gentoo-user] Nvidia & kernel 3.0
Has anyone else run into a problem trying to compile Nvidia with kernel 3.0 ? AFAIK I have the correct symlink to the kernel source root:601 src> pwd /usr/src root:602 src> ls -l lrwxrwxrwx 1 root root 19 Aug 2 11:04 linux -> linux-3.0.0-gentoo/ drwxr-xr-x 24 root root 1648 Dec 14 2010 linux-2.6.33-gentoo-r1 drwxr-xr-x 24 root root 1640 Jan 21 2011 linux-2.6.37-gentoo drwxr-xr-x 24 root root 1640 Apr 11 03:06 linux-2.6.38.2 drwxr-xr-x 24 root root 1640 Apr 10 08:51 linux-2.6.38-gentoo drwxr-xr-x 24 root root 1640 Aug 2 11:16 linux-3.0.0-gentoo yet when I try to emerge 'nvidia-drivers-270.41.19', it tells me "*** Unable to determine the target kernel version. ***" I originally had the default kernel name '3.0', which brought the same error msg, so changed it to '3.0.0', but both names cause the same result. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] Nvidia & kernel 3.0
On Tue, Aug 02, 2011 at 11:35:01AM -0400, Philip Webb wrote: > Has anyone else run into a problem trying to compile Nvidia with kernel 3.0 ? > > AFAIK I have the correct symlink to the kernel source > > root:601 src> pwd > /usr/src > root:602 src> ls -l > lrwxrwxrwx 1 root root 19 Aug 2 11:04 linux -> linux-3.0.0-gentoo/ > drwxr-xr-x 24 root root 1648 Dec 14 2010 linux-2.6.33-gentoo-r1 > drwxr-xr-x 24 root root 1640 Jan 21 2011 linux-2.6.37-gentoo > drwxr-xr-x 24 root root 1640 Apr 11 03:06 linux-2.6.38.2 > drwxr-xr-x 24 root root 1640 Apr 10 08:51 linux-2.6.38-gentoo > drwxr-xr-x 24 root root 1640 Aug 2 11:16 linux-3.0.0-gentoo > > yet when I try to emerge 'nvidia-drivers-270.41.19', > it tells me "*** Unable to determine the target kernel version. ***" > > I originally had the default kernel name '3.0', > which brought the same error msg, so changed it to '3.0.0', > but both names cause the same result. 275.21 from ~ work ok with 3.0... 3.0 seems to be still ~, so i guess that for unstable kernel you might need unstable drivers... yoyo > > -- > ,, > SUPPORT ___//___, Philip Webb > ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto > TRANSIT`-O--O---' purslowatchassdotutorontodotca > >
Re: [gentoo-user] How do I select a GTK 3 theme?
I played a bit more and found out a few bits: - Changing "Style" in XFCE's appearance switches the theme for both GTK+ 2.x and 3.x, no matter what key "gtk-theme-name" of /etc/gtk-3.0/settings.ini and ~/.config/gtk-3.0/settings.ini say though these files are read according to strace - The GTK+ 3.0 engine for Clearlooks (libclearlooks.so) seems to be provided by both A) x11-themes/gtk-engines-clearlooks-2.91.5 (gnome overlay) B) x11-themes/gtk-engines-2.91.1 (gnome overlay) at different locations: A) /usr/lib64/gtk-3.0/theming-engines/libclearlooks.so B) /usr/lib64/gtk-3.0/3.0.0/engines/libclearlooks.so GTK seems to looks for (A) only according to strace. - Neither package A nor B provide a file /usr/share/themes/Clearlooks/gtk-3.0/gtk.css which is required to even activate the Clearlooks engine. To active the engine, put the line * { engine: clearlooks; } in. Expect this to look ugly. - By putting [Settings] gtk-theme-name = Clearlooks into /usr/share/themes/Clearlooks/gtk-3.0/settings.ini you can produce endless loops. Nice! >From a workaround perspective the most interesting question to me is: where do I get (default or good looking) CSS files for GTK+ 3.0 Clearlooks. Best, Sebastian
Re: [gentoo-user] How do I select a GTK 3 theme?
Update: I managed to get the light-themes (Ambiance and Radiance)[1] of Ubuntu running for both GTK 2 and 3. Their GTK 3 versions make use of the unico engine which requires rather recent gtk3 and glib. To get it running you need install x11-themes/light-themes from the betagarden overlay [2]. You'll need to handle KEYWORDS="" using keywords "**" one way or another. Use these packages at your own risk. On 08/02/2011 07:44 PM, Sebastian Pipping wrote: > A) /usr/lib64/gtk-3.0/theming-engines/libclearlooks.so > B) /usr/lib64/gtk-3.0/3.0.0/engines/libclearlooks.so > >GTK seems to looks for (A) only according to strace. Correction, (A) is missing "3.0.0/" so it's rather: A) /usr/lib64/gtk-3.0/theming-engines/libclearlooks.so B) /usr/lib64/gtk-3.0/3.0.0/engines/libclearlooks.so Sebastian [1] http://www.webupd8.org/2011/06/ambiance-finally-ported-to-gtk3-ubuntu.html [2] http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=summary
Re: [gentoo-user] r8169 unable to apply firmware patch
> so the question becomes why does eth0 > appear under ifconfig on my laptop with net.eth0 stopped and the cable > unplugged? > > I thought it could be wicd on my laptop but I shut down the daemon > with no change. Try disabling the daemon from starting at boot 'rc-update delete wicd' and reboot, then see if the interface is up.
Re: Re: [gentoo-user] Problems with Nvidia fake raid array
On Tue, 2011-07-26 at 16:55 -0700, Daniel Frey wrote: > On 01/-10/37 11:59, Michael Orlitzky wrote: > > > > I think this one should have worked? It seems to have found the > > superblock on /dev/sda, at least. > > > > Anyway, I imagine everyone (myself included) is afraid to tell you to do > > anything at this point that might trash your data. My advice now would > > be to put it back where it worked, and make a backup. > > I'm just going through this myself. As far as I know mdadm does *not* > support nvraid. It does support imsm, or intel raid, which I'm in the > process of setting up on my workstation. > > I can't find anything in the docs regarding mdadm working with nvraid, > you should be trying dmraid for that. > > If all you have is /dev/control and you are not using a dmraid supported > kernel (genkernel requires dodmraid to find and assemble arrays) then > execute `dmraid -ay` and check dmesg and /dev/mapper for contents. > > Dan > Thanks Dan, I'm not using genkernel at the moment. I'll try those steps and let you know how it goes. The Raid array worked on the OpenSuse operating system that I blew away to install gentoo, so I should be able to resurrect it without wiping everything out. Jeff