[gentoo-user] Re: Encrypted backups under Gentoo

2008-04-19 Thread Remy Blank
  - If your local backup becomes corrupt, then so does your remote 
backup, except if you are quick enough to disable the rsync step.


That's why I use rdiff-backup.


Yes, me too, but *inside* the encrypted container.

  - If you have disconnection during the rsync step (happened to me last 
night), your remote backup is temporarily corrupted.


Shouldn't rsync do this on its own? There is an option --inplace
described with:

This causes rsync not to create a new copy of the file and then move it
into place.  Instead rsync  will  overwrite  the existing  file,
meaning that the rsync algorithm can't accomplish the full amount of
network reduction it might be able to otherwise (since it does not yet
try to sort data matches).  One exception to this is if you combine the
option  with --backup, since rsync is smart enough to use the backup
file as the basis file for the transfer.
This  option  is  useful for transfer of large files with block-based
changes or appended data, and also on systems that are disk bound, not
network bound.

The option implies --partial (since an interrupted transfer does not
delete the file), but conflicts with  --partial-dir and --delay-updates.
Prior to rsync 2.6.4 --inplace was also incompatible with --compare-dest
and --link-dest.

WARNING:  The  file's  data will be in an inconsistent state during the
transfer (and possibly afterward if the transfer gets interrupted), so

^^^

you should not use this option to update files that are in use.  Also
note  that  rsync  will be unable to update a file in-place that is not
writable by the receiving user.


Yes, I use --inplace, but it will still leave the remote backup 
inconsistent in case of an interrupted transfer. And not using it is not 
an option for a 25GB file (and paying for capacity on the receiving end).


-- Remy



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: Encrypted backups under Gentoo

2008-04-19 Thread Remy Blank

Neil Bothwick wrote:
  - If your local backup becomes corrupt, then so does your remote 
backup, except if you are quick enough to disable the rsync step.


That's a potential problem with any form of backup, local or remote. The
truly paranoid would use two different backup methods on two physically
separate destinations.


Well, it's not quite the same. In the 2-step case (local backup, e.g. 
using rdiff-backup, followed by an rsync of the backup to a remote 
location), if your local backup gets corrupted, then so does your remote 
one.


If you just do two independent backups, even with the same method, one 
locally and the second remotely, if one gets corrupted, chances are the 
other one is still ok.



  - If you have disconnection during the rsync step (happened to me
last night), your remote backup is temporarily corrupted.


That should be fixable by having the script that runs rsync check the
return value and try again if it fails.


You're right, of course. I would still be more comfortable keeping the 
window of vulnerability (the time for which the remote file is 
inconsistent) as small as possible, and independent of network 
connectivity. That's why I was thinking in the lines of calculate diff, 
send diff and store remotely, update remote copy when connection has 
closed.


-- Remy



signature.asc
Description: OpenPGP digital signature


[gentoo-user] KDE slow shutdown

2008-04-19 Thread Mick
Hi All,

I have noticed that a box running pretty much vanilla KDE is taking an awful 
long time to exit the KDE session when I shutdown.  Couldn't find anything in 
the logs.  How could I troubleshoot it?
-- 
Regards,
Mick


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


[gentoo-user] module in use - by who?

2008-04-19 Thread Mark Knecht
In general, is there an easy way to determine what is using a module?
For instance, if I do lsmod and see that a module is in use by one
process, how do I tell which process that might be?

Thanks,
Mark
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] gpgsm is giving me a headache

2008-04-19 Thread Mick
Hi All,

I am trying to import an SSL certificate into gpgsm/kleopatra and I cannot 
seem to be able to make it work:

1. Trying the CLI gives me:
=
$ 
gpgsm --import 
/media/sda/Personal/OpenSSL/Comodo/michael_email_comodo_080419.p12 
gpgsm: gpgsm: GPG_TTY has not been set - using maybe bogus default
gpgsm: gpg-protect-tool: 1224 bytes of 3DES encrypted text
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-1'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-15'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-2'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-3'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-4'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-5'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-6'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-7'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-8'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-9'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `KOI8-R'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `IBM437'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `IBM850'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `EUC-JP'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: decryption failed; trying charset `BIG5'
gpgsm: gpg-protect-tool: password too long
gpgsm: gpg-protect-tool: data error at decrypted-text, offset 2951359603
gpgsm: gpg-protect-tool: error at bag-sequence, offset 15
gpgsm: gpg-protect-tool: error parsing or decrypting the PKCS-12 file
gpgsm: error running `/usr/libexec/gpg-protect-tool': exit status 2
gpgsm: total number processed: 0
secmem usage: 0/16384 bytes in 0 blocks
=

If I import/export the cert from Firefox, then I can import it in Konqueror.  
However, when I try to import it in Kleopatra it fails after I enter my cert 
passphrase.  I managed to import the cert in Kleopatra without the private 
key.  As you understand that's no good for me because I cannot sign emails 
with it (it doesn't show up on the list of certs).

Any ideas how I could make this work?  I can't recall having such problems 
with the CACert.org certificates (or if I did I can't recall what's the 
fix!).
-- 
Regards,
Mick
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: gpgsm is giving me a headache

2008-04-19 Thread Mick
On Saturday 19 April 2008, Mick wrote:
 Hi All,

 I am trying to import an SSL certificate into gpgsm/kleopatra and I cannot
 seem to be able to make it work:

 1. Trying the CLI gives me:
 =
 $
 gpgsm --import
 /media/sda/Personal/OpenSSL/Comodo/michael_email_comodo_080419.p12 gpgsm:
 gpgsm: GPG_TTY has not been set - using maybe bogus default gpgsm:
 gpg-protect-tool: 1224 bytes of 3DES encrypted text
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-1'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-15'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-2'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-3'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-4'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-5'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-6'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-7'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-8'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `ISO-8859-9'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `KOI8-R'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `IBM437'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `IBM850'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `EUC-JP'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: decryption failed; trying charset `BIG5'
 gpgsm: gpg-protect-tool: password too long
 gpgsm: gpg-protect-tool: data error at decrypted-text, offset 2951359603
 gpgsm: gpg-protect-tool: error at bag-sequence, offset 15
 gpgsm: gpg-protect-tool: error parsing or decrypting the PKCS-12 file
 gpgsm: error running `/usr/libexec/gpg-protect-tool': exit status 2
 gpgsm: total number processed: 0
 secmem usage: 0/16384 bytes in 0 blocks
 =

 If I import/export the cert from Firefox, then I can import it in
 Konqueror. However, when I try to import it in Kleopatra it fails after I
 enter my cert passphrase.  I managed to import the cert in Kleopatra
 without the private key.  As you understand that's no good for me because I
 cannot sign emails with it (it doesn't show up on the list of certs).

 Any ideas how I could make this work?  I can't recall having such problems
 with the CACert.org certificates (or if I did I can't recall what's the
 fix!).

There seem to be two problems with gpgsm, probably bugs - or perhaps design 
limitations?

1. gpgsm cannot import the complete pkcs12 bundle.  This needs to be broken 
down and imported separately as the public key (cert) and the private key.  
Whether this compromises safety (having an unencrypted private key on your 
drive) is a moot point, but makes me think that GnuPG is a much better 
solution than SSL certs for emails at least.
2. Long passphrases seem to generate the above error.  So, if you come across 
the same error try generating your key with a smaller passpphrase, or edit it 
with openssl pkcs options.

HTH.
-- 
Regards,
Mick


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


Re: [gentoo-user] KDE slow shutdown

2008-04-19 Thread Volker Armin Hemmann
On Samstag, 19. April 2008, Mick wrote:
 Hi All,

 I have noticed that a box running pretty much vanilla KDE is taking an
 awful long time to exit the KDE session when I shutdown.  Couldn't find
 anything in the logs.  How could I troubleshoot it?

lsof grep can tell you which files are accessed. Maybe it takes a looong time 
writing to kdm.log (something that sometimes make my shutdowns extremely 
slow).
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Need simple smtp sendmail

2008-04-19 Thread Grant Edwards
On 2008-04-18, Neil Bothwick [EMAIL PROTECTED] wrote:

 It's been three years since I last set up mail on my
 workstation which I'm replacing after a motherboard failure.
 One of the pieces I'm missing is what do I need to allow
 processes like portage and mdadm send notification messages to
 my email account.  IIRC, I had something that just forwarded
 smtp mail to my public account.

 mail-mta/ssmtp, which is generally installed by default.

Or, if you need to support multiple e-mail accounts: mail-mta/msmtp.

It's just as simple to set up as ssmtp, but allows per-user
configuration, and each user can configure multiple accounts.

-- 
Grant Edwards   grante Yow!  I'd like MY data-base
  at   JULIENNED and stir-fried!
   visi.com

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] KDE slow shutdown

2008-04-19 Thread Mick
On Saturday 19 April 2008, Volker Armin Hemmann wrote:
 On Samstag, 19. April 2008, Mick wrote:
  Hi All,
 
  I have noticed that a box running pretty much vanilla KDE is taking an
  awful long time to exit the KDE session when I shutdown.  Couldn't find
  anything in the logs.  How could I troubleshoot it?

 lsof grep can tell you which files are accessed. Maybe it takes a looong
 time writing to kdm.log (something that sometimes make my shutdowns
 extremely slow).

Thanks Volker,

How do you mean I need to run lsof?  Use Ctrl+Alt+F1 to switch to a console 
quickly while KDE is shutting down and run it from there, or run something in 
the background?
-- 
Regards,
Mick


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


Re: [gentoo-user] KDE slow shutdown

2008-04-19 Thread Volker Armin Hemmann
On Samstag, 19. April 2008, Mick wrote:
 On Saturday 19 April 2008, Volker Armin Hemmann wrote:
  On Samstag, 19. April 2008, Mick wrote:
   Hi All,
  
   I have noticed that a box running pretty much vanilla KDE is taking an
   awful long time to exit the KDE session when I shutdown.  Couldn't find
   anything in the logs.  How could I troubleshoot it?
 
  lsof grep can tell you which files are accessed. Maybe it takes a looong
  time writing to kdm.log (something that sometimes make my shutdowns
  extremely slow).

 Thanks Volker,

 How do you mean I need to run lsof?  Use Ctrl+Alt+F1 to switch to a console
 quickly while KDE is shutting down and run it from there,

exactly - and you do have to do it as root ;)

lsof shows the open files. In my case, when shutting down hangs for ages it is 
always shutdown accessing kdm.log. But that is only my problem - your problem 
might me be something completly different. Are you saving sessions?

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] KDE slow shutdown

2008-04-19 Thread Norberto Bensa

Quoting Mick [EMAIL PROTECTED]:


Hi All,

I have noticed that a box running pretty much vanilla KDE is taking an awful
long time to exit the KDE session when I shutdown.  Couldn't find anything in



If you use Kopete, check if you have statistics plugin enabled. If so,  
disable it.



HTH,
Norberto



This message was sent using IMP, the Internet Messaging Program.


--
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Mark Knecht
I have a little Mac Mini  - my first attempt at Gentoo on a PowerPC -
that I brought up this week. It was (is) working but I'm not using it
for anything yet. Just playing around with the machine. Nothing
serious.

This morning I wasn't paying much attention and wanted to do an emerge
-DuN world. The process had blocking issues:

 MacMini ~ # emerge -pv coreutils

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild U ] sys-devel/automake-1.10.1 [1.10] 897 kB
[ebuild U ] sys-apps/coreutils-6.10-r1 [6.9-r1] USE=acl nls
(-selinux) -static -vanilla% -xattr 3,670 kB
[blocks B ] sys-apps/mktemp (is blocking sys-apps/coreutils-6.10-r1)
[blocks B ] =sys-apps/coreutils-6.10 (is blocking sys-apps/mktemp-1.5)

Total: 2 packages (2 upgrades, 2 blocks), Size of downloads: 4,566 kB

so without any real thought I did an emerge -C coreutils and walked
away. Well, that, it seems, was a *very* bad idea. Now nothing much
works. There were some messages that had I been watching I would have
stopped the process but I wasn't so there you go. Oops.

Anyway, the machine is still up and running but I suspect that it
might not reboot or allow logins if it did reboot. I'm unable to
emerge anything right now. coreutils, as folks probably know, includes
stuff that once gone pretty much stops the machine from being
interesting or useful.

Question: Is there a way to recover from this?

It's not a huge issue even if I have to completely rebuild the
machine. As I say this was mostly a Gentoo build on a lark to test out
how the machine might work for a couple of different ideas -
mythfrontend and a simple router. Everything was quick and dirty and
there are a few things I might change anyway, but if I can get it
working again I figure I should learn how.

Thanks in advance,
Mark
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Re: Need simple smtp sendmail

2008-04-19 Thread Roy Wright
Grant Edwards wrote:
 On 2008-04-18, Neil Bothwick [EMAIL PROTECTED] wrote:
 
 mail-mta/ssmtp, which is generally installed by default.
 
 Or, if you need to support multiple e-mail accounts: mail-mta/msmtp.

Thank you!

The key was knowing it was ssmtp that I needed to configure. I then
found: http://forums.gentoo.org/viewtopic-t-420358.html which added the
AuthUser and AuthPass config options I was missing.

Have fun,
Roy

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread forgottenwizard
On 11:27 Sat 19 Apr , Mark Knecht wrote:
 Question: Is there a way to recover from this?
 

Try going into a LiveCD and either copy the coreutils from a stage, or
try re-emerging it there.

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Mick
On Saturday 19 April 2008, forgottenwizard wrote:
 On 11:27 Sat 19 Apr , Mark Knecht wrote:
  Question: Is there a way to recover from this?

 Try going into a LiveCD and either copy the coreutils from a stage, or
 try re-emerging it there.

Of course if you want more detail check previous posts on this very topic:
http://article.gmane.org/gmane.linux.gentoo.user/197609
-- 
Regards,
Mick


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


Re: [gentoo-user] KDE slow shutdown

2008-04-19 Thread Mick
On Saturday 19 April 2008, Volker Armin Hemmann wrote:
 On Samstag, 19. April 2008, Mick wrote:

  How do you mean I need to run lsof?  Use Ctrl+Alt+F1 to switch to a
  console quickly while KDE is shutting down and run it from there,

 exactly - and you do have to do it as root ;)

 lsof shows the open files. In my case, when shutting down hangs for ages it
 is always shutdown accessing kdm.log. But that is only my problem - your
 problem might me be something completly different. Are you saving sessions?

Hmm, I suspect I may do.  This is my wife's machine which I rarely use and am 
not sure (plus I'm not particularly KDE-literate I'm afraid).  How do I 
check?
-- 
Regards,
Mick


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


[gentoo-user] Re: Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Francesco Talamona
On Saturday 19 April 2008, Mark Knecht wrote:
 [ebuild     U ] sys-apps/coreutils-6.10-r1 [6.9-r1] USE=acl nls
 (-selinux) -static -vanilla% -xattr 3,670 kB
 [blocks B     ] sys-apps/mktemp (is blocking
 sys-apps/coreutils-6.10-r1) [blocks B     ] =sys-apps/coreutils-6.10
 (is blocking sys-apps/mktemp-1.5)

You are just another victim, search this list for the last week posts 
for the recovery details. Basically you have to use install disc to 
copy all the core utils now missing. Once recovered you are again 
able to emerge coreutils

The explanation of the message above is: coreutils is going to upgrade 
from version 6.9-r1 to 6.10-r1, the latter (and other versions above) 
includes mktemp, so to avoid conflicts it is required to uninstall 
mktemp, now provided elsewhere.

HTH
Francesco  

-- 
Linux Version 2.6.24-gentoo-r4, Compiled #2 PREEMPT Wed Apr 2 08:07:24 
CEST 2008
One 1GHz AMD Athlon 64 Processor, 2GB RAM, 2004.03 Bogomips Total
aemaeth
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Justin
Why are you doing things without knowing about the consequences?  Always 
ask before you are doing things which could be stupid!!!




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Mark Knecht
On Sat, Apr 19, 2008 at 12:04 PM, Francesco Talamona [EMAIL PROTECTED] wrote:
 On Saturday 19 April 2008, Mark Knecht wrote:
   [ebuild U ] sys-apps/coreutils-6.10-r1 [6.9-r1] USE=acl nls
   (-selinux) -static -vanilla% -xattr 3,670 kB
   [blocks B ] sys-apps/mktemp (is blocking
   sys-apps/coreutils-6.10-r1) [blocks B ] =sys-apps/coreutils-6.10
   (is blocking sys-apps/mktemp-1.5)

  You are just another victim, search this list for the last week posts
  for the recovery details. Basically you have to use install disc to
  copy all the core utils now missing. Once recovered you are again
  able to emerge coreutils

  The explanation of the message above is: coreutils is going to upgrade
  from version 6.9-r1 to 6.10-r1, the latter (and other versions above)
  includes mktemp, so to avoid conflicts it is required to uninstall
  mktemp, now provided elsewhere.

  HTH
 Francesco


And unfortunately I chose to uninstall coreutils rather than mktemp
which caused the problems. Thanks.

It doesn't seem the link to the Walter Dnes doesn't give the answer
but suggests like you do that there is an answer out there. I'll see
if I can find the instructions on how to copy the correct stuff.

Thanks,
Mark
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] init 1, root device is busy :(

2008-04-19 Thread Gyuszk

Hello Gentoo users,

I just can't fsck my root device because my Gentoo system don't allow me 
to remount it as readonly (mount -o ro,remount /dev/hda1). A rw-mounted 
device is unsafe to be fsck -ed. (AFAIK).


When I go to tty1, login as root, do these:

killall kdm, then init 1. It goes to runlevel 1 (maintenance level). But 
I don't have to type my root password in the end (on other distros I had 
to). I can unmount my /boot and /home partitions but I just can't 
remount my root device to be readonly. (Linux says it is busy.) What 
should I do with this?


1.) Should I edit my Grub menu.lst to make a new entry with single ro 
kernel parameteres?
2.) Of course I can fsck from (for example) a LiveCD (like Gentoo 
minimal cd), but at the present I don't have any of these.

3.) Other solution?

Thanks in advance!

pm.: I just love my Gentoo system :)
--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] init 1, root device is busy :(

2008-04-19 Thread Michal 'vorner' Vaner
Hello

On Sat, Apr 19, 2008 at 09:18:04PM +0200, Gyuszk wrote:
 3.) Other solution?

man shutdown:

-F Force fsck on reboot.

(I know, this one is not really intuitive)

-- 
Work with computer has 2 phases. First, computer waits for the user to tell it 
what 
to do, then the user waits for the computer to do it. Therefore, computer work 
consists mostly of waiting.

Michal 'vorner' Vaner


pgp3rfgp9Z9ty.pgp
Description: PGP signature


[gentoo-user] Re: init 1, root device is busy :(

2008-04-19 Thread Francesco Talamona
On Saturday 19 April 2008, Gyuszk wrote:
 I can unmount my /boot and /home partitions but I just can't
 remount my root device to be readonly. (Linux says it is busy.) What
 should I do with this?

 1.) Should I edit my Grub menu.lst to make a new entry with single
 ro kernel parameteres?
 2.) Of course I can fsck from (for example) a LiveCD (like Gentoo
 minimal cd), but at the present I don't have any of these.
 3.) Other solution?

Of course: it's in use :-)

Two options:

1) force partition check with the following command (seen recently in 
this list)
shutdown -Fr

2) create the file /forcefsck
touch /forcefsck
then reboot, during shutdown you'll see A full fsck will be forced on 
next startup and then Checking root filesystem (full fsck forced)

See the scripts /etc/init.d/halt.sh, /etc/init.d/checkfs 
and /etc/init.d/checkroot to see all the nuts and bolts

Ciao
Francesco

-- 
Linux Version 2.6.24-gentoo-r4, Compiled #2 PREEMPT Wed Apr 2 08:07:24 
CEST 2008
One 1GHz AMD Athlon 64 Processor, 2GB RAM, 2004.03 Bogomips Total
aemaeth
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Raid5 not assembled after boot

2008-04-19 Thread Roy Wright
Howdy,

This is the first time I've played with a software raid and it looks
like I'm missing a part.

The raid5 consists of three AHCI 1TB drives (sdb1,sdc1,sdd1) assembled
as /dev/md1 and formatted ext3.  The raid is just a data drive mounted
on /var/media.

Here's the array line from /etc/mdadm.conf:

ARRAY /dev/md1 level=raid5 num-devices=3
UUID=32d159bf:9c7d988b:1caf26c5:a35f83fb

After boot, /dev/md1 does not exist.

I can run:

 mdadm --assemble /dev/md1 /dev/sdb1 /dev/sdc1 /dev/sdd1

which starts /dev/md1 then I can mount the raid fine.

I've tried adding:

  DEVICE /dev/sd[bcd]1

to /etc/mdadm.conf, no observable effect.

/etc/init.d/mdadm is in the boot rc level and is running after boot (I
was expecting this to start the array).

Looking thru dmesg and /var/log/messages, it looks like there are no
attempts to start the array until I manually try.

Any hints on what I'm missing?

TIA,
Roy


-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Re: Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Dirk Heinrichs
Am Samstag, den 19.04.2008, 21:08 +0200 schrieb Mark Knecht:
 It doesn't seem the link to the Walter Dnes doesn't give the answer
 but suggests like you do that there is an answer out there.

No. It's the Crippled system thread.

Bye...

Dirk


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Re: [gentoo-user] Re: init 1, root device is busy :(

2008-04-19 Thread Abraham Gyorgy

Francesco Talamona wrote:

On Saturday 19 April 2008, Gyuszk wrote:
  

I can unmount my /boot and /home partitions but I just can't
remount my root device to be readonly. (Linux says it is busy.) What
should I do with this?

1.) Should I edit my Grub menu.lst to make a new entry with single
ro kernel parameteres?
2.) Of course I can fsck from (for example) a LiveCD (like Gentoo
minimal cd), but at the present I don't have any of these.
3.) Other solution?



Of course: it's in use :-)

Two options:

1) force partition check with the following command (seen recently in 
this list)

shutdown -Fr

2) create the file /forcefsck
touch /forcefsck
then reboot, during shutdown you'll see A full fsck will be forced on 
next startup and then Checking root filesystem (full fsck forced)


See the scripts /etc/init.d/halt.sh, /etc/init.d/checkfs 
and /etc/init.d/checkroot to see all the nuts and bolts


Ciao
Francesco

  

Thanks a lot! I'll give a deep look at the mentioned files.
Anyway I think I'll set my fstab. Now all my partitions are set to 
never fsck at boot time. :)

--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] init 1, root device is busy :(

2008-04-19 Thread Abraham Gyorgy

Michal 'vorner' Vaner wrote:

Hello

On Sat, Apr 19, 2008 at 09:18:04PM +0200, Gyuszk wrote:
  

3.) Other solution?



man shutdown:

-F Force fsck on reboot.

(I know, this one is not really intuitive)

  

Thanks!
--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Mick
On Saturday 19 April 2008, Justin wrote:
 Why are you doing things without knowing about the consequences?  Always
 ask before you are doing things which could be stupid!!!

Hindsight is a wonderful thing - but pretty useless in its timing.  I don't 
know about the OP, but I usually discover that I did something stupid after 
the event . . .  ;-)
-- 
Regards,
Mick


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


Re: [gentoo-user] Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread CJoeB

Justin wrote:
Why are you doing things without knowing about the consequences?  
Always ask before you are doing things which could be stupid!!!


I think you're being a little harsh.  :-) Usually, unmerging a package 
that is blocking another package has, in my limited experience, always 
solved the problem.  I probably would have fallen victim to this had I 
not been reading the problems that others have had.


No matter, my intention is not to start a war and this is too late for 
the people that have already caused themselves grief by removing 
coreutils.  However, once I read the problems that others have 
encountered when they did this, I searched the forums.  A post from 
earlier this year saved my butt!  This is the command that was suggested 
and worked fine for me:


emerge -C mktemp  emerge -uavDNt world

Hopefully, it will help others who have not yet become Gentoo gurus.

Regards,

Colleen.

--

Registered Linux User #411143 with the Linux Counter, http://counter.li.org

--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Uwe Thiem
On Saturday 19 April 2008, Justin wrote:
 Why are you doing things without knowing about the consequences? 
 Always ask before you are doing things which could be stupid!!!

You know, shit happens. It shouldn't but it does. Like you aren't 
really paying attention being sidetracked, and the shit hits the fan. 
Happens.To all of us. Unless you are one of those who never make 
mistakes, never get sidetracked, never pay less than 100% attention, 
never assume where you are actually supposed to know,... The list 
goes on. The OP had a knee jerk reaction, did what had seemed insane 
on second thougt but didn't spent such. It happens. He actually 
axplained how it happened. That's human.

Did you never make dire mistakes? Well, if you haven't you may keep 
throwing stones in a glasshouse. 

For the OP: There was a long thread about this just last week.

Uwe

-- 
Informal Linux Group Namibia:
http://www.linux.org.na/
SysEx (Pty) Ltd.:
http://www.SysEx.com.na/
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Compiz-Fusion display error?

2008-04-19 Thread Jerry McBride

I upgraded my KDE 3.5.9 laptop to use compiz-fusion. It works! But i have  a 
display problem... My  laptop lcd is 1280x800 native.  KDE, without compiz, 
uses  theentire display, no problems... However, once  I start  up compiz, I 
loose the right third of the screen. That is, the display get chopped off to 
something close to 800X800... It really sucks. Although I loose some screen 
display realestate, the compiz additions all work.

Anyone have a tip to  get this sorted out? I'd appreciate any help offered.



-- 


From the Desk of: Jerome D. McBride
--
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: init 1, root device is busy :(

2008-04-19 Thread Francesco Talamona
On Saturday 19 April 2008, Abraham Gyorgy wrote:
 Thanks a lot! I'll give a deep look at the mentioned files.
 Anyway I think I'll set my fstab. Now all my partitions are set to
 never fsck at boot time. :)

Supposing it's a ext2/3 partition you may also want to use tune2fs to 
set the check *frequency*.

Other filesystems have specialized tools to do it.

Ciao
Francesco

-- 
Linux Version 2.6.24-gentoo-r4, Compiled #2 PREEMPT Wed Apr 2 08:07:24 
CEST 2008
One 1GHz AMD Athlon 64 Processor, 2GB RAM, 2004.03 Bogomips Total
aemaeth
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Dale

Uwe Thiem wrote:

On Saturday 19 April 2008, Justin wrote:
  
Why are you doing things without knowing about the consequences? 
Always ask before you are doing things which could be stupid!!!



You know, shit happens. It shouldn't but it does. Like you aren't 
really paying attention being sidetracked, and the shit hits the fan. 
Happens.To all of us. Unless you are one of those who never make 
mistakes, never get sidetracked, never pay less than 100% attention, 
never assume where you are actually supposed to know,... The list 
goes on. The OP had a knee jerk reaction, did what had seemed insane 
on second thougt but didn't spent such. It happens. He actually 
axplained how it happened. That's human.


Did you never make dire mistakes? Well, if you haven't you may keep 
throwing stones in a glasshouse. 


For the OP: There was a long thread about this just last week.

Uwe

  


And since so many other people did this too, he just called a LOT of 
people stupid.  Not good.


It didn't happen to me but only because I saw what other people did and 
that mktemp was the one to get rid of instead of coreutils.  Otherwise, 
I would have been one of the stupid people too.  Then again, I have 
backups.  :-p


Dale

:-)  :-) 
--

gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Raid5 not assembled after boot

2008-04-19 Thread Francesco Talamona
On Saturday 19 April 2008, Roy Wright wrote:
 Looking thru dmesg and /var/log/messages, it looks like there are no
 attempts to start the array until I manually try.

 Any hints on what I'm missing?

Personal experience:

1) don't mix raidtools stuff with mdadm, use only the latter (I'm not 
saying you used raidtools, but I found a lot of misleading 
documentation lying around)

2) check carefully the UUID of *all* the partitions, I had exactly the 
same issue, that I discovered to be caused by a leftover partition that 
was part of a different raid set (spurious UUID). At some point in the 
bootup the correct set were disassembled.

3) evms can badly intefere with mdadm (or it was LVM?): try to modify a 
partition/raid setup and it always appears busy, preventing any 
editing.

HTH
Francesco

-- 
Linux Version 2.6.24-gentoo-r4, Compiled #2 PREEMPT Wed Apr 2 08:07:24 
CEST 2008
One 1GHz AMD Athlon 64 Processor, 2GB RAM, 2004.03 Bogomips Total
aemaeth
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Mark Knecht
On Sat, Apr 19, 2008 at 1:43 PM, Dale [EMAIL PROTECTED] wrote:
 Uwe Thiem wrote:

  On Saturday 19 April 2008, Justin wrote:
 
 
   Why are you doing things without knowing about the consequences? Always
 ask before you are doing things which could be stupid!!!
  
  
 
  You know, shit happens. It shouldn't but it does. Like you aren't really
 paying attention being sidetracked, and the shit hits the fan. Happens.To
 all of us. Unless you are one of those who never make mistakes, never get
 sidetracked, never pay less than 100% attention, never assume where you are
 actually supposed to know,... The list goes on. The OP had a knee jerk
 reaction, did what had seemed insane on second thougt but didn't spent such.
 It happens. He actually axplained how it happened. That's human.
 
  Did you never make dire mistakes? Well, if you haven't you may keep
 throwing stones in a glasshouse.
  For the OP: There was a long thread about this just last week.
 
  Uwe
 
 
 

  And since so many other people did this too, he just called a LOT of people
 stupid.  Not good.

  It didn't happen to me but only because I saw what other people did and
 that mktemp was the one to get rid of instead of coreutils.  Otherwise, I
 would have been one of the stupid people too.  Then again, I have backups.
 :-p

  Dale


Thanks Dale, Uwe, and everyone else who responded. I really appreciate
your support.

Not worth a email to answer my detractor. He has his point of view. I
suppose he's entitled.

The system is back to working now as far as I can tell. Without all of
you I would hardly have known exactly how to proceed. With your help I
made some headway. Not sure yet whether it will reboot successfully
but at least I could emerge coreutils and mktemp successfully again.

Cheers,
Mark
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Re: init 1, root device is busy :(

2008-04-19 Thread Abraham Gyorgy

Francesco Talamona wrote:

On Saturday 19 April 2008, Abraham Gyorgy wrote:
  

Thanks a lot! I'll give a deep look at the mentioned files.
Anyway I think I'll set my fstab. Now all my partitions are set to
never fsck at boot time. :)



Supposing it's a ext2/3 partition you may also want to use tune2fs to 
set the check *frequency*.


Other filesystems have specialized tools to do it.

Ciao
Francesco

  
Yes, I know that (read in the manpage). Once I did mess up totally my 
filesystem (I think I typed wrong arguments accidentally) with tune2fs. :)

Since then I really fear of that command.

Okay, so after setting a correct fstab (and the shutdown -Fr now) _all_ 
my partitions were checked during boot (no more need to worry about the 
init 1 thing.). My root partition were fixed (reboot was needed). I'll 
set an fsck frequency and set counters to zero. Thanks all the help, 
people on this mailing list are very-very helpful. Thanks everyone who 
wrote to this thread!


--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] KDE slow shutdown

2008-04-19 Thread Volker Armin Hemmann
On Samstag, 19. April 2008, Mick wrote:
 On Saturday 19 April 2008, Volker Armin Hemmann wrote:
  On Samstag, 19. April 2008, Mick wrote:
   How do you mean I need to run lsof?  Use Ctrl+Alt+F1 to switch to a
   console quickly while KDE is shutting down and run it from there,
 
  exactly - and you do have to do it as root ;)
 
  lsof shows the open files. In my case, when shutting down hangs for ages
  it is always shutdown accessing kdm.log. But that is only my problem -
  your problem might me be something completly different. Are you saving
  sessions?

 Hmm, I suspect I may do.  This is my wife's machine which I rarely use and
 am not sure (plus I'm not particularly KDE-literate I'm afraid).  How do I
 check?

open the control center. Go to 'components', click on session manager. 
Choose 'start with empty session' or something like that.
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Volker Armin Hemmann
On Samstag, 19. April 2008, Mark Knecht wrote:

 Question: Is there a way to recover from this?

you should have busybox installed.

Just create a symlink for every tool needed.

ln -s bb ls and something like that. If even ln is gone, do it from busybox 
itself - it has everything needed built-in.

After that, emerge coreutils (with the buildpkg option).  This creates are 
tarball. Now check. Have been all symlinks replaced with the right tool?
If yes. Goto end. Everything is ok.
If not. Open tarball, cp the tools.


-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Re: Raid5 not assembled after boot

2008-04-19 Thread Roy Wright
Francesco Talamona wrote:
 On Saturday 19 April 2008, Roy Wright wrote:
 Looking thru dmesg and /var/log/messages, it looks like there are no
 attempts to start the array until I manually try.

 Any hints on what I'm missing?
 
 Personal experience:
 
 1) don't mix raidtools stuff with mdadm, use only the latter (I'm not 
 saying you used raidtools, but I found a lot of misleading 
 documentation lying around)
 
 2) check carefully the UUID of *all* the partitions, I had exactly the 
 same issue, that I discovered to be caused by a leftover partition that 
 was part of a different raid set (spurious UUID). At some point in the 
 bootup the correct set were disassembled.
 
 3) evms can badly intefere with mdadm (or it was LVM?): try to modify a 
 partition/raid setup and it always appears busy, preventing any 
 editing.
 

Thank you.

I only used mdadm following the gentoo.org docs and gentoo-wiki howtos.

Just confirmed all three drives and the mdadm.conf UUID's are the same.

evms not installed.
lvm2 not installed.  yet.

I think I found the answer in the man page:

  --auto-detect
  Request that the kernel starts any auto-detected arrays.
  This can only work if md is compiled  into  the  kernel
  -- not if it is a module.  Arrays can be auto-detected
  by the kernel if all the components are in primary MS-DOS
  partitions with partition type FD.   In-kernel  autodetect
  is not recommended for new installations.  Using mdadm to
  detect and assemble arrays -- possibly in an initrd -- is
  substantially more flexible and should be preferred.

Basically it seems that I need to add a mdadm --assemble --scan to a
startup file.

Thanks again!

Have fun,
Roy



-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Messed up - how do I emerge coreutils once coreutils is gone?

2008-04-19 Thread Chris Brennan
I've found, keeping a backup kernel from my last update and loading
busybox instead of the system has recued my ass on more then  one
occassion.

Ironicly, I encounted this problem on both my Gentoo Desktop *and* my
Gentoo Laptop roughtly a month to two months ago. At this time, there
was no evidance of this issue yet and I blindly unmerged mktemp and
all was well and never thought about it again till today when I saw
this thread. Like I said, I just blindly unmerged mktemp w/ little
though, I guess just seeing coreutils and quickly comparing it against
mytemp kinda spoke for itself. Either way, your system is back, and
that is all that matters.

On Sat, Apr 19, 2008 at 6:22 PM, Volker Armin Hemmann
[EMAIL PROTECTED] wrote:
 On Samstag, 19. April 2008, Mark Knecht wrote:

  Question: Is there a way to recover from this?

 you should have busybox installed.

 Just create a symlink for every tool needed.

 ln -s bb ls and something like that. If even ln is gone, do it from busybo
 itself - it has everything needed built-in.

 After that, emerge coreutils (with the buildpkg option).  This creates are
 tarball. Now check. Have been all symlinks replaced with the right tool?
 If yes. Goto end. Everything is ok.
 If not. Open tarball, cp the tools.



 --
 gentoo-user@lists.gentoo.org mailing list


-- 
gentoo-user@lists.gentoo.org mailing list




Re: [gentoo-user] KDE slow shutdown

2008-04-19 Thread Philip Webb
080419 Volker Armin Hemmann  Mick discussed:
M a box running vanilla KDE is taking an awful long time
M to exit the KDE session when I shutdown.
VAH lsof  grep can tell you which files are accessed.
VAH Maybe it takes a looong time writing to kdm.log
VAH something that sometimes make my shutdowns extremely slow.
M How do you mean I need to run lsof?
VAH Ctrl+Alt+F1 to switch to a console quickly while KDE is shutting down
VAH and run it from there as root. lsof shows the open files. In my case,
VAH when shutting down hangs for ages it is always accessing kdm.log.
VAH But your problem might me be something completly different.
VAH Are you saving sessions?

I've had the same problem for some time.
There was  1  version of KDE (perhaps 3.5.6/7) which didn't do it,
but then it started again (now 3.5.9).  It saves  11  apps on  10  desktops,
but that shouldn't be taking so long on a fast machine:
after all, it compiles Kdelibs in  17 min  !
In my case, it isn't  kdm.log , as I don't have Kdm installed
(I use 'startx' from a raw command-line after booting).

One way to find out more would be to file a bug with KDE,
but I'ld rather not waste their time, if anyone has further advice.

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
gentoo-user@lists.gentoo.org mailing list