Re: [SOLVED] Re: [gentoo-user] Cannot emerge x11-libs/qt-webkit-4.6.2-r1

2010-05-13 Thread Alan McKinnon
On Thursday 13 May 2010 06:06:17 Walter Dnes wrote:
 On Mon, May 10, 2010 at 12:33:21AM +0100, Neil Bothwick wrote
 
  On Sun, 9 May 2010 18:28:31 -0400, Walter Dnes wrote:
 Ditto for setting MAKEOPTS to -j1.  Every once in a while, somebody
   
   runs into a problem that is solved by it.  I finally decided to let
   the builds take a little bit longer, in exchange for saving me problems
   with unreproducable errors.  This setting does not affect the final
   binary; just how long it takes to build.
  
  I can't recall the last time I needed to use MAKEOPTS=-j1, but if you
  do set it you can get back the time you lose by using the jobs option
  with emerge. That way you get parallel compilation, but of separate
  packages.
 
   Something just occured to me.  At the risk of sounding paranoid, is
 there an absolute guarantee that...
   - if package A has dependancies Y and Z...
   - the compile for A won't start before Y and Z are built and installed

Yes. This is easy to do, IIRC Python even ships with the necessary library 
routines for the data structures required.

One builds a data graph that represents dependencies, when finished you are 
guaranteed that if the graph is read from the bottom up then your conditions 
are met.

Elementary my dear Watson, we cover this in first year Comp Sci courses
 
   This could be especially ugly for my new system installs.  I usually
 install text-console mode only, followed by emerge gimp, which pulls
 in X and a whole bunch of other stuff as dependancies.  Portage handles
 this process very well right now.

It is this way because Gentoo is unusuable without it


-- 
alan dot mckinnon at gmail dot com



Re: [SOLVED] Re: [gentoo-user] Cannot emerge x11-libs/qt-webkit-4.6.2-r1

2010-05-13 Thread Neil Bothwick
On Thu, 13 May 2010 00:06:17 -0400, Walter Dnes wrote:

  I can't recall the last time I needed to use MAKEOPTS=-j1, but if you
  do set it you can get back the time you lose by using the jobs option
  with emerge. That way you get parallel compilation, but of separate
  packages.  
 
   Something just occured to me.  At the risk of sounding paranoid, is
 there an absolute guarantee that...
   - if package A has dependancies Y and Z...
   - the compile for A won't start before Y and Z are built and installed

Yes, and sometimes portage will only build one package before installing
the subsequent one. If a build fails, portage completes any other ongoing
emerges and then recalculates the dependencies, dropping any packages
that depend on the failed build.


-- 
Neil Bothwick

Windows Error:01F Reserved for future mistakes.


signature.asc
Description: PGP signature


[gentoo-user] S/MIME passphrase problem with Kleopatra

2010-05-13 Thread Mick
In the last two weeks I renewed an SSL certificate from Comodo for
email usage.  This time round Kleopatra is having problems with
recognising the passphrase I use.

I partially suspect a gnupg bug here probably relating to mime
characters, but I am not sure how to troubleshoot it.  This is a
sequence of events that show how the problem occurs:

I export the SSL cert from Firefox as a pkcs12 file.  It asks for a
passphrase to encrypt it with.  It will accept my passphrase and saves
the exported .p12 bundle as a file on my hard drive.  Then I try to
import this into Kleopatra.  This is what I have come across here:

If I have used a short passphrase when exporting from Firefox (say 8
characters long) there's no problem importing it into Kleopatra.
 If I use a long passphrase then it fails every time:

Please enter a passphrase to unprotect the PKCS#12 object.
p4ssPhr4se
An error occurred while trying to import the certificate - Decryption failed.

The log shows:
==
[2010-05-12T19:51:45] Log cleared
  6 - 2010-05-12 19:52:12 gpg-agent[13563]: failed to unprotect the
secret key: Bad passphrase
  6 - 2010-05-12 19:52:12 gpg-agent[13563]: failed to read the secret key
  6 - 2010-05-12 19:52:12 gpg-agent[13563]: command pksign failed: Bad
passphrase
  6 - 2010-05-12 19:52:12 gpg-agent[13563.6] DBG: - ERR 67108875 Bad
passphrase GPG Agent
  4 - 2010-05-12 19:52:12 gpgsm[16759]: error creating signature: Bad
passphrase GPG Agent
  4 - 2010-05-12 19:52:12 gpgsm[16759.0] DBG: - ERR 67108875 Bad
passphrase GPG Agent
  4 - 2010-05-12 19:52:12 gpgsm[16759.0] DBG: - BYE
  4 - 2010-05-12 19:52:12 gpgsm[16759.0] DBG: - OK closing connection
[client at fd 4 disconnected]
  5 - 2010-05-12 19:52:12 dirmngr[16760.0] DBG: - [EOF]
  6 - 2010-05-12 19:52:12 gpg-agent[13563.6] DBG: - [EOF]
  6 - 2010-05-12 19:52:12 gpg-agent[13563]: handler 0xbf04c0 for fd 6 terminated
[client at fd 5 disconnected]
==

Now, as I said above if I use a short passphrase to encrypt the
certificate bundle when exporting it from Firefox, I manage to import
it into Kleopatra and then I can re-encrypt it with either with the
same short passphrase or with a longer passphrase.  Kleopatra will
accept any length at that stage and import it happily.  However, even
if I import it into Kleopatra I can't use it thereafter!  Every time I
try to use it in Kmail to sign/encrypt/decrypt a message it will fail
when I enter the passphrase.  :-(

I have tried to convert the exported pkcs12 file into a pem bundle,
but Kleopatra then fails to import it right from the start with a BER
error - it doesn't even ask for a passphrase to decrypt it:
==
[2010-05-07T22:24:22] Log cleared
[client at fd 4 connected]
  4 - 2010-05-07 22:24:25 gpgsm[14692]: enabled debug flags: assuan
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - # Home: ~/.gnupg
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - # Config:
/home/michael/.gnupg/gpgsm.conf
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - # AgentInfo:
/tmp/gpg-yRFiu9/S.gpg-agent:13728:1
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - # DirmngrInfo: [not set]
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - OK GNU Privacy
Guard's S/M server 2.0.14 ready
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - OPTION display=:0.0
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - OK
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - OPTION enable-audit-log=1
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - OK
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - INPUT FD=21
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - OK
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - IMPORT
  4 - 2010-05-07 22:24:25 gpgsm[14692]: invalid radix64 character 2d skipped
  4 - 2010-05-07 22:24:25 gpgsm[14692]: invalid radix64 character 3a skipped
  4 - 2010-05-07 22:24:25 gpgsm[14692]: invalid radix64 character 2c skipped
  4 - 2010-05-07 22:24:25 gpgsm[14692]: invalid radix64 character 2d skipped
  4 - 2010-05-07 22:24:25 gpgsm[14692]: invalid radix64 character 3a skipped
  4 - 2010-05-07 22:24:25 gpgsm[14692]: invalid radix64 character 2d skipped
  4 - 2010-05-07 22:24:25 gpgsm[14692]: total number processed: 0
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - S IMPORT_RES 0 0 0 0
0 0 0 0 0 0 0 0 0 0
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - ERR 150995078 BER error KSBA
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - BYE
  4 - 2010-05-07 22:24:25 gpgsm[14692.0] DBG: - OK closing connection
[client at fd 4 disconnected]
==

Any idea why Kleopatra fails with this new Comodo certificate?  It
had/has no problem using the expired certificate by the same CA (of
course it is shown as expired now).  How could I troubleshoot this
thing?

Some things I have tried so far:

I have imported and used this SSL cert on a webmail client (Horde) and
had no problem with it.

I have also tried the same SSL cert on two different Gentoo PCs (one
x86 and 

Re: [gentoo-user] [SOLVED] xorg-server: Pressing 'down'/'right ctrl' keys yields newline

2010-05-13 Thread Amit Dor-Shifer



On 05/13/10 00:54, walt wrote:

On 05/12/2010 05:25 AM, Amit Dor-Shifer wrote:

Hi all.
After updating world, xorg-1.5.3-r6 to 1.7.6 among others, I'm now 
faced with a/m issue.

1. left ctrl key works fine, so does the down arrow key on the numpad.
2. Seems like the down key generates a double sequence: both the 
down event and a newline.


This doesn't happen in terminal mode, nor in firefox (3.6.3) or 
amarok, but does occur in konsole, thunderbird-bin, kwrite, oowriter 
 eclipse-3.5.


Attached is xorg log.

amit0 ~ # qlist -Iv hal
app-misc/hal-info-20090716
sys-apps/hal-0.5.13-r2

I've no idea how to proceed w/this. Any clues would be appreciated.


With every version of X11, the amount of stuff in xorg.conf gets less,
as part of the xorg design.  I can see from your xorg.log that you have
things in xorg.conf that shouldn't be there any longer.  Specifically,
you seem to be using the keyboard and mouse drivers *and* evdev at the
same time, which is wrong --  evdev has replaced the mouse and keyboard
drivers, and you don't need an Input device section for either of them
now.

I suggest you generate a new xorg.conf by running X -configure and
use the result as a good place to add a few custom things like these:
(**) Option xkb_layout en_US,ru
(**) Option xkb_variant ,winkeys
(**) Option xkb_options grp:shift_toggle,grp_led:scroll



Thanks. X -configure solved it.
As long as we're at the subject:Those options you're mentioning, would 
they go under the Keyboard0 device?

I Added some options there:
Section InputDevice
Identifier  Keyboard0
Driver  kbd
# added - begin
Option xkb_layout en_US,il
Option xkb_variant ,winkeys
Option xkb_options grp:rwin_toggle -option grp_led:scroll us,il
Option xkb_options grp:lwin_toggle -option grp_led:scroll us,il
# added - end
EndSection

, yet I don't see evidence of them getting read in Xorg.0.log.
Rather, I see the following:

Xorg.0.log
(II) XINPUT: Adding extended input device AT Translated Set 2 keyboard 
(type: KEYBOARD)

(**) Option xkb_rules evdev
(**) Option xkb_model pc104
(**) Option xkb_layout en_US,ru
(**) Option xkb_variant ,winkeys
(**) Option xkb_options grp:shift_toggle,grp_led:scroll
/Xorg.0.log

Also, X complains (WW) The directory /usr/share/fonts/TTF/ does not 
exist., I actually removed that reference from /etc/x11/xorg.conf. Yes 
it still insists on reading it.


Is there some cfg cache used by X, perhaps?

Amit

X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.30-gentoo-r4 x86_64 
Current Operating System: Linux amit0 2.6.32-gentoo-r7 #1 SMP Mon May 10 
22:08:41 IDT 2010 x86_64
Kernel command line: root=/dev/ram0 init=/linuxrc real_root=/dev/sda3
Build Date: 10 May 2010  12:28:34PM
 
Current version of pixman: 0.17.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Thu May 13 13:10:00 2010
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout X.org Configured
(**) |--Screen Screen0 (0)
(**) |   |--Monitor Monitor0
(**) |   |--Device Card0
(**) |--Input Device Mouse0
(**) |--Input Device Keyboard0
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory /usr/share/fonts/TTF/ does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/OTF does not exist.
Entry deleted from font path.
(**) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/,
/usr/share/fonts/misc/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
(**) ModulePath set to /usr/lib64/xorg/modules
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' 
will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(II) Loader magic: 0x7bc200
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 6.0
X.Org XInput driver : 7.0
X.Org Server Extension : 2.0
(--) using VT number 7

(--) PCI: (0:0:1:3) 10de:03f4:1043:8234 nVidia Corporation MCP61 SMU rev 162, 
Mem @ 0x8000/524288
(--) PCI:*(0:2:0:0) 10de:0163:107d:0d51 nVidia Corporation NV44 [GeForce 6200 
LE] rev 161, Mem @ 0xdf00/16777216, 0xc000/268435456, 
0xde00/16777216, BIOS @ 0x/131072
(II) Open ACPI successful (/var/run/acpid.socket)
(II) extmod will be loaded. This was enabled by default and also specified in 
the config file.
(II) dbe will be loaded. This was enabled by default and also specified in 
the config file.
(II) glx will be loaded. This was enabled by default and also specified in 
the 

Re: [gentoo-user] Re: Boot gentoo with GTP Disk label

2010-05-13 Thread Stroller


On 12 May 2010, at 23:22, walt wrote:

On 05/08/2010 07:16 AM, claude angéloz wrote:

...
I installed a gentoo on a very recent system  (efi support) ...
I know that it is not required  an  efi partiton to boot the os with
pc/bios and gpt disk. Or is it false ?


I guarantee that some smart geek here will know how to do it, though  
you

may need to search around for the appropriate forum:

http://www.boot-land.net/forums/

BTW, why do you want to use gpt on a laptop?


I assumed it was a MacBook or a Hackintosh.

Stroller.




[gentoo-user] Re: [SOLVED] xorg-server: Pressing 'down'/'right ctrl' keys yields newline

2010-05-13 Thread walt

On 05/13/2010 03:22 AM, Amit Dor-Shifer wrote:



On 05/13/10 00:54, walt wrote:

On 05/12/2010 05:25 AM, Amit Dor-Shifer wrote:

Hi all.
After updating world, xorg-1.5.3-r6 to 1.7.6 among others, I'm now faced with 
a/m issue.
1. left ctrl key works fine, so does the down arrow key on the numpad.
2. Seems like the down key generates a double sequence: both the down event 
and a newline.
I've no idea how to proceed w/this. Any clues would be appreciated.


With every version of X11, the amount of stuff in xorg.conf gets less,
as part of the xorg design. I can see from your xorg.log that you have
things in xorg.conf that shouldn't be there any longer. Specifically,
you seem to be using the keyboard and mouse drivers *and* evdev at the
same time, which is wrong -- evdev has replaced the mouse and keyboard
drivers, and you don't need an Input device section for either of them
now.


I should have said *I* don't need an Input device section any more :)

Actually I moved some of my custom stuff from xorg.conf to the hal config
files -- but hal is deprecated now and I should it back to xorg.conf again.
Thanks for the reminder.


I suggest you generate a new xorg.conf by running X -configure and
use the result as a good place to add a few custom things like these:
(**) Option xkb_layout en_US,ru
(**) Option xkb_variant ,winkeys
(**) Option xkb_options grp:shift_toggle,grp_led:scroll



Thanks. X -configure solved it.
As long as we're at the subject:Those options you're mentioning, would they go under the 
Keyboard0 device?
I Added some options there:
Section InputDevice
Identifier Keyboard0

  Driver kbd*** kbd driver is obsolete, use evdev or just 
delete this line

# added - begin
Option xkb_layout en_US,il
Option xkb_variant ,winkeys
Option xkb_options grp:rwin_toggle -option grp_led:scroll us,il
Option xkb_options grp:lwin_toggle -option grp_led:scroll us,il
# added - end
EndSection

, yet I don't see evidence of them getting read in Xorg.0.log.
Rather, I see the following:

Xorg.0.log
(II) XINPUT: Adding extended input device AT Translated Set 2 keyboard (type: 
KEYBOARD)
(**) Option xkb_rules evdev
(**) Option xkb_model pc104
(**) Option xkb_layout en_US,ru
(**) Option xkb_variant ,winkeys
(**) Option xkb_options grp:shift_toggle,grp_led:scroll
/Xorg.0.log


See my comment above.  Don't use the kbd driver.  Xorg seems to use evdev by 
default now
instead of kbd and mouse.

The (**) means that X is reading those lines from xorg.conf.  Are you sure you 
are really
using the new xorg.conf and not the old one by mistake?  Xorg.log tells you 
which conf file
it is reading.


Also, X complains (WW) The directory /usr/share/fonts/TTF/ does not exist., 
I actually removed that reference from /etc/x11/xorg.conf. Yes it still insists on reading it.

Is there some cfg cache used by X, perhaps?


Depending on your configuration, there may be some font and/or keyboard stuff 
in your own
home directory.  You may need to search or grep some subdirectories to find it 
if it's not
obvious.




[gentoo-user] Previous system uptime - not Gentoo specific

2010-05-13 Thread John J. Foster
I lost utility power for 2 hours today while at work (on my home
machine). UPS probably help for 20 minutes, or so. Just out of
curiousity, is there a way to determine previous system uptime. I know I
was getting close to 11 months, which would be a record for me.

Thanks,
festus

-- 
It is not unusual for those at the wrong end of the club to have a
clearer picture of reality than those who wield it.
  Noam Chomsky


pgpR3tzbGzpCB.pgp
Description: PGP signature


Re: [gentoo-user] Re: Boot gentoo with GTP Disk label

2010-05-13 Thread Mick
On Thursday 13 May 2010 22:08:44 Stroller wrote:
 On 12 May 2010, at 23:22, walt wrote:
  On 05/08/2010 07:16 AM, claude angéloz wrote:
  ...
  I installed a gentoo on a very recent system  (efi support) ...
  I know that it is not required  an  efi partiton to boot the os with
  pc/bios and gpt disk. Or is it false ?
 
  I guarantee that some smart geek here will know how to do it, though
  you
  may need to search around for the appropriate forum:
 
  http://www.boot-land.net/forums/
 
  BTW, why do you want to use gpt on a laptop?
 
 I assumed it was a MacBook or a Hackintosh.

I'm sure I've seen a Sony laptop running Vista that had an EFI boot.  I assume 
that this means it also had a GPT partition system?

-- 
Regards,
Mick


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


Re: [gentoo-user] Previous system uptime - not Gentoo specific

2010-05-13 Thread Alex Schuster
John J. Foster writes:

 I lost utility power for 2 hours today while at work (on my home
 machine). UPS probably help for 20 minutes, or so. Just out of
 curiousity, is there a way to determine previous system uptime. I know
 I was getting close to 11 months, which would be a record for me.

The system logs boot and login dates in /var/log/wtmp, the last command 
shows the content of this binary file.

last | grep system boot | head

Hope you broke the record,
Wonko



Re: [gentoo-user] Previous system uptime - not Gentoo specific

2010-05-13 Thread John J. Foster
On Fri, May 14, 2010 at 01:02:01AM +0200, Alex Schuster wrote:
 John J. Foster writes:
 
  I lost utility power for 2 hours today while at work (on my home
  machine). UPS probably help for 20 minutes, or so. Just out of
  curiousity, is there a way to determine previous system uptime. I know
  I was getting close to 11 months, which would be a record for me.
 
 The system logs boot and login dates in /var/log/wtmp, the last command 
 shows the content of this binary file.
 
 last | grep system boot | head
 
   Hope you broke the record,
   Wonko
 
fes...@localhost ~ $ last | grep system boot   
reboot   system boot  2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30  (00:51)

OK, so after looking at man last, I tried

fes...@localhost ~ $ last reboot
reboot   system boot  2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30  (00:51)

wtmp begins Sat May  1 08:23:36 2010

which doesn't really help much.

Any other ideas,
festus
-- 
It is not unusual for those at the wrong end of the club to have a
clearer picture of reality than those who wield it.
  Noam Chomsky


pgpOB0O11vdoL.pgp
Description: PGP signature


[gentoo-user] Re: Boot gentoo with GTP Disk label

2010-05-13 Thread walt

On 05/13/2010 03:12 PM, Mick wrote:

On Thursday 13 May 2010 22:08:44 Stroller wrote:

On 12 May 2010, at 23:22, walt wrote:

On 05/08/2010 07:16 AM, claude angéloz wrote:

...
I installed a gentoo on a very recent system  (efi support) ...
I know that it is not required  an  efi partiton to boot the os with
pc/bios and gpt disk. Or is it false ?


I guarantee that some smart geek here will know how to do it, though
you
may need to search around for the appropriate forum:

http://www.boot-land.net/forums/

BTW, why do you want to use gpt on a laptop?


I assumed it was a MacBook or a Hackintosh.


I'm sure I've seen a Sony laptop running Vista that had an EFI boot.  I assume
that this means it also had a GPT partition system?


Hm.  The major benefit of GPT (IIUC) is support for 2TB partitions,

AFAIK most laptops don't (yet) have 2TB disks, which is why Vista is a poor
choice for laptops.  Vista needs most of a terabyte after installing all the
bug fixes and service packs -- and then you might want to consider installing
some programs.  It adds up fast!




Re: [gentoo-user] Previous system uptime - not Gentoo specific

2010-05-13 Thread John J. Foster
On Thu, May 13, 2010 at 05:18:08PM -0600, John J. Foster wrote:
 On Fri, May 14, 2010 at 01:02:01AM +0200, Alex Schuster wrote:
  John J. Foster writes:
  
   I lost utility power for 2 hours today while at work (on my home
   machine). UPS probably help for 20 minutes, or so. Just out of
   curiousity, is there a way to determine previous system uptime. I know
   I was getting close to 11 months, which would be a record for me.
  
  The system logs boot and login dates in /var/log/wtmp, the last command 
  shows the content of this binary file.
  
  last | grep system boot | head
  
  Hope you broke the record,
  Wonko
  
 fes...@localhost ~ $ last | grep system boot   
 reboot   system boot  2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30  (00:51)
 
 OK, so after looking at man last, I tried
 
 fes...@localhost ~ $ last reboot
 reboot   system boot  2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30  (00:51)
 
 wtmp begins Sat May  1 08:23:36 2010
 
 which doesn't really help much.
 
 Any other ideas,
 festus

Damn - log-rotate cleans wtmp monthly

 -- 
 It is not unusual for those at the wrong end of the club to have a
 clearer picture of reality than those who wield it.
   Noam Chomsky



-- 
It is not unusual for those at the wrong end of the club to have a
clearer picture of reality than those who wield it.
  Noam Chomsky


pgpC7eePbIwir.pgp
Description: PGP signature


Re: [gentoo-user] Previous system uptime - not Gentoo specific

2010-05-13 Thread Alex Schuster
John J. Foster writes:

  Hope you broke the record,
  Wonko
 
 fes...@localhost ~ $ last | grep system boot
 reboot   system boot  2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30 
 (00:51)
 
 OK, so after looking at man last, I tried
 
 fes...@localhost ~ $ last reboot
 reboot   system boot  2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30 
 (00:51)
 
 wtmp begins Sat May  1 08:23:36 2010
 
 which doesn't really help much.

Strange. My wtmps are quite older:

wo...@zone ~ $ last -F  |tail -n 3
reboot   system boot  2.4.18-xfs   Sat Jul 13 00:08:20 2002 - Sun Jul 
14 02:53:25 2002 (1+02:45)   

wtmp begins Sat Jul 13 00:08:20 2002

 Any other ideas,

You could wait with your next reboot until May next year. Then it would no 
longer matter much as you broke the record anyway.

Wonko



[gentoo-user] identical drives, different free space!

2010-05-13 Thread Iain Buchanan
Hi,

I have two 160Gb drives, one internal and one USB.  I've partitioned
them the same and created an identical filesystem on the USB drive for
backing up my internal drive.

I'm using the following rsync command to make the backup:
sudo /usr/bin/ionice -c 3 /usr/bin/rsync -aAx --exclude suspend_file
--delete --delete-excluded --partial
--human-readable / /media/root-backup

however, after running this command sporadically for a few days, the USB
partition is now full, whereas my root partition isn't!

sda is internal, and sdd is external.  sda7 is the one I'm interested
in:

$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0080

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   1  11   883266  FAT16
/dev/sda2   *  12487539070080b  W95 FAT32
/dev/sda348764888  104422+  83  Linux
/dev/sda44889   19457   117025492+   5  Extended
/dev/sda54889732119543041   83  Linux
/dev/sda673227384  506016   83  Linux
/dev/sda77385   1945796976341   83  Linux

Disk /dev/sdd: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5d5d0036

   Device Boot  Start End  Blocks   Id  System
/dev/sdd1   1  11   883266  FAT16
/dev/sdd2  12487539070080b  W95 FAT32
/dev/sdd348764888  104422+  83  Linux
/dev/sdd44889   19457   117025492+   5  Extended
/dev/sdd54889732119543041   83  Linux
/dev/sdd673227384  506016   83  Linux
/dev/sdd77385   1945796976341   83  Linux

I just deleted a bunch of /var/tmp and distfiles to free up some space,
and ran the rsync again.  Now it looks like this:

$ df -h
FilesystemSize  Used Avail Use% Mounted on
rootfs 92G   81G  6.1G  93% /
/dev/sdd7  92G   89G  4.6M 100% /media/root-backup

/dev/sda3  99M   39M   55M  42% /boot
/dev/sdd3  99M   39M   55M  42% /media/boot-backup

I'm doing the /root backup from cron, but the /boot backup manually when
I make changes.

I thought perhaps the ext3 options were different (ie. different amount
of reserved space) but that would make the Avail columns different,
and shouldn't make the Used columns different.

any thoughts as to why my USB partition is full?  thanks,
-- 
Iain Buchanan iaindb at netspace dot net dot au

Most people have two reasons for doing anything -- a good reason, and
the real reason.




Re: [gentoo-user] Previous system uptime - not Gentoo specific

2010-05-13 Thread Dale

John J. Foster wrote:

On Thu, May 13, 2010 at 05:18:08PM -0600, John J. Foster wrote:
   

On Fri, May 14, 2010 at 01:02:01AM +0200, Alex Schuster wrote:
 

John J. Foster writes:

   

I lost utility power for 2 hours today while at work (on my home
machine). UPS probably help for 20 minutes, or so. Just out of
curiousity, is there a way to determine previous system uptime. I know
I was getting close to 11 months, which would be a record for me.
 

The system logs boot and login dates in /var/log/wtmp, the last command
shows the content of this binary file.

last | grep system boot | head

Hope you broke the record,
Wonko

   

fes...@localhost ~ $ last | grep system boot
reboot   system boot  2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30  (00:51)

OK, so after looking at man last, I tried

fes...@localhost ~ $ last reboot
reboot   system boot  2.6.28-gentoo-r5 Thu May 13 16:39 - 17:30  (00:51)

wtmp begins Sat May  1 08:23:36 2010

which doesn't really help much.

Any other ideas,
festus
 

Damn - log-rotate cleans wtmp monthly

   

--
It is not unusual for those at the wrong end of the club to have a
clearer picture of reality than those who wield it.
   Noam Chomsky
 


This is mine:

r...@smoker ~ # last | grep boot
reboot   system boot  2.6.30-gentoo-r8 Sun May  9 20:51 - 20:56 (4+00:05)
reboot   system boot  2.6.30-gentoo-r8 Sun May  9 03:49 - 19:21  (15:31)
reboot   system boot  2.6.30-gentoo-r8 Mon May  3 17:29 - 14:48 (4+21:18)
r...@smoker ~ #

Isn't the last part of the line the uptime?  I haven't done the math to 
say that it is, just curious.  Also, I have logrotate set to rotate 
mine.  I delete them after a while or when I need disk space.  They do 
consume space after a while.


Dale

:-)  :-)



Re: [gentoo-user] identical drives, different free space!

2010-05-13 Thread Kaddeh
Are you doing a full recursive copy of / from rootfs for sdd7 (aka cp -r /)
if so, are the other partitions mounted as well?

Cheers

Kad

On Thu, May 13, 2010 at 6:51 PM, Iain Buchanan iai...@netspace.net.auwrote:

 Hi,

 I have two 160Gb drives, one internal and one USB.  I've partitioned
 them the same and created an identical filesystem on the USB drive for
 backing up my internal drive.

 I'm using the following rsync command to make the backup:
 sudo /usr/bin/ionice -c 3 /usr/bin/rsync -aAx --exclude suspend_file
 --delete --delete-excluded --partial
 --human-readable / /media/root-backup

 however, after running this command sporadically for a few days, the USB
 partition is now full, whereas my root partition isn't!

 sda is internal, and sdd is external.  sda7 is the one I'm interested
 in:

 $ sudo fdisk -l

 Disk /dev/sda: 160.0 GB, 160041885696 bytes
 255 heads, 63 sectors/track, 19457 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x0080

   Device Boot  Start End  Blocks   Id  System
 /dev/sda1   1  11   883266  FAT16
 /dev/sda2   *  12487539070080b  W95 FAT32
 /dev/sda348764888  104422+  83  Linux
 /dev/sda44889   19457   117025492+   5  Extended
 /dev/sda54889732119543041   83  Linux
 /dev/sda673227384  506016   83  Linux
 /dev/sda77385   1945796976341   83  Linux

 Disk /dev/sdd: 160.0 GB, 160041885696 bytes
 255 heads, 63 sectors/track, 19457 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x5d5d0036

   Device Boot  Start End  Blocks   Id  System
 /dev/sdd1   1  11   883266  FAT16
 /dev/sdd2  12487539070080b  W95 FAT32
 /dev/sdd348764888  104422+  83  Linux
 /dev/sdd44889   19457   117025492+   5  Extended
 /dev/sdd54889732119543041   83  Linux
 /dev/sdd673227384  506016   83  Linux
 /dev/sdd77385   1945796976341   83  Linux

 I just deleted a bunch of /var/tmp and distfiles to free up some space,
 and ran the rsync again.  Now it looks like this:

 $ df -h
 FilesystemSize  Used Avail Use% Mounted on
 rootfs 92G   81G  6.1G  93% /
 /dev/sdd7  92G   89G  4.6M 100% /media/root-backup

 /dev/sda3  99M   39M   55M  42% /boot
 /dev/sdd3  99M   39M   55M  42% /media/boot-backup

 I'm doing the /root backup from cron, but the /boot backup manually when
 I make changes.

 I thought perhaps the ext3 options were different (ie. different amount
 of reserved space) but that would make the Avail columns different,
 and shouldn't make the Used columns different.

 any thoughts as to why my USB partition is full?  thanks,
 --
 Iain Buchanan iaindb at netspace dot net dot au

 Most people have two reasons for doing anything -- a good reason, and
 the real reason.





Re: [gentoo-user] identical drives, different free space!

2010-05-13 Thread Iain Buchanan
On Thu, 2010-05-13 at 20:22 -0700, Kaddeh wrote:
 Are you doing a full recursive copy of / from rootfs for sdd7 (aka cp
 -r /) if so, are the other partitions mounted as well?

[snip]

yes, but the rsync command -x or --one-file-system should stop rsync
traversing to different mounts so (I hope) this should only copy the one
partition.

thanks,
-- 
Iain Buchanan iaindb at netspace dot net dot au

When you have eliminated the impossible, whatever remains, however improbable,
must be the truth.
-- Sherlock Holmes, The Sign of Four