Re: [gentoo-user] Help!

2011-10-05 Thread Yohan Pereira
On Wednesday 05 Oct 2011 12:52:41 Lavender wrote:
 Hi, everybody! I installed gentoo according to Gentoo Handbook , then I
 login gentoo . But I found that I couldn't use wpa_supplicant for scanning
 netcard device failed . I think that means the netcard module not loaded,
 so I type lsmod and the output have only one line-Modules , according to
 the Handbook I have written many modules to the file
 /etc/modules.autoload.d/kernel2.6 though I don't know those modules respond
 for what.  
 Now the question is  that I don't know whether gentoo loaded
 those modules that in file kernel2.6 which I created. Handbook said that
 modules in /etc/modules.autoload.d/kernel2.6 will be loaded automatically,
 but why there is only one line in output when I use command lsmod? I’m
 going to be crazy! When I use gentoo I really realize that the knowlege
 needed is far more than I just have, I have to acknowledge that I'm a
 freshman.So please help me.

How did you build your kernel? using genkernel or manually? 


-- 

- Yohan Pereira



Re: [gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Alan McKinnon
On Tue, 4 Oct 2011 14:32:51 -0700
Canek Peláez Valdés can...@gmail.com wrote:

 On Tue, Oct 4, 2011 at 2:24 PM, Grant Edwards
 grant.b.edwa...@gmail.com wrote:
  On 2011-10-04, Canek Pel??ez Vald??s can...@gmail.com wrote:
 
  Then any boot loader will need to call something to start it.
  Understand this: any Linux/Unix init system (systemd, SysV,
  Upstart, OpenRC) is simply a program... that the Linux kernel
  itself executes.
 
  I know.  What I don't understand is the statement that grub2 calls
  (or connects to) the init system.
 
  That's the init= command line in the kernel.
 
  The bootloader calls an operating system. The init system (if at
  all) that the OS uses doesn't matter: so if you have an operating
  system, any bootloader should be able to boot it (bearing things
  like being able to understand the filesystem etc.)
 
  I know how bootloaders like LILO and grub-legacy work.  What I don't
  understand is the statement that grub2 is somehow aware of the
  booted OS's init system.
 
 Oh. The configuration file of GRUB2 is autogenerated, and this means
 that the init=systemd has to be passed to the kernel line.
 
 In that sense, GRUB2 is aware of it.

Possibly what you meant to say is that grub2 is not aware of the OS but
the grub2 installer does.

Like grub and lilo before it, the installer is a Linux app; and can
figure out the correct kernel parameters to use by examining the file
system


-- 
Alan McKinnnon
alan.mckin...@gmail.com



Re: [gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Neil Bothwick
On Tue, 04 Oct 2011 23:33:34 +0200, Michael Schreckenbauer wrote:

  Then any boot loader will need to call something to start it.
  Understand this: any Linux/Unix init system (systemd, SysV, Upstart,
  OpenRC) is simply a program... that the Linux kernel itself executes.
  That's the init= command line in the kernel.  
 
 Correct, the *kernel* executes it.
 
 Quoted from an earlier mail in this thread:
 
 That it's not true. It connects to whatever init system do you have
 (OpenRC, SysV, systemd, Upstart)
 
 The kernel executes the initsystem, the initsystem takes care of the
 rest. Care to explain, why grub2 needs to connect to (or call) the
 initsystem?

The confusion is caused by using grub to describe two different modes of
operation. the bootloader itself does not need access to anything but the
kernel and the initramfs , if used. The grub program, run from Linux to
set up the bootloader, does need access to your filesystem to be able to
do its job. That is not required for booting, which is why the code is
not in /boot.

The GRUB2 bootloader works in much the same way as the old one, with the
menu entry format being quite similar too. The difference is in the
automation stuff that non-genkernel or other distro users wouldn't be
interested in anyway.


-- 
Neil Bothwick

If you consult enough experts, you can confirm any opinion.


signature.asc
Description: PGP signature


Re: [gentoo-user] Help!

2011-10-05 Thread Neil Bothwick
On Wed, 5 Oct 2011 12:52:41 +0800, Lavender wrote:

 Hi, everybody! I installed gentoo according to Gentoo Handbook , then I
 login gentoo . But I found that I couldn't use wpa_supplicant for
 scanning netcard device failed . I think that means the netcard module
 not loaded, so I type lsmod and the output have only one line-Modules ,
 according to the Handbook I have written many modules to the
 file /etc/modules.autoload.d/kernel2.6 though I don't know those
 modules respond for what.

Can you load the modules manually?

Which version of baselayout are you using? Baselayout2, which has been in
stable for some time, uses /etc/conf.d/modules rather than the file you
used. If the handbook still contains baselayout1 advice, it's time for
someone to raise a bug report.


-- 
Neil Bothwick

Master of all I survey (at the moment, empty pizza boxes)


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Neil Bothwick
On Tue, 4 Oct 2011 22:11:00 +0200, Alan McKinnon wrote:

  The thing is that GRUB2 needs to understand several filesystems to
  grab the kernel image from. It also wants to be able to use a more
  interesting resolution than 640x480. This means that it has to
  reimplement all the code for any filesystem, and all the code for
  video handling.  
 
 Personally, I can't agree with this stance from the grub2 devs.
 
 It's a bootloader. It is visible for 3 seconds at boot time. 

I'd agree with you there, but I suppose the glossy distros want a glossy
boot screen.


-- 
Neil Bothwick

Facts are stubborn, but statistics are more pliable


signature.asc
Description: PGP signature


[gentoo-user] SERVFAIL with bind; problems in named.conf?

2011-10-05 Thread Andrey Moshbear
For bind, I have the following as named.conf:

acl xfer { none; };

acl trusted { 127.0.0.0/8; ::1/128; };

options {
directory /var/bind;
pid-file /var/run/named/named.pid;

listen-on-v6 { none; };
listen-on port 53 { 127.0.0.1; 192.168.1.0/10; EXTERNAL_IP; };
};

include /etc/bind/rndc.key;
controls { inet 127.0.0.1 port 953 allow { 127.0.0.1/32; ::1/128; }
keys { rndc-key; }; };

zone . in { type hint; file /var/bind/root.cache; };

zone localhost IN { type master; file pri/localhost.zone; notify no; };

zone 127.in-addr.arpa IN { type master; file pri/127.zone; notify no; };

zone moshbear.net IN  { type master; file
/var/bind/pri/moshbear.net.zone; allow-query { any; };
allow-transfer { xfer; }; };
// end of dump

The zone file does not have any errors.

Any reasons as to why dig @127.0.0.1 moshbear.net returns SERVFAIL?

--
001100 Andrey m05hbear Vul
010010
11 andrey dot vul at gmail
110011



[gentoo-user] 回复: [gentoo-user] Help!

2011-10-05 Thread Lavender
I did that manually, did I lose something when I build the kernel ? But I 
really turn the options which handbook mentioned on . I don't know how to work 
out.
   
  
  -- 原始邮件 --
  发件人: Yohan Pereirayohan.pere...@gmail.com;
 发送时间: 2011年10月5日(星期三) 下午3:18
 收件人: gentoo-usergentoo-user@lists.gentoo.org; 
 
 主题: Re: [gentoo-user] Help!

  
 
On Wednesday 05 Oct 2011 12:52:41 Lavender wrote:
 
 Hi, everybody! I installed gentoo according to Gentoo Handbook , then I
 
 login gentoo . But I found that I couldn't use wpa_supplicant for scanning
 
 netcard device failed . I think that means the netcard module not loaded,
 
 so I type lsmod and the output have only one line-Modules , according to
 
 the Handbook I have written many modules to the file
 
 /etc/modules.autoload.d/kernel2.6 though I don't know those modules respond
 
 for what. 
 
Now the question is that I don't know whether gentoo loaded
 
 those modules that in file kernel2.6 which I created. Handbook said that
 
 modules in /etc/modules.autoload.d/kernel2.6 will be loaded automatically,
 
 but why there is only one line in output when I use command lsmod? I’m
 
 going to be crazy! When I use gentoo I really realize that the knowlege
 
 needed is far more than I just have, I have to acknowledge that I'm a
 
 freshman.So please help me.
 
 
 
How did you build your kernel? using genkernel or manually? 
 
 
 
 
 
-- 
 
 
 
- Yohan Pereira

Re: [gentoo-user] SERVFAIL with bind; problems in named.conf?

2011-10-05 Thread Alan McKinnon
On Wed, 5 Oct 2011 05:06:27 -0400
Andrey Moshbear andrey@gmail.com wrote:

 For bind, I have the following as named.conf:
 
 acl xfer { none; };
 
 acl trusted { 127.0.0.0/8; ::1/128; };
 
 options {
 directory /var/bind;
 pid-file /var/run/named/named.pid;
 
 listen-on-v6 { none; };
 listen-on port 53 { 127.0.0.1; 192.168.1.0/10; EXTERNAL_IP; };
 };
 
 include /etc/bind/rndc.key;
 controls { inet 127.0.0.1 port 953 allow { 127.0.0.1/32; ::1/128; }
 keys { rndc-key; }; };
 
 zone . in { type hint; file /var/bind/root.cache; };
 
 zone localhost IN { type master; file pri/localhost.zone; notify
 no; };
 
 zone 127.in-addr.arpa IN { type master; file pri/127.zone; notify
 no; };
 
 zone moshbear.net IN  { type master; file
 /var/bind/pri/moshbear.net.zone; allow-query { any; };
 allow-transfer { xfer; }; };
 // end of dump
 
 The zone file does not have any errors.
 
 Any reasons as to why dig @127.0.0.1 moshbear.net returns SERVFAIL?

What result does bind write to log files when it loads that zone?

SERVFAIL usually indicates something wrong with the zone and bind
refuses to load it.




 
 --
 001100 Andrey m05hbear Vul
 010010
 11 andrey dot vul at gmail
 110011
 



-- 
Alan McKinnnon
alan.mckin...@gmail.com



Re: [gentoo-user] Re: Hard drives not detected in repeatable order.

2011-10-05 Thread Michael A. Koerber
   I have found that use of LABEL=FOO in /etc/fstab doesn't always solve
   the problem of disks being reassigned during boot.
  
  That's because fstab isn't used during boot.  What root= setting is
  passed to your kernel by your bootloader?  Is that using /dev/sda1 or
  a label?  In order to use a label, I _think_ you need some special magic
  in an initrd (at least that used to be the case according to what I've
  googled).
  
  
  That's my doubt. Last time I've read about, you needed some script to
  load the labels.
  
  Claudio Roberto França Pereira (a.k.a. Spidey)
 
 You cannot use labels with the root= parameters. That was provided as
 some kind of hack a few years ago but has been removed since. You either
 need to use an initramfs for labels or resort to UUIDs. See
 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=b5af921ec02333e943efb59aca4f56b78fc0e100

Just tried root=PARTUUID=  failed.  Checked my genblk.c and the
changes don't appear in the 2.6.36 or 2.6.39 kernels on my system.  When
did (does) the PARTUUID syntax support get released?  

tnx,

Mike


[gentoo-user] Re: SERVFAIL with bind; problems in named.conf?

2011-10-05 Thread Andrey Moshbear
No clue, as logging isn't yet enabled. However, chechzone says that all is fine.

On 2011-10-05, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Wed, 5 Oct 2011 05:06:27 -0400
 Andrey Moshbear andrey@gmail.com wrote:

 For bind, I have the following as named.conf:

 acl xfer { none; };

 acl trusted { 127.0.0.0/8; ::1/128; };

 options {
 directory /var/bind;
 pid-file /var/run/named/named.pid;

 listen-on-v6 { none; };
 listen-on port 53 { 127.0.0.1; 192.168.1.0/10; EXTERNAL_IP; };
 };

 include /etc/bind/rndc.key;
 controls { inet 127.0.0.1 port 953 allow { 127.0.0.1/32; ::1/128; }
 keys { rndc-key; }; };

 zone . in { type hint; file /var/bind/root.cache; };

 zone localhost IN { type master; file pri/localhost.zone; notify
 no; };

 zone 127.in-addr.arpa IN { type master; file pri/127.zone; notify
 no; };

 zone moshbear.net IN  { type master; file
 /var/bind/pri/moshbear.net.zone; allow-query { any; };
 allow-transfer { xfer; }; };
 // end of dump

 The zone file does not have any errors.

 Any reasons as to why dig @127.0.0.1 moshbear.net returns SERVFAIL?

 What result does bind write to log files when it loads that zone?

 SERVFAIL usually indicates something wrong with the zone and bind
 refuses to load it.





 --
 001100 Andrey m05hbear Vul
 010010
 11 andrey dot vul at gmail
 110011




 --
 Alan McKinnnon
 alan.mckin...@gmail.com



-- 
Sent from my mobile device

001100 Andrey m05hbear Vul
010010
00 andrey at moshbear dot net
11 andrey dot vul at gmail
101101 4163039923
110011

Today's quote:
[ ] Obsolete code offends me.
[ ] Be aware of [ ] Murphy's, [ ] Muphry's Law.
[ ] Use [ ] Occam's, [ ] Hanlon's razor.
[ ] Greenspun's Tenth Rule.
[ ] Sturgeon's Law, [ ] Pareto principle.
[ ] RTFM, [ ] RTF[__]
[ ] [___]



Re: [gentoo-user] Re: SERVFAIL with bind; problems in named.conf?

2011-10-05 Thread Alan McKinnon
On Wed, 5 Oct 2011 09:38:01 -0400
Andrey Moshbear andrey@gmail.com wrote:

 No clue, as logging isn't yet enabled. However, chechzone says that
 all is fine.

Well that's your primary error right there. How can you run a daemon
that isn't logging and consider that even halfway proper? Get some real
logs from when bind loads the zone and I'll bet it'll tell you right
away what the problem is

checkzone != a full bind



 
 On 2011-10-05, Alan McKinnon alan.mckin...@gmail.com wrote:
  On Wed, 5 Oct 2011 05:06:27 -0400
  Andrey Moshbear andrey@gmail.com wrote:
 
  For bind, I have the following as named.conf:
 
  acl xfer { none; };
 
  acl trusted { 127.0.0.0/8; ::1/128; };
 
  options {
  directory /var/bind;
  pid-file /var/run/named/named.pid;
 
  listen-on-v6 { none; };
  listen-on port 53 { 127.0.0.1; 192.168.1.0/10;
  EXTERNAL_IP; }; };
 
  include /etc/bind/rndc.key;
  controls { inet 127.0.0.1 port 953 allow { 127.0.0.1/32; ::1/128; }
  keys { rndc-key; }; };
 
  zone . in { type hint; file /var/bind/root.cache; };
 
  zone localhost IN { type master; file pri/localhost.zone;
  notify no; };
 
  zone 127.in-addr.arpa IN { type master; file pri/127.zone;
  notify no; };
 
  zone moshbear.net IN  { type master; file
  /var/bind/pri/moshbear.net.zone; allow-query { any; };
  allow-transfer { xfer; }; };
  // end of dump
 
  The zone file does not have any errors.
 
  Any reasons as to why dig @127.0.0.1 moshbear.net returns
  SERVFAIL?
 
  What result does bind write to log files when it loads that zone?
 
  SERVFAIL usually indicates something wrong with the zone and bind
  refuses to load it.
 
 
 
 
 
  --
  001100 Andrey m05hbear Vul
  010010
  11 andrey dot vul at gmail
  110011
 
 
 
 
  --
  Alan McKinnnon
  alan.mckin...@gmail.com
 
 
 



-- 
Alan McKinnnon
alan.mckin...@gmail.com



[gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Grant Edwards
On 2011-10-04, Canek Pel??ez Vald??s can...@gmail.com wrote:
 On Tue, Oct 4, 2011 at 3:14 PM, Grant Edwards grant.b.edwa...@gmail.com 
 wrote:
 On 2011-10-04, Canek Pel??ez Vald??s can...@gmail.com wrote:
 On Tue, Oct 4, 2011 at 2:24 PM, Grant Edwards grant.b.edwa...@gmail.com 
 wrote:
 On 2011-10-04, Canek Pel??ez Vald??s can...@gmail.com wrote:

 Then any boot loader will need to call something to start it.
 Understand this: any Linux/Unix init system (systemd, SysV, Upstart,
 OpenRC) is simply a program... that the Linux kernel itself executes.

 I know. ??What I don't understand is the statement that grub2 calls (or
 connects to) the init system.

 That's the init= command line in the kernel.

 The bootloader calls an operating system. The init system (if at all)
 that the OS uses doesn't matter: so if you have an operating system,
 any bootloader should be able to boot it (bearing things like being
 able to understand the filesystem etc.)

 I know how bootloaders like LILO and grub-legacy work. ??What I don't
 understand is the statement that grub2 is somehow aware of the booted
 OS's init system.

 Oh. The configuration file of GRUB2 is autogenerated, and this means
 that the init=systemd has to be passed to the kernel line.

 In that sense, GRUB2 is aware of it.

 So to use grub2 you have to replace the normal init program that's
 started by the kernle as PID#1 with something else?

 No.

I give up.  I've absolutely no idea what grub2 has to do with the OS's
init system, and none of what you've written makes any sense to me.

-- 
Grant Edwards   grant.b.edwardsYow! We are now enjoying
  at   total mutual interaction in
  gmail.coman imaginary hot tub ...




Re: [gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Pandu Poluan
On Oct 5, 2011 8:59 PM, Grant Edwards grant.b.edwa...@gmail.com wrote:

 On 2011-10-04, Canek Pel??ez Vald??s can...@gmail.com wrote:
  On Tue, Oct 4, 2011 at 3:14 PM, Grant Edwards grant.b.edwa...@gmail.com
wrote:
  On 2011-10-04, Canek Pel??ez Vald??s can...@gmail.com wrote:
  On Tue, Oct 4, 2011 at 2:24 PM, Grant Edwards 
grant.b.edwa...@gmail.com wrote:
  On 2011-10-04, Canek Pel??ez Vald??s can...@gmail.com wrote:
 
  Then any boot loader will need to call something to start it.
  Understand this: any Linux/Unix init system (systemd, SysV, Upstart,
  OpenRC) is simply a program... that the Linux kernel itself
executes.
 
  I know. ??What I don't understand is the statement that grub2 calls
(or
  connects to) the init system.
 
  That's the init= command line in the kernel.
 
  The bootloader calls an operating system. The init system (if at
all)
  that the OS uses doesn't matter: so if you have an operating system,
  any bootloader should be able to boot it (bearing things like being
  able to understand the filesystem etc.)
 
  I know how bootloaders like LILO and grub-legacy work. ??What I don't
  understand is the statement that grub2 is somehow aware of the booted
  OS's init system.
 
  Oh. The configuration file of GRUB2 is autogenerated, and this means
  that the init=systemd has to be passed to the kernel line.
 
  In that sense, GRUB2 is aware of it.
 
  So to use grub2 you have to replace the normal init program that's
  started by the kernle as PID#1 with something else?
 
  No.

 I give up.  I've absolutely no idea what grub2 has to do with the OS's
 init system, and none of what you've written makes any sense to me.

I think what he meant was:

The *installer* portion of grub2 is aware of which pid#0 is running when it
auto-creates the bootloader's configuration. That pid#0 is passed on to the
kernel by the bootloader.

The *bootloader* portion of grub2 don't know and don't care what is being
used as pid#0 by the OS. All it knows is that the installer portion has
specified something to be passed to the OS. And that's what it does, without
understanding anything about pid#0.

rgds,


Re: [gentoo-user] Re: Hard drives not detected in repeatable order.

2011-10-05 Thread Florian Philipp
Am 05.10.2011 15:29, schrieb Michael A. Koerber:
   I have found that use of LABEL=FOO in /etc/fstab doesn't always solve
   the problem of disks being reassigned during boot.
  
  That's because fstab isn't used during boot.  What root= setting is
  passed to your kernel by your bootloader?  Is that using /dev/sda1 or
  a label?  In order to use a label, I _think_ you need some special 
  magic
  in an initrd (at least that used to be the case according to what I've
  googled).
  
  
  That's my doubt. Last time I've read about, you needed some script to
  load the labels.
  
  Claudio Roberto França Pereira (a.k.a. Spidey)

 You cannot use labels with the root= parameters. That was provided as
 some kind of hack a few years ago but has been removed since. You either
 need to use an initramfs for labels or resort to UUIDs. See
 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=b5af921ec02333e943efb59aca4f56b78fc0e100
 Just tried root=PARTUUID=  failed.  Checked my genblk.c and the
 changes don't appear in the 2.6.36 or 2.6.39 kernels on my system.  When
 did (does) the PARTUUID syntax support get released? 
 
 tnx,
 
 Mike

2.6.37: http://kernelnewbies.org/Linux_2_6_37#line-106
I definitely see the changes in gentoo-sources-2.6.39-r3.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Sebastian Beßler
Am 05.10.2011 15:55, schrieb Grant Edwards:

 I give up.  I've absolutely no idea what grub2 has to do with the OS's
 init system, and none of what you've written makes any sense to me.

It has NOTHING to do with it, or not more or less then lilo or grub1 or
any other bootloader. But the automagic of grub2 at install/setup time
is able to see which init system is used in the linuxes it reach on the
system and configure the init= kernel option for you.
Thats all folks!

Greetings

Sebastian Beßler



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Grant Edwards
On 2011-10-05, Pandu Poluan pa...@poluan.info wrote:

 I give up.  I've absolutely no idea what grub2 has to do with the OS's
 init system, and none of what you've written makes any sense to me.

 I think what he meant was:

I assume you mean PID#1 (typically /sbin/init).  On Unixes with PID#0,
it's usually the swapper or scheduler task that's internal to the
kernel.

 The *installer* portion of grub2 is aware of which pid#0 is running
 when it auto-creates the bootloader's configuration. That pid#0 is
 passed on to the kernel by the bootloader.

OK.  I that I understand.  It seems a bit redundant to me: I've been
running Linux since the 0.99 days and never had to pass init= to a
kernel.  But, I guess it won't hurt anything...

 The *bootloader* portion of grub2 don't know and don't care what is
 being used as pid#0 by the OS. All it knows is that the installer
 portion has specified something to be passed to the OS. And that's
 what it does, without understanding anything about pid#0.

And the set of init scripts that belong to grub2 are just to try to
auto-magically generate the config file?

-- 
Grant Edwards   grant.b.edwardsYow! They collapsed
  at   ... like nuns in the
  gmail.comstreet ... they had no
   teen appeal!




Re: [gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Alan McKinnon
On Wed, 5 Oct 2011 14:46:03 + (UTC)
Grant Edwards grant.b.edwa...@gmail.com wrote:

  The *installer* portion of grub2 is aware of which pid#0 is running
  when it auto-creates the bootloader's configuration. That pid#0 is
  passed on to the kernel by the bootloader.  
 
 OK.  I that I understand.  It seems a bit redundant to me: I've been
 running Linux since the 0.99 days and never had to pass init= to a
 kernel.  But, I guess it won't hurt anything.


It is indeed redundant and harmless. You no doubt already know the
kernel's logic for launching the first userspace app - three paths are
hardcoded and searched in sequence, first one found is launched. The
third one is /sbin/init

It makes for a wonderful prank, add init=bin/bash to someone's
menu.lst and watch them get confused at next reboot :-)

I suppose grub2 could search for and include a redundant init parameter
for the sake of consistency with cases where a non-standard init was in
use

 


-- 
Alan McKinnnon
alan.mckin...@gmail.com



Re: [gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Neil Bothwick
On Wed, 5 Oct 2011 14:46:03 + (UTC), Grant Edwards wrote:

 The *installer* portion of grub2 is aware of which pid#0 is running
  when it auto-creates the bootloader's configuration. That pid#0 is
  passed on to the kernel by the bootloader.  
 
 OK.  I that I understand.  It seems a bit redundant to me: I've been
 running Linux since the 0.99 days and never had to pass init= to a
 kernel.  But, I guess it won't hurt anything...

That's because you are using the standard, hard-coded, init. GRUB2 is
trying to cope with all use cases, so it checks to see whether a
different system is in use and configures the boot menu accordingly.


-- 
Neil Bothwick

GOTO: (n.) an efficient and general way of controlling a program, much
despised by academics and others whose brains have been ruined by
overexposure to Pascal.


signature.asc
Description: PGP signature


[gentoo-user] Why grub can't load win kernel

2011-10-05 Thread Lavender
The configuration of win kernel in grub.conf is like below:
  
 rootnoverify (hd0,0)
 makeactive
 chainloader +1
  
 It worked yesterday , but after I rebuilding grub software, it can't work. I 
don't know why, it still can boot
 gentoo kernel, I am confused,because grub only can do operations to MBR, it 
can not influence contents on windows
 partition.
 I also tried boot manually in grub command interface, but after showing load 
stage2 it goes back to grub   I'm 
 gonna pissed. I have many important things in windows system, will someone 
 figure it out?

Re: [gentoo-user] Why grub can't load win kernel

2011-10-05 Thread Alan McKinnon
On Wed, 5 Oct 2011 23:32:10 +0800
Lavender 448463...@qq.com wrote:

 The configuration of win kernel in grub.conf is like below:
   
  rootnoverify (hd0,0)
  makeactive
  chainloader +1
   
  It worked yesterday , but after I rebuilding grub software, it can't
 work. I don't know why, it still can boot gentoo kernel, I am
 confused,because grub only can do operations to MBR, it can not
 influence contents on windows partition. I also tried boot manually
 in grub command interface, but after showing load stage2 it goes
 back to grub   I'm gonna pissed. I have many important
 things in windows system, will someone  figure it out?

What version of grub, and what options (USE flags) was grub built with?

Any errors from the build of grub?
(check /var/log/portage/elog)

Did you run grub-install like the ebuild tells you to do at the end?

-- 
Alan McKinnnon
alan.mckin...@gmail.com



Re: [gentoo-user] Why grub can't load win kernel

2011-10-05 Thread Lavender
Sorry, I'm a gentoo newcomer, so I am totally not familar with this OS. Does 
USE make sense with grub ? 
 And in the building there is no error, I had grub-install done. Grub boot 
interface can show up , I can choose
 which OS to boot, but I couldn't boot win , what is the problem in your 
opinion?
   
  
  -- Original --
  From:  Alan McKinnonalan.mckin...@gmail.com;
 Date:  Wed, Oct 5, 2011 11:39 PM
 To:  gentoo-usergentoo-user@lists.gentoo.org; 
 
 Subject:  Re: [gentoo-user] Why grub can't load win kernel

  
On Wed, 5 Oct 2011 23:32:10 +0800
Lavender 448463...@qq.com wrote:

 The configuration of win kernel in grub.conf is like below:
   
  rootnoverify (hd0,0)
  makeactive
  chainloader +1
   
  It worked yesterday , but after I rebuilding grub software, it can't
 work. I don't know why, it still can boot gentoo kernel, I am
 confused,because grub only can do operations to MBR, it can not
 influence contents on windows partition. I also tried boot manually
 in grub command interface, but after showing load stage2 it goes
 back to grub   I'm gonna pissed. I have many important
 things in windows system, will someone  figure it out?

What version of grub, and what options (USE flags) was grub built with?

Any errors from the build of grub?
(check /var/log/portage/elog)

Did you run grub-install like the ebuild tells you to do at the end?

-- 
Alan McKinnnon
alan.mckin...@gmail.com

Re: [gentoo-user] Is grub2 stable and who uses it?

2011-10-05 Thread ny6p01
On Tue, Oct 04, 2011 at 08:56:54AM -0400, Michael Orlitzky wrote:
 On 10/04/2011 06:16 AM, Pandu Poluan wrote:
  
  On Oct 4, 2011 5:10 PM, Neil Bothwick n...@digimed.co.uk
  mailto:n...@digimed.co.uk wrote:
 
  On Tue, 04 Oct 2011 04:49:56 -0500, Dale wrote:
 
   Subject line says it pretty well.  Is grub2 stable, who uses it and can
   you post your experience on the switching process?  Was it difficult?
 
  I use it on my netbook, which I admittedly don't boot more than a couple
  of times a month. It's stable, I can't comment on the switching process
  as I used GRUB2 from the start with this machine, it seemed a good time
  to get to grips with it.
 
  GRUB2 is neither complicated nor difficult, but it is different. If you
  try to think in terms of legacy GRUB, you will have more problems than if
  you approach is as learning a new system.
 
  
  Kind of tangential...
  
  Why does Gentoo still 'standardize' on grub instead of going forward
  with grub2?
 
 Grub2 is weird (coming from anything that isn't grub2), and if you mess
 up the upgrade, you can't boot.
 
 It's a support nightmare.
 

Wow - what an improvement. :|

Terry






Re: [gentoo-user] 回复: [gentoo-user] Help!

2011-10-05 Thread Jonas de Buhr
Hello Lavender,

we are going to help you. So please relax, tell your mail client to
wrap lines at 72 characters and use the reply button to answer.

For now, build a kernel with genkernel according to the handbook and
stick to the rest of the hints you already got in the other replies.
Save manual kernel building for later when you have more experience.

/jonas

Am Wed, 5 Oct 2011 17:33:22 +0800
schrieb Lavender 448463...@qq.com:

 I did that manually, did I lose something when I build the kernel ?
 But I really turn the options which handbook mentioned on . I don't
 know how to work out. 
   -- 原始邮件 --
   发件人: Yohan Pereirayohan.pere...@gmail.com;
  发送时间: 2011年10月5日(星期三) 下午3:18
  收件人: gentoo-usergentoo-user@lists.gentoo.org; 
  
  主题: Re: [gentoo-user] Help!
 
   
  
 On Wednesday 05 Oct 2011 12:52:41 Lavender wrote:
  
  Hi, everybody! I installed gentoo according to Gentoo Handbook ,
  then I
  
  login gentoo . But I found that I couldn't use wpa_supplicant for
  scanning
  
  netcard device failed . I think that means the netcard module not
  loaded,
  
  so I type lsmod and the output have only one line-Modules ,
  according to
  
  the Handbook I have written many modules to the file
  
  /etc/modules.autoload.d/kernel2.6 though I don't know those modules
  respond
  
  for what. 
  
 Now the question is that I don't know whether gentoo loaded
  
  those modules that in file kernel2.6 which I created. Handbook said
  that
  
  modules in /etc/modules.autoload.d/kernel2.6 will be loaded
  automatically,
  
  but why there is only one line in output when I use command lsmod?
  I’m
  
  going to be crazy! When I use gentoo I really realize that the
  knowlege
  
  needed is far more than I just have, I have to acknowledge that I'm
  a
  
  freshman.So please help me.
  
  
  
 How did you build your kernel? using genkernel or manually? 
  
  
  
  
  


Re: [gentoo-user] Why grub can't load win kernel

2011-10-05 Thread Jonas de Buhr
Am Wed, 5 Oct 2011 17:39:59 +0200
schrieb Alan McKinnon alan.mckin...@gmail.com:

 What version of grub, and what options (USE flags) was grub built
 with?

which of the grub USE flags do you think could cause this behavior?



Re: [gentoo-user] Why grub can't load win kernel

2011-10-05 Thread Jonas de Buhr
Am Wed, 5 Oct 2011 23:48:09 +0800
schrieb Lavender 448463...@qq.com:

 Sorry, I'm a gentoo newcomer, so I am totally not familar with this
 OS. Does USE make sense with grub ? And in the building there is no
 error, I had grub-install done. 

which was the *exact* commandline for grub-install? please copy it from
your shell history 

grep grub-install ~/.bash_history

and show us the output. also please send in the output of

fdisk -l

and your complete grub.conf

 Grub boot interface can show up , I
 can choose which OS to boot, but I couldn't boot win , what is the
 problem in your opinion? 
   -- Original --
   From:  Alan McKinnonalan.mckin...@gmail.com;
  Date:  Wed, Oct 5, 2011 11:39 PM
  To:  gentoo-usergentoo-user@lists.gentoo.org; 
  
  Subject:  Re: [gentoo-user] Why grub can't load win kernel
 
   
 On Wed, 5 Oct 2011 23:32:10 +0800
 Lavender 448463...@qq.com wrote:
 
  The configuration of win kernel in grub.conf is like below:

   rootnoverify (hd0,0)
   makeactive
   chainloader +1

   It worked yesterday , but after I rebuilding grub software, it
  can't work. I don't know why, it still can boot gentoo kernel, I am
  confused,because grub only can do operations to MBR, it can not
  influence contents on windows partition. I also tried boot manually
  in grub command interface, but after showing load stage2 it goes
  back to grub   I'm gonna pissed. I have many important
  things in windows system, will someone  figure it out?
 
 What version of grub, and what options (USE flags) was grub built
 with?
 
 Any errors from the build of grub?
 (check /var/log/portage/elog)
 
 Did you run grub-install like the ebuild tells you to do at the end?
 



Re: [gentoo-user] Is grub2 stable and who uses it?

2011-10-05 Thread Jonas de Buhr
Am Wed, 5 Oct 2011 09:20:07 -0700
schrieb ny6...@gmail.com:

   Why does Gentoo still 'standardize' on grub instead of going
   forward with grub2?
  
  Grub2 is weird (coming from anything that isn't grub2), and if you
  mess up the upgrade, you can't boot.
  
  It's a support nightmare.
  
 
 Wow - what an improvement. :|

if you mess up the bootloader you can't boot. thats trivial, easy to
solve and not at all related to grub2.
im not defending grub2 (the little i know about it is what has been
said here) but sometimes things indeed need to change in order to
improve. 



Re: [gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Canek Peláez Valdés
On Wed, Oct 5, 2011 at 6:55 AM, Grant Edwards grant.b.edwa...@gmail.com wrote:
 On 2011-10-04, Canek Pel??ez Vald??s can...@gmail.com wrote:
 On Tue, Oct 4, 2011 at 3:14 PM, Grant Edwards grant.b.edwa...@gmail.com 
 wrote:
 On 2011-10-04, Canek Pel??ez Vald??s can...@gmail.com wrote:
 On Tue, Oct 4, 2011 at 2:24 PM, Grant Edwards grant.b.edwa...@gmail.com 
 wrote:
 On 2011-10-04, Canek Pel??ez Vald??s can...@gmail.com wrote:

 Then any boot loader will need to call something to start it.
 Understand this: any Linux/Unix init system (systemd, SysV, Upstart,
 OpenRC) is simply a program... that the Linux kernel itself executes.

 I know. ??What I don't understand is the statement that grub2 calls (or
 connects to) the init system.

 That's the init= command line in the kernel.

 The bootloader calls an operating system. The init system (if at all)
 that the OS uses doesn't matter: so if you have an operating system,
 any bootloader should be able to boot it (bearing things like being
 able to understand the filesystem etc.)

 I know how bootloaders like LILO and grub-legacy work. ??What I don't
 understand is the statement that grub2 is somehow aware of the booted
 OS's init system.

 Oh. The configuration file of GRUB2 is autogenerated, and this means
 that the init=systemd has to be passed to the kernel line.

 In that sense, GRUB2 is aware of it.

 So to use grub2 you have to replace the normal init program that's
 started by the kernle as PID#1 with something else?

 No.

 I give up.  I've absolutely no idea what grub2 has to do with the OS's
 init system, and none of what you've written makes any sense to me.

Others explain it too. The GRUB2 bootloader has nothing to do with the
init system, except for passing thi init= command line, and it is not
required that it does.

The GRUB2 userspace, used to generate the config file, can be made
aware of what init system is to be used, making the bootloader to pass
the init= command line to the kernel.

That is all.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Canek Peláez Valdés
On Wed, Oct 5, 2011 at 7:46 AM, Grant Edwards grant.b.edwa...@gmail.com wrote:
 On 2011-10-05, Pandu Poluan pa...@poluan.info wrote:

 I give up.  I've absolutely no idea what grub2 has to do with the OS's
 init system, and none of what you've written makes any sense to me.

 I think what he meant was:

 I assume you mean PID#1 (typically /sbin/init).  On Unixes with PID#0,
 it's usually the swapper or scheduler task that's internal to the
 kernel.

 The *installer* portion of grub2 is aware of which pid#0 is running
 when it auto-creates the bootloader's configuration. That pid#0 is
 passed on to the kernel by the bootloader.

 OK.  I that I understand.  It seems a bit redundant to me: I've been
 running Linux since the 0.99 days and never had to pass init= to a
 kernel.  But, I guess it won't hurt anything...

 The *bootloader* portion of grub2 don't know and don't care what is
 being used as pid#0 by the OS. All it knows is that the installer
 portion has specified something to be passed to the OS. And that's
 what it does, without understanding anything about pid#0.

 And the set of init scripts that belong to grub2 are just to try to
 auto-magically generate the config file?

With options from /etc/default/grub, yes. But please stop calling the
files in /etc/grub.d init scripts. That's the whole reason I dragged
the init systems into the discussion: you said that GRUB2 got it's
own initsystem and it's own set of init scripts.

And it's simply not true. Maybe with the best of intentions, but
that's disinformation.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



[gentoo-user] Android 2.2 USB tethering?

2011-10-05 Thread Nilesh Govindarajan
**I'm a desktop user, so please don't suggest me wifi tethering.

Which module am I supposed to enable in the kernel to get my android
tablet usb tethering to work?
It's an olivepad (vt100 tablet, see
http://www.olivetelecom.in/laptop/olivepad/features.html)

Also, please tell me some Gentoo-specific guides on this if you know
them. Can't find any good info on search.

-- 
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Re: SERVFAIL with bind; problems in named.conf?

2011-10-05 Thread Andrey Moshbear
Bit by yet another EPERM :/



Re: [gentoo-user] Android 2.2 USB tethering?

2011-10-05 Thread David Abbott
http://forums.gentoo.org/viewtopic-t-843255.html
HTH,
David



[gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Grant Edwards
On 2011-10-05, Canek Pel??ez Vald??s can...@gmail.com wrote:

 And the set of init scripts that belong to grub2 are just to try to
 auto-magically generate the config file?

 With options from /etc/default/grub, yes. But please stop calling the
 files in /etc/grub.d init scripts.

I'm not calling those init scripts.  I'm referring to 

 /etc/init.d/grub-common

That's an executable /bin/sh shell script.  Don't know what that is
called if not an init script.

And then there are these (also /bin/sh scripts):
 
 /etc/grub.d/00_header
 /etc/grub.d/05_debian_theme
 /etc/grub.d/10_linux
 /etc/grub.d/20_memtest86+
 /etc/grub.d/30_os-prober
 /etc/grub.d/40_custom

I assumed these were also some sort of init scripts, but I don't
really know when they get executed.

 That's the whole reason I dragged the init systems into the
 discussion: you said that GRUB2 got it's own initsystem and it's own
 set of init scripts.

You forgot the part where I said at first glance under Ubuntu, it
appears that or somesuch.

 And it's simply not true. Maybe with the best of intentions, but
 that's disinformation.

To me, /etc/init.d/grub-common is an init script.

-- 
Grant Edwards   grant.b.edwardsYow! Excuse me, but didn't
  at   I tell you there's NO HOPE
  gmail.comfor the survival of OFFSET
   PRINTING?




[gentoo-user] Re: Hard drives not detected in repeatable order.

2011-10-05 Thread walt
On 10/05/2011 06:29 AM, Michael A. Koerber wrote:

 Just tried root=PARTUUID=  failed.  Checked my genblk.c and the
 changes don't appear in the 2.6.36 or 2.6.39 kernels on my system.
 When did (does) the PARTUUID syntax support get released?

This is very obscure and confusing if you don't already know the
history of that code.

You might think, as I did, that PARTUUID stands for the UUID of the
partition you're searching for -- not true :(

PARTUUID stands for Partition Table UUID, which is entirely different
from a Partition UUID.  Clear as mud, eh?

Only GUID/EFI partition tables have a UUID -- not DOS partition tables.

I posted a HOWTO on the subject here:

http://www.gossamer-threads.com/lists/gentoo/user/225071




Re: [gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Canek Peláez Valdés
On Wed, Oct 5, 2011 at 11:42 AM, Grant Edwards
grant.b.edwa...@gmail.com wrote:
 On 2011-10-05, Canek Pel??ez Vald??s can...@gmail.com wrote:

 And the set of init scripts that belong to grub2 are just to try to
 auto-magically generate the config file?

 With options from /etc/default/grub, yes. But please stop calling the
 files in /etc/grub.d init scripts.

 I'm not calling those init scripts.  I'm referring to

  /etc/init.d/grub-common

I don't have that file, and it's not because Gentoo removes it: it was
probably added by the Ubuntu developers.

 That's an executable /bin/sh shell script.  Don't know what that is
 called if not an init script.

But it's not part of GRUB2. If you had checked the project sources, or
the Gentoo ebuild, you would have realized that it is not a file from
the project.

 And then there are these (also /bin/sh scripts):

  /etc/grub.d/00_header
  /etc/grub.d/05_debian_theme
  /etc/grub.d/10_linux
  /etc/grub.d/20_memtest86+
  /etc/grub.d/30_os-prober
  /etc/grub.d/40_custom

 I assumed these were also some sort of init scripts, but I don't
 really know when they get executed.

That's the problem: you didn't know how the thing worked, and jumped
to conclusions.

 That's the whole reason I dragged the init systems into the
 discussion: you said that GRUB2 got it's own initsystem and it's own
 set of init scripts.

 You forgot the part where I said at first glance under Ubuntu, it
 appears that or somesuch.

You said that, but your next sentence was It's got it's own init
system and it's own set of init scripts, unequivocally.

 And it's simply not true. Maybe with the best of intentions, but
 that's disinformation.

 To me, /etc/init.d/grub-common is an init script.

Maybe in Ubunt (and maybe not: distros this days throw every kind of
scripts in /etc/init.d, and Gentoo does this too, BTW), but again you
only took a quick look at how it's set in another distro, and jumped
to say that the project as a whole (and not the config from a
particular distro) got it's own init system and it's own set of init
scripts. To me, that's the definition of spreading disinformation:
not looking for all the info, and stating that such and such is or is
not when it's simply not true.

It's the same history as the myth that /var will not longer be able to
be on its own partition: it keeps popping up in many threads, and it's
also simply not true.

Again, I don't think you did it on purpose with the intention of smear
GRUB2 (that was my with the best of intentions part), but *it is*
disinformation.

To finish: GRUB2 does not need or have init scripts, it doesn't have
it's own init system, and if your setup works with GRUB, it will work
in GRUB2, but you will probably need to learn a new way to configure
it. The other way around is not true: GRUB will not support all the
setups that GRUB2 will, unless someone steps up and writes the code
for it.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Why grub can't load win kernel

2011-10-05 Thread Alan McKinnon
On Wed, 5 Oct 2011 18:26:31 +0200
Jonas de Buhr jonas.de.b...@gmx.net wrote:

 Am Wed, 5 Oct 2011 17:39:59 +0200
 schrieb Alan McKinnon alan.mckin...@gmail.com:
 
  What version of grub, and what options (USE flags) was grub built
  with?
 
 which of the grub USE flags do you think could cause this behavior?
 

I have no idea.

I'm asking for full fault report information, mentioning everything 
I can think of that could be relevant. You know, the things one should
mention in the first post instead of stuff don't work. Why?


-- 
Alan McKinnnon
alan.mckin...@gmail.com



Re: [gentoo-user] Re: SERVFAIL with bind; problems in named.conf?

2011-10-05 Thread Alan McKinnon
On Wed, 5 Oct 2011 13:29:40 -0400
Andrey Moshbear andrey@gmail.com wrote:

 Bit by yet another EPERM :/
 

An EPERM you say? How ... fascinating.

Care to elaborate?

-- 
Alan McKinnnon
alan.mckin...@gmail.com



Re: [gentoo-user] Re: Is grub2 stable and who uses it?

2011-10-05 Thread Alan McKinnon
On Wed, 5 Oct 2011 12:10:45 -0700
Canek Peláez Valdés can...@gmail.com wrote:

 On Wed, Oct 5, 2011 at 11:42 AM, Grant Edwards
 grant.b.edwa...@gmail.com wrote:
  On 2011-10-05, Canek Pel??ez Vald??s can...@gmail.com wrote:
 
  And the set of init scripts that belong to grub2 are just to try
  to auto-magically generate the config file?
 
  With options from /etc/default/grub, yes. But please stop calling
  the files in /etc/grub.d init scripts.
 
  I'm not calling those init scripts.  I'm referring to
 
   /etc/init.d/grub-common
 
 I don't have that file, and it's not because Gentoo removes it: it was
 probably added by the Ubuntu developers.

True:

! /bin/sh
### BEGIN INIT INFO
# Provides:  grub-common
# Required-Start:$all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Record successful boot for GRUB
# Description:   GRUB displays the boot menu at the next boot if it
#believes that the previous boot failed. This script
#informs it that the system booted successfully.
### END INIT INFO




-- 
Alan McKinnnon
alan.mckin...@gmail.com



Re: [gentoo-user] Why grub can't load win kernel

2011-10-05 Thread Jonas de Buhr
Am Wed, 5 Oct 2011 21:20:07 +0200
schrieb Alan McKinnon alan.mckin...@gmail.com:

  which of the grub USE flags do you think could cause this behavior?
  
 
 I have no idea.
 
 I'm asking for full fault report information, mentioning everything 
 I can think of that could be relevant. You know, the things one should
 mention in the first post instead of stuff don't work. Why?
 
 

yeah, there could have been more info included...



Re: [gentoo-user] Why grub can't load win kernel

2011-10-05 Thread Mick
On Wednesday 05 Oct 2011 16:32:10 Lavender wrote:
 The configuration of win kernel in grub.conf is like below:
 
  rootnoverify (hd0,0)
  makeactive
  chainloader +1

Assuming that your MSWindows OS is on the first partition of the first (master) 
disk then the above is correct and grub should boot it fine;  i.e. MSWindows is 
on /dev/sda1


  It worked yesterday , but after I rebuilding grub software, it can't work.
 I don't know why, it still can boot gentoo kernel, I am confused,because
 grub only can do operations to MBR, it can not influence contents on
 windows partition.

This is not entirely correct.  GRUB will write its boot code where-ever *you* 
tell it to write it ...

For example if you installed it on MSWindows' partition - instead of the disk 
MBR - you will most likely not be able to boot MSWindows!  This is because you 
have overwritten the partition table with GRUB's code and GRUB cannot natively 
boot MSWindows.

If for example you ran:

  grub-install /dev/sda1

instead of the correct stanza of:

 grub-install /dev/sda

you would have written GRUB on the wrong place, the first partition boot 
record, instead of the disk's Master Boot Record.  Of course your old GRUB 
code in the MBR is still there and it happily boots Linux.


  I also tried boot manually in grub command interface, but after showing
 load stage2 it goes back to grub   I'm gonna pissed. I have
 many important things in windows system, will someone  figure it out?

Calm down.

Your data is still there.  Just the partition table has been overwritten - if 
indeed you typed the wrong device as I suspect above.  So the command you need 
is fixboot and you need to run this from a MSWindows installation CD/USB stick 
on the first partition.  

Have a look on the Internet for more details on the fixboot command and its 
modern equivalent (if you're running Windows7).  Also have a look on the 
Internet for MSWindows CDs or USB sticks to be able to run the command if you 
don't have one handy.

HTH.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: Hard drives not detected in repeatable order.

2011-10-05 Thread pk
On 2011-10-05 20:54, walt wrote:

 You might think, as I did, that PARTUUID stands for the UUID of the
 partition you're searching for -- not true :(
 
 PARTUUID stands for Partition Table UUID, which is entirely different
 from a Partition UUID.  Clear as mud, eh?

IMHO it does seem like a better solution with a file system independent
UUID... I only hope the implementation is good. :-/

 I posted a HOWTO on the subject here:
 
 http://www.gossamer-threads.com/lists/gentoo/user/225071

Thanks!

Best regards

Peter K



Re: [gentoo-user] Re: Hard drives not detected in repeatable order.

2011-10-05 Thread Paul Hartman
On Wed, Oct 5, 2011 at 1:54 PM, walt w41...@gmail.com wrote:
 On 10/05/2011 06:29 AM, Michael A. Koerber wrote:

 Just tried root=PARTUUID=  failed.  Checked my genblk.c and the
 changes don't appear in the 2.6.36 or 2.6.39 kernels on my system.
 When did (does) the PARTUUID syntax support get released?

 This is very obscure and confusing if you don't already know the
 history of that code.

 You might think, as I did, that PARTUUID stands for the UUID of the
 partition you're searching for -- not true :(

 PARTUUID stands for Partition Table UUID, which is entirely different
 from a Partition UUID.  Clear as mud, eh?

 Only GUID/EFI partition tables have a UUID -- not DOS partition tables.

 I posted a HOWTO on the subject here:

 http://www.gossamer-threads.com/lists/gentoo/user/225071

There were some patches posted a few months ago in LKML, not sure if
they are in mainline kernel yet, but they allowed for this syntax:

root=PARTUUID=UUID/PARTNROFF=%d

where %d is the partition number offset. Basically it lets you choose
the Nth partition within the specified partition table UUID.



Re: [gentoo-user] Re: Hard drives not detected in repeatable order.

2011-10-05 Thread Florian Philipp
Am 05.10.2011 20:54, schrieb walt:
 On 10/05/2011 06:29 AM, Michael A. Koerber wrote:
 
 Just tried root=PARTUUID=  failed.  Checked my genblk.c and the
 changes don't appear in the 2.6.36 or 2.6.39 kernels on my system.
 When did (does) the PARTUUID syntax support get released?
 
 This is very obscure and confusing if you don't already know the
 history of that code.
 
 You might think, as I did, that PARTUUID stands for the UUID of the
 partition you're searching for -- not true :(
 
 PARTUUID stands for Partition Table UUID, which is entirely different
 from a Partition UUID.  Clear as mud, eh?
 
 Only GUID/EFI partition tables have a UUID -- not DOS partition tables.
 
 I posted a HOWTO on the subject here:
 
 http://www.gossamer-threads.com/lists/gentoo/user/225071
 
 

Ah, bummer. It even reads so in the patch I've been posting here:
* The function will return the first partition which contains a matching
* UUID value in its partition_meta_info struct.  This does not search
* by filesystem UUIDs.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] 回复: [gentoo-user] Help!

2011-10-05 Thread Mick
On Wednesday 05 Oct 2011 17:20:02 Jonas de Buhr wrote:
 Hello Lavender,
 
 we are going to help you. So please relax, tell your mail client to
 wrap lines at 72 characters and use the reply button to answer.

... and also avoid top-posting if you can?

 For now, build a kernel with genkernel according to the handbook and
 stick to the rest of the hints you already got in the other replies.
 Save manual kernel building for later when you have more experience.

The modules problem is probably answered here:

http://www.gentoo.org/doc/en/openrc-migration.xml

openrc has changed the way the modules are specified.

Previous suggestions apply:  try to modprobe your wireless module and see if 
it loads.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: SERVFAIL with bind; problems in named.conf?

2011-10-05 Thread Andrey Moshbear
The zone file was 640 root:root. It should've been 640 root:named.



[gentoo-user] weird sound error in kde4

2011-10-05 Thread Doug Hunley
Whenever I launch kde (from startx) I get a message saying that 'sb
Live! 5.1 [SB0060] (rev.7, serial:0x80611102)' is disabled and it is
falling back to 'sb Live! 5.1 [SB0060]' . and then the 'kde
startup' sound plays and sound works perfectly. If I open
systemsettings and click 'multimedia' and then 'phonon' it shows both
of these devices with the former greyed out (it says 'this device is
currently not available' when you mouse over it).

Anyone know wtf is going on? Sound works perfectly in kde..



Re: [gentoo-user] weird sound error in kde4

2011-10-05 Thread Dale

Doug Hunley wrote:

Whenever I launch kde (from startx) I get a message saying that 'sb
Live! 5.1 [SB0060] (rev.7, serial:0x80611102)' is disabled and it is
falling back to 'sb Live! 5.1 [SB0060]' . and then the 'kde
startup' sound plays and sound works perfectly. If I open
systemsettings and click 'multimedia' and then 'phonon' it shows both
of these devices with the former greyed out (it says 'this device is
currently not available' when you mouse over it).

Anyone know wtf is going on? Sound works perfectly in kde..




I ran into this a good while back.  I deleted the config file then 
logged out and back in.  It fixed it and I haven't heard a peep out of 
it since.  The file should be this one and here:


/home/user name/.kde4/share/config/phonondevicesrc

Replace user name with your user name of course.

Hope that helps.

Dale

:-)  :-)



Re: [gentoo-user] Is grub2 stable and who uses it?

2011-10-05 Thread Peter Humphrey
On Wednesday 05 October 2011 17:47:21 Jonas de Buhr wrote:

 sometimes things indeed need to change in order to improve.

I remember things being improved. While I was in my 50s I was continually 
faced with youngsters' ideas for improving the company's methods. Stupid, 
every one. When challenged, they couldn't say how their proposed new 
solutions would lead to specified gains by anybody, but the changes were 
forced through anyway. This isn't get-up-and-go; it's I've-got-to-make-my-
mark.

Pathetic.

-- 
Rgds
Peter   Linux Counter 5290, 1994-04-23


Re: [gentoo-user] {OT} Computers and mental/emotional health

2011-10-05 Thread Grant
 Has anyone dealt with this successfully?  I'd love to
 know how you did it.


 You're right to worry about thisand I suspect it's also aging
 related.  The older I get, the more sensitive I am to how many
 hours/day is healthy.

 I don't think there is a perfect solution, especially as more and more
 important things in life require an internet device of some kind.
 It's not uncommon for me to spend 2-3hrs researching something, up to
 8hrs working, and then have 2 hrs of other emails/social/community
 stuff all in one day that involve computers.
 12 hours/day in a roughly fixed position indoors is never ever going
 to be healthy.  Especially if it must be kept up for years and years
 as one gets older.

 So, I've gathered ideas from others and have come up with my own
 recommendations:
 a) avoid going to the computer if you can be doing something else and
 don't need to be there (once I'm at a computer, there is always
 something that can make me stay there so avoiding being there in first
 place is important)
 b) stand up and take brief walks for whatever at least once/hour while working
 c) recent research suggests that taking vitamin d tablets starting in
 ones thirties can have a significant impact on relieving some of the
 sunlight/lack of being outdoor issues
 d) try to go to the gym or do some signficant exercise to start the
 day, this can possibly trick your metabolism to run faster all day
 long
 e) what many people do, I find, is simply have days where you don't
 touch the computer (briefly check cell phone but thats it)
 f) try to find something in your daily routine that will take you
 outdoors for at least an hour/day, preferably longer (can be harder
 for those of us who telecommute)
 g) try to build regular activities with your family/friends that
 involve outdoor recreation (build a home pool/take up swimming
 laps/etc)

 Nothing will completely remove the fact that modern life is
 increasingly unhealthy, but the above is at least a good start.

 Matt

Thanks to everyone for your feedback.  It's something I've struggled
with for a long time and it only seems to be getting worse.  It's
great to read what others have to say on the subject.  I'm amazed that
it isn't brought up more often.  I will be working with these new
ideas and will report back.

One thing I just tried today was turning down the brightness on my
screen and increasing the font size.  I think it helps.

- Grant



Re: [gentoo-user] Android 2.2 USB tethering?

2011-10-05 Thread Nilesh Govindarajan
On Wed 05 Oct 2011 11:12:19 PM IST, David Abbott wrote:
 http://forums.gentoo.org/viewtopic-t-843255.html
 HTH,
 David


Followed that guide step by step.
But still not configured, kernel logs say [134356.331426] usb 1-4: bad 
CDC descriptors
Any clue about this? I guess the device is at fault?

-- 
Nilesh Govindarajan
http://nileshgr.com