[gentoo-user] howto increase INODE

2010-05-26 Thread kitti jaisong

Hi All,

I just install sparc machine. i found error failed: No space left on device 
(28) when i check inode by df -i command

livecd ~ # df -i
FilesystemInodes   IUsed   IFree IUse% Mounted on
tmpfs 1294124684  1247284% /
/dev/hda   0   0   0-  /mnt/cdrom
/dev/loop0 14486   14486   0  100% /mnt/livecd
udev  1294121399  1280132% /dev
tmpfs 129412  81  1293311% /mnt/livecd/lib/firmware
tmpfs 129412   1  1294111% /mnt/livecd/usr/portage
/dev/sda1  327682407   303618% /mnt/gentoo
/dev/sda4 131072  131072   0  100% /mnt/gentoo/usr
/dev/sda5 1310723007  1280653% /mnt/gentoo/var
/dev/sda61896832  12 18968201% /mnt/gentoo/home


livecd ~ # df -h
FilesystemSize  Used Avail Use% Mounted on
tmpfs1012M   36M  976M   4% /
/dev/hda   58M   58M 0 100% /mnt/cdrom
/dev/loop0 49M   49M 0 100% /mnt/livecd
udev   10M  384K  9.7M   4% /dev
tmpfs1012M  4.0M 1008M   1% /mnt/livecd/lib/firmware
tmpfs1012M 0 1012M   0% /mnt/livecd/usr/portage
/dev/sda1 504M   55M  424M  12% /mnt/gentoo
/dev/sda4 2.0G  952M  963M  50% /mnt/gentoo/usr
/dev/sda5 2.0G   83M  1.8G   5% /mnt/gentoo/var
/dev/sda6  29G  173M   27G   1% /mnt/gentoo/home

How to increase or solve this problem

Best Regards,

ti

- Original Message - 
From: meino.cra...@gmx.de

To: Gentoo gentoo-user@lists.gentoo.org
Sent: Wednesday, May 26, 2010 10:15 AM
Subject: [gentoo-user] Harddisk trouble ... or not yet?




Hi,

currently I set up a freshly new gentoo system from scratch
on another harddisk.

For that purpose I have two WDC WD10EARS-00Y5B1 (pasted from
hdparm -i) harddisk (1TB, advanced format 4096 kb sectors).
One harddisk is currently holding the gento system, the other
one is intended as a bare plain copy of the other one (a backup
while setting up the system).

With an old KNOPPIX dvd I tried to copy the first hd onto
the other one with

   dd if=/dev/sda of=/dev/sdb bs=8192

which gave me a LOT of I/O errors after a short time.

Still hopeing, that my hardware (motherboard/chipset/bios) and
the hd are ok I am trying to figure out, what the reason was
for that...

My motherboard is an Asus AV8.



From what kernel version the new advanced format
of the hd is fully supported ?

Are there other reasons -- beside defective hardware -- for
the failing dd and how can I fix them ?




Thank you very much in advance for any help!
best regards
mcc




--
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.







Re: [gentoo-user] Newbie question

2010-05-26 Thread Madhurya Kakati
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
On 5/25/2010 10:34 PM, Arttu V. wrote:
 On 5/25/10, Madhurya Kakati mkakati2...@gmail.com wrote:
 Hi, I am currently using archlinux and windows 7 and want to try
 out gentoo. I guess grub will be overwritten by gentoo but will
 it contain the options to boot arch kernel images automatically?
 I really dont wanna mess up grub.

 You'll minimize your grub configuration work and pretty much
 neutralize any risk to your currently installed OSes by testing
 and trying out Gentoo in a virtualized system.

 For example VirtualBox is freely available and takes only a few
 mouse clicks to configure a virtual machine specifically suitable
 for Gentoo (or Ubuntu, or Linux Mint, or Fedora, or OpenSUSE, or
 ...), then you just attach the CD ISO to the virtual machine
 (clickety-click, 3 clicks if it's on the Desktop?), and boot
 (doubleclick). Next you do the install, which in Gentoo's case
 means following the Gentoo Handbook.

 You can keep important tools like irc-client, your favourite
 search engine and Gentoo Handbook browser window running in the
 host OS, jumping between the host and guest with a single mouse
 click and right ctrl key to get back. And that's just using the
 default settings out of the box.

 Try it out once. It hooked me after the 15 minutes it took to make
 the first virtual image (and that's where I read all the labels
 and options). Naturally, YMMV.

will try that out soon
thanks :)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
iQEcBAEBAgAGBQJL/MgaAAoJEFsDLiKSAHN6USkIALP2tzZHLchWPivoD/hdBXVX
UXyO4TW+G4WnL3EaVd1oil85tLZ1btlN2yZ2MffQwFXRSemoUHtqcBZrcAd8/+ie
judw6ZEX3VAyut3JCgNIMaFi+RTWhcxXMshNumyBU1XayfVKQcurcBr8FV//Oj+J
tV/IITg+GeDiUfHbIr8l8/k7I+SIZ70u8uqhtcpwp8vAGju4ASW9jVygNMtb+onT
zutRH1yNGe5NUErx63BJZ/ur4HRJogq3ewkwrc5zqAmTouegNt1z+XLJjt1UEmY0
+/Wi7ejsRARkRSWJTbonaA0uU19/y/Y968ECEyxNXWH7d2rONIKWXhLmdeAeklo=
=VWTG
-END PGP SIGNATURE-




Re: [gentoo-user] howto increase INODE

2010-05-26 Thread Bert Swart
On Wed, May 26, 2010 at 01:38:46PM +0700, kitti jaisong wrote:
 Hi All,
 
 I just install sparc machine. i found error failed: No space left on device 
 (28) when i check inode by df -i command
 livecd ~ # df -i
 FilesystemInodes   IUsed   IFree IUse% Mounted on
 tmpfs 1294124684  1247284% /
 /dev/hda   0   0   0-  /mnt/cdrom
 /dev/loop0 14486   14486   0  100% /mnt/livecd
 udev  1294121399  1280132% /dev
 tmpfs 129412  81  1293311% /mnt/livecd/lib/firmware
 tmpfs 129412   1  1294111% /mnt/livecd/usr/portage
 /dev/sda1  327682407   303618% /mnt/gentoo
 /dev/sda4 131072  131072   0  100% /mnt/gentoo/usr
 /dev/sda5 1310723007  1280653% /mnt/gentoo/var
 /dev/sda61896832  12 18968201% /mnt/gentoo/home
 
 
 livecd ~ # df -h
 FilesystemSize  Used Avail Use% Mounted on
 tmpfs1012M   36M  976M   4% /
 /dev/hda   58M   58M 0 100% /mnt/cdrom
 /dev/loop0 49M   49M 0 100% /mnt/livecd
 udev   10M  384K  9.7M   4% /dev
 tmpfs1012M  4.0M 1008M   1% /mnt/livecd/lib/firmware
 tmpfs1012M 0 1012M   0% /mnt/livecd/usr/portage
 /dev/sda1 504M   55M  424M  12% /mnt/gentoo
 /dev/sda4 2.0G  952M  963M  50% /mnt/gentoo/usr
 /dev/sda5 2.0G   83M  1.8G   5% /mnt/gentoo/var
 /dev/sda6  29G  173M   27G   1% /mnt/gentoo/home
 
 How to increase or solve this problem
Only things I can think of:
1. delete some files (probably not possible on usr partition) ;
2. backup your partition, and rerun mkfs.ext2 or mkfs.ext3 and
use the -i option (see man page)

Some advice is given in the handbook on creating partitions to
install gentoo.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap4

Regards,
Bert

 
 Best Regards,
 
 ti
 
 - Original Message - 
 From: meino.cra...@gmx.de
 To: Gentoo gentoo-user@lists.gentoo.org
 Sent: Wednesday, May 26, 2010 10:15 AM
 Subject: [gentoo-user] Harddisk trouble ... or not yet?
 
 
 
  Hi,
 
  currently I set up a freshly new gentoo system from scratch
  on another harddisk.
 
  For that purpose I have two WDC WD10EARS-00Y5B1 (pasted from
  hdparm -i) harddisk (1TB, advanced format 4096 kb sectors).
  One harddisk is currently holding the gento system, the other
  one is intended as a bare plain copy of the other one (a backup
  while setting up the system).
 
  With an old KNOPPIX dvd I tried to copy the first hd onto
  the other one with
 
 dd if=/dev/sda of=/dev/sdb bs=8192
 
  which gave me a LOT of I/O errors after a short time.
 
  Still hopeing, that my hardware (motherboard/chipset/bios) and
  the hd are ok I am trying to figure out, what the reason was
  for that...
 
  My motherboard is an Asus AV8.
 
 
 
  From what kernel version the new advanced format
  of the hd is fully supported ?
 
  Are there other reasons -- beside defective hardware -- for
  the failing dd and how can I fix them ?
 
 
 
 
  Thank you very much in advance for any help!
  best regards
  mcc
 
 
 
 
  -- 
  Please don't send me any Word- or Powerpoint-Attachments
  unless it's absolutely neccessary. - Send simply Text.
  See http://www.gnu.org/philosophy/no-word-attachments.html
  In a world without fences and walls nobody needs gates and windows.
 
  
 
 




Re: [gentoo-user] Re: {OT} Basic device for a Gentoo router/firewall?

2010-05-26 Thread Peter Humphrey
On Tuesday 25 May 2010 23:45:41 Iain Buchanan wrote:
 On Tue, 2010-05-25 at 09:48 +0100, Peter Humphrey wrote:
  I'm intrigued. How do you connect displays to them? I assume you'd
  need one for at least the first steps of installing an OS, no?
 
 no :)  There is a serial port which is good enough for a console,
 which you can use until your network is working.

All very well if you happen to have such a device lying around. I don't, 
however, and Google doesn't show me a source of them either, so I'll 
just wait for something more suitable to come along. Cheaper, too, with 
any luck, such as the devices Neil mentioned on Monday.

Thanks anyway.

-- 
Rgds
Peter.



Re: [gentoo-user] xargs and rm funkiness

2010-05-26 Thread Joerg Schilling
Neil Bothwick n...@digimed.co.uk wrote:

 xargs can suck with anything but plain ASCII-without-spaces filenames.,
 and it quite unnecessary here.

 find -name *.ext -exe rm {} \;

 or maybe even

 find -name *.ext -exe rm {} +

Just avoid xargs as it is the source of the proplem.

find -name *.ext -exec some-command {} +

Is the preferred method since 1990.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] xargs and rm funkiness

2010-05-26 Thread Joerg Schilling
Patrick Holthaus patrick.holth...@uni-bielefeld.de wrote:

 You might try:

 find -name *.ext -print0 | xargs -0 rm

But this is non-standard.

UNIX introduced -exec {} + 1990 (when David Korn rewrote find(1)
and it is in the POSIX standared since some time.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] howto increase INODE

2010-05-26 Thread Volker Armin Hemmann
On Mittwoch 26 Mai 2010, kitti jaisong wrote:
 Hi All,
 
 I just install sparc machine. i found error failed: No space left on
 device (28) when i check inode by df -i command

don't hijack other people's threads.



Re: [gentoo-user] Harddisk trouble ... or not yet?

2010-05-26 Thread Volker Armin Hemmann
don't use df. Use cp -a. 

Also, the exact errors would be helpfull.



Re: [gentoo-user] howto increase INODE

2010-05-26 Thread Alex Schuster
kitti jaisong writes:

 I just install sparc machine. i found error failed: No space left on
 device (28) when i check inode by df -i command
[...]
 /dev/sda4 2.0G  952M  963M  50% /mnt/gentoo/usr
 /dev/sda5 2.0G   83M  1.8G   5% /mnt/gentoo/var
 /dev/sda6  29G  173M   27G   1% /mnt/gentoo/home
 
 How to increase or solve this problem

2 GB for a /usr partition looks quite small to me, but may by okay for a 
small installation. But to increase the number of inodes, you have backup 
/usr, re-create the partition with more inodes, and copy the stuff back.

If you do not want to do so, you could move things to your home partition. 
I'd move /usr/portage first (and change the location in make.conf), that 
has many small files eating up many inodes. And if space is still getting 
small, just move other things like/usr/src, and set a symlink so /usr/src 
is still a valid path.

Oh, and please:
  - Do not hijack threads.
  - Do not quote stuff that has absolutely no relevance, like the
original posting you replied to, instead of starting a new one.

 
 - Original Message -
 From: meino.cra...@gmx.de
 To: Gentoo gentoo-user@lists.gentoo.org
 Sent: Wednesday, May 26, 2010 10:15 AM
 Subject: [gentoo-user] Harddisk trouble ... or not yet?

[BIG SNIP!]


Wonko



[gentoo-user] Re: libpng12 is missing

2010-05-26 Thread Harry Putnam
Alex Schuster wo...@wonkology.org writes:

 Harry Putnam writes:

 Alex Schuster wo...@wonkology.org writes:
  After writing down some ideas about installing the old libraries
  somewhere in parallel, I just checked eix, and there is an extra
  slot for the 1.2 version. So, just emerge media-libs/libpng:1.2 ,
  and I'd expect all to be fine then.
 
 Doesn't seem to be the case here. (Some details below), But do we have
 a accepted way to handle this problem now?

 When I wrote this, I did not really know much about this, I just spotted 
 the 2nd slot. At that time, I also had a little libpng trouble, I could 
 not update @world due to libpng blockers. I unmerged libpng, updated 
 something that was blocking (don't remember what), and remerged libpng, 
 because many applications were no longer working. I did the world update, 
 ran lafilefixer --justfixit, emerged @preserved-libs, and had to do a 
 revdep-rebuild, don't know why, I thought with FEATURES=preserve-libs this 
 should no longer necessary.

 But in the end, everything is sane now. My eix output looks similar, I 
 also have both 1.2.43-r3 and 1.4.2 installed.

 But still some pkgs strike out from what appears to be libpng errors:
 
 Example: xfce-base/thunar-1.0.2, (Wrapped for mail)
 (Emphasis added with asterisks -ed hp)
 ----   ---=---   -  
 tail of emerge:
 
 ,
 
 | [...]
 | 
 | /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../\
 | 
 |  i686-pc-linux-gnu/bin/ld:
 |     cannot find -lpng12 

 Weird. I just tried that, and thunar-1.0.2 compiles just fine.
 Does /usr/lib/libpng12.so.0 exist on your system? But, wait a minute, my 
 thunar links to libpng14.so.14, not to 1.2. Do you have 
 /usr/lib/libpng14.so.14? Maybe lafilefixer -justfixit fixed something for 
 me, and you should try this, too?

Thanks for your reply, but I guess it will remain a puzzle... I did so
many things fussing with libpng... I'm not sure what fixed it in the
end. 

One of them was to redo installing both libpng version all over again,
by emerge -vC libpng completely then installing again making sure to
install 1.4 first, and 1.2 in the slot. But also used `lafilefixer
-justfixit' Not to mention Neils fix with the nifty regular
expressions.

Also a revdep-rebuild in there.

At some point I was able to startx... (A libpng 1.2 error had been
stopping X from starting) and finish the rest from X.  (getting the
xfce pkgs to install finally.)

I kept having the nagging feeling I might have originally had the
libpng version in the wrong order... I'm not sure if that is even
possible though.





[gentoo-user] Re: Harddisk trouble ... or not yet?

2010-05-26 Thread Grant Edwards
On 2010-05-26, meino.cra...@gmx.de meino.cra...@gmx.de wrote:

  [...] I have two WDC WD10EARS-00Y5B1 (pasted from
  hdparm -i) harddisk (1TB, advanced format 4096 kb sectors).
[...]

 dd if=/dev/sda of=/dev/sdb bs=8192

  which gave me a LOT of I/O errors after a short time.

[...]

  From what kernel version the new advanced format
  of the hd is fully supported ?

My understanding is that the new format doesn't cause I/O errors, just
slower transfer rates if you format with disk clusters that aren't
aligned on 4K boundaries.  I'm not aware of any support in the
kernel.

  Are there other reasons -- beside defective hardware -- for
  the failing dd and how can I fix them ?

In my experience, I/O errors have always been hardware problems
(usually a failing drive, but it could also be a faulty cable or
connector).

-- 
Grant Edwards   grant.b.edwardsYow! PIZZA!!
  at   
  gmail.com




[gentoo-user] Postfix question about auth and blocklists...

2010-05-26 Thread Steve
On a gentoo mailserver, I'm running Postfix 2.6.5 - and, having followed
some howto or other, quite a long time ago, I have this section at the
end of my main.cf:

--
smtpd_recipient_restrictions =
 permit_mynetworks,
 permit_sasl_authenticated,
 reject_unauth_destination,
 reject_non_fqdn_sender,
 reject_rbl_client sbl-xbl.spamhaus.org,
 reject_rbl_client list.dsbl.org,
 reject_rbl_client bl.spamcop.net,
 reject_unknown_sender_domain,
 reject_rhsbl_sender bogusmx.rfc-ignorant.org
--

While it might not be optimal, it worked extremely well for a long
time.  The block lists were a godsend as I receive(d) quite a lot of
spam which had threatened to bog down spamassassin.  For ages, I just
used my ISP's SMTP server to send, and only received on my own.

I've bought a smart phone (an HTC HD2 on Windows Mobile 6.5) and need to
use it to access my email on this server - both via mobile and Wi-Fi
connectivity.  The IMAP(s) side works OK for my inbox (after a few
dovecot tweaks)  - and, after a setting up SASL, I can now send email
from my phone via my own SMTP server, which gateways this to my ISP...
all secured by a complex password.  So far, so good - and I can send
email from home over Wi-Fi from my phone.  The problem arises
elsewhere... where I'm not connected to my local (W)LAN (i.e. where I'm
not in permit_mynetworks) - where the phone reports:

--
The server returned the following error message:

554 5.7.1 Service unavailable; Client host 149.254.48.170 blocked using
sbl-xbl.spamhouse.org; http://www.spamhous.org/query/bl?ip=149.254.48.170
--

The block comes as no surprise as 149.254.48.170 isn't exclusively under
my control - and, likely, is a vector for lots of spam - now mobile data
services are cheap and difficult to trace.  What I didn't expect is for
my connection to be rejected even though I had the right username and
password.

So... the questions:

* How can I alter the configuration  to process email from blocked
locations if and only if the client authenticates?
* How can I verify that SMTP auth has been done (when connecting from my
LAN) - it would be a disaster if I inadvertently created an open relay. 
(I don't think I have - but better safe than sorry, etc.)

Thanks in advance for any replies...




Re: [gentoo-user] Performing a backup during the boot sequence

2010-05-26 Thread Daniel Troeder
On 05/26/2010 12:30 AM, Allan Gottlieb wrote:
 For quite a while I have used the following steps to perform a
 single-user backup
 
 1.  Boot to single user mode via the grub command
 kernel /boot/vmlinuz root=/dev/sda6 single
 
 2.  Type in the root password.
 
 3.  Execute a single command
/usr/local/sbin/ajg-backup-init-3
 which does the backup and then executes
init 3
 
 4.  This gets me to multi-user mode.
 
 I would like to automate this so that booting directly to multi-user
 mode via
 kernel /boot/vmlinuz root=/dev/sda6
 
 All I need to do is to execute the single command
/usr/local/sbin/ajg-backup-init-3
 at the right moment.
 This didn't seem hard; I want it after everything in boot but before
 everything currently in default.  So I was going to put it in
 default with a before * in depend()
 
 Reading the gentoo handbook chapter B4.d Writing Init Scripts
 I find two comments criticizing this approach
 
 1.  You can also use the * glob [argument to before] to catch all
 services in the same runlevel, although this isn't advisable.
 
 2.  Note: Make sure that --exec actually calls a service and not just a
 shell script that launches services and exits -- that's what the
 init script is supposed to do.
 
 I can see problems with multiple before * directives, but no other
 script has one so I think I would be OK with my before *.
 
 Criticism 2 has me concerned since my backup routing is indeed a shell
 script that exits.  Indeed, my backup is not really a service so I am
 worried that I shouldn't be using an initscript at all.
 
 Any advice/comments would be welcome.
 
 thanks,
 allan
 
 
You could create a LVM-snapshot of the partition/data you wish to backup
at before * or inside boot and then later run the backup on the
mounted snapshot, removing it afterwards.

Bye,
Daniel

-- 
PGP key @ http://pgpkeys.pca.dfn.de/pks/lookup?search=0xBB9D4887op=get
# gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Performing a backup during the boot sequence

2010-05-26 Thread Allan Gottlieb
At Wed, 26 May 2010 17:17:45 +0200 Daniel Troeder dan...@admin-box.com wrote:

 On 05/26/2010 12:30 AM, Allan Gottlieb wrote:
 For quite a while I have used the following steps to perform a
 single-user backup
 
 1.  Boot to single user mode via the grub command
 kernel /boot/vmlinuz root=/dev/sda6 single
 
 2.  Type in the root password.
 
 3.  Execute a single command
/usr/local/sbin/ajg-backup-init-3
 which does the backup and then executes
init 3
 
 4.  This gets me to multi-user mode.
 
 I would like to automate this so that booting directly to multi-user
 mode via
 kernel /boot/vmlinuz root=/dev/sda6
 
 All I need to do is to execute the single command
/usr/local/sbin/ajg-backup-init-3
 at the right moment.
 This didn't seem hard; I want it after everything in boot but before
 everything currently in default.  So I was going to put it in
 default with a before * in depend()
 
 Reading the gentoo handbook chapter B4.d Writing Init Scripts
 I find two comments criticizing this approach
 
 1.  You can also use the * glob [argument to before] to catch all
 services in the same runlevel, although this isn't advisable.
 
 2.  Note: Make sure that --exec actually calls a service and not just a
 shell script that launches services and exits -- that's what the
 init script is supposed to do.
 
 I can see problems with multiple before * directives, but no other
 script has one so I think I would be OK with my before *.
 
 Criticism 2 has me concerned since my backup routing is indeed a shell
 script that exits.  Indeed, my backup is not really a service so I am
 worried that I shouldn't be using an initscript at all.
 
 Any advice/comments would be welcome.
 
 You could create a LVM-snapshot of the partition/data you wish to backup
 at before * or inside boot and then later run the backup on the
 mounted snapshot, removing it afterwards.

Thanks, but I am not trying to minimize the boot time.  The disk to disk
dumps are fast enough (I do the slower copy to a remote site after
logged in).  I am just trying to have the dump done at the right point
in the boot sequence without manually going into single user mode.  If I
could automate the snapshot, I could automate the dump.

Indeed rereading the gentoo manual, I see that the requirement that you
invoke a service and not a script that exits, applies only to
start-stop-daemon, so I will just try to invoke my script directly from
the init script.

allan



Re: [gentoo-user] Re: Harddisk trouble ... or not yet?

2010-05-26 Thread meino . cramer
Grant Edwards grant.b.edwa...@gmail.com [10-05-26 17:19]:
 On 2010-05-26, meino.cra...@gmx.de meino.cra...@gmx.de wrote:
 
   [...] I have two WDC WD10EARS-00Y5B1 (pasted from
   hdparm -i) harddisk (1TB, advanced format 4096 kb sectors).
 [...]
 
  dd if=/dev/sda of=/dev/sdb bs=8192
 
   which gave me a LOT of I/O errors after a short time.
 
 [...]
 
   From what kernel version the new advanced format
   of the hd is fully supported ?
 
 My understanding is that the new format doesn't cause I/O errors, just
 slower transfer rates if you format with disk clusters that aren't
 aligned on 4K boundaries.  I'm not aware of any support in the
 kernel.
 
   Are there other reasons -- beside defective hardware -- for
   the failing dd and how can I fix them ?
 
 In my experience, I/O errors have always been hardware problems
 (usually a failing drive, but it could also be a faulty cable or
 connector).
 
 -- 
 Grant Edwards   grant.b.edwardsYow! PIZZA!!
   at   
   gmail.com
 

Hi 

If it happens again, I will try to save the error list and post it
here...

May be: The WD-harddiscs are SATA2 my controllers are only SATA1...
is it  this, which cause the problems?

Best regards,
mcc

-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.




[gentoo-user] Lov'n Gentoo

2010-05-26 Thread James
Folks, 

I just had to share this.

So I read the Linux journal, mostly to do my
part to keep publications about Linux alive.
Occationally they write about something cool,
though rarely  related to Gentoo

So I read about a very cool submarine game today
on LJ:
http://www.linuxjournal.com/content/danger-deep

Only to discover it's already in portage.
KUDOS to the Gentoo game devs for being 
on top of this one

I'm so glad I hate windows and love Gentoo..
Sure, I'm an old fart, but, I'm going off to
test out this game (so I can tell my kids about it
and be cool.for about 5 seconds).


James






RE: [gentoo-user] Cannot start Slapd (OpenLDAP)

2010-05-26 Thread Christopher Kurtis Koeber
OK, I have tried everything and while I made some progress I still can't get
the Open-LDAP server to start.

I loaded the initial entry, I believe and ran slaptest, which came back
clean.

However, I STILL can't get the server to start. And now I don't know what
may be the issue, as slaptest is coming back OK. Any ideas?

Here is the output for slaptest -d 25:

Begin Output

slaptest -d 25
slaptest init: initiated tool.
bdb_back_initialize: initialize BDB backend
bdb_back_initialize: Berkeley DB 4.7.25: (2010-05-20)
hdb_back_initialize: initialize HDB backend
hdb_back_initialize: Berkeley DB 4.7.25: (2010-05-20)
 dnNormalize: 
 dnNormalize: 
 dnNormalize: cn=Subschema
 dnNormalize: cn=subschema
hdb_db_init: Initializing HDB database
 dnPrettyNormal: dc=wesleyseminary,dc=edu
 dnPrettyNormal: dc=wesleyseminary,dc=edu, dc=wesleyseminary,dc=edu
 dnPrettyNormal: cn=Manager,dc=wesleyseminary,dc=edu
 dnPrettyNormal: cn=Manager,dc=wesleyseminary,dc=edu,
cn=manager,dc=wesleyseminary,dc=edu
 dnNormalize: cn=Subschema
 dnNormalize: cn=subschema
matching_rule_use_init
1.2.840.113556.1.4.804 (integerBitOrMatch): matchingRuleUse: (
1.2.840.113556.1.4.804 NAME 'integerBitOrMatch' APPLIES (
supportedLDAPVersion $ entryTtl $ uidNumber $ gidNumber $ olcConcurrency $
olcConnMaxPending $ olcConnMaxPendingAuth $ olcIdleTimeout $
olcIndexSubstrIfMinLen $ olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $
olcIndexSubstrAnyStep $ olcIndexIntLen $ olcLocalSSF $ olcMaxDerefDepth $
olcReplicationInterval $ olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $
olcThreads $ olcToolThreads $ olcWriteTimeout $ olcDbCacheFree $
olcDbCacheSize $ olcDbDNcacheSize $ olcDbIDLcacheSize $ olcDbSearchStack $
olcDbShmKey $ olcSpSessionlog $ olcChainMaxReferralDepth $
olcDbProtocolVersion $ olcDbConnectionPoolMax $ mailPreferenceOption $
shadowLastChange $ shadowMin $ shadowMax $ shadowWarning $ shadowInactive $
shadowExpire $ shadowFlag $ ipServicePort $ ipProtocolNumber $ oncRpcNumber
) )
1.2.840.113556.1.4.803 (integerBitAndMatch): matchingRuleUse: (
1.2.840.113556.1.4.803 NAME 'integerBitAndMatch' APPLIES (
supportedLDAPVersion $ entryTtl $ uidNumber $ gidNumber $ olcConcurrency $
olcConnMaxPending $ olcConnMaxPendingAuth $ olcIdleTimeout $
olcIndexSubstrIfMinLen $ olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $
olcIndexSubstrAnyStep $ olcIndexIntLen $ olcLocalSSF $ olcMaxDerefDepth $
olcReplicationInterval $ olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $
olcThreads $ olcToolThreads $ olcWriteTimeout $ olcDbCacheFree $
olcDbCacheSize $ olcDbDNcacheSize $ olcDbIDLcacheSize $ olcDbSearchStack $
olcDbShmKey $ olcSpSessionlog $ olcChainMaxReferralDepth $
olcDbProtocolVersion $ olcDbConnectionPoolMax $ mailPreferenceOption $
shadowLastChange $ shadowMin $ shadowMax $ shadowWarning $ shadowInactive $
shadowExpire $ shadowFlag $ ipServicePort $ ipProtocolNumber $ oncRpcNumber
) )
1.3.6.1.4.1.1466.109.114.2 (caseIgnoreIA5Match): matchingRuleUse: (
1.3.6.1.4.1.1466.109.114.2 NAME 'caseIgnoreIA5Match' APPLIES ( altServer $
olcDbConfig $ c $ mail $ dc $ associatedDomain $ email $ aRecord $ mDRecord
$ mXRecord $ nSRecord $ sOARecord $ cNAMERecord $ janetMailbox $ gecos $
homeDirectory $ loginShell $ memberUid $ memberNisNetgroup $ ipHostNumber $
ipNetworkNumber $ ipNetmaskNumber $ macAddress $ bootFile $ nisMapEntry ) )
1.3.6.1.4.1.1466.109.114.1 (caseExactIA5Match): matchingRuleUse: (
1.3.6.1.4.1.1466.109.114.1 NAME 'caseExactIA5Match' APPLIES ( altServer $
olcDbConfig $ c $ mail $ dc $ associatedDomain $ email $ aRecord $ mDRecord
$ mXRecord $ nSRecord $ sOARecord $ cNAMERecord $ janetMailbox $ gecos $
homeDirectory $ loginShell $ memberUid $ memberNisNetgroup $ ipHostNumber $
ipNetworkNumber $ ipNetmaskNumber $ macAddress $ bootFile $ nisMapEntry ) )
2.5.13.39 (certificateListMatch): 2.5.13.38
(certificateListExactMatch): matchingRuleUse: ( 2.5.13.38 NAME
'certificateListExactMatch' APPLIES ( authorityRevocationList $
certificateRevocationList $ deltaRevocationList ) )
2.5.13.35 (certificateMatch): 2.5.13.34 (certificateExactMatch):
matchingRuleUse: ( 2.5.13.34 NAME 'certificateExactMatch' APPLIES (
userCertificate $ cACertificate ) )
2.5.13.30 (objectIdentifierFirstComponentMatch): matchingRuleUse: (
2.5.13.30 NAME 'objectIdentifierFirstComponentMatch' APPLIES (
supportedControl $ supportedExtension $ supportedFeatures $ ldapSyntaxes $
supportedApplicationContext ) )
2.5.13.29 (integerFirstComponentMatch): matchingRuleUse: ( 2.5.13.29
NAME 'integerFirstComponentMatch' APPLIES ( supportedLDAPVersion $ entryTtl
$ uidNumber $ gidNumber $ olcConcurrency $ olcConnMaxPending $
olcConnMaxPendingAuth $ olcIdleTimeout $ olcIndexSubstrIfMinLen $
olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $ olcIndexSubstrAnyStep $
olcIndexIntLen $ olcLocalSSF $ olcMaxDerefDepth $ olcReplicationInterval $
olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $ olcThreads $
olcToolThreads $ olcWriteTimeout $ olcDbCacheFree $ 

Re: [gentoo-user] Cannot start Slapd (OpenLDAP)

2010-05-26 Thread Ward Poelmans
On Wed, May 26, 2010 at 19:52, Christopher Kurtis Koeber
ckoe...@gmail.com wrote:
 However, I STILL can't get the server to start. And now I don't know what
 may be the issue, as slaptest is coming back OK. Any ideas?

Try running slapd -d 65535 and tell us what it says.

Ward



Re: [gentoo-user] Re: Harddisk trouble ... or not yet?

2010-05-26 Thread Volker Armin Hemmann
On Mittwoch 26 Mai 2010, meino.cra...@gmx.de wrote:
 Grant Edwards grant.b.edwa...@gmail.com [10-05-26 17:19]:
  On 2010-05-26, meino.cra...@gmx.de meino.cra...@gmx.de wrote:
[...] I have two WDC WD10EARS-00Y5B1 (pasted from
hdparm -i) harddisk (1TB, advanced format 4096 kb sectors).
  
  [...]
  
   dd if=/dev/sda of=/dev/sdb bs=8192

which gave me a LOT of I/O errors after a short time.
  
  [...]
  
From what kernel version the new advanced format
of the hd is fully supported ?
  
  My understanding is that the new format doesn't cause I/O errors, just
  slower transfer rates if you format with disk clusters that aren't
  aligned on 4K boundaries.  I'm not aware of any support in the
  kernel.
  
Are there other reasons -- beside defective hardware -- for
the failing dd and how can I fix them ?
  
  In my experience, I/O errors have always been hardware problems
  (usually a failing drive, but it could also be a faulty cable or
  connector).
 
 Hi
 
 If it happens again, I will try to save the error list and post it
 here...
 
 May be: The WD-harddiscs are SATA2 my controllers are only SATA1...
 is it  this, which cause the problems?
 
 Best regards,
 mcc

usually it shouldn't.



Re: [gentoo-user] Cannot start Slapd (OpenLDAP)

2010-05-26 Thread Ward Poelmans
On Wed, May 26, 2010 at 20:36, Christopher Kurtis Koeber
ckoe...@gmail.com wrote:
 Ran the command: /usr/lib/openldap/slapd -F /etc/openldap/ -d 65535

 See attached as the output was long.

 Not sure what is going on. Any help would be appreciated.

Are you sure you specified a rootdn and rootpw and that they are correct?

I cann't tell what goes wrong, it starts correctly and that it goes
wrong and terminates.

Maybe you should post this on the openldap mailing list?

Ward



Re: [gentoo-user] Re: Harddisk trouble ... or not yet?

2010-05-26 Thread Neil Bothwick
On Wed, 26 May 2010 19:59:32 +0200, Volker Armin Hemmann wrote:

  May be: The WD-harddiscs are SATA2 my controllers are only SATA1...
  is it  this, which cause the problems?

 usually it shouldn't.

It has done for me in the past. SATA2 drives usually have a jumper to
switch them to SATA1.


-- 
Neil Bothwick

Q-Tip: When an omnipotent alien gives you advice.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Harddisk trouble ... or not yet?

2010-05-26 Thread Volker Armin Hemmann
On Mittwoch 26 Mai 2010, Neil Bothwick wrote:
 On Wed, 26 May 2010 19:59:32 +0200, Volker Armin Hemmann wrote:
   May be: The WD-harddiscs are SATA2 my controllers are only SATA1...
   is it  this, which cause the problems?
  
  usually it shouldn't.
 
 It has done for me in the past. SATA2 drives usually have a jumper to
 switch them to SATA1.

that is why I used 'usually' and 'shouldn't'. But that is not a sata1 or sata2 
jumper but a speed jumper.



Re: [gentoo-user] Postfix question about auth and blocklists...

2010-05-26 Thread Brandon Vargo
On Wed, 2010-05-26 at 15:40 +0100, Steve wrote:
 On a gentoo mailserver, I'm running Postfix 2.6.5 - and, having followed
 some howto or other, quite a long time ago, I have this section at the
 end of my main.cf:
 
 --
 smtpd_recipient_restrictions =
  permit_mynetworks,
  permit_sasl_authenticated,
  reject_unauth_destination,
  reject_non_fqdn_sender,
  reject_rbl_client sbl-xbl.spamhaus.org,
  reject_rbl_client list.dsbl.org,
  reject_rbl_client bl.spamcop.net,
  reject_unknown_sender_domain,
  reject_rhsbl_sender bogusmx.rfc-ignorant.org
 --
 
 While it might not be optimal, it worked extremely well for a long
 time.  The block lists were a godsend as I receive(d) quite a lot of
 spam which had threatened to bog down spamassassin.  For ages, I just
 used my ISP's SMTP server to send, and only received on my own.
 
 I've bought a smart phone (an HTC HD2 on Windows Mobile 6.5) and need to
 use it to access my email on this server - both via mobile and Wi-Fi
 connectivity.  The IMAP(s) side works OK for my inbox (after a few
 dovecot tweaks)  - and, after a setting up SASL, I can now send email
 from my phone via my own SMTP server, which gateways this to my ISP...
 all secured by a complex password.  So far, so good - and I can send
 email from home over Wi-Fi from my phone.  The problem arises
 elsewhere... where I'm not connected to my local (W)LAN (i.e. where I'm
 not in permit_mynetworks) - where the phone reports:
 
 --
 The server returned the following error message:
 
 554 5.7.1 Service unavailable; Client host 149.254.48.170 blocked using
 sbl-xbl.spamhouse.org; http://www.spamhous.org/query/bl?ip=149.254.48.170
 --
 
 The block comes as no surprise as 149.254.48.170 isn't exclusively under
 my control - and, likely, is a vector for lots of spam - now mobile data
 services are cheap and difficult to trace.  What I didn't expect is for
 my connection to be rejected even though I had the right username and
 password.
 
 So... the questions:
 
 * How can I alter the configuration  to process email from blocked
 locations if and only if the client authenticates?
 * How can I verify that SMTP auth has been done (when connecting from my
 LAN) - it would be a disaster if I inadvertently created an open relay. 
 (I don't think I have - but better safe than sorry, etc.)
 
 Thanks in advance for any replies...
 
 

You want to split your rules between smtpd_recipient_restrictions,
smtpd_sender_restrictions, and smtpd_client_restrictions. The first will
apply rules to the recipient address, controlling the destinations to
which the mail server will send mail. The second will apply rules to the
sender address. The third will restrict who is allowed to connect to
your mail server in the first place. By default,
smtpd_recipient_restrictions permits mynetworks and rejects unauthorized
recipients, smtp_sender_restrictions permits everything, and
smtpd_client_restrictions allows all connections. In all, the first
restriction that matches is applied.

What you want it something closer to this:

smtpd_client_restrictions = 
   permit_mynetworks, 
   permit_sasl_authenticated, 
   reject_rbl_client sbl-xbl.spamhaus.org,
   reject_rbl_client list.dsbl.org,
   reject_rbl_client bl.spamcop.net,
   reject_rhsbl_sender bogusmx.rfc-ignorant.org

smtpd_recipient_restrictions = 
   permit_mynetworks, 
   permit_sasl_authenticated, 
   reject_unauth_destination

smtpd_sender_restrictons =
   permit_mynetworks,
   permit_sasl_authenticated,
   reject_non_fqdn_sender,
   reject_unknown_sender_domain

Note that I have not tested this exact configuration, but I have
something similar on my mail server. This configuration will allow all
mail from your local network and any authenticated client. If neither of
these conditions are met, the remote client is blocked if they are on
one of the DNS block lists, the sender address is not known, or the mail
is addressed to an unauthorized destination. If the client is on the
local network or authenticated, none of the other rules will apply. You
can of course test the rules by using one of the many mail relay testing
websites or simply connecting from outside your network with and without
using authentication.

For more information on these rules, look at the postfix documentation,
which is quite comprehensive:
  * http://www.postfix.org/postconf.5.html#smtpd_recipient_restrictions
  * http://www.postfix.org/postconf.5.html#smtpd_client_restrictions
  * http://www.postfix.org/postconf.5.html#smtpd_sender_restrictions

You might also want to take a look at smtpd_helo_restrictions and
smtpd_data_restrictions for further tuning. Also, note that spamhaus
recommends zen.spamhaus.org instead of sbl-xbl.spamhaus.org. The former
is more comprehensive while the latter is geared only toward exploits.
Do not include both, as zen includes sbl-xbl.

For more in-depth information, you probably want to ask the

RE: [gentoo-user] Cannot start Slapd (OpenLDAP)

2010-05-26 Thread Christopher Kurtis Koeber
Sure. I guess that is the best. Thank you so much for your time.

Regards,

Christopher Kurtis Koeber
(W): (202) 885-8654
(C): (301) 467-8417
http://www.chriskoeber.com


-Original Message-
From: Ward Poelmans [mailto:wpoel...@gmail.com] 
Sent: Wednesday, May 26, 2010 2:54 PM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Cannot start Slapd (OpenLDAP)

On Wed, May 26, 2010 at 20:36, Christopher Kurtis Koeber ckoe...@gmail.com 
wrote:
 Ran the command: /usr/lib/openldap/slapd -F /etc/openldap/ -d 65535

 See attached as the output was long.

 Not sure what is going on. Any help would be appreciated.

Are you sure you specified a rootdn and rootpw and that they are correct?

I cann't tell what goes wrong, it starts correctly and that it goes wrong and 
terminates.

Maybe you should post this on the openldap mailing list?

Ward





Re: [gentoo-user] Re: Harddisk trouble ... or not yet?

2010-05-26 Thread Neil Bothwick
On Wed, 26 May 2010 21:13:06 +0200, Volker Armin Hemmann wrote:

 that is why I used 'usually' and 'shouldn't'.

Have you considered a career in politics? ;-)


-- 
Neil Bothwick

A clean desk is a sign of a cluttered desk drawer.


signature.asc
Description: PGP signature


Re: [gentoo-user] fluxbox startup

2010-05-26 Thread Mick
On Tuesday 25 May 2010 09:10:18 fajfu...@wp.pl wrote:
 styleblockquote {padding-left: 1ex; margin: 0px 0px 0px 0.8ex;
  border-left: #cc 1px solid;} p {margin: 0px;padding: 0px;} /style
  pHellobr /br /After an upgrade about a week ago my fluxbox stopped
  beeing launched at the xdm startupbr /after I log on. Fluxbox starts
  with no problem using startx command.br /br /My /etc/rc.conf has the
  following entry:br /XSESSION=fluxboxbr /br /My /etc/conf.d/xdm has
  the following entry:br /DISPLAYMANAGER=gdmbr /br /My ~/.xinitrc
  has the following entry:br /exec startfluxboxbr /br /Any suggestions
  what is wrong with my config are appreciated.br /br /Great thanks for
  help./pbr /

$ cat /etc/env.d/90xsession 
XSESSION=fluxbox
-- 
Regards,
Mick


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


Re: [gentoo-user] Lov'n Gentoo

2010-05-26 Thread Peter Humphrey
On Wednesday 26 May 2010 18:45:53 James wrote:

 I read the Linux journal, mostly to do my part to keep publications
 about Linux alive.

I gave up on that one years ago - so many that I can't remember how 
many. I couldn't see why I should continue to buy a Linux mag that 
didn't help me to run Linux, preferring to spend its time waffling and 
pontificating. I still can't. Maybe it's changed since.

Journal? I don't think so.

-- 
Rgds
Peter.



Re: [gentoo-user] Re: Harddisk trouble ... or not yet?

2010-05-26 Thread meino . cramer
Neil Bothwick n...@digimed.co.uk [10-05-27 02:04]:
 On Wed, 26 May 2010 21:13:06 +0200, Volker Armin Hemmann wrote:
 
  that is why I used 'usually' and 'shouldn't'.
 
 Have you considered a career in politics? ;-)
 
 
 -- 
 Neil Bothwick
 
 A clean desk is a sign of a cluttered desk drawer.

Oh, uhh...I did not want to start a political discussion here... ;O)

In the meantime I did the copy thingy (dd if=) again with
a new KNOPPIX dvd (kernel 2.6.32.something) and it copied the
whole disk in 204min without a single I/O error.

Now I did not know exactly what think about it...
(which again is like politics ;)

Is there any way to check the disk without damaging its
contents?

best regards,
mcc




-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.




[gentoo-user] Splitting gentoo into /usr and /usr/local

2010-05-26 Thread meino . cramer

Hi,

 is there any reasonable way to keep any stable 
 installation (those done without using ~x86 in
 package.keywords) in /usr while anything installed
 as unstable (using ~x86) under /usr/local ?

 best regards,
 mcc

-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.




[gentoo-user] danger-deep

2010-05-26 Thread Iain Buchanan
On Wed, 2010-05-26 at 17:45 +, James wrote:
 Folks, 
 
 I just had to share this.
 
 So I read the Linux journal, mostly to do my
 part to keep publications about Linux alive.
 Occationally they write about something cool,
 though rarely  related to Gentoo

FTA:
The Web site provides a lovely binary installer that feels much
like that of a commercial game. You can compile the game from
source if you want, but would you really do that when you can
simply click Next, Next, Next?
*sigh*

 So I read about a very cool submarine game today
 on LJ:
 http://www.linuxjournal.com/content/danger-deep
 
 Only to discover it's already in portage.
 KUDOS to the Gentoo game devs for being 
 on top of this one

Doesn't run here.  Something to do with getting the available
resolutions:

SDL_Rect** modes = SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE);

must be returning nothing, because later when it tests the resolution it
wants to use against the resolutions available:

for (listvector2i::const_iterator it = available_resolutions.begin(); it != 
available_resolutions.end(); ++it) {
if (*it == vector2i(res_x_, res_y_)) {
ok = true;
break;
}
}
if (!ok)
throw invalid_argument(invalid resolution requested!);

I get the exception.  No matter what res I specify on the command
line :(

$ dangerdeep 
Caught exception: invalid resolution requested!

Anyone know about SDL?

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

If you stand on your head, you will get footprints in your hair.




Re: [gentoo-user] Re: {OT} Basic device for a Gentoo router/firewall?

2010-05-26 Thread Iain Buchanan
On Wed, 2010-05-26 at 10:28 +0100, Peter Humphrey wrote:

 All very well if you happen to have such a device lying around. I don't, 
 however, and Google doesn't show me a source of them either, so I'll 
 just wait for something more suitable to come along. Cheaper, too, with 
 any luck, such as the devices Neil mentioned on Monday.
 
 Thanks anyway.

no probs, they aren't cheap, but if you need the extra features, they're
well worth it.

Instead (as Neal or someone suggested) I'd go for a mini-itx atom board
- easy to compile for, low noise, and many are fanless.  Many come with
gigabit (good for the router), multiple usb, sata, and so on.  Some have
sockets, some have the cpu built in.

The Atom D510 is even dual core!

have fun putting it together!
-- 
Iain Buchanan iaindb at netspace dot net dot au

Man is a rational animal who always loses his temper when he is called upon
to act in accordance with the dictates of reason.
-- Oscar Wilde




[gentoo-user] Re: Harddisk trouble ... or not yet?

2010-05-26 Thread walt

On 05/26/2010 05:19 PM, meino.cra...@gmx.de wrote:


Is there any way to check the disk without damaging its
contents?


Do you know about SMART?  Install sys-apps/smartmontools if you
don't already have it, and read the manpage for smartctl.

I add smartd to my default runlevel so the hard drives will test
themselves once every month and log the test results in syslog.

Hm.  I just noticed that smartd isn't actually running, so I need
to do some debugging now.  But that's the idea, anyway.




Re: [gentoo-user] Re: Harddisk trouble ... or not yet?

2010-05-26 Thread meino . cramer
walt w41...@gmail.com [10-05-27 04:08]:
 On 05/26/2010 05:19 PM, meino.cra...@gmx.de wrote:
 
 Is there any way to check the disk without damaging its
 contents?
 
 Do you know about SMART?  Install sys-apps/smartmontools if you
 don't already have it, and read the manpage for smartctl.
 
 I add smartd to my default runlevel so the hard drives will test
 themselves once every month and log the test results in syslog.
 
 Hm.  I just noticed that smartd isn't actually running, so I need
 to do some debugging now.  But that's the idea, anyway.
 

Hi,

yes, I know smart...

I was more thinking of a tool, which test the whole disc surface
and reports every bad sector.

Smarts is more of statistical kind: It counts events and tries
to calculate dooms day from that ;)


-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.




Re: [gentoo-user] fluxbox startup

2010-05-26 Thread Madhurya Kakati
The xdm conf file has display manager as gdm. I guess changing that to
xdm would help.

On 5/26/10, Mick michaelkintz...@gmail.com wrote:
 On Tuesday 25 May 2010 09:10:18 fajfu...@wp.pl wrote:
 styleblockquote {padding-left: 1ex; margin: 0px 0px 0px 0.8ex;
  border-left: #cc 1px solid;} p {margin: 0px;padding: 0px;} /style
  pHellobr /br /After an upgrade about a week ago my fluxbox stopped
  beeing launched at the xdm startupbr /after I log on. Fluxbox starts
  with no problem using startx command.br /br /My /etc/rc.conf has the
  following entry:br /XSESSION=fluxboxbr /br /My /etc/conf.d/xdm
 has
  the following entry:br /DISPLAYMANAGER=gdmbr /br /My ~/.xinitrc
  has the following entry:br /exec startfluxboxbr /br /Any
 suggestions
  what is wrong with my config are appreciated.br /br /Great thanks for
  help./pbr /

 $ cat /etc/env.d/90xsession
 XSESSION=fluxbox
 --
 Regards,
 Mick


-- 
Sent from my mobile device



Re: [gentoo-user] fluxbox startup

2010-05-26 Thread Madhurya Kakati
The xdm conf file has display manager as gdm. I guess changing that to
xdm would help.

On 5/26/10, Mick michaelkintz...@gmail.com wrote:
 On Tuesday 25 May 2010 09:10:18 fajfu...@wp.pl wrote:
 styleblockquote {padding-left: 1ex; margin: 0px 0px 0px 0.8ex;
  border-left: #cc 1px solid;} p {margin: 0px;padding: 0px;} /style
  pHellobr /br /After an upgrade about a week ago my fluxbox stopped
  beeing launched at the xdm startupbr /after I log on. Fluxbox starts
  with no problem using startx command.br /br /My /etc/rc.conf has the
  following entry:br /XSESSION=fluxboxbr /br /My /etc/conf.d/xdm
 has
  the following entry:br /DISPLAYMANAGER=gdmbr /br /My ~/.xinitrc
  has the following entry:br /exec startfluxboxbr /br /Any
 suggestions
  what is wrong with my config are appreciated.br /br /Great thanks for
  help./pbr /

 $ cat /etc/env.d/90xsession
 XSESSION=fluxbox
 --
 Regards,
 Mick


-- 
Sent from my mobile device



Re: [gentoo-user] Re: Harddisk trouble ... or not yet?

2010-05-26 Thread W.Kenworthy
On Thu, 2010-05-27 at 04:43 +0200, meino.cra...@gmx.de wrote:
 walt w41...@gmail.com [10-05-27 04:08]:
  On 05/26/2010 05:19 PM, meino.cra...@gmx.de wrote:
  
  Is there any way to check the disk without damaging its
  contents?
  
  Do you know about SMART?  Install sys-apps/smartmontools if you
  don't already have it, and read the manpage for smartctl.
  
  I add smartd to my default runlevel so the hard drives will test
  themselves once every month and log the test results in syslog.
  
  Hm.  I just noticed that smartd isn't actually running, so I need
  to do some debugging now.  But that's the idea, anyway.
  
 
 Hi,

 yes, I know smart...
 
 I was more thinking of a tool, which test the whole disc surface
 and reports every bad sector.
 
 Smarts is more of statistical kind: It counts events and tries
 to calculate dooms day from that ;)
 
 

Not so easy (coming in late on this thread, sorry if its been covered)

Modern hard drives insulate the outside from whats actually happening
internally.  They have a number of spare locations they can swap into
use when a bad patch develops.  This is invisible except to something
like smart reporting.  Rule of thumb - when a modern drive starts
showing bad sectors to the outside world, its already well past its use
by date.

So something like SMART is the only way for the average Joe to get the
health of a drive.

Google has lots on this sort of thing

BillK





Re: [gentoo-user] Re: Harddisk trouble ... or not yet?

2010-05-26 Thread Iain Buchanan
On Thu, 2010-05-27 at 11:52 +0800, W.Kenworthy wrote:

 So something like SMART is the only way for the average Joe to get the
 health of a drive.
 
 Google has lots on this sort of thing

That sentence is correct in more than one way!  Google the generic term
for any web page found via searching on Google no doubt has lots on
this sort of thing, but so does Google the company.

I remember reading a SlasDot post about the results of their disk
monitoring over the last x years, and they use and monitor a lot of
disks.

*looking*

Here's the full study: http://labs.google.com/papers/disk_failures.html

From the abstract: ...we conclude that models based on SMART parameters
alone are unlikely to be useful for predicting individual drive
failures. Surprisingly, we found that temperature and activity levels
were much less correlated with drive failures than previously reported.

I recall there were some summaries of this article, but I can't find
them right now.

An interesting read.  Basically, you might not be able to get reliable
warnings of impending failures.

Keep Good Backups (so say we all)

-- 
Iain Buchanan iaindb at netspace dot net dot au

The naked truth of it is, I have no shirt.
-- William Shakespeare, Love's Labour's Lost




Re: [gentoo-user] Something happened on the way to X : solved

2010-05-26 Thread alain . didierjean
Selon Dale rdalek1...@gmail.com:

 alain.didierj...@free.fr wrote:
  Installing Gentoo on my computer... with
  ACCEPT_KEYWORDS=amd64
  VIDEO_CARDS=fglrx
  INPUT_DEVICES=evdev
 
  everything's fine until I emerge xorg-server, which returns:
 
  [ebuild  N] x11-base/xorg-drivers-1.7  INPUT_DEVICES=evdev -acecad
 -aiptek
  -joystick -keyboard -mouse -penmount -synaptics -tslib -virtualbox -vmmouse
  -void -wacom VIDEO_CARDS=fglrx -apm -ark -ast -chips -cirrus -dummy
 -epson
  -fbdev (-geode) -glint -i128 (-i740) (-impact) -intel -mach64 -mga
 -neomagic
  (-newport) -nv (-nvidia) -r128 -radeon -radeonhd -rendition -s3 -s3virge
 -savage
  -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6)
 (-sunffb)
  (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -via -virtualbox
  -vmware (-voodoo) (-xgi)
  [ebuild  N] x11-libs/libXinerama-1.1  USE=-debug
  [ebuild  N] x11-base/xorg-server-1.7.6  USE=hal nptl xorg -debug -dmx
 -ipv6
  -kdrive -minimal -sdl -tslib
  [ebuild  N] x11-drivers/ati-drivers-9.11  USE=modules (multilib)
 -debug
  [ebuild  N] x11-drivers/xf86-input-evdev-2.3.2  USE=-debug
  [blocks B ]=x11-base/xorg-server-1.7.0 (=x11-base/xorg-server-1.7.0
 is
  blocking x11-drivers/ati-drivers-9.11)
 
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
 
 ('ebuild', '/', 'x11-drivers/ati-drivers-9.11', 'merge') pulled in by
   x11-drivers/ati-drivers required by ('ebuild', '/',
  'x11-base/xorg-drivers-1.7', 'merge')
 
 ('ebuild', '/', 'x11-base/xorg-server-1.7.6', 'merge') pulled in by
   =x11-base/xorg-server-1.5.3-r7 required by ('ebuild', '/',
  'x11-drivers/ati-drivers-9.11', 'merge')
   xorg-server
   =x11-base/xorg-server-1.6.3 required by ('ebuild', '/',
  'x11-drivers/xf86-input-evdev-2.3.2', 'merge')
 
 
  -- SNIP-

 I don't use ATI but I think I read here a while back that ATI drivers
 have to be compatible with certain versions of xorg.  You may want to
 see if you can use a newer version of the ATI drivers.

 You can look at the ebuild to see what exact versions.  From what i
 read, it looks like you may need the 10 series instead of the 9 series.
 Then again, it is sometimes backwards from what I am thinking.  May be
 worth testing anyway.


emerging ~amd64 drivers (x11-drivers/ati-drivers-10-4) did the job.