Re: [gentoo-user] Re: initramfs RAID at boot time
On Sun, Apr 18, 2010 at 1:01 AM, Neil Bothwick n...@digimed.co.uk wrote: On Sat, 17 Apr 2010 14:36:39 -0700, Mark Knecht wrote: Empirically any way there doesn't seem to be a problem. I built the new kernel and it booted normally so I think I'm misinterpreting what was written in the Wiki or the Wiki is wrong. As long as /boot is not on RAID, or is on RAID1, you don't need an initrd. I've been booting this system for years with / on RAID1 and everything else on RAID5. From my research on the topic (I also wanted to have both /boot and / on RAID1) there are the following traps: * there is an option for the kernel that must be enabled at compile time that enables automatic RAID detection and assembly by the kernel before mounting /, but it works only for MD metadata 0.96 (see [1]); * the default metadata for `mdadm` is 1.2 (see `man mdadm`, and search for `--metadata`), so when creating the RAID you must explicitly select the metadata you want; * indeed the preferred may to do it is using an initramfs; (I've posted below some shell snippets that create do exactly this: assemble my RAID); (the code snippets are between {{{...}}}, it's from a MoinMoin wiki page;) Also a question for about /boot on RAID1... I didn't manage to make it work... Could you Neil please tell me exactly how you did this? I'm most interested in how you've convinced Grub to work... Best, Ciprian. [1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/md.txt;h=188f4768f1d58c013d962f993ae36483195fd288;hb=HEAD Init-ramfs preparation {{{ mkdir -p /usr/src/initramfs cd /usr/src/initramfs mkdir /usr/src/initramfs/bin mkdir /usr/src/initramfs/dev mkdir /usr/src/initramfs/proc mkdir /usr/src/initramfs/rootfs mkdir /usr/src/initramfs/sys cp -a /bin/busybox /usr/src/initramfs/bin/busybox cp -a /sbin/mdadm /usr/src/initramfs/bin/mdadm cp -a /sbin/jfs_fsck /usr/src/initramfs/bin/jfs_fsck cp -a /dev/console /usr/src/initramfs/dev/console cp -a /dev/null /usr/src/initramfs/dev/null cp -a /dev/sda2 /usr/src/initramfs/dev/sda2 cp -a /dev/sdc2 /usr/src/initramfs/dev/sdc2 cp -a /dev/md127 /usr/src/initramfs/dev/md127 }}} {{{ cat /usr/src/initramfs/init 'EOS' #!/bin/busybox ash exec /dev/null /dev/null 2/dev/console exec 12 /bin/busybox mount -n -t proc none /proc || exit 1 /bin/busybox mount -n -t sysfs none /sys || exit 1 /bin/mdadm -A /dev/md127 -R -a md /dev/sda2 /dev/sdc2 || exit 1 /bin/jfs_fsck -p /dev/md127 || true /bin/busybox mount -n -t jfs /dev/md127 /rootfs -o ro,exec,suid,dev,relatime,errors=remount-ro || exit 1 /bin/busybox umount -n /sys || exit 1 /bin/busybox umount -n /proc || exit 1 # /bin/busybox ash /dev/console /dev/console 2/dev/console || exit 1 exec /bin/busybox switch_root /rootfs /sbin/init || exit 1 exit 1 EOS chmod +x /usr/src/initramfs/init }}} {{{ ( cd /usr/src/initramfs ; find . | cpio --quiet -o -H newc | gzip -9 /boot/initramfs ) }}}
Re: [gentoo-user] Questions for my first ebuild
Walter Dnes wrote: I intend to get the Silicon Dust HDHomerun dual tuner box. It has a linux library and CLI plus a separate gtk+ GUI. The linux source comes with a makefile that puts stuff in /usr/local. But I want at least a wrapper ebuild so that Portage knows about the files, and can manage them. I'd prefer to write my own ebuild rather than depend on somebody else to always have the most recent version supported somwehere in layman. I've RTFM'd a lot, including http://devmanual.gentoo.org/ebuild-writing/index.html but am still unsure about a few things. Here's my setup so far... * The latest file is http://download.silicondust.com/hdhomerun/libhdhomerun_20100213.tgz (underscore instead of hyphen, bleagh). * I've set PORTDIR_OVERLAY=/usr/local/portage in /etc/make.conf * I've actually created /usr/local/portage/media-tv * my ebuild file in media-tv is named libhdhomerun-20100213.ebuild * here it is so far... # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION=HD Homerun networked TV tuner base library and API ACTUAL_P=${PN}_${PV} SRC_URI=http://download.silicondust.com/hdhomerun/${ACTUAL_P}.tgz; HOMEPAGE=http://www.silicondust.com/downloads/linux; KEYWORDS=x86 SLOT=0 LICENSE=LGPL-3 IUSE= RESTRICT=test src_install () { emake -j1 DESTDIR=${D} install || die make failed dobin hdhomerun_config dolib libhdhomerun.so dodoc README insinto /usr/include/local/libhdhomerun doins *.h } Now for the questions... 1) do I need to create /usr/local/portage/distfiles? Nope. DISTDIR is /usr/portage/distfiles, even for overlay ebuilds. 2) the provided Makefile is supposed to put everything into the /usr/local hierarchy. Does portage/emerge over-ride that, and if so, what do I have to do to get send all files to the /usr/local hierarchy? Don't know. But... AFAIK, '/usr/local' is not a location favored by ebuilds. On my server it's virtually empty: ~ # find /usr/local/ -type f -exec qfile '{}' \; app-portage/layman (/usr/local/portage/layman/.keep_app-portage_layman-0) I'd attempt to have my ebuild install to /usr. Most probably that's a very common procedure when moving from barebones makefile to portage. If make can't help you w/that (e.g. --prefix /usr or something like that), try browsing other ebuilds. qgrep is a handy tool for that. 3) any glaring errors ? I intend to pick it up next week, so I won't be able to test it immediately. I do want my laptop to be ready to go when I bring the tuner box home.
Re: [gentoo-user] Re: initramfs RAID at boot time
On 18. 4. 2010 8:57, Ciprian Dorin, Craciun wrote: * there is an option for the kernel that must be enabled at compile time that enables automatic RAID detection and assembly by the kernel before mounting /, but it works only for MD metadata 0.96 (see [1]); * the default metadata for `mdadm` is 1.2 (see `man mdadm`, and search for `--metadata`), so when creating the RAID you must explicitly select the metadata you want; [1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/md.txt;h=188f4768f1d58c013d962f993ae36483195fd288;hb=HEAD Which version of mdadm are you using? I have 3.0, and defalut metadata is 0.90: -e , --metadata= Declare the style of RAID metadata (superblock) to be used. The default is 0.90 for --create, and to guess for other operations. The default can be overridden by setting the metadata value for the CREATE keyword in mdadm.conf. BTW [1] says about kernel 2.6.9, things might have changed since then... Jarry -- ___ This mailbox accepts e-mails only from selected mailing-lists! Everything else is considered to be spam and therefore deleted.
[gentoo-user] No Mousewheel in X and ctrl-alt-backspace not working
Hi, for whatever reason my mousewheel is no longer working after upgrading zu the latest X-Org server (and corresponding libraries). Here's the excerpt from the xorg.conf that is relevant: Section InputDevice Identifier Mouse1 Driver mouse Option ProtocolIMPS/2 Option Device /dev/input/mouse0 Option ZAxisMapping 4 5 6 7 I had to rebuild the mouse-drive for ABI changes but that didn't fix the problem. Any input is welcome. Also ctrl-alt-backspace to kill X does not work anymore. DonZap is commented out. Clues in that regard would be welcome as well. Regards, Konstantin -- Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elw...@agouros.de Altersheimerstr. 1, 81545 Muenchen, Germany. Tel +49 89 69370185 Captain, this ship will not survive the forming of the cosmos. B'Elana Torres
Re: [gentoo-user] Are runlevels 3 4 5 the same?
On Sunday 18 April 2010 06:09:38 Adam wrote: I want to choose console or X from grub, so i'm thinking i'll do something like 'rc-update delete xdm 4' and then pass softlevel=4 to my grub boot line, to make runlevel 4 a console runlevel. Is that the right way to do it? You could create a new default runlevel for this purpose, or you could try passing the 'nox' option to the kernel, at boot time. There was a bug filed some time ago because an xinit update broke this option, but I believe it has been fixed now. Try it and see if this is what you need. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] Hot can I remove a non-existent package
Hi, I came accross this problem: I did a revdepü-rebuild, which reports, that media-video/cinepaint:0 is broken and no ebuild could be found: * Portage could not find any version of the following packages it could build: * media-video/cinepaint:0 * * (Perhaps they are masked, blocked, or removed from portage.) * Try to emerge them manually. What I the best way, to remove that package as complete as possible from the system? Best regards, mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
Re: [gentoo-user] No Mousewheel in X and ctrl-alt-backspace not working
On Sunday 18 April 2010 08:53:43 Konstantinos Agouros wrote: Hi, for whatever reason my mousewheel is no longer working after upgrading zu the latest X-Org server (and corresponding libraries). Here's the excerpt from the xorg.conf that is relevant: Section InputDevice Identifier Mouse1 Driver mouse Option ProtocolIMPS/2 Option Device /dev/input/mouse0 Option ZAxisMapping 4 5 6 7 I had to rebuild the mouse-drive for ABI changes but that didn't fix the problem. Any input is welcome. Also ctrl-alt-backspace to kill X does not work anymore. DonZap is commented out. Clues in that regard would be welcome as well. I case you missed it, did you rebuild all the relevant drivers including x11- drivers/xf86-input-mouse or whatever your hardware requires? Check qlist -I -C x11-drivers/ for a list of what you need to remerge. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: initramfs RAID at boot time
On Sun, 18 Apr 2010 09:57:38 +0300, Ciprian Dorin, Craciun wrote: Also a question for about /boot on RAID1... I didn't manage to make it work... Could you Neil please tell me exactly how you did this? I'm most interested in how you've convinced Grub to work... You just don't tell GRUB that it's working with one half of a RAID1 array. Unlike all other RAID level, with 1 you can also access the individual disks. -- Neil Bothwick I am sitting on the toilet with your article before me. Soon it will be behind me. signature.asc Description: PGP signature
Re: [gentoo-user] Hot can I remove a non-existent package
you can either delete it from /var/lib/portage/world or run emerge --depclean; that package should be removed.
[gentoo-user] Re: How many ways are there for a user to increase their permissions?
On 04/18/10 11:02, Jonathan wrote: On Sun, 18 Apr 2010 08:29:37 +1000 Lie Ryan lie.1...@gmail.com wrote: sudoedit is mainly just a shortcut for sudo $EDITOR (plus doing a few things). sudoedit is safer then sudo because sudoedit runs as root but nano (The editor) runs as your user. sudoedit uses a fixed path which is compiled into the program Yes, that's the few things part, sudoedit does solves a couple of security issues that you'd have if you start editor manually, probably calling it just a shortcut is too much undermining. Everything above (su,sudo,policykit,polkit) are just sugar for permission bits (owner,group,others+SUID,GUID); attempting to give finer control over the permissions or provide convenience services. Mess up the configuration and you may as well hand out the root password. They're much better than manual management though, which is unless you're forty-two security wizard in one body you will get it wrong. Most security holes in Linux comes from a SUID program that lets untrusted programs into the trusted-space. 53 SUID or GUID programs on my system! Why does cdrecord have SUID set? No idea. I found sudo, although very handy for desktop, is a huge security hole. And is inadequate for any secure system. This is simply because if you run a program as sudo, then in the next five minute you start a malicious program *without* sudo; the malicious program can gain root access by stealing your previous sudo's timestamp (yes, it can steal the timestamp without being explicitly invoked with sudo[1]). Before running a potentially untrusted program, you must explicitly kill your sudo timestamp with `sudo -k` or set sudo to not use timestamp. Better yet, don't use sudo on secure systems. Wow... I never thought about that. I run sudo on my system 4 to 6 times a day if not more. Can tell me the setting please. Setting for the timeout? See `man sudoers` and look at timestamp_timeout. Setting for allowing program to steal timestamp? Don't worry, it's already default. I had a quick look at man pages and Gentoo docs but I did not see it. Gentoo sudo guide [1] could use a update about this. it was right under my nose but I missed it... If some leaves they PC for 5 mins you could run nano ~/.bashrc and add export PATH=/home/user/.bin:$PATH then make a file called sudo write something to nick the password and by it on to sudo and then clean up after it self. I believe the developers of `sudo` considered security against malicious people with physical access to the computer is out of their scope. Problem is, that means malicious people only need to trick a sudoers into running a piece of complex code and say you're not running my script with sudo, so the script can't do no harm to system. When I first used sudo, I thought by invoking sudo for trusted program only and omitting sudo for everything else and thought the system would be secure. That's a false sense of security. As long as you're a root-sudoers, all program you run can gain root access any time they need to. They just need to daemonize and poll every few minutes for an updated timestamp. Just for fun I did that to one of my terminal tabs, with the script running echo HAHA!. I once written a script that have this in the first line: if [ $UID != 0 ]; then sudo $0 quit fi # do business that requires root the script runs without asking password if I still have active timestamp from running another program. How convenient! (and makes me shivers)
Re: [gentoo-user] Hot can I remove a non-existent package
Am 18.04.2010 10:18, schrieb Crístian Viana: you can either delete it from /var/lib/portage/world or run emerge --depclean; that package should be removed. I would add ask and verbose to this. emerge -av --depclean This gives you a little more chance to see what will be happening. kh
Re: [gentoo-user] No Mousewheel in X and ctrl-alt-backspace not working
On Sun, Apr 18, 2010 at 07:53:43AM +, Konstantinos Agouros wrote: Hi, for whatever reason my mousewheel is no longer working after upgrading zu the latest X-Org server (and corresponding libraries). Here's the excerpt from the xorg.conf that is relevant: Section InputDevice Identifier Mouse1 Driver mouse Option ProtocolIMPS/2 Option Device /dev/input/mouse0 Option ZAxisMapping 4 5 6 7 I had to rebuild the mouse-drive for ABI changes but that didn't fix the problem. Any input is welcome. Also ctrl-alt-backspace to kill X does not work anymore. DonZap is commented out. Clues in that regard would be welcome as well. this changed some while back, try adding Option XkbOptions terminate:ctrl_alt_bksp to your keyboard InputDevice yoyo
Re: [gentoo-user] Are runlevels 3 4 5 the same?
On Sun, 18 Apr 2010 09:09:42 +0100, Mick wrote: I want to choose console or X from grub, so i'm thinking i'll do something like 'rc-update delete xdm 4' and then pass softlevel=4 to my grub boot line, to make runlevel 4 a console runlevel. Is that the right way to do it? You could create a new default runlevel for this purpose, or you could try passing the 'nox' option to the kernel, at boot time. There was a bug filed some time ago because an xinit update broke this option, but I believe it has been fixed now. Try it and see if this is what you need. The correct option is gentoo=nox. nox on its own sometimes works, but it's not the proper way to do it. -- Neil Bothwick SITCOM: Single Income, Two Children, Oppressive Mortgage signature.asc Description: PGP signature
Re: [gentoo-user] Hot can I remove a non-existent package
On Sun, 18 Apr 2010 10:13:58 +0200, meino.cra...@gmx.de wrote: * Portage could not find any version of the following packages it could build: * media-video/cinepaint:0 * * (Perhaps they are masked, blocked, or removed from portage.) * Try to emerge them manually. What I the best way, to remove that package as complete as possible from the system? emerge -C cinepaint:0 emerge -C uses the ebuild in /var/db/pkg, not the portage tree. -- Neil Bothwick PENTIUM: Produces Erroneous Numbers Thru Incorrect Understanding of Mathematics signature.asc Description: PGP signature
[gentoo-user] Random failures: lvremove
Hi, I'm using LVM, having / and /home as logical volumes and a backup script creating a logical snapshot volume of each in the process. Since I use gentoo (comming from arch), my backup script fails rather often with the error message 'Can't remove open logical volume volume'. The script worked fine on arch before. The partition setup did not change. Sometimes it works fine, sometimes it just fails. As a workaround, I let the script just lvremove the snapshot three times with 5 seconds sleeping between the tries and the overall success rate for the script improved... The chance is about 40% lvremove succeeds at a given time and doesn't seem to in- or decrease when calling lvremove successively with a five second delay, though if it fails once, it tends to fail again more often if called within the next two or three seconds. Here is an example of the command failing once more after the backup script aborted. The second time it works. I did NOTHING but the commands listed below in these 30 seconds or so: (note: dmsetup says open: 0 in the first place!) kira namor # dmsetup info -c vg-snap_root Name Maj Min Stat Open Targ Event UUID vg-snap_root 253 5 L--w01 0 LVM- ayg5GD1dYyrkkan1pLa8WszI7UrQpy9YE2ynOTtHoSNckKdehm3XMIgkw7p8z69X kira namor # lvremove /dev/vg/snap_root Can't remove open logical volume snap_root kira namor # lsof /dev/vg/snap_root kira namor # fuser -a /dev/vg/snap_root /dev/vg/snap_root: kira namor # lvremove /dev/vg/snap_root Do you really want to remove active logical volume snap_root? [y/n]: y Logical volume snap_root successfully removed What I tried so far was: - calling: lvchange -an $SNAP_PARTITION #fails iff lvremove fails - updating to lvm2-2.02.56-r3 and updating the initramfs #fixes nothing I have no idea what causes this random behavior. Help much appreciated. Regards, Roman Naumann
[gentoo-user] KVM and Networking setup
I have been playing with KVM (replacing VMware-Server) and I need to setup my network for the Guests like this: 8--- brctl addbr br-eth1 brctl addbr br-eth2 brctl addbr br-eth3 brctl setfd br-eth1 0 brctl setfd br-eth2 0 brctl setfd br-eth3 0 brctl sethello br-eth1 1 brctl sethello br-eth2 1 brctl sethello br-eth3 1 brctl stp br-eth1 off brctl stp br-eth2 off brctl stp br-eth3 off brctl addif br-eth1 eth1 brctl addif br-eth2 eth2 brctl addif br-eth3 eth3 tunctl -b -t qtap1 tunctl -b -t qtap2 tunctl -b -t qtap3 brctl addif br-eth1 qtap1 brctl addif br-eth2 qtap2 brctl addif br-eth3 qtap3 ifconfig qtap1 up 0.0.0.0 promisc ifconfig qtap2 up 0.0.0.0 promisc ifconfig qtap3 up 0.0.0.0 promisc ifconfig br-eth1 192.168.4.1/24 up ifconfig br-eth2 0.0.0.0 up ifconfig br-eth3 0.0.0.0 up ifconfig eth1 0.0.0.0 up ifconfig eth2 0.0.0.0 up ifconfig eth3 0.0.0.0 up 8--- Today I do this manually before a start the KVM-Guests, but now I would like to have this (the network setup) done automatically with the normal init scripts. I could put everything in local but then some services on the Host (e.g. Bind) can not see all interfaces when started and has to be restarted again after local. What would be the correct syntax for /etc/conf.d/net for this setup (still at baselayout-1). Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Winchester Digital HD: Advanced Format
Hi, b the Winchester Digital WD10EARS S-ATA II 300MB/s GreenPower WD Caviar Green 1TByte Harddiscs offers something which WD calls Advanced Format which turns out to be sectors of 4096 bytes size instead of 512 bytes. To use it, one needs a tool made by WD which only runs under windows. Or? Is this new sector size is something, which I can activate be using fdisk/mkfs or something included in the linux kernel since stone age and is only new to the guys at Microsoft/Winchester Digital? Can I take any advantage of that? Thank you very much for any help and advice in advance! Have a nice sunday! mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
[gentoo-user] Installing Gentoo via Gentoo ?
Hi, currently I am reading the Gentoo-Handbokk about installing a new Gentoo-System via boot-CD. If I have a running Gentoo-Sytem on my PC...would it be possible to install a new Gentoo-System on a fresh harddisk, which is currently unpartitioned and unformatted electrically wired with my PC (SATAII) ? Just an idea... Thanks a lot for any help in advance! Best regards mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
Re: [gentoo-user] Installing Gentoo via Gentoo ?
On Sun, Apr 18, 2010 at 02:21:19PM +0200, meino.cra...@gmx.de wrote: Hi, currently I am reading the Gentoo-Handbokk about installing a new Gentoo-System via boot-CD. If I have a running Gentoo-Sytem on my PC...would it be possible to install a new Gentoo-System on a fresh harddisk, which is currently unpartitioned and unformatted electrically wired with my PC (SATAII) ? Just an idea... Thanks a lot for any help in advance! Best regards mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows. Should be, the most important thing for a Gentoo install is after all a commandline after all :-) (And the necessary tools the handbook assumes you have as they are on the boot-cd) -- Zeerak Waseem pgpPdBcQhJ3z5.pgp Description: PGP signature
[gentoo-user] Re: Installing Gentoo via Gentoo ?
On 04/18/10 22:21, meino.cra...@gmx.de wrote: Hi, currently I am reading the Gentoo-Handbokk about installing a new Gentoo-System via boot-CD. If I have a running Gentoo-Sytem on my PC...would it be possible to install a new Gentoo-System on a fresh harddisk, which is currently unpartitioned and unformatted electrically wired with my PC (SATAII) ? Yes, you should be able to, installing Gentoo is basically just copying a bunch of files to a partition in a harddisk, nothing magical. However, you will have to be able to compile a compatible kernel from your PC. Compatible usually means either your PC have the same architecture as your laptop (which means everything should be already setup) or you have to cross-compile the kernel. I've never done kernel cross-compiling, but it's definitely possible, you just need to modify modify some of the Makefile manually (search on google for a howto). Also, I'm not sure whether a bootloader installation needs to mess with the BIOS. I *think* it shouldn't, as the low-level booting process between the box and the harddisk is controlled by BIOS from MBR and grub/lilo is just installing onto the MBR.
Re: [gentoo-user] Re: Installing Gentoo via Gentoo ?
On Sun, Apr 18, 2010 at 10:57:05PM +1000, Lie Ryan wrote: On 04/18/10 22:21, meino.cra...@gmx.de wrote: Hi, currently I am reading the Gentoo-Handbokk about installing a new Gentoo-System via boot-CD. If I have a running Gentoo-Sytem on my PC...would it be possible to install a new Gentoo-System on a fresh harddisk, which is currently unpartitioned and unformatted electrically wired with my PC (SATAII) ? Yes, you should be able to, installing Gentoo is basically just copying a bunch of files to a partition in a harddisk, nothing magical. However, you will have to be able to compile a compatible kernel from your PC. Compatible usually means either your PC have the same architecture as your laptop (which means everything should be already setup) or you have to cross-compile the kernel. I've never done kernel cross-compiling, but it's definitely possible, you just need to modify modify some of the Makefile manually (search on google for a howto). Also, I'm not sure whether a bootloader installation needs to mess with the BIOS. I *think* it shouldn't, as the low-level booting process between the box and the harddisk is controlled by BIOS from MBR and grub/lilo is just installing onto the MBR. About the bootloader shouldn't one set that up on the individual machine? I'm sure everything but the bootloader could be done from another machine, but my guess is a bootcd would be necessary for the actual bootloader. -- Zeerak Waseem pgpK58CXifMrG.pgp Description: PGP signature
Re: [gentoo-user] Re: Installing Gentoo via Gentoo ?
Zeerak Mustafa Waseem zeera...@gmail.com [10-04-18 15:28]: On Sun, Apr 18, 2010 at 10:57:05PM +1000, Lie Ryan wrote: On 04/18/10 22:21, meino.cra...@gmx.de wrote: Hi, currently I am reading the Gentoo-Handbokk about installing a new Gentoo-System via boot-CD. If I have a running Gentoo-Sytem on my PC...would it be possible to install a new Gentoo-System on a fresh harddisk, which is currently unpartitioned and unformatted electrically wired with my PC (SATAII) ? Yes, you should be able to, installing Gentoo is basically just copying a bunch of files to a partition in a harddisk, nothing magical. However, you will have to be able to compile a compatible kernel from your PC. Compatible usually means either your PC have the same architecture as your laptop (which means everything should be already setup) or you have to cross-compile the kernel. I've never done kernel cross-compiling, but it's definitely possible, you just need to modify modify some of the Makefile manually (search on google for a howto). Also, I'm not sure whether a bootloader installation needs to mess with the BIOS. I *think* it shouldn't, as the low-level booting process between the box and the harddisk is controlled by BIOS from MBR and grub/lilo is just installing onto the MBR. About the bootloader shouldn't one set that up on the individual machine? I'm sure everything but the bootloader could be done from another machine, but my guess is a bootcd would be necessary for the actual bootloader. -- Zeerak Waseem ...to clearify things a little: I want to setup a new system on a harddisk, which is currently connected to the second SATA-connector. The old system, which should be replaced by the new system as soon as this one is setup, is on a harddisk currently connected with the first SATA connector. Beside the harddisks, which later will be swapped, everything remains the same. Later the new system will run the same hardware as currently the old system does. Best regards mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
[gentoo-user] Re: Installing Gentoo via Gentoo ?
On 2010-04-18, Lie Ryan lie.1...@gmail.com wrote: Yes, you should be able to, installing Gentoo is basically just copying a bunch of files to a partition in a harddisk, nothing magical. Precisely. However, you will have to be able to compile a compatible kernel from your PC. Compatible usually means either your PC have the same architecture as your laptop (which means everything should be already setup) or you have to cross-compile the kernel. Cross compiling the kernel is fairly trivial, but you need a cross-toolchain. Building one with crosstool-NG isn't too hard, but its' not trivial either. I've never done kernel cross-compiling, but it's definitely possible, you just need to modify modify some of the Makefile manually (search on google for a howto). You don't actually need to modify the Makefile if you don't want to. You can do it from the command line: make ARCH=targetarch CROSS_COMPILE=/path/to/cross/compiler -- Grant
Re: [gentoo-user] Winchester Digital HD: Advanced Format
On Sonntag 18 April 2010, meino.cra...@gmx.de wrote: Hi, b the Winchester Digital WD10EARS S-ATA II 300MB/s GreenPower WD Caviar Green 1TByte Harddiscs offers something which WD calls Advanced Format which turns out to be sectors of 4096 bytes size instead of 512 bytes. To use it, one needs a tool made by WD which only runs under windows. Or? Is this new sector size is something, which I can activate be using fdisk/mkfs or something included in the linux kernel since stone age and is only new to the guys at Microsoft/Winchester Digital? Can I take any advantage of that? Thank you very much for any help and advice in advance! Have a nice sunday! mcc search the mailing list archive.
Re: [gentoo-user] Re: Installing Gentoo via Gentoo ?
Grant Edwards grant.b.edwa...@gmail.com [10-04-18 16:00]: On 2010-04-18, Lie Ryan lie.1...@gmail.com wrote: Yes, you should be able to, installing Gentoo is basically just copying a bunch of files to a partition in a harddisk, nothing magical. Precisely. However, you will have to be able to compile a compatible kernel from your PC. Compatible usually means either your PC have the same architecture as your laptop (which means everything should be already setup) or you have to cross-compile the kernel. Cross compiling the kernel is fairly trivial, but you need a cross-toolchain. Building one with crosstool-NG isn't too hard, but its' not trivial either. I've never done kernel cross-compiling, but it's definitely possible, you just need to modify modify some of the Makefile manually (search on google for a howto). You don't actually need to modify the Makefile if you don't want to. You can do it from the command line: make ARCH=targetarch CROSS_COMPILE=/path/to/cross/compiler -- Grant ...no, I dont want to cross-compile anything. Everything will run on the same identical CPU (not only product-wise, but even the CPU (as a thing) will remain the same! :) ) -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
Re: [gentoo-user] Winchester Digital HD: Advanced Format
Volker Armin Hemmann volkerar...@googlemail.com [10-04-18 16:12]: On Sonntag 18 April 2010, meino.cra...@gmx.de wrote: Hi, b the Winchester Digital WD10EARS S-ATA II 300MB/s GreenPower WD Caviar Green 1TByte Harddiscs offers something which WD calls Advanced Format which turns out to be sectors of 4096 bytes size instead of 512 bytes. To use it, one needs a tool made by WD which only runs under windows. Or? Is this new sector size is something, which I can activate be using fdisk/mkfs or something included in the linux kernel since stone age and is only new to the guys at Microsoft/Winchester Digital? Can I take any advantage of that? Thank you very much for any help and advice in advance! Have a nice sunday! mcc search the mailing list archive. any hint for a keyword other than advanced and format ??? -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
Re: [gentoo-user] Re: Installing Gentoo via Gentoo ?
On 04/18/2010 09:58 AM, Grant Edwards wrote: On 2010-04-18, Lie Ryan lie.1...@gmail.com wrote: Yes, you should be able to, installing Gentoo is basically just copying a bunch of files to a partition in a harddisk, nothing magical. Precisely. However, you will have to be able to compile a compatible kernel from your PC. Compatible usually means either your PC have the same architecture as your laptop (which means everything should be already setup) or you have to cross-compile the kernel. Cross compiling the kernel is fairly trivial, but you need a cross-toolchain. Building one with crosstool-NG isn't too hard, but its' not trivial either. I've never done kernel cross-compiling, but it's definitely possible, you just need to modify modify some of the Makefile manually (search on google for a howto). You don't actually need to modify the Makefile if you don't want to. You can do it from the command line: make ARCH=targetarch CROSS_COMPILE=/path/to/cross/compiler I'm about to do the same thing. My current disk is almost full and my /usr partition isn't big enough, most of the time I can get it down to 95% but often goes to 100%. In the next week or two I will move my system to another drive with lvm or at least a different partition configuration. I'll either do a fresh install or a stage4 install. You may want to look into that: a stage4 install. The documentation is at http://en.gentoo-wiki.com/wiki/Custom_Stage4 and it looks pretty good and simple. This may be the way you want to go. dhk
Re: [gentoo-user] Re: Installing Gentoo via Gentoo ?
dhk dhk...@optonline.net [10-04-18 16:20]: On 04/18/2010 09:58 AM, Grant Edwards wrote: On 2010-04-18, Lie Ryan lie.1...@gmail.com wrote: Yes, you should be able to, installing Gentoo is basically just copying a bunch of files to a partition in a harddisk, nothing magical. Precisely. However, you will have to be able to compile a compatible kernel from your PC. Compatible usually means either your PC have the same architecture as your laptop (which means everything should be already setup) or you have to cross-compile the kernel. Cross compiling the kernel is fairly trivial, but you need a cross-toolchain. Building one with crosstool-NG isn't too hard, but its' not trivial either. I've never done kernel cross-compiling, but it's definitely possible, you just need to modify modify some of the Makefile manually (search on google for a howto). You don't actually need to modify the Makefile if you don't want to. You can do it from the command line: make ARCH=targetarch CROSS_COMPILE=/path/to/cross/compiler I'm about to do the same thing. My current disk is almost full and my /usr partition isn't big enough, most of the time I can get it down to 95% but often goes to 100%. In the next week or two I will move my system to another drive with lvm or at least a different partition configuration. I'll either do a fresh install or a stage4 install. You may want to look into that: a stage4 install. The documentation is at http://en.gentoo-wiki.com/wiki/Custom_Stage4 and it looks pretty good and simple. This may be the way you want to go. dhk Hi dhk, ...same reasons here: A two small harddisk, a system, which suffers from to less experience as at was initially installed and a person, who wants a fresh one in no time, since time cannot be bought in re- peatedly bigger amounts as with harddisks :) Thank you very much in advance for the hint, dhk! One question: Is it possible to install a new system while starting with an initially empty world file, which will be populated then while the configuration/installation process? keep hacking! mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
Re: [gentoo-user] Recompile system but omit package?
On 2010-04-17 6:29 PM, Tanstaafl wrote: On 2010-04-17 6:06 PM, Vincent Launchbury wrote: On 04/17/10 17:09, Tanstaafl wrote: On 2010-04-17 4:59 PM, Tanstaafl wrote: emerge system -gcc (where '-gcc' serves to tell portage to compile everything *but* gcc)? Of course I meant: emerge -e system -gcc You could try temporarily masking it: #echo sys-devel/gcc /etc/portage/package.mask Then updating: #emerge -e system Then removing the mask: #sed -i '$d' /etc/portage/package.mask I don't know of any emerge flag that does this in one step. Hmmm, good idea, thanks Vincent... Crap, doesn't look like this will work... After masking gcc (and glibc - same argument there), I get: emerge -pev world snip Total: 351 packages (351 reinstalls), Size of downloads: 5 kB Portage tree and overlays: [0] /usr/portage [?] indicates that the source repository could not be determined !!! The following installed packages are masked: - sys-devel/gcc-4.1.2 (masked by: package.mask) - sys-libs/glibc-2.10.1-r1 (masked by: package.mask) - sys-devel/gcc-4.3.4 (masked by: package.mask) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. !!! All ebuilds that could satisfy sys-devel/gcc:4.1 have been masked. !!! One of the following masked packages is required to complete your request: - sys-devel/gcc-4.1.2 (masked by: package.mask) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. !!! All ebuilds that could satisfy sys-devel/gcc have been masked. !!! One of the following masked packages is required to complete your request: - sys-devel/gcc-4.4.3 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.4.2 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.4.1 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.3.4 (masked by: package.mask) - sys-devel/gcc-4.3.3-r2 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.3.2-r4 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.3.2-r3 (masked by: package.mask) - sys-devel/gcc-4.2.4-r1 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.1.2 (masked by: package.mask) - sys-devel/gcc-4.0.4 (masked by: package.mask, missing keyword) - sys-devel/gcc-3.4.6-r2 (masked by: package.mask) - sys-devel/gcc-3.3.6-r1 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-3.2.3-r4 (masked by: package.mask, missing keyword) - sys-devel/gcc-3.2.2 (masked by: package.mask, missing keyword) - sys-devel/gcc-3.1.1-r2 (masked by: package.mask, missing keyword) - sys-devel/gcc-2.95.3-r10 (masked by: package.mask, missing keyword) - sys-devel/gcc-2.95.3-r9 (masked by: package.mask, missing keyword) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. !!! All ebuilds that could satisfy sys-libs/glibc have been masked. !!! One of the following masked packages is required to complete your request: - sys-libs/glibc-2.11-r1 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.11 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.10.1-r1 (masked by: package.mask) - sys-libs/glibc-2.10.1 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.9_p20081201-r3 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.9_p20081201-r2 (masked by: package.mask) - sys-libs/glibc-2.8_p20080602-r1 (masked by: package.mask) - sys-libs/glibc-2.7-r2 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.6.1 (masked by: package.mask) - sys-libs/glibc-2.5.1 (masked by: package.mask, missing keyword) - sys-libs/glibc-2.5-r4 (masked by: package.mask) - sys-libs/glibc-2.2.5-r10 (masked by: profile, package.mask, missing keyword) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. !!! All ebuilds that could satisfy virtual/libc have been masked. !!! One of the following masked packages is required to complete your request: - sys-libs/glibc-2.11-r1 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.11 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.10.1-r1 (masked by: package.mask) - sys-libs/glibc-2.10.1 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.9_p20081201-r3 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.9_p20081201-r2 (masked by: package.mask) - sys-libs/glibc-2.8_p20080602-r1 (masked by: package.mask) - sys-libs/glibc-2.7-r2 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.6.1 (masked by: package.mask) - sys-libs/glibc-2.5.1 (masked by: package.mask, missing keyword) - sys-libs/glibc-2.5-r4 (masked by: package.mask) - sys-libs/glibc-2.2.5-r10 (masked by: profile, package.mask, missing keyword) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. myhost : Sun Apr 18, 10:56:51 : ~ # Any other ideas? -- Charles
Re: [gentoo-user] Are runlevels 3 4 5 the same?
On Sunday 18 April 2010 06:41:47 Adam wrote: i guess this means i should point l4 to a custom runlevel in /etc/runlevels that is the same as default with the exception that xdm is removed... That's what I do. I have /etc/runlevels/no-x/ which contains all the services I want started if I boot a CLI-only system. It's sometimes handy to have all the virtual consoles available, so single mode doesn't help here. I'm assuming the linux kernel wont understand the gentoo named runlevels, and therefore using those names in grub wouldnt work. Grub runs before the kernel; in fact grub finds the kernel on the disk from the details you specify in /boot/grub/grub.conf. Here's a snippet from my grub.conf: title=Gentoo Linux 2.6.33-r1 root (hd0,0) kernel /boot/kernel-x86_64-2.6.33-gentoo-r1 root=/dev/md3 vga=0x31A video=vesafb:mtrr:2,ypan fbcon=scrollback:128k splash=silent title=Gentoo Linux 2.6.33-r1, no X root (hd0,0) kernel /boot/kernel-x86_64-2.6.33-gentoo-r1 root=/dev/md3 vga=0x317 video=vesafb:mtrr:2,ypan fbcon=scrollback:128k splash=silent softlevel=no-x Then I just scroll to the version I want and hit Enter. -- Rgds Peter.
Re: [gentoo-user] Questions for my first ebuild
On Sat, Apr 17, 2010 at 10:03 PM, Walter Dnes waltd...@waltdnes.org wrote: I intend to get the Silicon Dust HDHomerun dual tuner box. Walt, I own an HDHR and it's been a great little box for the last couple of years. I hope you enjoy it as much as we have. That said watch out for what's happening to us. We're on the cable giant Comcast's network and they are quickly moving toward removing nearly all Clear QAM from their transmissions meaning we will be left with very little that the HDHR can tune. Some people report on the Myth lists that they are down to little more than OTA and cable access channels. It hasn't happened to me yet, but I think the writing is on the wall. More Comcast people are moving toward the cheap DTAs and controlling them to change channels, but that's SDA only. HD requires a STB. What a mess! Anyway, you might be in Europe or Canada or someplace with better consumer protection laws than the U.S. Just be aware of what you might be up against, and if it doesn't matter then enjoy the HDHR because it's a great little product. Cheers, Mark
Re: [gentoo-user] Re: initramfs RAID at boot time
On Sat, Apr 17, 2010 at 3:01 PM, Neil Bothwick n...@digimed.co.uk wrote: On Sat, 17 Apr 2010 14:36:39 -0700, Mark Knecht wrote: Empirically any way there doesn't seem to be a problem. I built the new kernel and it booted normally so I think I'm misinterpreting what was written in the Wiki or the Wiki is wrong. As long as /boot is not on RAID, or is on RAID1, you don't need an initrd. I've been booting this system for years with / on RAID1 and everything else on RAID5. -- Neil Bothwick Neil, Completely agreed, and in fact it's the way I built my new system. /boot is just a partition, / is RAID1 is three partitions marked with 0xfd partition type, using metadata=0.90 and assembled by the kernel. I'm using WD RAID Edition drives and an Asus Rampage II Extreme motherboard. It works, however I'm running into the sort of thing I ran into this morning when booting - both md5 and md6 have problems this morning. Random partitions get dropped out. It's never the same ones, and it's sometimes only 1 partition out of three on the same drive - sdc5 and sdc6 aren't found until I reboot, but sda3, sdb3 sdc3 were. Flakey hardware? What? The motherboard? The drives? I've noticed the entering the BIOS setup screens before allowing grub to take over seems to eliminate the problem. Timing? m...@c2stable ~ $ cat /proc/mdstat Personalities : [raid0] [raid1] md6 : active raid1 sda6[0] sdb6[1] 247416933 blocks super 1.1 [3/2] [UU_] md11 : active raid0 sdd1[0] sde1[1] 104871936 blocks super 1.1 512k chunks md3 : active raid1 sdc3[2] sdb3[1] sda3[0] 52436096 blocks [3/3] [UUU] md5 : active raid1 sdb5[1] sda5[0] 52436032 blocks [3/2] [UU_] unused devices: none m...@c2stable ~ $ For clarity, md3 is the only one needed to boot the system. The other three RAIDs aren't required until I start running apps. However they are all being assembled by the kernel at boot time and I would prefer not to do that, or at least learn how not to do it. Now, as to why they are being assembled I suspect it's because I marked them all with partition type 0xfd when possibly it's not the best thing to have done. The kernel won't bother with non-0xfd partitions and then mdadm could have done it later: c2stable ~ # fdisk -l /dev/sda Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x8b45be24 Device Boot Start End Blocks Id System /dev/sda1 * 1 7 56196 83 Linux /dev/sda2 8 530 4200997+ 82 Linux swap / Solaris /dev/sda3 536706352436160 fd Linux raid autodetect /dev/sda47064 60801 4316504855 Extended /dev/sda57064 1359152436128+ fd Linux raid autodetect /dev/sda6 3 60801 247417065 fd Linux raid autodetect c2stable ~ # However the Gentoo Wiki says we are supposed to mark everything 0xfd: http://en.gentoo-wiki.com/wiki/RAID/Software#Setup_Partitions I'm not sure that we good advice or not for RAIDs that could be assembled later but that's what I did and it leads to the kernel trying to do everything before the system is totally up and mdadm is really running. Anyway, the failures happen, so I can step through and fail, remove and add the partition back to the array. (In this case fail and remove aren't necessary) c2stable ~ # mdadm /dev/md5 -f /dev/sdc5 mdadm: set device faulty failed for /dev/sdc5: No such device c2stable ~ # mdadm /dev/md5 -r /dev/sdc5 mdadm: hot remove failed for /dev/sdc5: No such device or address c2stable ~ # mdadm /dev/md5 -a /dev/sdc5 mdadm: re-added /dev/sdc5 c2stable ~ # mdadm /dev/md6 -a /dev/sdc6 mdadm: re-added /dev/sdc6 c2stable ~ # At this point md5 is repaired and I'm waiting for md6 c2stable ~ # cat /proc/mdstat Personalities : [raid0] [raid1] md6 : active raid1 sdc6[2] sda6[0] sdb6[1] 247416933 blocks super 1.1 [3/2] [UU_] [] recovery = 22.0% (54525440/247416933) finish=38.1min speed=84230K/sec md11 : active raid0 sdd1[0] sde1[1] 104871936 blocks super 1.1 512k chunks md3 : active raid1 sdc3[2] sdb3[1] sda3[0] 52436096 blocks [3/3] [UUU] md5 : active raid1 sdc5[2] sdb5[1] sda5[0] 52436032 blocks [3/3] [UUU] unused devices: none c2stable ~ #c2stable ~ # cat /proc/mdstat Personalities : [raid0] [raid1] md6 : active raid1 sdc6[2] sda6[0] sdb6[1] 247416933 blocks super 1.1 [3/2] [UU_] [] recovery = 22.0% (54525440/247416933) finish=38.1min speed=84230K/sec md11 : active raid0 sdd1[0] sde1[1] 104871936 blocks super 1.1 512k chunks md3 : active raid1 sdc3[2] sdb3[1] sda3[0] 52436096 blocks [3/3] [UUU] md5 : active raid1 sdc5[2] sdb5[1] sda5[0] 52436032 blocks [3/3] [UUU] unused devices: none c2stable ~ # How do I get past this? It's happening 2-3 times a week!
[gentoo-user] Re: [OT] Setting up a fall back ISP SMTP in sendmail
Mick michaelkintz...@gmail.com writes: For the purpose of posterity: The way to set up a fall back host is to use confFALLBACK_SMARTHOST to define a fall back smtp server. Thanks Mick... Instead of asking for help, you ended up giving help. Did someone answer your question privately?
[gentoo-user] emerge -e system - output info/errors to log
I must be missing something obvious... When updating gcc, and thus emerging -e both system and world, where are the info/warn/errors logged? I see a whole bunch of separate/individual logs ion /var/log/portage/elog, but what I'm looking for is a single, easily readable log of all of the result info/warn/errors for each package. When emerging system, I saw some warnings when emerging openssl, but they scrolled on by way too fast, and now I can't find them... ??? -- Charles
Re: [gentoo-user] Winchester Digital HD: Advanced Format
On Sun, Apr 18, 2010 at 4:16 AM, meino.cra...@gmx.de wrote: Hi, b the Winchester Digital WD10EARS S-ATA II 300MB/s GreenPower WD Caviar Green 1TByte Harddiscs offers something which WD calls Advanced Format which turns out to be sectors of 4096 bytes size instead of 512 bytes. To use it, one needs a tool made by WD which only runs under windows. Or? Is this new sector size is something, which I can activate be using fdisk/mkfs or something included in the linux kernel since stone age and is only new to the guys at Microsoft/Winchester Digital? Can I take any advantage of that? Thank you very much for any help and advice in advance! Have a nice sunday! mcc Sort of none of the above. 4K sectors are 4K sectors. It isn't something you activate. It's the way the drive is made. However the drive responds to 512 byte sector addresses. You can use it as you would any other drive, however... 1) If you put your partitions on 4K boundaries the drive will be fast 2) If you put your sectors on 512 byte boundaries the drive will work but be very slow Either way it will work. I think #1 is better, but that's up to you. Simple answer about what to do? Make sure the starting address of all partitions is divisible by 8, or for simplicity have every partition starting address end with 3 zeros which is what some of the newer Windows setup tools are doing. I know the 3 zero thing sounds like you're wasting space, and you would be, but it's very small compared to the size of the drive so it's what I did. Now, if you have NOT already purchased the drive, my suggestion is that you do not, or if you insist on buying some get in touch with me. I have 6 sitting right here at home that I'll happily sell to you at reduced prices. ;-) These drives are saving power by parking the heads very quickly and my experience over the last few months is that they are likely going to wear out in about 18 months according to WD's spec of 300K park cycles. (Check SMART data yourself) Additionally they are completely unusable for any sort of RAID environment as WD removed all the TLER functions from the firmware. Linux is racking up 1 cycles every 2 minutes. (41476/1588) As best I can tell the drive will be out of spec in about 14 months if your machine is powered on 24/7. gandalf ~ # smartctl -i /dev/sda smartctl 5.39.1 2010-01-28 r3054 [x86_64-pc-linux-gnu] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Device Model: WDC WD10EARS-00Y5B1 Serial Number:WD-WCAV55464493 Firmware Version: 80.00A80 User Capacity:1,000,204,886,016 bytes Device is:Not in smartctl database [for details use: -P showall] ATA Version is: 8 ATA Standard is: Exact ATA specification draft version not indicated Local Time is:Sun Apr 18 08:36:44 2010 PDT SMART support is: Available - device has SMART capability. SMART support is: Enabled gandalf ~ # gandalf ~ # !smart smartctl -A /dev/sda smartctl 5.39.1 2010-01-28 r3054 [x86_64-pc-linux-gnu] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 200 200 051Pre-fail Always - 0 3 Spin_Up_Time0x0027 129 128 021Pre-fail Always - 6525 4 Start_Stop_Count0x0032 100 100 000Old_age Always - 21 5 Reallocated_Sector_Ct 0x0033 200 200 140Pre-fail Always - 0 7 Seek_Error_Rate 0x002e 200 200 000Old_age Always - 0 9 Power_On_Hours 0x0032 098 098 000Old_age Always - 1588 10 Spin_Retry_Count0x0032 100 253 000Old_age Always - 0 11 Calibration_Retry_Count 0x0032 100 253 000Old_age Always - 0 12 Power_Cycle_Count 0x0032 100 100 000Old_age Always - 20 192 Power-Off_Retract_Count 0x0032 200 200 000Old_age Always - 5 193 Load_Cycle_Count0x0032 187 187 000Old_age Always - 41476 194 Temperature_Celsius 0x0022 121 116 000Old_age Always - 26 196 Reallocated_Event_Count 0x0032 200 200 000Old_age Always - 0 197 Current_Pending_Sector 0x0032 200 200 000Old_age Always - 0 198 Offline_Uncorrectable 0x0030 200 200 000Old_age Offline - 0 199 UDMA_CRC_Error_Count0x0032 200 200 000Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0008 200 200 000Old_age Offline - 0 gandalf ~ # - Mark
Re: [gentoo-user] emerge -e system - output info/errors to log
On 2010-04-18 11:38 AM, Tanstaafl wrote: I must be missing something obvious... When updating gcc, and thus emerging -e both system and world, where are the info/warn/errors logged? I see a whole bunch of separate/individual logs ion /var/log/portage/elog, but what I'm looking for is a single, easily readable log of all of the result info/warn/errors for each package. When emerging system, I saw some warnings when emerging openssl, but they scrolled on by way too fast, and now I can't find them... Oh - and this is a server, so no X, so no elogviewer...
Re: [gentoo-user] Recompile system but omit package?
Tanstaafl wrote: On 2010-04-17 6:29 PM, Tanstaafl wrote: On 2010-04-17 6:06 PM, Vincent Launchbury wrote: On 04/17/10 17:09, Tanstaafl wrote: On 2010-04-17 4:59 PM, Tanstaafl wrote: emerge system -gcc (where '-gcc' serves to tell portage to compile everything *but* gcc)? Of course I meant: emerge -e system -gcc You could try temporarily masking it: #echo sys-devel/gcc /etc/portage/package.mask Then updating: #emerge -e system Then removing the mask: #sed -i '$d' /etc/portage/package.mask I don't know of any emerge flag that does this in one step. Hmmm, good idea, thanks Vincent... Crap, doesn't look like this will work... After masking gcc (and glibc - same argument there), I get: emerge -pev world snip Total: 351 packages (351 reinstalls), Size of downloads: 5 kB Portage tree and overlays: [0] /usr/portage [?] indicates that the source repository could not be determined !!! The following installed packages are masked: - sys-devel/gcc-4.1.2 (masked by: package.mask) - sys-libs/glibc-2.10.1-r1 (masked by: package.mask) - sys-devel/gcc-4.3.4 (masked by: package.mask) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. !!! All ebuilds that could satisfy sys-devel/gcc:4.1 have been masked. !!! One of the following masked packages is required to complete your request: - sys-devel/gcc-4.1.2 (masked by: package.mask) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. !!! All ebuilds that could satisfy sys-devel/gcc have been masked. !!! One of the following masked packages is required to complete your request: - sys-devel/gcc-4.4.3 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.4.2 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.4.1 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.3.4 (masked by: package.mask) - sys-devel/gcc-4.3.3-r2 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.3.2-r4 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.3.2-r3 (masked by: package.mask) - sys-devel/gcc-4.2.4-r1 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-4.1.2 (masked by: package.mask) - sys-devel/gcc-4.0.4 (masked by: package.mask, missing keyword) - sys-devel/gcc-3.4.6-r2 (masked by: package.mask) - sys-devel/gcc-3.3.6-r1 (masked by: package.mask, ~amd64 keyword) - sys-devel/gcc-3.2.3-r4 (masked by: package.mask, missing keyword) - sys-devel/gcc-3.2.2 (masked by: package.mask, missing keyword) - sys-devel/gcc-3.1.1-r2 (masked by: package.mask, missing keyword) - sys-devel/gcc-2.95.3-r10 (masked by: package.mask, missing keyword) - sys-devel/gcc-2.95.3-r9 (masked by: package.mask, missing keyword) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. !!! All ebuilds that could satisfy sys-libs/glibc have been masked. !!! One of the following masked packages is required to complete your request: - sys-libs/glibc-2.11-r1 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.11 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.10.1-r1 (masked by: package.mask) - sys-libs/glibc-2.10.1 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.9_p20081201-r3 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.9_p20081201-r2 (masked by: package.mask) - sys-libs/glibc-2.8_p20080602-r1 (masked by: package.mask) - sys-libs/glibc-2.7-r2 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.6.1 (masked by: package.mask) - sys-libs/glibc-2.5.1 (masked by: package.mask, missing keyword) - sys-libs/glibc-2.5-r4 (masked by: package.mask) - sys-libs/glibc-2.2.5-r10 (masked by: profile, package.mask, missing keyword) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. !!! All ebuilds that could satisfy virtual/libc have been masked. !!! One of the following masked packages is required to complete your request: - sys-libs/glibc-2.11-r1 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.11 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.10.1-r1 (masked by: package.mask) - sys-libs/glibc-2.10.1 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.9_p20081201-r3 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.9_p20081201-r2 (masked by: package.mask) - sys-libs/glibc-2.8_p20080602-r1 (masked by: package.mask) - sys-libs/glibc-2.7-r2 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.6.1 (masked by: package.mask) - sys-libs/glibc-2.5.1 (masked by: package.mask, missing keyword) - sys-libs/glibc-2.5-r4 (masked by: package.mask) - sys-libs/glibc-2.2.5-r10 (masked by: profile, package.mask, missing keyword) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. myhost : Sun Apr 18, 10:56:51 : ~ # Any other ideas? well... you could use --keep-going and kill something when
Re: [gentoo-user] Recompile system but omit package?
On 4/18/10, Tanstaafl tansta...@libertytrek.org wrote: You could try temporarily masking it: #echo sys-devel/gcc /etc/portage/package.mask Then updating: #emerge -e system Then removing the mask: #sed -i '$d' /etc/portage/package.mask I don't know of any emerge flag that does this in one step. Hmmm, good idea, thanks Vincent... Crap, doesn't look like this will work... snip/ Any other ideas? A guess: try it with package.provided instead of package.mask. See the section on portage man page. The syntax for package.provided requires a full version atom (e.g., sys-devel/gcc-4.4.3-r1), but this approach might not interfere with dep tree calculations like masking does. -- Arttu V.
Re: [gentoo-user] Recompile system but omit package?
On 2010-04-18 11:45 AM, Johannes Kimmel wrote: well... you could use --keep-going and kill something when gcc compiles. not very nice, but will work without breaking anything. Dang - I already started the emerge... I'm surprised there's no easy way to do this... I guess just because you don't do this very often, and most people just live with the triple compiles of 2 versions of gcc? Anyway, --keep-going option has been noted for future reference... Thanks Johannes... -- Charles
Re: [gentoo-user] Recompile system but omit package?
On 2010-04-18 11:54 AM, Arttu V. wrote: On 4/18/10, Tanstaafl tansta...@libertytrek.org wrote: You could try temporarily masking it: #echo sys-devel/gcc /etc/portage/package.mask Then updating: #emerge -e system Then removing the mask: #sed -i '$d' /etc/portage/package.mask I don't know of any emerge flag that does this in one step. Hmmm, good idea, thanks Vincent... Crap, doesn't look like this will work... snip/ Any other ideas? A guess: try it with package.provided instead of package.mask. See the section on portage man page. The syntax for package.provided requires a full version atom (e.g., sys-devel/gcc-4.4.3-r1), but this approach might not interfere with dep tree calculations like masking does. Noted for future reference as well Arttu, thanks... if it works I won't have to sit there and watch for the gcc compiles... -- Charles
Re: [gentoo-user] Winchester Digital HD: Advanced Format
Mark Knecht markkne...@gmail.com [10-04-18 17:44]: On Sun, Apr 18, 2010 at 4:16 AM, meino.cra...@gmx.de wrote: Hi, b the Winchester Digital WD10EARS S-ATA II 300MB/s GreenPower WD Caviar Green 1TByte Harddiscs offers something which WD calls Advanced Format which turns out to be sectors of 4096 bytes size instead of 512 bytes. To use it, one needs a tool made by WD which only runs under windows. Or? Is this new sector size is something, which I can activate be using fdisk/mkfs or something included in the linux kernel since stone age and is only new to the guys at Microsoft/Winchester Digital? Can I take any advantage of that? Thank you very much for any help and advice in advance! Have a nice sunday! mcc Sort of none of the above. 4K sectors are 4K sectors. It isn't something you activate. It's the way the drive is made. However the drive responds to 512 byte sector addresses. You can use it as you would any other drive, however... 1) If you put your partitions on 4K boundaries the drive will be fast 2) If you put your sectors on 512 byte boundaries the drive will work but be very slow Either way it will work. I think #1 is better, but that's up to you. Simple answer about what to do? Make sure the starting address of all partitions is divisible by 8, or for simplicity have every partition starting address end with 3 zeros which is what some of the newer Windows setup tools are doing. I know the 3 zero thing sounds like you're wasting space, and you would be, but it's very small compared to the size of the drive so it's what I did. Now, if you have NOT already purchased the drive, my suggestion is that you do not, or if you insist on buying some get in touch with me. I have 6 sitting right here at home that I'll happily sell to you at reduced prices. ;-) These drives are saving power by parking the heads very quickly and my experience over the last few months is that they are likely going to wear out in about 18 months according to WD's spec of 300K park cycles. (Check SMART data yourself) Additionally they are completely unusable for any sort of RAID environment as WD removed all the TLER functions from the firmware. Linux is racking up 1 cycles every 2 minutes. (41476/1588) As best I can tell the drive will be out of spec in about 14 months if your machine is powered on 24/7. gandalf ~ # smartctl -i /dev/sda smartctl 5.39.1 2010-01-28 r3054 [x86_64-pc-linux-gnu] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Device Model: WDC WD10EARS-00Y5B1 Serial Number:WD-WCAV55464493 Firmware Version: 80.00A80 User Capacity:1,000,204,886,016 bytes Device is:Not in smartctl database [for details use: -P showall] ATA Version is: 8 ATA Standard is: Exact ATA specification draft version not indicated Local Time is:Sun Apr 18 08:36:44 2010 PDT SMART support is: Available - device has SMART capability. SMART support is: Enabled gandalf ~ # gandalf ~ # !smart smartctl -A /dev/sda smartctl 5.39.1 2010-01-28 r3054 [x86_64-pc-linux-gnu] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 200 200 051Pre-fail Always - 0 3 Spin_Up_Time0x0027 129 128 021Pre-fail Always - 6525 4 Start_Stop_Count0x0032 100 100 000Old_age Always - 21 5 Reallocated_Sector_Ct 0x0033 200 200 140Pre-fail Always - 0 7 Seek_Error_Rate 0x002e 200 200 000Old_age Always - 0 9 Power_On_Hours 0x0032 098 098 000Old_age Always - 1588 10 Spin_Retry_Count0x0032 100 253 000Old_age Always - 0 11 Calibration_Retry_Count 0x0032 100 253 000Old_age Always - 0 12 Power_Cycle_Count 0x0032 100 100 000Old_age Always - 20 192 Power-Off_Retract_Count 0x0032 200 200 000Old_age Always - 5 193 Load_Cycle_Count0x0032 187 187 000Old_age Always - 41476 194 Temperature_Celsius 0x0022 121 116 000Old_age Always - 26 196 Reallocated_Event_Count 0x0032 200 200 000Old_age Always - 0 197 Current_Pending_Sector 0x0032 200 200 000Old_age Always - 0 198 Offline_Uncorrectable 0x0030 200 200 000Old_age Offline - 0 199 UDMA_CRC_Error_Count0x0032 200 200 000Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0008
Re: [gentoo-user] Recompile system but omit package?
On 2010-04-18 11:57 AM, Tanstaafl wrote: On 2010-04-18 11:45 AM, Johannes Kimmel wrote: well... you could use --keep-going and kill something when gcc compiles. not very nice, but will work without breaking anything. Hmmm... clarification though... when you say 'kill something'... how would I kill just that one gcc emerge? Ctrl-c would kill the entire emerge session... -- Charles
Re: [gentoo-user] Recompile system but omit package?
On Sun, Apr 18, 2010 at 11:57:48AM -0400, Tanstaafl wrote: On 2010-04-18 11:45 AM, Johannes Kimmel wrote: well... you could use --keep-going and kill something when gcc compiles. not very nice, but will work without breaking anything. Dang - I already started the emerge... You can still break the emerge (for example with ctrl-c) when it starts to emerge gcc, the continue the emerge process with emerge --resume --skipfirst that's what I usually do with openoffice and similar apps when I do a quick update and fail to notice the large app in there.. ;) yoyo
Re: [gentoo-user] Re: Installing Gentoo via Gentoo ?
On 04/18/2010 10:37 AM, meino.cra...@gmx.de wrote: dhk dhk...@optonline.net [10-04-18 16:20]: On 04/18/2010 09:58 AM, Grant Edwards wrote: On 2010-04-18, Lie Ryan lie.1...@gmail.com wrote: Yes, you should be able to, installing Gentoo is basically just copying a bunch of files to a partition in a harddisk, nothing magical. Precisely. However, you will have to be able to compile a compatible kernel from your PC. Compatible usually means either your PC have the same architecture as your laptop (which means everything should be already setup) or you have to cross-compile the kernel. Cross compiling the kernel is fairly trivial, but you need a cross-toolchain. Building one with crosstool-NG isn't too hard, but its' not trivial either. I've never done kernel cross-compiling, but it's definitely possible, you just need to modify modify some of the Makefile manually (search on google for a howto). You don't actually need to modify the Makefile if you don't want to. You can do it from the command line: make ARCH=targetarch CROSS_COMPILE=/path/to/cross/compiler I'm about to do the same thing. My current disk is almost full and my /usr partition isn't big enough, most of the time I can get it down to 95% but often goes to 100%. In the next week or two I will move my system to another drive with lvm or at least a different partition configuration. I'll either do a fresh install or a stage4 install. You may want to look into that: a stage4 install. The documentation is at http://en.gentoo-wiki.com/wiki/Custom_Stage4 and it looks pretty good and simple. This may be the way you want to go. dhk Hi dhk, ...same reasons here: A two small harddisk, a system, which suffers from to less experience as at was initially installed and a person, who wants a fresh one in no time, since time cannot be bought in re- peatedly bigger amounts as with harddisks :) Thank you very much in advance for the hint, dhk! One question: Is it possible to install a new system while starting with an initially empty world file, which will be populated then while the configuration/installation process? keep hacking! mcc I'm not an expert, but I think it is possible. Beware I haven't done this yet, but this is the procedure I'm going to try in the the next couple of weeks. Do the following in a terminal window from your working system. 1) Plug in the new drive. 2) Boot your machine as usual to the old Gentoo. 3) Run fdisk on the new drive to make partitions you want on your new system (fdisk /dev/sdb). 4) Make your file systems with mke2fs and mkswap, then run swapon /dev/sdb?. 5) Make all the mount points for all your partitions, but instead of doing it on your new drive do it on your old drive in the /mnt directory (mkdir -p /mnt/sdb/boot /mnt/sdb/tmp /mnt/sdb/usr /mnt/sdb/var . . .) and make one extra mount point for your old system bin (mkdir -p /mnt/sdb/oldsysbin). 6) Mount the directories on /dev/sdb from /dev/sda (mount -t ext3 /dev/sdb7 /mnt/sdb/usr). 7) Mount your old system bin for the tar command. My tar is in /bin and /bin is on (df -k /bin) /dev/sda3. Run mount -t ext3 /dev/sda3 /mnt/oldsys/ to mount the bin directory. 8) Make the stage4. At the end of the documentation in the link above there are scripts that seem to work. Make sure you change the stage4Location in mkstage4.sh to some place with a lot of room. In this example I'd change it to stage4Location=/mnt/sdb/usr/ remembering the trailing slash. Making it could take a few hours. 9) Now the tricky part. So not to confuse the root partitions (the old and new) I would do a chroot. Run: chroot /mnt/sdb /bin/bash and export PS1=(chroot) $PS1 . 10) Install the stage4. Change to the /usr directory and if all is correct you should see your stage4 there. Do a df -k also to make sure everything looks right. Now install the stage4, run: /oldsys/bin/tar xvjpf stage4-*.tar.bz2 When this is done exit chroot and umount everything in /mnt/sdb. Shut down the machine. If all went well you should now be able to unplug either drive and boot to the other. I would boot to the old drive first to make sure that still works as if nothing happened. Then shutdown, unplug the old drive and plug in the new drive. See if you can boot to the new drive. This should be a mirror image of the old drive with the new partition sizes. Once again, I haven't tried this yet. Maybe solicit some other opinions. I don't think it will affect the original system and it should allow you to work in another terminal while your building the new drive. Does this make sense. Let me know if it works. Good luck, dhk
Re: [gentoo-user] Re: Installing Gentoo via Gentoo ?
On 04/18/2010 12:30 PM, dhk wrote: On 04/18/2010 10:37 AM, meino.cra...@gmx.de wrote: dhk dhk...@optonline.net [10-04-18 16:20]: On 04/18/2010 09:58 AM, Grant Edwards wrote: On 2010-04-18, Lie Ryan lie.1...@gmail.com wrote: Yes, you should be able to, installing Gentoo is basically just copying a bunch of files to a partition in a harddisk, nothing magical. Precisely. However, you will have to be able to compile a compatible kernel from your PC. Compatible usually means either your PC have the same architecture as your laptop (which means everything should be already setup) or you have to cross-compile the kernel. Cross compiling the kernel is fairly trivial, but you need a cross-toolchain. Building one with crosstool-NG isn't too hard, but its' not trivial either. I've never done kernel cross-compiling, but it's definitely possible, you just need to modify modify some of the Makefile manually (search on google for a howto). You don't actually need to modify the Makefile if you don't want to. You can do it from the command line: make ARCH=targetarch CROSS_COMPILE=/path/to/cross/compiler I'm about to do the same thing. My current disk is almost full and my /usr partition isn't big enough, most of the time I can get it down to 95% but often goes to 100%. In the next week or two I will move my system to another drive with lvm or at least a different partition configuration. I'll either do a fresh install or a stage4 install. You may want to look into that: a stage4 install. The documentation is at http://en.gentoo-wiki.com/wiki/Custom_Stage4 and it looks pretty good and simple. This may be the way you want to go. dhk Hi dhk, ...same reasons here: A two small harddisk, a system, which suffers from to less experience as at was initially installed and a person, who wants a fresh one in no time, since time cannot be bought in re- peatedly bigger amounts as with harddisks :) Thank you very much in advance for the hint, dhk! One question: Is it possible to install a new system while starting with an initially empty world file, which will be populated then while the configuration/installation process? keep hacking! mcc I'm not an expert, but I think it is possible. Beware I haven't done this yet, but this is the procedure I'm going to try in the the next couple of weeks. Do the following in a terminal window from your working system. 1) Plug in the new drive. 2) Boot your machine as usual to the old Gentoo. 3) Run fdisk on the new drive to make partitions you want on your new system (fdisk /dev/sdb). 4) Make your file systems with mke2fs and mkswap, then run swapon /dev/sdb?. 5) Make all the mount points for all your partitions, but instead of doing it on your new drive do it on your old drive in the /mnt directory (mkdir -p /mnt/sdb/boot /mnt/sdb/tmp /mnt/sdb/usr /mnt/sdb/var . . .) and make one extra mount point for your old system bin (mkdir -p /mnt/sdb/oldsysbin). 6) Mount the directories on /dev/sdb from /dev/sda (mount -t ext3 /dev/sdb7 /mnt/sdb/usr). 7) Mount your old system bin for the tar command. My tar is in /bin and /bin is on (df -k /bin) /dev/sda3. Run mount -t ext3 /dev/sda3 /mnt/oldsys/ to mount the bin directory. 8) Make the stage4. At the end of the documentation in the link above there are scripts that seem to work. Make sure you change the stage4Location in mkstage4.sh to some place with a lot of room. In this example I'd change it to stage4Location=/mnt/sdb/usr/ remembering the trailing slash. Making it could take a few hours. 9) Now the tricky part. So not to confuse the root partitions (the old and new) I would do a chroot. Run: chroot /mnt/sdb /bin/bash and export PS1=(chroot) $PS1 . 10) Install the stage4. Change to the /usr directory and if all is correct you should see your stage4 there. Do a df -k also to make sure everything looks right. Now install the stage4, run: /oldsys/bin/tar xvjpf stage4-*.tar.bz2 When this is done exit chroot and umount everything in /mnt/sdb. Shut down the machine. If all went well you should now be able to unplug either drive and boot to the other. I would boot to the old drive first to make sure that still works as if nothing happened. Then shutdown, unplug the old drive and plug in the new drive. See if you can boot to the new drive. This should be a mirror image of the old drive with the new partition sizes. Once again, I haven't tried this yet. Maybe solicit some other opinions. I don't think it will affect the original system and it should allow you to work in another terminal while your building the new drive. Does this make sense. Let me know if it works. Good luck, dhk correction in #7 mount -t ext3 /dev/sda3 /mnt/oldsys/ should be mount -t ext3 /dev/sda3 /mnt/oldsysbin/ dhk
Re: [gentoo-user] Recompile system but omit package?
On 2010-04-18 12:29 PM, YoYo siska wrote: On Sun, Apr 18, 2010 at 11:57:48AM -0400, Tanstaafl wrote: On 2010-04-18 11:45 AM, Johannes Kimmel wrote: well... you could use --keep-going and kill something when gcc compiles. not very nice, but will work without breaking anything. Dang - I already started the emerge... You can still break the emerge (for example with ctrl-c) when it starts to emerge gcc, the continue the emerge process with emerge --resume --skipfirst To clarify - I can do this with the currently running emerge (that did not specify --keep-going)? So, when it gets to gcc (its on package # 181 of 355 now, hasn't hit either of the gcc's or glibc yet), hit ctrl-c, then: emerge --resume --skipfirst ? Do I need to add the -ev world in there? Or does emerge just know where to pick up all by itself? This is good info to have. Also - is it ok to do this during the actual compile? Or do I need to catch it before the actual compiling starts? that's what I usually do with openoffice and similar apps when I do a quick update and fail to notice the large app in there.. ;) Many thanks YoYo - this could save me a lot of time this afternoon! :) -- Charles
Re: [gentoo-user] Recompile system but omit package?
On Sat, Apr 17, 2010 at 04:59:07PM -0400, Tanstaafl wrote: Is there a way to emerge, say, system, but omit one package in it? For example, I've already recompiled gcc 4.3.4 with itself... is there a way to now do something like: emerge system -gcc (where '-gcc' serves to tell portage to compile everything *but* gcc)? Its not a big deal, I'm just curious... -- Charles You can do something like: emerge -pe world | sed -e /^.ebuild/ ! d; s/.*] /=/; s/ .*//; list ... edit list and remove anything you don't want to reinstall ... emerge -av1 `cat list` the -1 (or --oneshot), means that the packages won't be added to the world file (they would normally because you are listing them all on the commandline) yoyo
Re: [gentoo-user] Recompile system but omit package?
On Sun, Apr 18, 2010 at 12:52:26PM -0400, Tanstaafl wrote: On 2010-04-18 12:29 PM, YoYo siska wrote: On Sun, Apr 18, 2010 at 11:57:48AM -0400, Tanstaafl wrote: On 2010-04-18 11:45 AM, Johannes Kimmel wrote: well... you could use --keep-going and kill something when gcc compiles. not very nice, but will work without breaking anything. Dang - I already started the emerge... You can still break the emerge (for example with ctrl-c) when it starts to emerge gcc, the continue the emerge process with emerge --resume --skipfirst To clarify - I can do this with the currently running emerge (that did not specify --keep-going)? So, when it gets to gcc (its on package # 181 of 355 now, hasn't hit either of the gcc's or glibc yet), hit ctrl-c, then: emerge --resume --skipfirst ? Do I need to add the -ev world in there? Or does emerge just know where to pick up all by itself? yes, it knows what the last emerge was, so you just say --resume but if you do another emerge in between, it will forget the previous interrupted one --resume just resumes the last interrupted (or failed) emerge , starting with the package that was interrupted, so that you can fix the problem if it was a compilation failure, and then continue... no need to give any special args to the first emerge. --skipfirst makes it skip the first package - the one that was interrupted handy when the emerge fails on a packages that isn't a depency of something other, you can just skip it then, very much like a manual --keep-going ;) This is good info to have. Also - is it ok to do this during the actual compile? Or do I need to catch it before the actual compiling starts? you can break it whenever you want.. --resume than starts the package again from beginning so you just waste the time/work it allready did... which does not really matter if you are going to do --skipfirst ;) yoyo
Re: [gentoo-user] emerge -e system - output info/errors to log
On Sunday 18 April 2010 17:38:19 Tanstaafl wrote: I must be missing something obvious... When updating gcc, and thus emerging -e both system and world Why are you doing that? Have you verified that you have in fact updated gcc from one version to another with an incompatible ABI? There is a false idea floating about that gcc updates require updating -e world. This is not true. , where are the info/warn/errors logged? I see a whole bunch of separate/individual logs ion /var/log/portage/elog, but what I'm looking for is a single, easily readable log of all of the result info/warn/errors for each package. Configure it in /etc/make.conf, mine looks like so: PORT_LOGDIR=/var/log/portage PORTAGE_ELOG_CLASSES=warn error log qa PORTAGE_ELOG_SYSTEM=save Adapt to you own needs. If you don't have this configured, then the logs are not stored. To see them again, read the ebuilds or re-run emrge -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Recompile system but omit package?
On 04/18/10 11:00, Tanstaafl wrote: Crap, doesn't look like this will work... After masking gcc (and glibc - same argument there), I get: emerge -pev world snip !!! All ebuilds that could satisfy virtual/libc have been masked. !!! One of the following masked packages is required to complete your request: - sys-libs/glibc-2.11-r1 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.11 (masked by: package.mask, ~amd64 keyword) snip For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. myhost : Sun Apr 18, 10:56:51 : ~ # Any other ideas? This is normal, it's informing you that those packages are masked, but not actually blocking the other updates. If you do: #emerge -e world -av i.e ask instead of pretend, it will output those warnings, and then ask you if you want to proceed with updating the rest. I'm using the unstable portage, but I'm pretty sure it's worked like this for quite a while on the stable branch too. Good luck :).
Re: [gentoo-user] Installing Gentoo via Gentoo ?
On Sunday 18 April 2010 14:21:19 meino.cra...@gmx.de wrote: Hi, currently I am reading the Gentoo-Handbokk about installing a new Gentoo-System via boot-CD. If I have a running Gentoo-Sytem on my PC...would it be possible to install a new Gentoo-System on a fresh harddisk, which is currently unpartitioned and unformatted electrically wired with my PC (SATAII) ? Just an idea... Of course you can. Your question betray the fact that you don't fully understand how OS installs work. It goes like this: - You have a running operating system on disk A - This can be any system you feel like, it can be Ubuntu, a LiveCD, MacOS or anything else - This OS runs an application that writes a crap load of files to disk B (or a different partition on the same disk - essentially the same thing) - Disk B is never the same bit as disk A. It doesn't matter what OS you are using to install on disk B, it is never the same thing as disk A. If it is, it isn't an install, it's an update - These files on disk B are written in such a way that they form a functioning OS. - Boot the machine and tell it to use the files on disk B. - Voila!! B runs, and has nothing to do with A. It stands to reason that the original A can be Gentoo to install Gentoo on B. Don't get hung up on this, it means nothing. If you have a suitable install app, MacOS can install Gentoo. If you have a suitable install app, Windows can install Gentoo. If you have a suitable install app, Gentoo can install Gentoo. Make sense now? -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Are runlevels 3 4 5 the same?
On Sunday 18 April 2010 07:21:56 Dale wrote: Adam wrote: I want to choose console or X from grub, so i'm thinking i'll do something like 'rc-update delete xdm 4' and then pass softlevel=4 to my grub boot line, to make runlevel 4 a console runlevel. Is that the right way to do it? Gentoo doesn't use those runlevels. You need to read this: Well said Dale. Numbered runlevels a-la ancient init are a stupid idea, were always a stupid idea and always will be a stupid idea. I have never seen anyone actually use them! Here's what people do use: - a boot config for single user/maintenance (fix stuff with this) - what you use everyday. Possibly also - another config for some rare circumstance (like occasionally not running X for some reason. But most folk just stop xdm to do that) man rc-update Gentoo comes with the following runlevels: r...@smoker ~ # ls /etc/runlevels/ total 5 drwxr-xr-x 6 root root 152 Jun 11 2008 . drwxr-xr-x 81 root root 4832 Apr 18 00:16 .. drwxr-xr-x 2 root root 368 Jun 11 2008 boot drwxr-xr-x 2 root root 512 Apr 9 20:05 default drwxr-xr-x 2 root root 72 Jun 11 2008 nonetwork r...@smoker ~ # It generally boots to default. You can change that on the kernel boot line but with one of the above instead of a 4 as you posted. Post back if you get stumped along the way. Dale :-) :-) -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Recompile system but omit package?
On 2010-04-18 1:11 PM, Vincent Launchbury wrote: On 04/18/10 11:00, Tanstaafl wrote: Crap, doesn't look like this will work... After masking gcc (and glibc - same argument there), I get: emerge -pev world snip !!! All ebuilds that could satisfy virtual/libc have been masked. !!! One of the following masked packages is required to complete your request: - sys-libs/glibc-2.11-r1 (masked by: package.mask, ~amd64 keyword) - sys-libs/glibc-2.11 (masked by: package.mask, ~amd64 keyword) snip For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. myhost : Sun Apr 18, 10:56:51 : ~ # Any other ideas? This is normal, it's informing you that those packages are masked, but not actually blocking the other updates. If you do: #emerge -e world -av i.e ask instead of pretend, it will output those warnings, and then ask you if you want to proceed with updating the rest. Well of all the... ! :) Thanks Vincent... I guess that makes sense. The way those errors were formatted though, it resembled the [B] blocking errors I've encountered in the past, so I thought it meant they needed to be fixed first... Anyway, I learned a few things (--resume --skipfirst, how to output a list of packages to a file then emerge them, etc), so it wasn't wasted bandwidth, for me at least... ;) Thanks guys... -- Charles
Re: [gentoo-user] Re: How many ways are there for a user to increase their permissions?
On Sunday 18 April 2010 05:05:23 walt wrote: On 04/17/2010 06:02 PM, Jonathan wrote: What does the E in EUID stand for? I did a quick Google and found RUID and EUID but I did not find anything else. Did you really type what you meant? Doesn't make much sense as is, so I assume there is a typo in there somewhere. Have a leisurely browse through /usr/include/unistd.h to answer your question. Nice retort :-) But to answer his question The E stands for effective. His apps are running as a normal user with his UID. In kernel-speak they are effectively running with that UID, hence the term EUID. When you run an app with sudo (or any other app that raises priviledges), sudo is SUID so it runs as root, who permits the user's app to run as root. The UID of that running app is 0, but it's launched by a regular user. That's why we have EUID. It's not the same thing as UID. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] emerge -e system - output info/errors to log
On 2010-04-18 1:05 PM, Alan McKinnon wrote: On Sunday 18 April 2010 17:38:19 Tanstaafl wrote: I must be missing something obvious... When updating gcc, and thus emerging -e both system and world Why are you doing that? Because it wasn't a minor bugfix update? I'm going from 4.1.2 to 4.3.4. Have you verified that you have in fact updated gcc from one version to another with an incompatible ABI? Since the GCC upgrade guide doesn't mention a way to do this, no, I haven't... so how does one verify this, Obi-Wan? ;) There is a false idea floating about that gcc updates require updating -e world. This is not true. I've heard this before, but could never get a definitive answer on how to know for sure when you do and don't need to... where are the info/warn/errors logged? I see a whole bunch of separate/individual logs ion /var/log/portage/elog, but what I'm looking for is a single, easily readable log of all of the result info/warn/errors for each package. Configure it in /etc/make.conf, mine looks like so: PORT_LOGDIR=/var/log/portage PORTAGE_ELOG_CLASSES=warn error log qa PORTAGE_ELOG_SYSTEM=save I have the last two, but didn't have the first - just added it... So, does adding the first entry provide an overall emerge.log with just all of the messages in it that I can review? Adapt to you own needs. If you don't have this configured, then the logs are not stored. To see them again, read the ebuilds or re-run emrge Like I said, I have a bunch of *individual* logs (for individual ebuilds)... I was hoping for something a little easier to manage/read, all in one file... -- Charles
Re: [gentoo-user] emerge -e system - output info/errors to log
Tanstaafl wrote: On 2010-04-18 11:38 AM, Tanstaafl wrote: I must be missing something obvious... When updating gcc, and thus emerging -e both system and world, where are the info/warn/errors logged? I see a whole bunch of separate/individual logs ion /var/log/portage/elog, but what I'm looking for is a single, easily readable log of all of the result info/warn/errors for each package. When emerging system, I saw some warnings when emerging openssl, but they scrolled on by way too fast, and now I can't find them... Oh - and this is a server, so no X, so no elogviewer... Hmmm, no GUI. See if you can use this: elogv Which comes from here: r...@smoker ~ # equery belongs elogv * Searching for elogv ... app-portage/elogv-0.7.4 (/usr/bin/elogv) r...@smoker ~ # I use that in a console when my GUI is not working for some reason. Usually because nvidia needs to be recompiled because of a updated kernel. It's not the prettiest thing but it should work. Dale :-) :-)
Re: [gentoo-user] Winchester Digital HD: Advanced Format
On Sun, Apr 18, 2010 at 9:11 AM, meino.cra...@gmx.de wrote: SNIP Hi Gandalf, thanks a lot for your extensive explanations!!! Unfortunately, I already bought two of those drives...according to your explanation about the expected lifetime of those I think I have done the complete wrong decision... But what could be the reason for building a drive with THAT setup... it literally kills itsself... May be itz is possible to tune the drive to not to save such great amount of energy (read: Do not park heads that fast) via hdparm??? Best regards, mcc I have no data but I don't think the drive isn't killing itself. I have one in a Windows box and I'm not seeing this problem. My suspicion is that Linux is doing something that wakes the drive up once every two minutes and then lets the drive go back to sleep. That amounts to 30 load cycles an hour which hits the 300K spec in 13-14 months. I don't know that the drive will die when it gets to 300K. All I know is that's the spec WD gives, not only for these Green-series drives, but also for their Blue, Black and RAID Edition drives. The thing is I have RAID Edition drives in similar systems and they aren't racking up this count value so they presumably will last longer. I have NO data as to why this is happening. It just is. I figure I've got 6 months to find a solution, and then without a solution 6 more months to swap the drives out if I get too worried. - Mark
Re: [gentoo-user] Winchester Digital HD: Advanced Format
On Sun, Apr 18, 2010 at 10:42 AM, Mark Knecht markkne...@gmail.com wrote: On Sun, Apr 18, 2010 at 9:11 AM, meino.cra...@gmx.de wrote: SNIP Hi Gandalf, thanks a lot for your extensive explanations!!! Unfortunately, I already bought two of those drives...according to your explanation about the expected lifetime of those I think I have done the complete wrong decision... But what could be the reason for building a drive with THAT setup... it literally kills itsself... May be itz is possible to tune the drive to not to save such great amount of energy (read: Do not park heads that fast) via hdparm??? Best regards, mcc Sorry!! Bad writing. I meant to say I have no data but I don't think the drive is killing itself. Sorry! I have no data but I don't think the drive isn't killing itself. I have one in a Windows box and I'm not seeing this problem. My suspicion is that Linux is doing something that wakes the drive up once every two minutes and then lets the drive go back to sleep. That amounts to 30 load cycles an hour which hits the 300K spec in 13-14 months. I don't know that the drive will die when it gets to 300K. All I know is that's the spec WD gives, not only for these Green-series drives, but also for their Blue, Black and RAID Edition drives. The thing is I have RAID Edition drives in similar systems and they aren't racking up this count value so they presumably will last longer. I have NO data as to why this is happening. It just is. I figure I've got 6 months to find a solution, and then without a solution 6 more months to swap the drives out if I get too worried. - Mark
Re: [gentoo-user] How many ways are there for a user to increase their permissions?
On Sunday 18 April 2010 07:41:51 Mike Edenfield wrote: On 4/18/2010 12:29 AM, Jonathan wrote: On Sun, 18 Apr 2010 00:46:25 +0100 David W Noondwn...@ntlworld.com wrote: If any Joe Schmoe could imbue a program with capabilities, this might be true. But that's not the way the system works. Sorry, I think i'm missing your point. Only root can run the setcap program to add capabilities to a program, at least on a normal, UNIX-style security system. On a role-based security system, even root might not be permitted to do this. If I had the root password to own system(which I do...) and I wanted Wine to uses IPX without running as root. I would set setcap cap_net_raw=ep /usr/bin/wine as root. Then I could run Wine as my normal user. No one in there right mind would run Wine as root. If you did you may as well use Windows. You say no one in their right mind would run Wine as root. But if you did not have capabilities support available, and wanted Wine to use IPX, then you wouldn't have any other choice but to run Wine as root. By using capabilities, you aren't increasing Wines permissions, you are decreasing the permissions needed to support IPX. Trying to compare Wine without IPX to Wine with CAP_NET_RAW isn't a fair comparison, as the two don't have the same feature set and thus clearly don't have the same security needs. Or explain it like this: The kernel can do anything the software and hardware supports. Normally, the Unix kernel gives those same rights to any app running with UID 0 (NOT the same thing as the root account - that's just a label. To prove it, create a new account toor with UID 0 and log in as it). Unix permissions are traditionally an all or nothing approach. You can do what root can do, or you can do what users can do. This got modified with the introduction of groups and group owners a long time ago, where a user could get the rights of the group owner of an app/file is they were members of the group. Please note that it's the kernel doing this, not the root account. The kernel trusts the root account and does what it says. But traditional Unix permissions have the problem of not being fine-grained enough. For the most part this works fine, but in the odd case where you need more, you are up a creek without a paddle and have to give everything to get a little. That's why we have SUID and it's bastard progeny GUID. A more ridiculous solution is very hard to find. So this whole argument about do caps raise or lower permissions? is utterly pointless and leads nowhere. It's not even the point, as there are two viewpoints and one seems to go up and one seems to go down. caps do this: Allow fine-grained access control to resources, without having to give everything to get something. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Are runlevels 3 4 5 the same?
On Sun, 18 Apr 2010 16:04:37 +0100, Peter Humphrey wrote: That's what I do. I have /etc/runlevels/no-x/ which contains all the services I want started if I boot a CLI-only system. It's sometimes handy to have all the virtual consoles available, so single mode doesn't help here. That's whay I used to do until I found the gentoo=nox option, it saves maintaining an extra runlevel. -- Neil Bothwick When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl. signature.asc Description: PGP signature
Re: [gentoo-user] Winchester Digital HD: Advanced Format
On Sun, 18 Apr 2010 16:16:55 +0200, meino.cra...@gmx.de wrote: any hint for a keyword other than advanced and format ??? 4K blocks -- Neil Bothwick When there's a will, I want to be in it. signature.asc Description: PGP signature
Re: [gentoo-user] Recompile system but omit package?
On Sun, 18 Apr 2010 11:00:40 -0400, Tanstaafl wrote: After masking gcc (and glibc - same argument there), I get: emerge -pev world snip Total: 351 packages (351 reinstalls), Size of downloads: 5 kB Portage tree and overlays: [0] /usr/portage [?] indicates that the source repository could not be determined !!! The following installed packages are masked: - sys-devel/gcc-4.1.2 (masked by: package.mask) - sys-libs/glibc-2.10.1-r1 (masked by: package.mask) - sys-devel/gcc-4.3.4 (masked by: package.mask) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. You could put it in /etc/portage/profile/package.provided too, so the system knows it is there. But what's the big deal anyway, you could have re-emerge gcc tens of times over in the time this thread has been running. It's not as though you can't use your computer for other things while gcc is compiling. -- Neil Bothwick I couldn't repair your brakes, so I made your horn louder. signature.asc Description: PGP signature
Re: [gentoo-user] emerge -e system - output info/errors to log
On Sunday 18 April 2010 19:37:40 Tanstaafl wrote: On 2010-04-18 1:05 PM, Alan McKinnon wrote: On Sunday 18 April 2010 17:38:19 Tanstaafl wrote: I must be missing something obvious... When updating gcc, and thus emerging -e both system and world Why are you doing that? Because it wasn't a minor bugfix update? I'm going from 4.1.2 to 4.3.4. So what? Is there an ABI change between 4.1.2 to 4.3.4 that causes apps built with 4.1.2 to break on 4.3.4? Have you verified that you have in fact updated gcc from one version to another with an incompatible ABI? Since the GCC upgrade guide doesn't mention a way to do this, no, I haven't... so how does one verify this, Obi-Wan? ;) Understand what the gcc upgrade guide is: a quick simple guide for user who don't know tool chains inside out, that give the minimal sequence of commands that is GUARANTEED to NOT leave the user in the lurch. It's not the minimum possible sequence of commands to do the upgrade, because most users don't know how to tell the difference. Here's the logic: If we imply that you should merge -e world with a gcc upgrade, my inbox will not fill with bugs from users who don't know the inner guts of the toolchain. The Guide is not the best possible guide that can be. It is the guide that causes the least support questions from users. There is a false idea floating about that gcc updates require updating -e world. This is not true. I've heard this before, but could never get a definitive answer on how to know for sure when you do and don't need to... When the gcc devs release a new version, they will announce that there is an ABI break, and what it applies to. It doesn't happen often, but when it does, the gentoo maintainer ought to put a note in the ebuild. They are quite diligent about this, much like the KDE/Qt devs do the same thing when Nokia breaks Qt compatibility. where are the info/warn/errors logged? I see a whole bunch of separate/individual logs ion /var/log/portage/elog, but what I'm looking for is a single, easily readable log of all of the result info/warn/errors for each package. Configure it in /etc/make.conf, mine looks like so: PORT_LOGDIR=/var/log/portage PORTAGE_ELOG_CLASSES=warn error log qa PORTAGE_ELOG_SYSTEM=save I have the last two, but didn't have the first - just added it... I think that's the default. I have it just to be explicit. So, does adding the first entry provide an overall emerge.log with just all of the messages in it that I can review? Adapt to you own needs. If you don't have this configured, then the logs are not stored. To see them again, read the ebuilds or re-run emrge Like I said, I have a bunch of *individual* logs (for individual ebuilds)... I was hoping for something a little easier to manage/read, all in one file... for I in $(ls -1rt /path/to/emerge/logs/*) ; do cat ${I} some_log_file ; done -- alan dot mckinnon at gmail dot com
[gentoo-user] Re: Installing Gentoo via Gentoo ?
meino.cra...@gmx.de writes: Hi, currently I am reading the Gentoo-Handbokk about installing a new Gentoo-System via boot-CD.If I have a running Gentoo-Sytem on my PC...would it be possible to install a new Gentoo-System on a fresh harddisk, which is currently unpartitioned and unformatted electrically wired with my PC (SATAII) ?Just an idea... I installed Gentoo from an Ubuntu installation. Just a couple of things for you to keep in mind (I don't know if they will apply in your case): - When chrooting, use the following command to flush your environment: # env -i HOME=$HOME TERM=$TERM chroot /mnt/gentoo /bin/bash # /usr/sbin/env-update # source /etc/profile - When you are asked to mount the proc system, in the gentoo handbook, issue the following command instead: # mount -o bind /proc /mnt/gentoo/proc - In order to get the network working in a chrooted enviroment you will need to copy the /etc/resolv.conf from the working system. In summary, the Gentoo handbook is your workhorse during the installation process. You only need to be careful about the particular details that I mentioned (and that are scattered all over the Gentoo documentation). Good luck, Damian.
Re: [gentoo-user] Re: initramfs RAID at boot time
On Sun, 18 Apr 2010 08:13:08 -0700, Mark Knecht wrote: I'm not sure that we good advice or not for RAIDs that could be assembled later but that's what I did and it leads to the kernel trying to do everything before the system is totally up and mdadm is really running. I only have one RAID1 of 400MB for / and one RAID5 carrying an LVM volume group for everything else. Using multiple RAID partitions without LVM is far to complicated for my brain to handle. -- Neil Bothwick Top Oxymorons Number 32: Living dead signature.asc Description: PGP signature
Re: [gentoo-user] emerge -e system - output info/errors to log
On Sun, 18 Apr 2010 13:37:40 -0400, Tanstaafl wrote: Like I said, I have a bunch of *individual* logs (for individual ebuilds)... I was hoping for something a little easier to manage/read, all in one file... My preferred approach is to add mail to PORTAGE_ELOG_SYSTEM to get each elog message mailed to me. That's still separate message, but I think that's better as I can mark each one read as I've actioned it, leaving me with a clear list of what's left to check or do. -- Neil Bothwick Things are more like they are now than they ever were before signature.asc Description: PGP signature
Re: [gentoo-user] emerge -e system - output info/errors to log
On Sun, 18 Apr 2010 19:56:46 +0200, Alan McKinnon wrote: PORT_LOGDIR=/var/log/portage PORTAGE_ELOG_CLASSES=warn error log qa PORTAGE_ELOG_SYSTEM=save I have the last two, but didn't have the first - just added it... I think that's the default. I have it just to be explicit. PORT_LOGDIR is where full logfiles are saved and predages ELOG*. If it is not set, full logfiles are not saved at all. /var/log/portage/elog is the default for elogs if PORT_LOGDIR isn't given. -- Neil Bothwick If I want your opinion, I'll ask you to fill out the necessary form. signature.asc Description: PGP signature
[gentoo-user] custom package make options?
Hello, I've got a box with two processors so i have MAKEOPTS set to -j2. One package gnome breaks during compile under these circumstances so am wanting to install it and only it with MAKEOPTS set to -j1 i'm thinking i have to put a file somewhere to pass custom make options to emerge gnome, but not sure where. Thanks. Dave.
[gentoo-user] How to use X configure or driver from Ubuntu
Dear all, I use a Compaq 7550 monitor. It's a CRT. Currently, I can not adjust the refresh rate under Gentoo, but it was adjustable when it was running Ubuntu. I think I may need to copy the X configure file or some sort of CRT driver file from Ubuntu. What do you think? Any suggestion please? Kind regards, Chen -- Xianwen Chen, M.Sc., Scientific Assistant www.uit.no | xianwen.chen at (gmail.com | uit.no) Tel.: +47 776 46 112 | Fax: +47 776 46 020
Re: [gentoo-user] custom package make options?
On Sun, Apr 18, 2010 at 02:46:58PM -0400, David Mehler wrote: I've got a box with two processors so i have MAKEOPTS set to -j2. One package gnome breaks during compile under these circumstances so am wanting to install it and only it with MAKEOPTS set to -j1 i'm thinking i have to put a file somewhere to pass custom make options to emerge gnome, but not sure where. echo 'MAKEOPTS=-j1' /etc/portage/env/$CATEGORY/$PN for example: echo 'MAKEOPTS=-j1'/etc/portage/env/gnome-extra/evolution-data-server -- Eray
Re: [gentoo-user] How to use X configure or driver from Ubuntu
On Sonntag 18 April 2010, Xianwen Chen – Uni. Tromsø wrote: Dear all, I use a Compaq 7550 monitor. It's a CRT. Currently, I can not adjust the refresh rate under Gentoo, but it was adjustable when it was running Ubuntu. I think I may need to copy the X configure file or some sort of CRT driver file from Ubuntu. What do you think? Any suggestion please? Kind regards, Chen post your xorg.conf file for a start. There are no 'crt driver files'.
Re: [gentoo-user] Recompile system but omit package?
On 2010-04-18 1:09 PM, YoYo siska wrote: On Sun, Apr 18, 2010 at 12:52:26PM -0400, Tanstaafl wrote: On 2010-04-18 12:29 PM, YoYo siska wrote: On Sun, Apr 18, 2010 at 11:57:48AM -0400, Tanstaafl wrote: On 2010-04-18 11:45 AM, Johannes Kimmel wrote: well... you could use --keep-going and kill something when gcc compiles. not very nice, but will work without breaking anything. Dang - I already started the emerge... You can still break the emerge (for example with ctrl-c) when it starts to emerge gcc, the continue the emerge process with emerge --resume --skipfirst Worked a treat, many thanks! Saved me at least an hour of compile time... :) -- Charles
Re: [gentoo-user] How to use X configure or driver from Ubuntu
Thanks for your reply Hemman! I'm using HAL to configure X. Currently not xorg.conf is placed under /etc/X11. Shall I copy the xorg.conf file from Ubuntu to Gentoo? Chen On 4/18/10, Volker Armin Hemmann volkerar...@googlemail.com wrote: On Sonntag 18 April 2010, Xianwen Chen – Uni. Tromsø wrote: Dear all, I use a Compaq 7550 monitor. It's a CRT. Currently, I can not adjust the refresh rate under Gentoo, but it was adjustable when it was running Ubuntu. I think I may need to copy the X configure file or some sort of CRT driver file from Ubuntu. What do you think? Any suggestion please? Kind regards, Chen post your xorg.conf file for a start. There are no 'crt driver files'.
Re: [gentoo-user] Recompile system but omit package?
On Sun, Apr 18, 2010 at 03:54:38PM -0400, Tanstaafl wrote: On 2010-04-18 3:49 PM, Tanstaafl wrote: On 2010-04-18 1:09 PM, YoYo siska wrote: On Sun, Apr 18, 2010 at 12:52:26PM -0400, Tanstaafl wrote: On 2010-04-18 12:29 PM, YoYo siska wrote: On Sun, Apr 18, 2010 at 11:57:48AM -0400, Tanstaafl wrote: On 2010-04-18 11:45 AM, Johannes Kimmel wrote: well... you could use --keep-going and kill something when gcc compiles. not very nice, but will work without breaking anything. Dang - I already started the emerge... You can still break the emerge (for example with ctrl-c) when it starts to emerge gcc, the continue the emerge process with emerge --resume --skipfirst Worked a treat, many thanks! Saved me at least an hour of compile time... :) Hmmm... one last question... Will etc-update still prompt for all necessary changes for config files for *all* of the installs done, considering I did ctrl-c 3 times (glibc, and both gcc's)? yes, if new config files got installed, etc-update will show them (I think it uses 'find' to find them ;) yoyo
Re: [gentoo-user] Recompile system but omit package?
On 2010-04-18 3:57 PM, YoYo siska wrote: Will etc-update still prompt for all necessary changes for config files for *all* of the installs done, considering I did ctrl-c 3 times (glibc, and both gcc's)? yes, if new config files got installed, etc-update will show them (I think it uses 'find' to find them ;) Yep, I posed the question before the last package was done, but then it finished, and etc-update went smooth... Thanks again... and I just read that gcc 4.5 just went gold, so I guess it won't be all that long before 4.4 is stabilized and I'll have to do some of this again - but at least I know I may not always have to emerge -e system/world every time... :) -- Charles
Re: [gentoo-user] How to use X configure or driver from Ubuntu
On Sonntag 18 April 2010, Xianwen Chen – Uni. Tromsø wrote: Thanks for your reply Hemman! I'm using HAL to configure X. Currently not xorg.conf is placed under /etc/X11. Shall I copy the xorg.conf file from Ubuntu to Gentoo? you could do that. But check for changes. You could also post it here first.
Re: [gentoo-user] Recompile system but omit package?
On 2010-04-18 1:58 PM, Neil Bothwick wrote: On Sun, 18 Apr 2010 11:00:40 -0400, Tanstaafl wrote: After masking gcc (and glibc - same argument there), I get: emerge -pev world snip Total: 351 packages (351 reinstalls), Size of downloads: 5 kB Portage tree and overlays: [0] /usr/portage [?] indicates that the source repository could not be determined !!! The following installed packages are masked: - sys-devel/gcc-4.1.2 (masked by: package.mask) - sys-libs/glibc-2.10.1-r1 (masked by: package.mask) - sys-devel/gcc-4.3.4 (masked by: package.mask) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. You could put it in /etc/portage/profile/package.provided too, so the system knows it is there. But what's the big deal anyway, you could have re-emerge gcc tens of times over in the time this thread has been running. It's not as though you can't use your computer for other things while gcc is compiling. I know, its more an exercise for my own knowledge. I learned a few things today that will save me time in the future, and every little bit helps... Thanks a lot for the feedback... -- Charles
Re: [gentoo-user] Re: [OT] Setting up a fall back ISP SMTP in sendmail
On Sunday 18 April 2010 16:14:50 Harry Putnam wrote: Mick michaelkintz...@gmail.com writes: For the purpose of posterity: The way to set up a fall back host is to use confFALLBACK_SMARTHOST to define a fall back smtp server. Thanks Mick... Instead of asking for help, you ended up giving help. Did someone answer your question privately? No, I spent sometime on IRC #sendmail where I was given help and was pointed to the manuals. Of course I was reminded that I do not understand sendmail enough for my liking. :-p Will need to read some more because there's things I can improve on my configuration (although it currently works as is). -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] I want my Ctrl+Alt+Backspace back
I've seen on this group some time back a few ways, or at least more than 1 as I recall to retain the ability to leave X with Ctrl+Alt_+BKSPC. I'm not finding it now readily. Can someone tell me where that setting may be made. If it has something to do with new way of starting X where we don't need an xorg.conf file... I should say that I still use /etc/X11/xorg.conf (In case that makes a difference) I find trying to leave X with the `logout' menu item provided on the Xfce4 destop, that if X has been running a while is seems to take a very long time to get out of X that way, and possibly not only long but even ever, short of: kill -TERM `ps wwaux|awk '/X.*\-nolisten tc[p]/{print $2}'` Or killing the pid some other way. The Ctrl+alt+bkspc was a much nicer fallback.
Re: [gentoo-user] Re: initramfs RAID at boot time
On Sun, Apr 18, 2010 at 11:01 AM, Neil Bothwick n...@digimed.co.uk wrote: On Sun, 18 Apr 2010 08:13:08 -0700, Mark Knecht wrote: I'm not sure that we good advice or not for RAIDs that could be assembled later but that's what I did and it leads to the kernel trying to do everything before the system is totally up and mdadm is really running. I only have one RAID1 of 400MB for / and one RAID5 carrying an LVM volume group for everything else. Using multiple RAID partitions without LVM is far to complicated for my brain to handle. -- Neil Bothwick Nahh...I don't believe that for a moment, but this is a rather more complicated task than a basic desktop PC. This is about number crunching using multiple instances of Windows running under VMWare. First, the basic system: /dev/md3 - 50GB 3-drive RAID1 = The ~amd64 install we discussed over the last week. This is the whole Gentoo install. /dev/md5 - 50GB 3-drive RAID1 = A standard stable install - same as md3 but stable, and again the whole Gentoo install. Obviously I don't use the two above at the same time. I'm mostly on stable and testing out ~amd64 right now. I use one or the other. /dev/md11 = 100GB RAID0 - This partition is the main data storage for the 5 Windows VMs I want to run at the same time. I went RAID0 because my Windows apps appear to need an aggregate disk bandwidth of about 150-200MB/Sec and I couldn't get that with RAID1. I'll see how well this works out over time. /dev/md6 = 250GB RAID1 used purely as backup for the RAID0 which is backed up daily, although right now not automatically. The RAID0 and backup RAID1 need to be available whether I'm booting stable (md5) or ~amd64. (md3) I found some BIOS options, one of which was as default set to 'Fast Boot'. I disabled that, slowing down boot and hopefully allowing far more time to get the drives online more reliably. So far I've powered off and rebooted 5 or 6 times. Each time the system has come up clean. That's a first. I could maybe post a photo of what I'm seeing at boot but essentially the boot process complains with red exclamation marks about md6 md11 but in dmesg the only thing I find is the one-liner md: created md3 md: bindsda3 md: bindsdc3 md: bindsdb3 md: running: sdb3sdc3sda3 raid1: raid set md3 active with 3 out of 3 mirrors md3: detected capacity change from 0 to 53694562304 md: ... autorun DONE. md5: unknown partition table and after that no other messages. BTW - I did sort of take a gamble and change the partitions for md6 and md11 to type 83 instead of 0xfd. It doesn't appear to have caused any problems and I have only the above 'unknown partition table' message. Strange as md5 is mounted and the system seems completely happy: m...@c2stable ~ $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md5 51612920 7552836 41438284 16% / udev 10240 296 9944 3% /dev /dev/md11103224600 1740 80558784 18% /virdata /dev/md6 243534244 24664820 206498580 11% /backups shm6151580 0 6151580 0% /dev/shm m...@c2stable ~ $ Cheers, Mark
[gentoo-user] Re: I want my Ctrl+Alt+Backspace back
On 04/19/2010 12:07 AM, Harry Putnam wrote: I've seen on this group some time back a few ways, or at least more than 1 as I recall to retain the ability to leave X with Ctrl+Alt_+BKSPC. I'm not finding it now readily. Can someone tell me where that setting may be made. If it has something to do with new way of starting X where we don't need an xorg.conf file... I should say that I still use /etc/X11/xorg.conf (In case that makes a difference) I find trying to leave X with the `logout' menu item provided on the Xfce4 destop, that if X has been running a while is seems to take a very long time to get out of X that way, and possibly not only long but even ever, short of: kill -TERM `ps wwaux|awk '/X.*\-nolisten tc[p]/{print $2}'` Or killing the pid some other way. The Ctrl+alt+bkspc was a much nicer fallback. The only way I could find that works was an option for it in KDE4's keyboard layout settings. KDE was nice enough to explain what it is doing under the hood though, which is adding: -option terminate:ctrl_alt_bksp to the setxkbmap command it uses to apply the keyboard settings.
[gentoo-user] Where's my wireless AP?
Last night I was connected wirelessly to my access point and all worked fine. Well, towards the end the connection was bobbing up and down as far as my unreliable broadcom NIC is concerned (nothing wrong with the router). I decided to shut it down and go to bed. Today the AP is just not there! Not there as far as this stupid broadcom wireless NIC is concerned. The same machine booted into MSWindows has no problem seeing the AP and associating with it. Another laptop can also see the AP and connect to it. How come the broadcom cannot see it in Gentoo, but it can see all the neighbours APs which have a much weaker signal and even associate and get an IP address from one of them?! I am lost as to what might be causing this. Could it be some lock file that was not removed when the machine is rebooted or the wlan0 interface taken down? Any ideas how I can troubleshoot this? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: I want my Ctrl+Alt+Backspace back
On Sunday 18 April 2010 22:15:34 Nikos Chantziaras wrote: On 04/19/2010 12:07 AM, Harry Putnam wrote: I've seen on this group some time back a few ways, or at least more than 1 as I recall to retain the ability to leave X with Ctrl+Alt_+BKSPC. I'm not finding it now readily. Can someone tell me where that setting may be made. If it has something to do with new way of starting X where we don't need an xorg.conf file... I should say that I still use /etc/X11/xorg.conf (In case that makes a difference) I find trying to leave X with the `logout' menu item provided on the Xfce4 destop, that if X has been running a while is seems to take a very long time to get out of X that way, and possibly not only long but even ever, short of: kill -TERM `ps wwaux|awk '/X.*\-nolisten tc[p]/{print $2}'` Or killing the pid some other way. The Ctrl+alt+bkspc was a much nicer fallback. The only way I could find that works was an option for it in KDE4's keyboard layout settings. KDE was nice enough to explain what it is doing under the hood though, which is adding: -option terminate:ctrl_alt_bksp to the setxkbmap command it uses to apply the keyboard settings. In your xorg.conf you need: Section InputDevice [snip ...] Option XkbOptions terminate:ctrl_alt_bksp EndSection The 'new' way of setting it up without a xorg.conf file is to set it up in your /etc/hal/fdi/policy/10-keymap.fdi like so: merge key=input.xkb.options type=stringterminate:ctrl_alt_bksp/merge Read more details here: http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.6-upgrade-guide.xml -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Questions for my first ebuild
On Sun, Apr 18, 2010 at 08:07:59AM -0700, Mark Knecht wrote Anyway, you might be in Europe or Canada or someplace with better consumer protection laws than the U.S. I'm in Toronto, Canada, and our situation is worse than yours. Cell phone data plans are exorbitantly expensive, the telcos and cablecos are *REDUCING* monthly gigabyte allowances, cable/satellite is rather expensive, and we've never had unencrypted QAM HDTV channels. Just be aware of what you might be up against, and if it doesn't matter then enjoy the HDHR because it's a great little product. Given the cost of cable, especially HDTV, I'm strictly OTA. Toronto is an exception to the regular Canadian OTA TV scene. All but one of the local stations is already broadcasting digital, and I can get them and most of the Buffalo stations with an indoor antenna. It helps that I'm in a 6th floor condo with a clear view to the CN Tower (Toronto locals) and Grand Island, New York (the Buffalo TV antenna farm). Plus I get a news+movies station out of Hamilton. The total is 16 physical digital channels and 3 non-duplicate sub-channels. And coming soon is TheCoolTV http://www.thecooltv.com/ The list at http://www.thecooltv.com/THECOOLTV_SinclairTelevisionGroup.php shows Buffalo as one of the Cities About to Get COOL!. The rollout is due sometime in April or May. It'll be a sub-channel on one of the 2 Sinclair stations in Buffalo (WUTV-FOX or WNYO-MyTV). There's also one educational channel here in Toronto that is still analogue-only, which the HDHomerun can't get. They'll flash-cut to digital at the deadline. Canada's analogue shutdown is August 31, 2011, assuming no delays. -- Walter Dnes waltd...@waltdnes.org
Re: [gentoo-user] Winchester Digital HD: Advanced Format
On 2010-04-18 19:43, Mark Knecht wrote: suspicion is that Linux is doing something that wakes the drive up once every two minutes and then lets the drive go back to sleep. That Sounds a bit like: http://lwn.net/Articles/257426/ Although it may be different in your case... Best regards Peter K
[gentoo-user] Re: I want my Ctrl+Alt+Backspace back
On 04/19/2010 12:47 AM, Mick wrote: On Sunday 18 April 2010 22:15:34 Nikos Chantziaras wrote: On 04/19/2010 12:07 AM, Harry Putnam wrote: I've seen on this group some time back a few ways, or at least more than 1 as I recall to retain the ability to leave X with Ctrl+Alt_+BKSPC. I'm not finding it now readily. Can someone tell me where that setting may be made. If it has something to do with new way of starting X where we don't need an xorg.conf file... I should say that I still use /etc/X11/xorg.conf (In case that makes a difference) I find trying to leave X with the `logout' menu item provided on the Xfce4 destop, that if X has been running a while is seems to take a very long time to get out of X that way, and possibly not only long but even ever, short of: kill -TERM `ps wwaux|awk '/X.*\-nolisten tc[p]/{print $2}'` Or killing the pid some other way. The Ctrl+alt+bkspc was a much nicer fallback. The only way I could find that works was an option for it in KDE4's keyboard layout settings. KDE was nice enough to explain what it is doing under the hood though, which is adding: -option terminate:ctrl_alt_bksp to the setxkbmap command it uses to apply the keyboard settings. In your xorg.conf you need: Section InputDevice [snip ...] Option XkbOptions terminate:ctrl_alt_bksp EndSection The 'new' way of setting it up without a xorg.conf file is to set it up in your /etc/hal/fdi/policy/10-keymap.fdi like so: merge key=input.xkb.options type=stringterminate:ctrl_alt_bksp/merge Read more details here: http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.6-upgrade-guide.xml HAL is deprecated and will not be supported in X anymore, so it's not the new way ;)
Re: [gentoo-user] Re: [OT] Setting up a fall back ISP SMTP in sendmail
On Sunday 18 April 2010 22:06:44 Mick wrote: I was reminded that I do not understand sendmail enough for my liking. Does anybody? -- Rgds Peter.
[gentoo-user] Re: Where's my wireless AP?
On 18 April 2010 22:28, Mick michaelkintz...@gmail.com wrote: Last night I was connected wirelessly to my access point and all worked fine. Well, towards the end the connection was bobbing up and down as far as my unreliable broadcom NIC is concerned (nothing wrong with the router). I decided to shut it down and go to bed. Today the AP is just not there! Not there as far as this stupid broadcom wireless NIC is concerned. The same machine booted into MSWindows has no problem seeing the AP and associating with it. Another laptop can also see the AP and connect to it. How come the broadcom cannot see it in Gentoo, but it can see all the neighbours APs which have a much weaker signal and even associate and get an IP address from one of them?! I am lost as to what might be causing this. Could it be some lock file that was not removed when the machine is rebooted or the wlan0 interface taken down? Any ideas how I can troubleshoot this? OK, I found what the problem was ... the AP is currently transmitting on channel 13, which it seems is outside the capabilities of the b43 driver. I am blaming the driver here because the Windows 7 OS has no problem using channel 13, while iwlist wlan0 in Gentoo shows only up to channel 11. :-( Will need to wait for the driver to hopefully improve. -- Regards, Mick
Re: [gentoo-user] Recompile system but omit package?
On Sunday 18 April 2010 17:29:12 YoYo siska wrote: You can still break the emerge (for example with ctrl-c) when it starts to emerge gcc, the continue the emerge process with emerge --resume --skipfirst that's what I usually do with openoffice and similar apps when I do a quick update and fail to notice the large app in there.. ;) I assume you aren't specifying --jobs=[2,3,4,...]. Very useful embellishment of emerge: gets things done in half the time. -- Rgds Peter.
Re: [gentoo-user] Bug
Dale, Thanks for following up. HOw do you start a new thread? It is slightly annoying when you change a setting and reverts back to the original; the whole (computer) system should be more user friendly. Either way, it is good that there is an easy fix, which I will do. I will have much more complex issues to discuss shortly. Thanks. --- On Wed, 4/14/10, Dale rdalek1...@gmail.com wrote: From: Dale rdalek1...@gmail.com Subject: Re: [gentoo-user] Bug To: gentoo-user@lists.gentoo.org Date: Wednesday, April 14, 2010, 12:12 PM dan blum wrote: I run KDE on my system and my clock is wrong. I corrected several times from KDE, which sets the time to next boot, when it reverts to the old setting. This looks like slight bug. Since mailing list users generally use threaded messages, please start a new message instead of replying to a old one. This may not be a bug. It depends on how you set your clock. You need to check the settings in /etc/conf.d/clock and make sure you have it set up correctly. Also, if you are dual booting with windoze, that makes you have to have additional settings from what I have read in the past. Windoze sets the BIOS clock differently than Linux. I don't have windoze so someone else will have to help with that. Dale :-) :-)
Re: [gentoo-user] Are runlevels 3 4 5 the same?
On Sunday 18 April 2010 18:50:01 Neil Bothwick wrote: On Sun, 18 Apr 2010 16:04:37 +0100, Peter Humphrey wrote: That's what I do. I have /etc/runlevels/no-x/ which contains all the services I want started if I boot a CLI-only system. It's sometimes handy to have all the virtual consoles available, so single mode doesn't help here. That's whay I used to do until I found the gentoo=nox option, it saves maintaining an extra runlevel. But X isn't the only thing I don't run when not running X, if you see what I mean. Only about 3 other things differ at the moment, but I leave the possibilities open. And I don't have to type anything at the grub command prompt. And maintaining the other run level is not arduous anyway, as changes occur only when I install or remove a system service. Rarely, in other words. To each his own, of course, as ever. -- Rgds Peter.
Re: [gentoo-user] Winchester Digital HD: Advanced Format
On Sun, Apr 18, 2010 at 3:19 PM, pk pete...@coolmail.se wrote: On 2010-04-18 19:43, Mark Knecht wrote: suspicion is that Linux is doing something that wakes the drive up once every two minutes and then lets the drive go back to sleep. That Sounds a bit like: http://lwn.net/Articles/257426/ Although it may be different in your case... Best regards Peter K Yeah, does sound very similar. A few others have mentioned this in the past but I've not yet discovered what Gentoo or specifically my kernel config might have done to set it off. gandalf linux # date smartctl -A /dev/sda | grep Load_Cycle_Count Sun Apr 18 16:08:16 PDT 2010 193 Load_Cycle_Count0x0032 187 187 000Old_age Always - 41929 gandalf linux # I'd experiment with the hdparm command but it doesn't work. Maybe there's somethign else I need to do first or something: gandalf linux # hdparm -B 254 /dev/sda /dev/sda: setting Advanced Power Management level to 0xfe (254) HDIO_DRIVE_CMD failed: Input/output error HDIO_DRIVE_CMD(identify) failed: Input/output error gandalf linux # hdparm does work though: gandalf linux # hdparm -tT /dev/sda /dev/sda: Timing cached reads: 11552 MB in 2.00 seconds = 5779.10 MB/sec Timing buffered disk reads: 314 MB in 3.00 seconds = 104.50 MB/sec gandalf linux # Thanks, Mark
Re: [gentoo-user] Winchester Digital HD: Advanced Format
On Sun, Apr 18, 2010 at 4:10 PM, Mark Knecht markkne...@gmail.com wrote: On Sun, Apr 18, 2010 at 3:19 PM, pk pete...@coolmail.se wrote: On 2010-04-18 19:43, Mark Knecht wrote: suspicion is that Linux is doing something that wakes the drive up once every two minutes and then lets the drive go back to sleep. That Sounds a bit like: http://lwn.net/Articles/257426/ Although it may be different in your case... Best regards Peter K Yeah, does sound very similar. A few others have mentioned this in the past but I've not yet discovered what Gentoo or specifically my kernel config might have done to set it off. gandalf linux # date smartctl -A /dev/sda | grep Load_Cycle_Count Sun Apr 18 16:08:16 PDT 2010 193 Load_Cycle_Count 0x0032 187 187 000 Old_age Always - 41929 gandalf linux # I'd experiment with the hdparm command but it doesn't work. Maybe there's somethign else I need to do first or something: gandalf linux # hdparm -B 254 /dev/sda /dev/sda: setting Advanced Power Management level to 0xfe (254) HDIO_DRIVE_CMD failed: Input/output error HDIO_DRIVE_CMD(identify) failed: Input/output error gandalf linux # hdparm does work though: gandalf linux # hdparm -tT /dev/sda /dev/sda: Timing cached reads: 11552 MB in 2.00 seconds = 5779.10 MB/sec Timing buffered disk reads: 314 MB in 3.00 seconds = 104.50 MB/sec gandalf linux # Thanks, Mark It seems that this possibly doesn't APM... gandalf linux # hdparm -i /dev/sda /dev/sda: Model=WDC WD10EARS-00Y5B1, FwRev=80.00A80, SerialNo=WD-WCAV55464493 Config={ HardSect NotMFM HdSw15uSec SpinMotCtl Fixed DTR5Mbs FmtGapReq } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50 BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=16 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=1953525168 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6 AdvancedPM=no WriteCache=enabled Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5,6,7 * signifies the current active mode gandalf linux #
[gentoo-user] Re: I want my Ctrl+Alt+Backspace back
Nikos Chantziaras rea...@arcor.de writes: Read more details here: http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.6-upgrade-guide.xml HAL is deprecated and will not be supported in X anymore, so it's not the new way ;) Well, its just not the NEWEST way. But what is the newest (post hal) way? And will the xorg.conf technique work anyway?
[gentoo-user] Re: I want my Ctrl+Alt+Backspace back
Harry Putnam rea...@newsguy.com writes: Nikos Chantziaras rea...@arcor.de writes: Read more details here: http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.6-upgrade-guide.xml HAL is deprecated and will not be supported in X anymore, so it's not the new way ;) Well, its just not the NEWEST way. But what is the newest (post hal) way? And will the xorg.conf technique work anyway? I should have mentioned that after posting the OP, I discovered I've had that stanza in xorg.conf for mnths... I forgot I had taken it from a post by Florien P., but I do not get the use of Ctrl+alt+bkspk to quit X. I guess it works for you though eh, Mick? ---- ---=--- - From xorg.conf: Section InputDevice Identifier Keyboard1 Driver kbd # [HP 100709_111603 From post on gentoo.user ## From: Florian Philipp li...@f_philipp.fastmail.net ## Subject: Re: Fed up with Xorg + hal mess ## Date: Tue, 06 Oct 2009 19:22:46 +0200 ## Message-ID: 4acb7ce6.10...@f_philipp.fastmail.net ## Restablishes Ctrl-Alt-Bkspc to quit X Option XkbOptions terminate:ctrl_alt_bksp # ] Option AutoRepeat 500 30 Option XkbRules xorg Option XkbModel pc104 Option XkbLayout us EndSection
Re: [gentoo-user] Recompile system but omit package?
On Sun, 18 Apr 2010 23:36:54 +0100, Peter Humphrey wrote: I assume you aren't specifying --jobs=[2,3,4,...]. Very useful embellishment of emerge: gets things done in half the time. --jobs=2 doubles the number of ebuilds being merged, not the number of cores in your processor :-O It is faster, but not by that much, unless you use MAKEOPTS=-j1 -- Neil Bothwick Top Oxymorons Number 22: Childproof signature.asc Description: PGP signature
Re: [gentoo-user] Are runlevels 3 4 5 the same?
On Sun, 18 Apr 2010 23:58:17 +0100, Peter Humphrey wrote: That's whay I used to do until I found the gentoo=nox option, it saves maintaining an extra runlevel. But X isn't the only thing I don't run when not running X, if you see what I mean. Only about 3 other things differ at the moment, but I leave the possibilities open. In that case, another level is a better option. And I don't have to type anything at the grub command prompt. Of course not, you have an extra GRUB menu option to specify the runlevel, as I do to specify the nox option. And maintaining the other run level is not arduous anyway, as changes occur only when I install or remove a system service. Rarely, in other words. I used a script in local.stop to copy all symlinks in default to the nox runlevel, except the ones I didn't want to run, which were only xdm and vmware, hence my preference for the simpler soluton when it bacame available. To each his own, of course, as ever. Indeed, choice is wonderful. -- Neil Bothwick Uhura: Captain, you're being flamed on channel one. signature.asc Description: PGP signature
[gentoo-user] hplip recompiled with scanner use flag now scanning works, printing does not.
Recompiled hplip for use with C5180 with new use flag: scanner. Now scanning works, printing does not. Recompiled with new-hpcups use flag. Still not working. Output from cups web interface: /usr/libexec/cups/backend/hp failed Any ideas? ubiquitous1980
Re: [gentoo-user] i cannot browser if the system is up too long
thanks for your suggestion. i will try it. -- Best Regards, David Shen http://twitter.com/davidshen84/
Re: [gentoo-user] Bug
dan blum wrote: Dale, Thanks for following up. HOw do you start a new thread? It is slightly annoying when you change a setting and reverts back to the original; the whole (computer) system should be more user friendly. Either way, it is good that there is an easy fix, which I will do. I will have much more complex issues to discuss shortly. Thanks. You started a new thread with this one. ;-) It really depends on your email program. Mine, I can just chose to compose a new message and type in the email address. I can also right click on the email address, usually from another message, and then select 'Compose New Mail' to and it starts a shiney new thread. Tell us what you are using and I'm sure someone here uses it and can tell you more specifics on how to start a new thread. Questions about your setup. Do you dual boot windows? Do you dual boot another OS, even Linux? Is Linux the only OS you have installed? I only have one OS that I boot here so my settings will be different from yours if you dual boot something else. We need more info first tho. Also, can you give a little info about how the clock is set in your BIOS? This is really needed if you are dual booting. Dale :-) :-)