Re: [gentoo-user] Weird XFS problem

2012-02-26 Thread Coert Waagmeester

On 02/25/2012 06:05 AM, Pandu Poluan wrote:


On Feb 25, 2012 10:34 AM, Nilesh Govindrajan cont...@nileshgr.com
mailto:cont...@nileshgr.com wrote:
 
  Hi,
 
  I'm using XFS on /home and facing a strange issue. When I add acl to
  the mount options in /etc/fstab, the FS fails to mount during boot
  with an error in dmesg which says invalid option acl whereas I'm able
  to mount it using the mount command from the CLI.
 
  For now I'm using a script in local.d to remount it with acl, but why
  is this happening?
  Also, XFS is compiled right into the kernel, not as a module (I
  believe, because there's no module xfs in /lib/modules/3.2.6-gentoo.
 

AFAIK, by default XFS is mounted with acl support.

Plus, I can't find any acl word in the documentation:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/filesystems/xfs.txt;hb=HEAD

CMIIW, I never use XFS before in my life.

Rgds,



I use XFS a lot.

It does indeed not need the acl mount option.
Those features are available standard.

Regards,
Coert



[gentoo-user] gentoo-sources menuconfig feature/weirdness

2012-02-23 Thread Coert Waagmeester

Hello all,

Usually on gentoo when gentoo-sources gets updated, updating the kernel 
went as follows:


eselect kernel set {new kernel}
cd /usr/src/linux
make menuconfig

and then there was a totally clean config which I would then customize 
for the specific setup.


On one box I am currently running 3.1.6-gentoo
When I start make menuconfig for 3.2.1-gentoo-r2 it would appear as if 
it got my current config from somewhere, eg local version.


Is this a new feature?

To make sure of this I unistalled all gentoo-sources pkgs, deleted 
everything /usr/src/linux*

installed the latest gentoo-sources
yet it still seems to find the current config somewhere

Anyway, just wondering,,

Regards,
Coert



Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness

2012-02-23 Thread Coert Waagmeester

On 02/23/2012 10:25 AM, Mick wrote:

On Thursday 23 Feb 2012 08:10:56 Coert Waagmeester wrote:

Hello all,

Usually on gentoo when gentoo-sources gets updated, updating the kernel
went as follows:

eselect kernel set {new kernel}
cd /usr/src/linux
make menuconfig

and then there was a totally clean config which I would then customize
for the specific setup.

On one box I am currently running 3.1.6-gentoo
When I start make menuconfig for 3.2.1-gentoo-r2 it would appear as if
it got my current config from somewhere, eg local version.

Is this a new feature?

To make sure of this I unistalled all gentoo-sources pkgs, deleted
everything /usr/src/linux*
installed the latest gentoo-sources
yet it still seems to find the current config somewhere

Anyway, just wondering,,

Regards,
Coert


Where does the /usr/src/linux symlink point to?  Here's mine:

$ ls -la /usr/src/
total 20
drwxr-xr-x  5 root root 4096 Feb  4 11:40 .
drwxr-xr-x 13 root root 4096 Dec 27 09:01 ..
-rw-r--r--  1 root root0 Dec 16  2010 .keep
lrwxrwxrwx  1 root root   30 Feb  4 11:40 linux -  /usr/src/linux-3.2.1-
gentoo-r2
drwxr-xr-x 24 root root 4096 Oct 16 16:40 linux-2.6.39-gentoo-r3
drwxr-xr-x 24 root root 4096 Dec  8 21:35 linux-3.0.6-gentoo
drwxr-xr-x 24 root root 4096 Feb 18 13:31 linux-3.2.1-gentoo-r2



Here is mine:
# ls -l /usr/src/
total 4
lrwxrwxrwx  1 root root   21 Feb 23 10:02 linux - linux-3.2.1-gentoo-r2
drwxr-xr-x 24 root root 4096 Feb 23 10:23 linux-3.2.1-gentoo-r2

and I made sure that its a completely clean install of gentoo-sources

The only thing I can currently think of is maybe the kernel config files 
in /boot?

# ls -l /boot/
total 13760
-rw-r--r-- 1 root root 2336082 Jan  5 12:03 System.map-3.1.6-gentoo-cj-1
-rw-r--r-- 1 root root 2422336 Feb 23 10:23 System.map-3.2.1-gentoo-r2-cj-2
lrwxrwxrwx 1 root root   1 Jan  9 13:38 boot - .
-rw-r--r-- 1 root root   68292 Jan  5 12:03 config-3.1.6-gentoo-cj-1
-rw-r--r-- 1 root root   70578 Feb 23 10:23 config-3.2.1-gentoo-r2-cj-2
drwxr-xr-x 2 root root4096 Feb 23 10:48 grub
-rw-r--r-- 1 root root 4563312 Jan  5 12:03 vmlinuz-3.1.6-gentoo-cj-1
-rw-r--r-- 1 root root 4608752 Feb 23 10:23 vmlinuz-3.2.1-gentoo-r2-cj-2

Rgds,
Coert





Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness

2012-02-23 Thread Coert Waagmeester

On 02/23/2012 11:17 AM, Neil Bothwick wrote:

On Thu, 23 Feb 2012 10:51:43 +0200, Coert Waagmeester wrote:


The only thing I can currently think of is maybe the kernel config
files in /boot?


I'd say it's more likely to be getting it from /proc/config.gz.

But why start with a clean config each time? That means you have plenty
of opportunities to produce a broken kernel on every update.




Is there a way to import old config files with newer kernel sources?
I tried it once by simply copying .config into the newer src dir, but I 
read somewhere that there could be incompatibilities.




Re: [gentoo-user] SOLVED gentoo-sources menuconfig feature/weirdness

2012-02-23 Thread Coert Waagmeester

On 02/23/2012 01:08 PM, Alan McKinnon wrote:

On Thu, 23 Feb 2012 12:48:35 +0200
Coert Waagmeesterlgro...@waagmeester.co.za  wrote:


On 02/23/2012 11:17 AM, Neil Bothwick wrote:

On Thu, 23 Feb 2012 10:51:43 +0200, Coert Waagmeester wrote:


The only thing I can currently think of is maybe the kernel config
files in /boot?


I'd say it's more likely to be getting it from /proc/config.gz.

But why start with a clean config each time? That means you have
plenty of opportunities to produce a broken kernel on every update.




Is there a way to import old config files with newer kernel sources?
I tried it once by simply copying .config into the newer src dir, but
I read somewhere that there could be incompatibilities.



That is exactly how you do it. Copy a .config over and run make
oldconfig


I am definitely going to try this.


Yes, there could be incompatibilities. This might happen once every few
years when you do an upgrade over 10 version numbers. But that can be
fixed.

Not doing it this way means a very high likelyhood of the machine not
booting with every single upgrade, plus the huge amount of work it
takes to go through everything in menuconfig.


indeed, especially when the server is stuck in a far away rack.


The choices are simple,

- low risk of occasional breakage
- high risk of frequent breakage





Thank you all



[gentoo-user] mixing x86 and amd64 distcc?

2012-02-16 Thread Coert Waagmeester

Hello all,

Can amd64 distcc compile for a gentoo x86 setup?
Or do I need a 32bit chroot?

Regards,
Coert Waagmeester



[gentoo-user] LIRC problem

2011-06-12 Thread Coert Waagmeester
Hello all,

Tried to setup LIRC.
I built my own serial receiver for serial, and it works.
I get a /dev/lirc0 and mode2 generates output on keypresses.
Currently I am using a One for All URC 7130

When I run irrecord it takes me through two phases of pressing keys, and
then it asks me for only the next key and then quits.

Is it not supposed to ask for all keys?
Is there another way to configure it?

There is no config file on the lirc website for my remote.

Regards,
Coert



Re: [gentoo-user] Re: system rescue usb stick

2011-05-23 Thread Coert Waagmeester
On 05/22/2011 01:36 PM, Mick wrote:
 On Saturday 21 May 2011 23:17:30 walt wrote:
 On 05/20/2011 04:22 AM, Coert Waagmeester wrote:
 On 05/19/2011 04:12 AM, Valmor de Almeida wrote:
 Is SystemRescueCd still a good system rescue tool? The web site has not
 been updated for over 1 year. Thanks for other suggestions.

 I use it for all my gentoo installations as well.
 Have even removed windows viruses from windows boxen with it.

 How did you repair a windows box with it?  I can't even begin to guess!
 
 Mount it with ntfs-3g, scan it with clam after updating the virus signatures 
 (freshclam) and then remove or copy away infected files.

This is exactly what I did.

I cant live without systemrescueCD

The USB installer is also awesome.

 
 Alternatively, it may be possible to dd the partition and pipe it to clam 
 (not 
 sure if this will work with a whole partition instead of a file) using 
 something like:
 
 dd if=/dev/sda1 | clamscan -
 
 
 Alternatively, you can use Knoppix and Fprot, bitdefender and clam.
 
 Or, you can use the many LiveCDs and Live-USBs that Kaspersky, BitDefender, 
 et 
 al are producing these days.




Re: [gentoo-user] system rescue usb stick

2011-05-20 Thread Coert Waagmeester
On 05/19/2011 04:12 AM, Valmor de Almeida wrote:
 
 
 Hello,
 
 Is SystemRescueCd still a good system rescue tool? The web site has not
 been updated for over 1 year. Thanks for other suggestions.
 
 --
 Valmor
 
 

+1

I use it for all my gentoo installations as well.
Have even removed windows viruses from windows boxen with it.



Re: SOLVED [gentoo-user] media center with gentoo

2011-05-16 Thread Coert Waagmeester
On 05/14/2011 08:42 AM, Coert Waagmeester wrote:
 Hello all,
 
 Building myself a new media center setup.
 I used to have an old xbox with xbmc. But the CPU is to slow for hi-def
 video.
 
 Now I have a normal PC with keyboard and mouse in its place.
 Normal Gentoo install.
 
 How can I get X to start up without login straight into XBMC?
 Which (xdm,kdm,etc) should I use for this?
 Or should I just start an xsession with xbmc out of some sort of init
 script?
 
 On the XBMC forum I have found this link, and will try to get that going
 in the meantime.
 http://forum.xbmc.org/showthread.php?t=41739
 
 Any other media center tips would be appreciated!
 Also going to try and put a normal USB plug on one of the old xbox
 controllers.
 
 
 Regards,
 Coert
 
 

Hello all,

Thanks for all the tips!
I got it going with: http://forum.xbmc.org/showthread.php?p=266552

Combination of mingetty with autologin.
My ~/.profile script then starts X with
.xinitrc containing 'xbmc --standalone'


Works like a charm,
Coert Waagmeester




[gentoo-user] media center with gentoo

2011-05-14 Thread Coert Waagmeester
Hello all,

Building myself a new media center setup.
I used to have an old xbox with xbmc. But the CPU is to slow for hi-def
video.

Now I have a normal PC with keyboard and mouse in its place.
Normal Gentoo install.

How can I get X to start up without login straight into XBMC?
Which (xdm,kdm,etc) should I use for this?
Or should I just start an xsession with xbmc out of some sort of init
script?

On the XBMC forum I have found this link, and will try to get that going
in the meantime.
http://forum.xbmc.org/showthread.php?t=41739

Any other media center tips would be appreciated!
Also going to try and put a normal USB plug on one of the old xbox
controllers.


Regards,
Coert



Re: [gentoo-user] SOLVED portage Digest verification failed

2011-04-23 Thread Coert Waagmeester
On 04/23/2011 02:50 AM, Mark Shields wrote:
 On Thu, Apr 21, 2011 at 11:41 AM, Dale rdalek1...@gmail.com
 mailto:rdalek1...@gmail.com wrote:
 
 Coert Waagmeester wrote:
 
 
 Hello Dale,
 
 Managed to fix it.
 I downloaded a new portage snapshot, extracted it, and used a
 completely
 different mirror for the emerge --sync, and it worked.
 
 
 Thanks,
 Coert
 
 
  
 
 
 Any particular reason you downloaded a whole new snapshot?  A emerge
 --sync would do the same only faster.
 
 Just curious.
 
 Dale
 
 :-)  :-)
 
 
 What he said.  If changing to another rsync mirror is what really fixed
 it, esyncing after that would've fixed the problem.

Hello Dale,

You are right. I did just an emerge --sync later on another gentoo box
with the different mirror, and the problem disappeared.


Thanks,
Coert



[gentoo-user] portage Digest verification failed

2011-04-21 Thread Coert Waagmeester
Hello all,

Since yesterday, when I try to update my gentoo box, certain ebuilds
give me the following error:

 Fetching (15 of 22) media-libs/libsdl-1.2.14-r6

!!! Digest verification failed:
!!! /mnt/data/portage/media-libs/libsdl/libsdl-1.2.14-r6.ebuild
!!! Reason: Filesize does not match recorded size
!!! Got: 4606
!!! Expected: 4609

 Failed to emerge media-libs/libsdl-1.2.14-r6

 Fetching (20 of 22) sys-kernel/gentoo-sources-2.6.37-r4

!!! Digest verification failed:
!!!
/mnt/data/portage/sys-kernel/gentoo-sources/gentoo-sources-2.6.37-r2.ebuild
!!! Reason: Failed on RMD160 verification
!!! Got: 4bb11df2e42433f487aea2a1b5e139a042456da1
!!! Expected: 902d79f1a6f3635ae2b85f652a475ac6575d30e0

 Failed to emerge sys-kernel/gentoo-sources-2.6.37-r4


I checked in the portage manual, and it said to wait a day to see if
these problems disappear.

Could it be the specific mirror I am using?


Thank you,
Coert



Re: [gentoo-user] portage Digest verification failed

2011-04-21 Thread Coert Waagmeester
On 04/21/2011 08:26 AM, Dale wrote:
 Coert Waagmeester wrote:
 Hello all,

 Since yesterday, when I try to update my gentoo box, certain ebuilds
 give me the following error:

   
 Fetching (15 of 22) media-libs/libsdl-1.2.14-r6
  
 !!! Digest verification failed:
 !!! /mnt/data/portage/media-libs/libsdl/libsdl-1.2.14-r6.ebuild
 !!! Reason: Filesize does not match recorded size
 !!! Got: 4606
 !!! Expected: 4609

   
 Failed to emerge media-libs/libsdl-1.2.14-r6
  
   
 Fetching (20 of 22) sys-kernel/gentoo-sources-2.6.37-r4
  
 !!! Digest verification failed:
 !!!
 /mnt/data/portage/sys-kernel/gentoo-sources/gentoo-sources-2.6.37-r2.ebuild

 !!! Reason: Failed on RMD160 verification
 !!! Got: 4bb11df2e42433f487aea2a1b5e139a042456da1
 !!! Expected: 902d79f1a6f3635ae2b85f652a475ac6575d30e0

   
 Failed to emerge sys-kernel/gentoo-sources-2.6.37-r4
  

 I checked in the portage manual, and it said to wait a day to see if
 these problems disappear.

 Could it be the specific mirror I am using?


 Thank you,
 Coert


 
 Have you tried syncing again?  Sometimes that will fix it.  Sync as in,
 emerge --sync or whatever command you use since it can vary a bit.
 
 There are two things that can cause this.  One is the file itself and
 one is the digest listed in the tree.  If either one of them is out of
 sync, it fails.
 
 Dale
 
 :-)  :-)
 
 

Hello Dale,

Managed to fix it.
I downloaded a new portage snapshot, extracted it, and used a completely
different mirror for the emerge --sync, and it worked.


Thanks,
Coert



Re: [gentoo-user] SOLVED hdparm and write caching

2011-03-29 Thread Coert Waagmeester
On 03/28/2011 10:35 AM, Mick wrote:
 On Monday 28 March 2011 09:11:51 Coert Waagmeester wrote:
 Hello all,

 Running a box with 2x1TB software raid disks.
 A while back I read up about disk write caching and it's pros/cons.

 I then decided to disable it on my box.
 Edited /etc/conf.d/hdparm and added -W0 for sata_all_args.
 And added it to the default runlevel.

 It works, on bootup it turns off write caching.
 But a while later when KDE is up and running and I check with hdparm -W
 /dev/sd? write caching is on again.

 Now, I have two questions,
 How can I find out what turned it back on, and how can I prevent it?

 Is it necessary/prudent to turn it off in the first place?

 At the moment I run a cron job that checks every 10 minutes and turns it
 off if it is enabled. But that feels like a somewhat ugly solution...
 
 Try touch /etc/pm/power.d/harddrive to see if it works.  Also read this 
 thread 
 and the bugs mentioned in there:
 
 http://thread.gmane.org/gmane.linux.gentoo.user/232788/focus=233098

Great! Thanks.
That did indeed solve the problem.




[gentoo-user] kvm and libvirt

2011-03-29 Thread Coert Waagmeester
Hello all,

At the moment I have a running install of kvm.
I do all the virtual networking manually with help of tap adaptors and
bridges.
And I use LVM for the VMs disks.

It is working very well, but to add a VM or to migrate it to another
host is laborious.

Now I have started playing with libvirt, and I would like to know if
anyone else here uses the combination of kvm and libvirt?

What is the most dynamic way of automatically setting up virtual
networks per VM? Should I use qemu-ifup?


I do not use routed or NATted virtual nets. only bridging.


Kind regards,
Coert Waagmeester



[gentoo-user] hdparm and write caching

2011-03-28 Thread Coert Waagmeester
Hello all,

Running a box with 2x1TB software raid disks.
A while back I read up about disk write caching and it's pros/cons.

I then decided to disable it on my box.
Edited /etc/conf.d/hdparm and added -W0 for sata_all_args.
And added it to the default runlevel.

It works, on bootup it turns off write caching.
But a while later when KDE is up and running and I check with hdparm -W
/dev/sd? write caching is on again.

Now, I have two questions,
How can I find out what turned it back on, and how can I prevent it?

Is it necessary/prudent to turn it off in the first place?

At the moment I run a cron job that checks every 10 minutes and turns it
off if it is enabled. But that feels like a somewhat ugly solution...


Kind regards,
Coert Waagmeester



[gentoo-user] hardened gentoo and distcc

2011-03-24 Thread Coert Waagmeester
Hello all,


Only just started playing with hardened gentoo.

I have a few normal gentoo amd64 machines already running.
Can I add those to the distcc config for the hardened box?

Or are there indeed special things with the compiler on hardened gentoo?

Regards,
Coert



[gentoo-user] distcc with a no-multilib server

2011-03-04 Thread Coert Waagmeester
Hello all,


I am doing a fresh install for a new machine with the help of distcc.
3 64bit machines with one one them having a no-multilib installation.

It is indeed impossible to compile 32bit binaries on that machine.

Does this matter in my amd64 distcc setup?
Or will the job fail, and distcc run it locally?

So far I do not appear to have any problems from this.

Kind regards,
Coert



[gentoo-user] intermittent ALSA error

2010-11-12 Thread Coert Waagmeester

Hello all,

Managed to set my self up with an awesome KDE desktop.

there is only one problem that only happens occasionally.


When I queue a few music videos in vlc and it goes from one to next, 
only sometimes it comes with an ALSA error:


ALSA version problem:
VLC failed to re-initialize your sound output device.
Please update alsa-lib to version 1.0.22 or higher to fix this issue.
Potential ALSA version problem:
VLC failed to initialize your sound output device (if any).
Please update alsa-lib to version 1.0.23-2-g8d80d5f or higher to try to 
fix this issue.


Stop the music video, start it again, and the the sound works.

Any pointers as to what I could possibly have done wrong?

Regards,
Coert



Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-11 Thread Coert Waagmeester

Enrico Weigelt wrote:

* Coert Waagmeester lgro...@waagmeester.co.za wrote:


My setup is one 32bit pc with gentoo and another 64bit pc with gentoo

I managed to get this going on the 64bit with a 32-bit chroot, distcc, 
and crosstools


Why do you need an 32bit chroot if you're going to use an
crosscompiler anyways ?

You are right, I only have distcc in the 32bit chroot, it ofcourse 
already has the 32bit gcc et al.


I have a 64bit crossdev setup on my 32 bit machine. that is where the 
confusion came in.
Just make sure you compiled your kernel with IA32 binary support (should 
be default)


The _target_ kernel has to support the IA32 ABI. The host (building)
might be better off w/o it (better detection of build errors).

How would this work exactly?
64 bit only installation with a 32 bit crossdev installation?



cu





[gentoo-user] GNS3 gentoo overlay

2010-11-10 Thread Coert Waagmeester

Hello all,

I see the gns3 overlay link is broken
http://code.gns3.net/gns3-overlay/file/ec6bc595d263/gns3-overlay-docs.txt

Do any of you use gns3? what is the recommended way of installing it on 
gentoo?


Regards,
Coert Waagmeester



Re: [gentoo-user] GNS3 gentoo overlay SOLVED

2010-11-10 Thread Coert Waagmeester

Neil Bothwick wrote:

On Wed, 10 Nov 2010 11:52:08 +0200, Coert Waagmeester wrote:


My bad, I found it after some more googling in the zugaina overlay.


Eix is able to search overlays, installed and otherwise, for packages. In
this case it shows that sunrise has a newer version that zuigana.




Thanks Neil,

The older version depended on a hard masked qt.

This is indeed better!



Re: [gentoo-user] GNS3 gentoo overlay SOLVED

2010-11-10 Thread Coert Waagmeester

Coert Waagmeester wrote:

Hello all,

I see the gns3 overlay link is broken
http://code.gns3.net/gns3-overlay/file/ec6bc595d263/gns3-overlay-docs.txt

Do any of you use gns3? what is the recommended way of installing it on 
gentoo?


Regards,
Coert Waagmeester




My bad, I found it after some more googling in the zugaina overlay.

Rgds,
Coert



Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread Coert Waagmeester

meino.cra...@gmx.de wrote:

Hi,

it is possible to run a 32-bit binary executable on a 64-bit system
(AMD64).


But: Is it possible to compile source code on a 64-bit system and get
an 32-bit executable a the result ??? And if 'yes'...how???

Thank you very much for any help in advance!

Best regards,
mcc





Hello Meino,

My setup is one 32bit pc with gentoo and another 64bit pc with gentoo

I managed to get this going on the 64bit with a 32-bit chroot, distcc, 
and crosstools


Just make sure you compiled your kernel with IA32 binary support (should 
be default)


Here are some links:
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1chap=2
http://www.gentoo.org/doc/en/cross-compiling-distcc.xml
http://www.gentoo.org/doc/en/distcc.xml
http://www.gentoo.org/proj/en/base/embedded/handbook/index.xml?part=1chap=2

Regards,
Coert Waagmeester



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-08 Thread Coert Waagmeester

Volker Armin Hemmann wrote:

On Thursday 04 November 2010, dhk wrote:

I've always used the genkernel, but now am trying to make a manual one.
 I think the kernel is alright since all the default setting seemed
reasonable and the build was easy enough.  However, when I boot to it I
get a kernel panic and it complains about the root device /dev/hda3. So
I think the problem has to do with my parameters or syntax in grub.conf.
 Below are three grub menu options.  The first two have the problem and
the third is the genkernel that works fine.  Is there something wrong
with the way the first two are?  Thanks.

# This is a Manually built kernel with default settings.  kernel panic
title Gentoo Linux x86 2.6.34-r12
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3

# This is a Manually built kernel with default settings.  kernel panic
title Gentoo Linux x86 2.6.34-r12
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791
splash=verbose video=vesafb:mtrr,ywrap udev
# From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768...@85

# This a genkernel and works
title Gentoo Linux x86 2.6.34-r6
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc
ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose
video=vesafb:mtrr,ywrap udev
initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6

--dhk


grub must point to sda3 not hda3




Yes, I had a similar problem.
The device names are different on my machine between genkernel and my 
own kernel.

Make sure to change that in your /etc/fstab as well.

Dont know if this is always the case though.

Regards,
Coert Waagmeester



Re: [gentoo-user] kernel panic on manually built kernel

2010-11-08 Thread Coert Waagmeester

dhk wrote:

On 11/08/2010 05:28 AM, Coert Waagmeester wrote:

Volker Armin Hemmann wrote:

On Thursday 04 November 2010, dhk wrote:

I've always used the genkernel, but now am trying to make a manual one.
 I think the kernel is alright since all the default setting seemed
reasonable and the build was easy enough.  However, when I boot to it I
get a kernel panic and it complains about the root device /dev/hda3. So
I think the problem has to do with my parameters or syntax in grub.conf.
 Below are three grub menu options.  The first two have the problem and
the third is the genkernel that works fine.  Is there something wrong
with the way the first two are?  Thanks.

# This is a Manually built kernel with default settings.  kernel panic
title Gentoo Linux x86 2.6.34-r12
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3

# This is a Manually built kernel with default settings.  kernel panic
title Gentoo Linux x86 2.6.34-r12
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791
splash=verbose video=vesafb:mtrr,ywrap udev
# From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768...@85

# This a genkernel and works
title Gentoo Linux x86 2.6.34-r6
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc
ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose
video=vesafb:mtrr,ywrap udev
initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6

--dhk

grub must point to sda3 not hda3



Yes, I had a similar problem.
The device names are different on my machine between genkernel and my
own kernel.
Make sure to change that in your /etc/fstab as well.

Dont know if this is always the case though.

Regards,
Coert Waagmeester




I'm booting to an IDE hard disk.  Are you say the device name should
change from /dev/hda3 to /dev/sda3?  If I change it in /etc/fstab and it
doesn't work, I'll have problems, I'll probably have to boot to the livecd.

Thanks,

--dhk




It has indeed happened to me with an IDE PATA disk.
Try first only to change only your grub config.
Then if you see that the kernel boots fine, you can change /etc/fstab.

If you want you can even use LABELs in fstab.

give your ext{2,3} partitions labels with e2label

and change the device node eg /dev/hda1 in fstab to LABEL=yournewlabel


Regards,
Coert Waagmeester



[gentoo-user] local USE flags and ufed

2010-11-03 Thread Coert Waagmeester

Hello all,

Just installed ufed. handy.

I see that ufed places local USE flags with global flags in /etc/make.conf

Is this normal/does it matter?
I always set local flags in /etc/portage/package.use as I read in the 
Handbook


Regards,
Coert



[gentoo-user] CFLAGS

2010-11-02 Thread Coert Waagmeester

Hello all,

Possible noob question.

I have installed a 64 bit gentoo on my intel Pentium D machine.
Now I am reading through /usr/share/portage/config/make.conf.example

My CFLAGS on that machine is the default currently: CFLAGS=-O2 -pipe
But according to 
http://www.gentoo.org/doc/en/gentoo-amd64-faq.xml#cflags I can make it:

-O2 -march=core2 -pipe

Is this entirely necessary? Will it cause a big improvement?

If I do change, how do I recompile everything? (like --newuse for USE 
changes?)


Thank you,
Coert Waagmeester



Re: [gentoo-user] world symlinking

2010-11-02 Thread Coert Waagmeester

Gary Golden wrote:

On 11/02/2010 12:08 PM, Daniel Pielmeier wrote:

2010/11/2 Gary Golden m...@garygolden.me:

Hi, list.
I keep changes of my /etc with git and I would like to include
/var/lib/portage/world file into the repository.

Can I safely do:

mv /var/lib/portage/world /etc/portage
ln -s /etc/portage /var/lib/portage/world

Will portage update handle it properly?
Using hardlinks seems to be more cleaner way, but for some reason I
don't want to use it for this task.

It should work. Just try it out, but make a copy of your world file
before. Should be easy to switch back if anything fails.

Afaik, the creation of the symbolic link should look like this:
ln -s /etc/portage/world /var/lib/portage/world



Thanks for the correction, you're right, of course.
Nevertheless, I've considered that using hardlinks is most porper way to
solve this task. It basically do what I need, make another reference to
the file under needed directory; without introducing compexity.



What about a bind mount?

Rgds,
Coert



[gentoo-user] distcc and USE flags

2010-10-13 Thread Coert Waagmeester

Hello all,

Still new to gentoo. I use RHEL a lot.

If I want to set up an x86 distcc solution, do the USE flags need to be 
the same on all machines?


Trying to setup/compile all desktop apps on one machine with two 
assisting in compilation.


Regards,
Coert Waagmeester