[gentoo-user] RESTRICT_PYTHON_ABIS=3.* - what's that?

2010-02-08 Thread Helmut Jarausch
Hi,
the recent dev-python/matplotlib-0.99.1.1-r1 contains the statement
RESTRICT_PYTHON_ABIS=3.*

Does anybody know what that means?

Does it indicate that this package needs Python-3.x ?

(Reason, it fails here to install. I have masked Python-3.x here)

Many thanks for a hint,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



Re: [gentoo-user] trouble starting bash

2010-02-08 Thread Helmut Jarausch
On  7 Feb, David Relson wrote:
 On Sun, 7 Feb 2010 02:20:19 -0800
 James Ausmus wrote:
 
 On Sat, Feb 6, 2010 at 8:07 PM, David Relson
 rel...@osagesoftware.comwrote:
 
  On Sat, 6 Feb 2010 19:13:33 -0500
  Willie Wong wrote:
 
   On Sat, Feb 06, 2010 at 06:29:27PM -0500, David Relson wrote:
Your replies are much appreciated as we're in an area of Linux
about which I'm poorly informed.
   
Output (below) of rc-status sysinit indicated devfs stopped,
so I started devfs (which didn't change /dev/pt*), then
restarted udev (which didn't affect /dev/pt*).
  
   Right, but can you ssh in to the machine now (or open a terminal
   emulator in X)?
  
   /dev/pts is just the mount point for the devpts pseudo
   filesystem. In modern versions of linux the pts devices are
   created on-the-fly when requested (as opposed to other versions
   and some modern unixes where there will be a fixed number of
   device nodes under /dev/pts or equivalent). All that just goes to
   say that if /dev/pts is empty right after you restart the devfs
   service, it is normal. A device file should be created
   automatically now when userspace programs demand it. (E.g. if you
   now ssh in, and if it succeeds, ls /dev/pts should show one
   entry.)
  
   Try it, let me know if the problem is still there.
 
  Nope.  Both ssh and X terminal emulators are still broken.  No
  change in behavior.
 
  FWIW, most of the entries in /dev are timestamped 02/02 23:34 which
  is when I updated udev earlier this week. Today's upgrade/downgrade
  emerge hasn't affected the timestamps.
 
  A comparison of /etc/udev/rules.d to a saved copy didn't show
  much.  The only puzzling difference is:
   --- 90-hal.rules  (revision 51)
+++ 90-hal.rules (working copy)
@@ -1,2 +1,2 @@
 # pass all events to the HAL daemon
-RUN+=socket:/org/freedesktop/hal/udev_event
+RUN+=socket:@/org/freedesktop/hal/udev_event
 
  removing the @ and restarting udev hasn't helped.  Since the rule
  is hal related, I also restarted hald -- which hasn't helped.
 
 
 What happens if you do:
 
 mount -t devpts none /dev/pts
 
 Does the problem go away?
 
 -James
 
 Eureka!  Problem fixed.
 
 Looking in /etc/mtab, the last line is:
 
none /dev/pts devpts rw 0 0
 
 Perhaps the mount devpts command should have been issued as part of
 emerging udev, openrc, or sysinit ???  Should this be reported to
 b.g.o.??
 
 David
 

I have the following line in my /etc/fstab (I can't remember if I put it
there myself or not)

devpts   /dev/pts devpts mode=0620,gid=5   0 0

Since a mount -a is issued quite early during boot, this is mounted,
as well.

Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



Re: [gentoo-user] RESTRICT_PYTHON_ABIS=3.* - what's that?

2010-02-08 Thread Justin
On 08/02/10 09:33, Helmut Jarausch wrote:
 Hi,
 the recent dev-python/matplotlib-0.99.1.1-r1 contains the statement
 RESTRICT_PYTHON_ABIS=3.*
 
 Does anybody know what that means?
 
 Does it indicate that this package needs Python-3.x ?
 
 (Reason, it fails here to install. I have masked Python-3.x here)
 
 Many thanks for a hint,
 Helmut.
 

That means the package does not work with python-3.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] RESTRICT_PYTHON_ABIS=3.* - what's that?

2010-02-08 Thread Helmut Jarausch
On  8 Feb, Justin wrote:
 On 08/02/10 09:33, Helmut Jarausch wrote:
 Hi,
 the recent dev-python/matplotlib-0.99.1.1-r1 contains the statement
 RESTRICT_PYTHON_ABIS=3.*
 
 Does anybody know what that means?
 
 Does it indicate that this package needs Python-3.x ?
 
 (Reason, it fails here to install. I have masked Python-3.x here)
 
 Many thanks for a hint,
 Helmut.
 
 
 That means the package does not work with python-3.
 
Thanks, then I'll have to make a bug report, since it fails on my
python-2.6.4 based system.

Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



Re: [gentoo-user] trouble starting bash

2010-02-08 Thread Dale

chrome://messenger/locale/messengercompose/composeMsgs.properties:

On  7 Feb, David Relson wrote:
   

On Sun, 7 Feb 2010 02:20:19 -0800
James Ausmus wrote:

 

On Sat, Feb 6, 2010 at 8:07 PM, David Relson
rel...@osagesoftware.comwrote:

   

On Sat, 6 Feb 2010 19:13:33 -0500
Willie Wong wrote:

 

On Sat, Feb 06, 2010 at 06:29:27PM -0500, David Relson wrote:
   

Your replies are much appreciated as we're in an area of Linux
about which I'm poorly informed.

Output (below) of rc-status sysinit indicated devfs stopped,
so I started devfs (which didn't change /dev/pt*), then
restarted udev (which didn't affect /dev/pt*).
 

Right, but can you ssh in to the machine now (or open a terminal
emulator in X)?

/dev/pts is just the mount point for the devpts pseudo
filesystem. In modern versions of linux the pts devices are
created on-the-fly when requested (as opposed to other versions
and some modern unixes where there will be a fixed number of
device nodes under /dev/pts or equivalent). All that just goes to
say that if /dev/pts is empty right after you restart the devfs
service, it is normal. A device file should be created
automatically now when userspace programs demand it. (E.g. if you
now ssh in, and if it succeeds, ls /dev/pts should show one
entry.)

Try it, let me know if the problem is still there.
   

Nope.  Both ssh and X terminal emulators are still broken.  No
change in behavior.

FWIW, most of the entries in /dev are timestamped 02/02 23:34 which
is when I updated udev earlier this week. Today's upgrade/downgrade
emerge hasn't affected the timestamps.

A comparison of /etc/udev/rules.d to a saved copy didn't show
much.  The only puzzling difference is:
  --- 90-hal.rules  (revision 51)
   +++ 90-hal.rules (working copy)
   @@ -1,2 +1,2 @@
# pass all events to the HAL daemon
   -RUN+=socket:/org/freedesktop/hal/udev_event
   +RUN+=socket:@/org/freedesktop/hal/udev_event

removing the @ and restarting udev hasn't helped.  Since the rule
is hal related, I also restarted hald -- which hasn't helped.


 

What happens if you do:

mount -t devpts none /dev/pts

Does the problem go away?

-James
   

Eureka!  Problem fixed.

Looking in /etc/mtab, the last line is:

none /dev/pts devpts rw 0 0

Perhaps the mount devpts command should have been issued as part of
emerging udev, openrc, or sysinit ???  Should this be reported to
b.g.o.??

David

 

I have the following line in my /etc/fstab (I can't remember if I put it
there myself or not)

devpts   /dev/pts devpts mode=0620,gid=5   0 0

Since a mount -a is issued quite early during boot, this is mounted,
as well.

Helmut.

   


Here's something odd, I don't have that line in mine.

r...@smoker / # cat /etc/fstab | grep /dev/pts
r...@smoker / #

However it is mounted:

r...@smoker / # mount | grep /dev/pts
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
r...@smoker / #

Mine is a old install with a really old fstab so that may matter.  I'm 
still on the old baselayout and openrc too.


Dale

:-)  :-)




Re: [gentoo-user] Raid 5 creation is slow - Can this be done quicker? [SOLVED]

2010-02-08 Thread J. Roeleveld
On Monday 01 February 2010 12:58:49 J. Roeleveld wrote:
 Hi All,
 
 I am currently installing a new server and am using Linux software raid to
 merge 6 * 1.5TB drives in a RAID5 configuration.
 
 Creating the RAID5 takes over 20 hours (according to  cat /proc/mdstat )
 
 Is there a way that will speed this up? The drives are new, but contain
  random data left over from some speed and reliability tests I did. I don't
  care about keeping the current 'data', as long as when the array is
  reliable later.
 
 Can I use the  --assume-clean  option with mdadm and then expect it to
  keep working, even through reboots?
 Or is this a really bad idea?
 
 Many thanks,
 
 Joost Roeleveld
 

Hi all,

Many thanks for all the input, I did wait the 20 hours, but when it was 
finished, the performance was still slow. And trying out different options for 
the array didn't actually help.

Thanks to the thread 1-Terabyte drives - 4K sector sizes? - bar performance 
so far I figured out the problem (4KB sectors).
After changing the partitions to use sector 64 as start (as opposed to 63) a 
build of the array should only take 6 hours.
Hopefully, the raid-array will also show a better performance when this is 
finished.

--
Joost Roeleveld



Re: [gentoo-user] Re: When is a disk not a disk?

2010-02-08 Thread Peter Humphrey
On Monday 08 February 2010 02:11:01 Volker Armin Hemmann wrote:
 and what happens if you don't use crap - aka sudo but do it the right
  way - aka su to root?

Exactly the same, of course.

-- 
Rgds
Peter.



[gentoo-user] Request of emerge --info =CAT/PKG-VERSION

2010-02-08 Thread Justin
Hi all,

if you are filling a bug or if you will be asked to provide

emerge --info =CAT/PKG-VERSION

then please provide not only the output of emerge --info but the output
including the =CAT/PKG-VERSION.

One the one hand this shows which *FLAGS etc. are actually used for
building this package and not the default from make.conf and second it
shows additional information about the package on your system like

=
Package Settings
=

=CAT/PKG-VERSION was built with the following:
USE=foo -bar baz


Thanks justin



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: When is a disk not a disk?

2010-02-08 Thread Peter Humphrey
On Monday 08 February 2010 02:25:17 Nikos Chantziaras wrote:

 a) cfdisk might work while fdisk does not.

I get the same from cfdisk: FATAL ERROR: Cannot seek on disk drive
 
 b) You have a corrupted partition table that you can try to repair
 with the testdisk tool

Good idea. I'll have a go at that today.
 
 Another thing: are you using busybox here or the normal version of
 fdisk?  (Busybox comes with its own fdisk.)

Bog-standard fdisk and cfdisk.

-- 
Rgds
Peter.



Re: [gentoo-user] Re: When is a disk not a disk?

2010-02-08 Thread Willie Wong
On Mon, Feb 08, 2010 at 04:25:17AM +0200, Nikos Chantziaras wrote:
 You said that Google didn't help, but still, I've found some info about 
 it.  In short, I've found two things:
 
 a) cfdisk might work while fdisk does not.

Interesting. My personal experience has been the opposite: cfdisk
writes (and demands) better formed partition tables, so sometimes crap
that fdisk can read/write will not work with cfdisk. But of course,
YMMV. Since we are bringing up alternative fdisk programs, what about
sfdisk? I wouldn't put money on it, but it won't hurt to try. 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Problem compiling freemind

2010-02-08 Thread Arttu V.
On 2/7/10, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
 Can someone who knows more Java than I do see what's missing?

I claim no knowledge over java on Gentoo (they changed it again when I
just thought I had it figured out).

But you could try running a small sanity check for java: java-check-environment

-- 
Arttu V.



Re: [gentoo-user] When is a disk not a disk?

2010-02-08 Thread Alexander Puchmayr
Am Montag 08 Februar 2010 01:27:59 schrieb Peter Humphrey:
 Hello again List,
 
 $ sudo  fdisk -l
 
 Unable to seek on /dev/sda
 
 What am I to make of this? The system runs ok, but apparently the
 underlying disk subsystem isn't happy. This box has only the one disk at
 the moment. Google doesn't help.
 
 The box is a new Armari system with an Asus P7P55D motherboard and a
 Samsung Spinpoint F3 1TB SATA II hdd.
 

Having read the thread, there are three things that come to my mind:

1) Have you tried to read from the disk at block zero, i.e. try something like
dd if=/dev/sda of=/dev/null bs=512 count=1024
This should read half a megabyte from the disk and for your hardisk be 
finsihed as soon you release the enter key ...
Errors? and messages in dmsg?

2) The dmesg-output you mailed contains a call-trace about calgary. AFAIK 
calgary is a IOmmu. Have you tried to disable it (try something like appending 
iommu=none to your kernel commandline).
Have you looked for a bios upgrade? maybe you can get rid of the broken bios 
messages this way.

3) A long time ago, there was a bios option for bootsector-protection, I've 
never tried this, and I also don't have any idea whether linux sees that in 
any way. If there is such an option, disable it. 

Greetings
Alex



Re: [gentoo-user] When is a disk not a disk?

2010-02-08 Thread Mark Knecht
On Sun, Feb 7, 2010 at 6:16 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
 On Monday 08 February 2010 01:27:33 Mark Knecht wrote:

 sorry to have forgotten is but simply do

 df

 and see what it says is mounted

 $ df
 Filesystem            Size  Used Avail Use% Mounted on
 rootfs                 60G   25G   32G  44% /
 /dev/root              60G   25G   32G  44% /
 rc-svcdir             1.0M  108K  916K  11% /lib64/rc/init.d
 udev                   10M  144K  9.9M   2% /dev
 shm                   2.0G     0  2.0G   0% /dev/shm
 /dev/sda6              40G  6.4G   32G  17% /home
 /dev/sda7              61G   23G   36G  39% /home/prh/common
 tmpfs                 9.0G  1.8M  9.0G   1% /tmp

 Now, ever since I upgraded to openrc (by setting ACCEPT_KEYWORDS=~amd64
 when I installed this system) my root partition has not been shown as a
 physical partition. I decided to let it go for the time being.

 --
 Rgds
 Peter.



Is this some sort of LVM thing creeping in? I don't use it but I see
signs of it starting to show up on my systems like something is making
it come in with new profiles or something.

I don't know how LVM works but I assume that rootfs and /dev/root have
something to do with your main file system? I rebuilt new hardware for
my dad yesterday using the default sda1/2/3 setup from the Gentoo
AMD64 Install Guide and I see the following:

gandalf ~ # df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/sda3103212320   5041116  92928324   6% /
udev 10240   164 10076   2% /dev
shm1925772 0   1925772   0% /dev/shm
gandalf ~ # cat /proc/partitions
major minor  #blocks  name

   80  976762584 sda
   81 102343 sda1
   828388608 sda2
   83  104857600 sda3
gandalf ~ #

Did you intend to have 3 100MB partitions at the start of your drive
and then everything else inside of an extended partition? It's not
wrong - it was just unexpected for me.

Is yours a 1-Terabyte drive?

[QUOTE]
$cat /proc/partitions
major minor  #blocks  name

  80  976762584 sda
  81 112423 sda1
  82 112455 sda2
  83 104422 sda3
  84  1 sda4
  85   62918509 sda5
  86   41945683 sda6
  87   64685691 sda7
  88   2925 sda8
  89   1431 sda9
  8   10   10490413 sda10
  8   11   10482381 sda11
  8   12   20980858 sda12
  8   13   10490413 sda13
[/QUOTE]



Re: [gentoo-user] When is a disk not a disk?

2010-02-08 Thread Paul Hartman
On Mon, Feb 8, 2010 at 8:20 AM, Alexander Puchmayr
alexander.puchm...@linznet.at wrote:
 3) A long time ago, there was a bios option for bootsector-protection, I've
 never tried this, and I also don't have any idea whether linux sees that in
 any way. If there is such an option, disable it.

Sometimes referred to as virus protection or anti-virus in some
bios versions too.



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-08 Thread Mark Knecht
On Sun, Feb 7, 2010 at 6:08 PM, Willie Wong ww...@math.princeton.edu wrote:
 On Sun, Feb 07, 2010 at 01:42:18PM -0800, Mark Knecht wrote:
    OK - it turns out if I start fdisk using the -u option it show me
 sector numbers. Looking at the original partition put on just using
 default values it had the starting sector was 63 - probably about the
 worst value it could be. As a test I blew away that partition and
 created a new one starting at 64 instead and the untar results are
 vastly improved - down to roughly 20 seconds from 8-10 minutes. That's
 roughly twice as fast as the old 120GB SATA2 drive I was using to test
 the system out while I debugged this issue.

 That's good to hear.

    I'm still a little fuzzy about what happens to the extra sectors at
 the end of a track. Are they used and I pay for a little bit of
 overhead reading data off of them or are they ignored and I lose
 capacity? I think it must be the former as my partition isn't all that
 much less than 1TB.

 As far as I know, you shouldn't worry about it. The
 head/track/cylinder addressing is a relic of an older day. Almost all
 modern drives should be accessed via LBA. If interested, take a look
 at the wikipedia entry on Cylinder-Head-Sector and Logical Block
 Addressing.

 Basically, you are not losing anything.

 Cheers,

 W
 --
 Willie W. Wong                                     ww...@math.princeton.edu
 Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire
         et vice versa   ~~~  I. Newton



Hi,
   Yeah, a little more study and thinking confirms this. The sectors
are 4K. WD put them on there. The sectors are 4K.

   Just because there might be extra physical space at the end of a
track doesn't mean I can ever use it.

   The sectors are 4K and WD put them on there and they've taken ALL
that into account already. They are 4K physically with ECC but
accessible by CHS  and by LBA in 512B chunks. The trick for speed at
the OS/driver level is to make sure we are always grabbing 4K logical
blocks from a single 4K physical sector off the drive. If we do it's
fast. If we don't and start asking for a 4K block that isn't in a
single 4K physical block then it becomes very slow as the drive
hardware/firmware/processor has to do multiple reads and piece it
together for us which is slow. (VERY slow...) By using partitions
mapped to sector number values divisible by 8 we do this. (8 * 512B =
4K)

   The extra space at the end of a track/cylinder is 'lost' but it was
lost before we bought the drive because the sectors are 4K so there is
nothing 'lost' by the choices we make in fdisk. I must remember to use
fdisk -u to see the sector numbers when making the partitions and
remember to do some test writes to the partition to ensure it's right
and the speed is good before doing any real work.

   This has been helpful for me. I'm glad Valmor is getting better
results also.

   I wish I had checked the title before I sent the original email it
was supposed to be

1-Terabyte drives - 4K sector sizes? - bad performance so far

Maybe sticking that here will help others when they Google for this later.

Cheers,
Mark



Re: [gentoo-user] When is a disk not a disk?

2010-02-08 Thread Stroller

When is a disk not a disk?


According to Dell: when you source it from a 3rd-party.

http://lists.us.dell.com/pipermail/linux-poweredge/2010-February/041274.html
http://tinyurl.com/yer7n9o

Stroller.




Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-08 Thread Valmor de Almeida
Mark Knecht wrote:
[snip]
 
This has been helpful for me. I'm glad Valmor is getting better
 results also.
[snip]

These 4k-sector drives can be problematic when upgrading older
computers. For instance, my laptop BIOS would not boot from the toshiba
drive I mentioned earlier. However when used as an external usb drive, I
could boot gentoo. Since I have been using this drive as backup storage
I did not investigate the reason for the lower speed. I am happy to get
a factor of 8 in speed up now after you did the research :)

Thanks for your postings.

--
Valmor






Re: [gentoo-user] Problem compiling freemind

2010-02-08 Thread Peter Humphrey
On Monday 08 February 2010 13:05:25 Arttu V. wrote:

 But you could try running a small sanity check for java:
 java-check-environment

It reports sanity and offers me congratulations.

-- 
Rgds
Peter.



Re: [gentoo-user] When is a disk not a disk?

2010-02-08 Thread Peter Humphrey
On Monday 08 February 2010 15:02:51 Mark Knecht wrote:

 Did you intend to have 3 100MB partitions at the start of your drive
 and then everything else inside of an extended partition? It's not
 wrong - it was just unexpected for me.

I did, but I think I'll revert to just a single boot partition. The 
other two little ones were for other distros' boot directories, so that 
installing them wouldn't clobber my Gentoo boot - the latest Ubuntu uses 
grub-2, for instance, which I don't want mixed with grub-1.

 Is yours a 1-Terabyte drive?

Yes. Vast overkill for what I need it for, but it seems normal nowadays.

-- 
Rgds
Peter.



Re: [gentoo-user] Problem compiling freemind

2010-02-08 Thread Mark Knecht
On Sun, Feb 7, 2010 at 3:57 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote:
 On Sunday 07 February 2010 18:12:58 Mark Knecht wrote:

 What do you see with java-config -l ?

 $ java-config -L
 The following VMs are available for generation-2:
 *)      IcedTea6-bin 1.7 [icedtea6-bin]
 2)      Sun JDK 1.5.0.22 [sun-jdk-1.5]

 --
 Rgds
 Peter.


I actually meant to try the lower case L. Mine shows some ant stuff
which I think you were having trouble with, at least in the compile
messages?

- Mark

m...@firefly ~/Desktop $ java-config -l
[cyrus-sasl-2] The Cyrus SASL (Simple Authentication and Security
Layer). (/usr/share/cyrus-sasl-2/package.env)
[antlr] A parser generator for C++, C#, Java, and Python
(/usr/share/antlr/package.env)
[gjdoc] A javadoc compatible Java source documentation generator.
(/usr/share/gjdoc/package.env)
[xulrunner-1.9] Mozilla runtime package that can be used to bootstrap
XUL+XPCOM applications (/usr/share/xulrunner-1.9/package.env)
[pdflib-5] A library for generating PDF on the fly.
(/usr/share/pdflib-5/package.env)
[subversion] Advanced version control system (/usr/share/subversion/package.env)
[pilot-link] suite of tools for moving data between a Palm device and
a desktop (/usr/share/pilot-link/package.env)
[db-4.7] Oracle Berkeley DB (/usr/share/db-4.7/package.env)
[libidn] Internationalized Domain Names (IDN) implementation
(/usr/share/libidn/package.env)
m...@firefly ~/Desktop $



Re: [gentoo-user] Re: When is a disk not a disk?

2010-02-08 Thread Peter Humphrey
On Monday 08 February 2010 02:25:17 Nikos Chantziaras wrote:

 b) You have a corrupted partition table that you can try to repair
  with the testdisk tool (after you make a full backup of your
  disk.)

That seems to have been it. Testdisk did indeed write a new partition 
table, minus one of the partitions which it insisted on deleting so I 
suppose something was wrong with it.

After much time taking and restoring backups my main system is now 
running again and i can run fdisk.

I'm surprised at this, because a seek error sounds uncomfortably like a 
hardware problem to me. Maybe some particular error in the partition 
table confused fdisk and cfdisk.

Anyway, thanks for the help, Nikos and all those who offered it.

-- 
Rgds
Peter.



[gentoo-user] OT?: Gentoo hosted web services

2010-02-08 Thread James
Hello,


Kind of a strange request here.

I'm looking for somebody to hire to create a sports (basketball) web site,
host it for a few months, until I get my new network ( location)
all set up and then transfer the website to my servers. 
I'll be running apache and both prim/sec DNS servers, eventually.


For the right person, you'll most likely be able to 'moonlight'
and make moderately complex websites for me and get paid. I'm flexible
as to the open source tools you want to use. I have too many things 
going on, so anyone interested, drop me a line. Beside, I'm not a web centric
guy, but, I get asked to create and manage websites all the time,
as part of other business. The right person could have a really easy gig
and make some money. 

Most are sports related or for charities. These are not big money 
website as most I'll  host for free, but for the right open-source 
developer, this is easy money and a very cool and laid back liaison (me).


If you have questions post them here, or drop me some private email.


(coach) James






Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-08 Thread Stroller


On 8 Feb 2010, at 05:25, Valmor de Almeida wrote:


Mark Knecht wrote:
On Sun, Feb 7, 2010 at 11:39 AM, Willie Wong ww...@math.princeton.edu 
 wrote:

[snip]

  OK - it turns out if I start fdisk using the -u option it show me
sector numbers. Looking at the original partition put on just using
default values it had the starting sector was 63 - probably about the


I too was wondering why a Toshiba HDD 1.8 MK2431GAH (4kB-sector), 240
GB I've recently obtained was slow:

- time tar xfj portage-latest.tar.bz2

real16m5.500s
user0m28.535s
sys 0m19.785s

Following your post I recreated a single partition (reiserfs 3.6)
starting at the 64th sector:

Disk /dev/sdb: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders, total 468862128 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xe7bf4b8e

  Device Boot  Start End  Blocks   Id  System
/dev/sdb1  64   468862127   234431032   83  Linux

and the time was improved

- time tar xfj portage-latest.tar.bz2

real2m15.600s
user0m28.156s
sys 0m18.933s


Thanks to both you  Mark for posting this information about these  
improved timings.


I have just checked, and I am getting 3.5 - 6 minutes (real) to untar  
portage. I had blamed performance of this array on the fact that the  
RAID controller is an older model PCI card I got cheap(ish) off eBay,  
but I see it is also aligned beginning at sector 63.


I'm not quite sure if this is cause of poor performance here, as the  
drives in this array are not quite as modern as yours - I'm guessing  
that at least a couple of the drives have been bought in the last 6  
months, but they are only 500GB drives. However I guess it would only  
require one drive in the array to have 4K sectors and it would cause  
this kind of slowdown. I will try checking their spec now.


This is the same server that caused me to post in relation to slow  
Samba transfers 3 weeks ago (How to determine if a NIC is playing  
gigabit?). I have still not yet tested thoroughly - there are always  
chores getting in the way! - but it seems like I was able to transfer  
the same files in about a third (or maybe even a quarter) the time at  
100mbit, between my laptop  desktop Macs.


I am not immediately able to alter the partition layout, as I have  
scads of data on this array. In order to test I think I will need to  
create a second array, aligned optimally, and copy the data across.


I had been recently thinking that 2TB drives are now 40% cheaper per  
gig than 500GB ones, so perhaps I will have to splash out on 3 of  
them. This seems rather a lot of money, but I could probably use the  
space. Hmmmn... actually 1TB are nearly as cheap as per gig -  
considering the eBaying of my current drives, those would make a lot  
of sense.


Stroller.



$ time tar xfj portage-latest.tar.bz2

real6m3.128s
user0m37.810s
sys 0m39.614s
$ echo p  | sudo  fdisk -u /dev/sdb

The number of cylinders for this disk is set to 182360.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):
Disk /dev/sdb: 1500.0 GB, 1499968045056 bytes
255 heads, 63 sectors/track, 182360 cylinders, total 2929625088 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x27a827a7

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1  63  2929613399  1464806668+  83  Linux

Command (m for help): Command (m for help): Command (m for help):
got EOF thrice - exiting..
$



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-08 Thread Paul Hartman
On Mon, Feb 8, 2010 at 12:52 PM, Valmor de Almeida val.gen...@gmail.com wrote:
 Mark Knecht wrote:
 [snip]

This has been helpful for me. I'm glad Valmor is getting better
 results also.
 [snip]

 These 4k-sector drives can be problematic when upgrading older
 computers. For instance, my laptop BIOS would not boot from the toshiba
 drive I mentioned earlier. However when used as an external usb drive, I
 could boot gentoo. Since I have been using this drive as backup storage
 I did not investigate the reason for the lower speed. I am happy to get
 a factor of 8 in speed up now after you did the research :)

 Thanks for your postings.

Thanks for the info everyone, but do you understand the agony I am now
suffering at the fact that all disk in my system (including all parts
of my RAID5) are starting on sector 63 and I don't have sufficient
free space (or free time) to repartition them? :) I am really curious
if there are any gains to be made on my own system...

Next time I partition I will definitely pay attention to this, and
feel foolish that I didn't pay attention before. Thanks.



[gentoo-user] Re: revdep-rebuild keeps reinstalling binutils

2010-02-08 Thread walt

On 02/07/2010 10:19 PM, Konstantinos Bekiaris wrote:

On Mon, Feb 8, 2010 at 5:48 AM, Keith Dart ke...@dartworks.biz 
mailto:ke...@dartworks.biz wrote:

=== On Sun, 02/07, Konstantinos Bekiaris wrote: ===
  Ok, nice approach. The problem is that no package can be installed
  because the compiler gcc is not working...this is Gentoo...everything
  has to do with compiling. The solution of the problem starts with
  fixing gcc by hand. (You are right about python, i have an older
  version).So?
===

try gcc-config first. See if that clears it up. then
source /etc/profile.

I think we are close to the problem. However, whatever i try, i get:

Gentoo kostas # gcc-config -l
  * gcc-config: Active gcc profile is invalid!
  [1] x86_64-pc-linux-gnu-4.3.4


What do you have in /etc/env.d/gcc/?  I have this:

#ls -l /etc/env.d/gcc/
total 16
-rw-r--r-- 1 root root  32 2010-02-08 11:53 config-i686-pc-linux-gnu
-rw-r--r-- 1 root root 235 2009-01-29 12:33 i686-pc-linux-gnu-4.1.2
-rw-r--r-- 1 root root 235 2009-07-04 09:02 i686-pc-linux-gnu-4.3.2
-rw-r--r-- 1 root root 235 2010-01-10 12:29 i686-pc-linux-gnu-4.3.4

Do you still have any version of gcc installed?




Re: [gentoo-user] Sipix Pocket Printer A6

2010-02-08 Thread Grant
 I can get the Sipix Pocket Printer A6 installed in CUPS and it will
 get about 20% through a CUPS test page, but it always stops in the
 same spot and the LED just blinks.

 Does it do the same with standard printing jobs? I ask because I have an
 Epson printer that failed on the CUPS test page, no matter what I tried,
 but then I tried printing a photo from KDE and it worked perfectly.

It works!  The thing just needed new batteries.  For anyone else
reading this, flashing LED = replace batteries.

It has a few problems:

1. The printer doesn't show up in Print dialogs.  It shows up in
localhost:631 and prints the test page and via lpr.  Why wouldn't it
show up in the Print dialogs?  Is it because it's a serial printer?

2. I'm using a USB-serial converter and I get a permissions error
when trying to print unless I chmod /dev/ttyUSB0.  The file shows up
before chmod as:

crw-rw 1 root uucp

The problem with chmod is it resets after unplug/plug.  My user is in
the uucp group.  How can I enable printing after unplug/plug without
chmod?

3. lpr doesn't work unless I set:

# export CUPS_SERVER=localhost

which resets after reboot.  This wouldn't really be a problem if I
could get #1 fixed above because then I could use the Print dialogs
instead of lpr.

4. The printer feeds a lot of paper before it starts to print.  Should
that be fixed in the .upp or .ppd?

5. Quality isn't great, but there's probably not much to do about that.

- Grant



Re: [gentoo-user] Sipix Pocket Printer A6

2010-02-08 Thread Grant
 I can get the Sipix Pocket Printer A6 installed in CUPS and it will
 get about 20% through a CUPS test page, but it always stops in the
 same spot and the LED just blinks.

 Does it do the same with standard printing jobs? I ask because I have an
 Epson printer that failed on the CUPS test page, no matter what I tried,
 but then I tried printing a photo from KDE and it worked perfectly.

 It works!  The thing just needed new batteries.  For anyone else
 reading this, flashing LED = replace batteries.

 It has a few problems:

 1. The printer doesn't show up in Print dialogs.  It shows up in
 localhost:631 and prints the test page and via lpr.  Why wouldn't it
 show up in the Print dialogs?  Is it because it's a serial printer?

 2. I'm using a USB-serial converter and I get a permissions error
 when trying to print unless I chmod /dev/ttyUSB0.  The file shows up
 before chmod as:

 crw-rw 1 root uucp

 The problem with chmod is it resets after unplug/plug.  My user is in
 the uucp group.  How can I enable printing after unplug/plug without
 chmod?

 3. lpr doesn't work unless I set:

 # export CUPS_SERVER=localhost

 which resets after reboot.  This wouldn't really be a problem if I
 could get #1 fixed above because then I could use the Print dialogs
 instead of lpr.

 4. The printer feeds a lot of paper before it starts to print.  Should
 that be fixed in the .upp or .ppd?

 5. Quality isn't great, but there's probably not much to do about that.

 - Grant

I should include info about how I got it to work.  Just follow the
Gentoo Printing Guide and additionally emerge foomatic-filters-ppds
(if it is not already pulled in by cups) and psutils.  After adding
the printer at localhost:631, the device URI should look like this:

serial:/dev/ttyUSB0?baud=115200+bits=8+parity=none+flow=hard

Although your serial port device file would be different if you're
using a real serial port instead of a USB-serial adapter.  The device
URI can be verified and edited in /etc/cups/printers.conf.  Restart
cups after editing that file.

The sipixa6.upp file is required and is included with ghostscript-gpl
which should be pulled in by foomatic-filters which should be pulled
in by foomatic-filters-ppds.

- Grant



[gentoo-user] How the HAL are you supposed to use these files?

2010-02-08 Thread Alan Mackenzie
Hi, Gentoo!

I've just got a sparkling new installation of Gentoo on my new PC.  It
only took me ~5 hours, mainly because I'd already configured the kernel
in a trial run.  :-)

However, I'm now trying to get X up and running.  The X Server
Configuration HOWTO, section 3. Configuring Xorg says:

Hal comes with many premade device rules, also called policies.
These policy files are available in /usr/../policy.  Just find a
few that suit your needs most closely and copy them to /etc/

For example, to get a basic working keyboard/mouse combination, you
could copy the following files...
/usr/.../10-input-policy.fdi
/usr/.../10-x11-input.fdi

.  Am I the only person that finds this semantic gibberish?  Is there
any explanation somewhere of what a policy aka device rule is?  What
is the semantic significance of a device rule?  What does it mean, to
rule a device, or what sort of restrictions are being placed on this
device?

Given that one might desire a basic working keyboard/mouse
combination, what is the chain of reasoning that ends up selecting the
file called 10-input-policy.fdi from all the other ones?

This file is an inpenetrable stanza of uncommented XML.  Are its verbs
documented somewhere?  What do match ... and append  mean,
for example?

Can this new-style fragmented XML configuration do anything that a good
old-fashioned, human-readable and compact xorg.conf can't?  If so, what?
What am I missing here?

Please, somebody, tell me all this HAL stuff is straightforwardly
explained in an easily accessible Gentoo document, so that I can hang my
head in shame and apologise for the noise!  ;-)

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-08 Thread Iain Buchanan
On Mon, 2010-02-08 at 22:20 +, Alan Mackenzie wrote:
 Hi, Gentoo!

OH HAI!

[snip to the crux:]
 Can this new-style fragmented XML configuration do anything that a good
 old-fashioned, human-readable and compact xorg.conf can't?  If so, what?
 What am I missing here?

presumably you're missing the previous conversation on this topic:
http://thread.gmane.org/gmane.linux.gentoo.user/225223/focus=225223

 Please, somebody, tell me all this HAL stuff is straightforwardly
 explained in an easily accessible Gentoo document, so that I can hang my
 head in shame and apologise for the noise!  ;-)

isn't it just done for you?

$ slocate 10-input-policy.fdi
/usr/share/hal/fdi/policy/10osvendor/10-input-policy.fdi

i...@orpheus ~ $ equery belongs 
/usr/share/hal/fdi/policy/10osvendor/10-input-policy.fdi
 * Searching for /usr/share/hal/fdi/policy/10osvendor/10-input-policy.fdi ... 
sys-apps/hal-0.5.14-r2 
(/usr/share/hal/fdi/policy/10osvendor/10-input-policy.fdi)

so why are you copying these files by hand?
-- 
Iain Buchanan iaindb at netspace dot net dot au

A university faculty is 500 egotists with a common parking problem.




Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-08 Thread Paul Hartman
On Mon, Feb 8, 2010 at 4:20 PM, Alan Mackenzie a...@muc.de wrote:
 Please, somebody, tell me all this HAL stuff is straightforwardly
 explained in an easily accessible Gentoo document, so that I can hang my
 head in shame and apologise for the noise!  ;-)

I believe you'll be hearing from Dale in the near future. :)

HAL-in-xorg-in-a-nutshell: If you're using an ordinary desktop system,
you shouldn't need to manually do anything. Just run X as usual and it
should work. You can further customize behavior from inside
Gnome/KDE/whatever using their configuration tools.

Obviously that doesn't always work, at which point you'll then need to
start editing stuff. But I wouldn't bother with it unless you're
unable to get into X for some reason. The first place to look is the X
log file, which contains info about the hardware it auto-detected.
There's also quite a bit of outdated info from when the transition was
taking place, much of it making things sound more complicated than
they really are. (I have not RTFM)

Are you able to get into X or is it failing?



Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-08 Thread Tom Hendrikx
Alan Mackenzie wrote:
 Hi, Gentoo!
 
 I've just got a sparkling new installation of Gentoo on my new PC.  It
 only took me ~5 hours, mainly because I'd already configured the kernel
 in a trial run.  :-)
 
 However, I'm now trying to get X up and running.  The X Server
 Configuration HOWTO, section 3. Configuring Xorg says:
 
 Hal comes with many premade device rules, also called policies.
 These policy files are available in /usr/../policy.  Just find a
 few that suit your needs most closely and copy them to /etc/
 
 For example, to get a basic working keyboard/mouse combination, you
 could copy the following files...
 /usr/.../10-input-policy.fdi
 /usr/.../10-x11-input.fdi
 
   Am I the only person that finds this semantic gibberish?  Is there
 any explanation somewhere of what a policy aka device rule is?  What
 is the semantic significance of a device rule?  What does it mean, to
 rule a device, or what sort of restrictions are being placed on this
 device?
 
 Given that one might desire a basic working keyboard/mouse
 combination, what is the chain of reasoning that ends up selecting the
 file called 10-input-policy.fdi from all the other ones?
 
 This file is an inpenetrable stanza of uncommented XML.  Are its verbs
 documented somewhere?  What do match ... and append  mean,
 for example?
 
 Can this new-style fragmented XML configuration do anything that a good
 old-fashioned, human-readable and compact xorg.conf can't?  If so, what?
 What am I missing here?
 
 Please, somebody, tell me all this HAL stuff is straightforwardly
 explained in an easily accessible Gentoo document, so that I can hang my
 head in shame and apologise for the noise!  ;-)
 

First, give xorg a chance to figure it out by itself. Most stuff works
here without any HAL tinkering:

$ ls -l /etc/hal/fdi/policy/
total 0
$

Maybe the documentation is a bit too much here, it should probably say
that you should start working with the HAL policies when you notice that
some things are not working right (and when that happens do something
like echo 'keyboard-type missing-feature HAL example'  google)

-- 
Regards,
Tom



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-08 Thread Mark Knecht
On Mon, Feb 8, 2010 at 2:20 PM, Alan Mackenzie a...@muc.de wrote:
 Hi, Gentoo!

 I've just got a sparkling new installation of Gentoo on my new PC.  It
 only took me ~5 hours, mainly because I'd already configured the kernel
 in a trial run.  :-)

 However, I'm now trying to get X up and running.  The X Server
 Configuration HOWTO, section 3. Configuring Xorg says:

    Hal comes with many premade device rules, also called policies.
    These policy files are available in /usr/../policy.  Just find a
    few that suit your needs most closely and copy them to /etc/

    For example, to get a basic working keyboard/mouse combination, you
    could copy the following files...
    /usr/.../10-input-policy.fdi
    /usr/.../10-x11-input.fdi

 .  Am I the only person that finds this semantic gibberish?  Is there
 any explanation somewhere of what a policy aka device rule is?  What
 is the semantic significance of a device rule?  What does it mean, to
 rule a device, or what sort of restrictions are being placed on this
 device?

 Given that one might desire a basic working keyboard/mouse
 combination, what is the chain of reasoning that ends up selecting the
 file called 10-input-policy.fdi from all the other ones?

 This file is an inpenetrable stanza of uncommented XML.  Are its verbs
 documented somewhere?  What do match ... and append  mean,
 for example?

 Can this new-style fragmented XML configuration do anything that a good
 old-fashioned, human-readable and compact xorg.conf can't?  If so, what?
 What am I missing here?

 Please, somebody, tell me all this HAL stuff is straightforwardly
 explained in an easily accessible Gentoo document, so that I can hang my
 head in shame and apologise for the noise!  ;-)

 --
 Alan Mackenzie (Nuremberg, Germany).



You are not the only person who finds that decipherable. I don't
understand it and actually I don't even use them unless they are
already where they need to be. hald runs default in rc-update and
things just work. I've done two new AMD64 installations this week and
things seem to be working fine so far.

I'm using evdev in make.config for X mouse and keyboard.

HTH,
Mark



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-08 Thread Frank Steinmetzger
Am Sonntag, 7. Februar 2010 schrieb Mark Knecht:

 Hi Willie,
OK - it turns out if I start fdisk using the -u option it show me
 sector numbers. Looking at the original partition put on just using
 default values it had the starting sector was 63

Same here.

 - probably about the worst value it could be.

Hm what about those first 62 sectors?
I bought this 500GB drive for my laptop recently and did a fresh partitioning 
scheme on it, and then rsynced the filesystems of the old, smaller drive onto 
it. The first two partitions are ntfs, but I believe they also use cluster 
sizes of 4k by default. So technically I could repartition everything and 
then restore the contents from my backup drive.

And indeed my system becomes very sluggish when I do some HDD shuffling. 

 As a test I blew away that partition and 
 created a new one starting at 64 instead and the untar results are
 vastly improved - down to roughly 20 seconds from 8-10 minutes. That's
 roughly twice as fast as the old 120GB SATA2 drive I was using to test
 the system out while I debugged this issue.

Though the result justifies your decision, I would have though one has to 
start at 65, unless the disk starts counting its sectors at 0.
-- 
Gruß | Greetings | Qapla'
Programmers don’t die, they GOSUB without RETURN.


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


Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-08 Thread Mark Knecht
On Mon, Feb 8, 2010 at 3:41 PM, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 On Mon, Feb 8, 2010 at 4:20 PM, Alan Mackenzie a...@muc.de wrote:
 Please, somebody, tell me all this HAL stuff is straightforwardly
 explained in an easily accessible Gentoo document, so that I can hang my
 head in shame and apologise for the noise!  ;-)

 I believe you'll be hearing from Dale in the near future. :)

 HAL-in-xorg-in-a-nutshell: If you're using an ordinary desktop system,
 you shouldn't need to manually do anything. Just run X as usual and it
 should work.

While I think this is what people believe, I must point out that for
it work automatically the system needs to be supported by whatever
version of drivers support the graphics device in the system.

I just got a DH55HC motherboard with the i5-661 processor which does
some or most of the VGA function. For that device to be discovered and
run automatically I would have had to use stuff that's marked ~amd64
which I generally don't do and in this case didn't because it became a
waterfall of things getting unmasked.

So, if you're supported it will work. If you're not because this is
new hardware then you still need xorg.conf.

Cheers,
Mark



Re: [gentoo-user] When is a disk not a disk?

2010-02-08 Thread Neil Bothwick
On Mon, 8 Feb 2010 07:02:51 -0800, Mark Knecht wrote:

 Is this some sort of LVM thing creeping in? I don't use it but I see
 signs of it starting to show up on my systems like something is making
 it come in with new profiles or something.
 
 I don't know how LVM works but I assume that rootfs and /dev/root have
 something to do with your main file system?

LVM can't just turn up with a profile change, you need to allocate
partitions to it, create volume groups, create volumes in them, put
filesystems on the volumes and so on. It doesn't just happen.

/dev/root is just a symlink to the real device containing the root
partition. ISTR it came in with openrc.


-- 
Neil Bothwick


signature.asc
Description: PGP signature


Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-08 Thread Neil Bothwick
On Mon, 8 Feb 2010 14:34:01 -0600, Paul Hartman wrote:

 Thanks for the info everyone, but do you understand the agony I am now
 suffering at the fact that all disk in my system (including all parts
 of my RAID5) are starting on sector 63 and I don't have sufficient
 free space (or free time) to repartition them? :)

With the RAID, you could fail one disk, repartition, re-add it, rinse and
repeat. But that doesn't take care of the time issue.

 I am really curious
 if there are any gains to be made on my own system...

Me too, so post back after you've done it ;-)


-- 
Neil Bothwick

Barth's Distinction:
There are two types of people: those who divide people into two types, and
those who don't.


signature.asc
Description: PGP signature


Re: [gentoo-user] Sipix Pocket Printer A6

2010-02-08 Thread Neil Bothwick
On Mon, 8 Feb 2010 13:03:19 -0800, Grant wrote:

 2. I'm using a USB-serial converter and I get a permissions error
 when trying to print unless I chmod /dev/ttyUSB0.  The file shows up
 before chmod as:
 
 crw-rw 1 root uucp
 
 The problem with chmod is it resets after unplug/plug.  My user is in
 the uucp group.  How can I enable printing after unplug/plug without
 chmod?

That looks like it should work, but you can change the permissions or
ownership with a udev rule.


-- 
Neil Bothwick

Artificial Intelligence usually beats real stupidity.


signature.asc
Description: PGP signature


Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-08 Thread Mark Knecht
On Mon, Feb 8, 2010 at 4:05 PM, Frank Steinmetzger war...@gmx.de wrote:
 Am Sonntag, 7. Februar 2010 schrieb Mark Knecht:

 Hi Willie,
    OK - it turns out if I start fdisk using the -u option it show me
 sector numbers. Looking at the original partition put on just using
 default values it had the starting sector was 63

 Same here.

 - probably about the worst value it could be.

 Hm what about those first 62 sectors?
 I bought this 500GB drive for my laptop recently and did a fresh partitioning
 scheme on it, and then rsynced the filesystems of the old, smaller drive onto
 it. The first two partitions are ntfs, but I believe they also use cluster
 sizes of 4k by default. So technically I could repartition everything and
 then restore the contents from my backup drive.

 And indeed my system becomes very sluggish when I do some HDD shuffling.

 As a test I blew away that partition and
 created a new one starting at 64 instead and the untar results are
 vastly improved - down to roughly 20 seconds from 8-10 minutes. That's
 roughly twice as fast as the old 120GB SATA2 drive I was using to test
 the system out while I debugged this issue.

 Though the result justifies your decision, I would have though one has to
 start at 65, unless the disk starts counting its sectors at 0.
 --
 Gruß | Greetings | Qapla'
 Programmers don’t die, they GOSUB without RETURN.


Good question. I don't know where it starts counting but 63 seems to
be the first one you can use on any blank drive I've looked at so far.

There's a few small downsides I've run into with all of this so far:

1) Since we don't use sector 63 it seems that fdisk will still tell
you that you can use 63 until you use up all your primary partitions.
It used to be easier to put additional partitions on when it gave you
the next sector you could use after the one you just added.. Now I'm
finding that I need to write things down and figure it out more
carefully outside of fdisk.

2) When I do something like +60G fdisk chooses the final sector, but
it seems that it doesn't end 1 sector before something divisible by 8,
so again, once the new partition is in I need to do more calculations
to find where then next one will go. Probably better to decide what
you want for an end and make sure that the next sector is divisible by
8.

3) When I put in an extended partition I put the start of it at
something divisible by 8. When I went to add a logical partition
inside of that I found that there was some strange number of sectors
dedicated to the extended partition itself and I had to waste a few
more sectors getting the logical partitions divisible by 8.

4) Everything I've done so far leave me with messages about partition
1 not ending on a cylinder boundary. Googling on that one says don't
worry about it. I don't know...

So, it works - the new partitions are fast but it's a bit of work
getting them in place.

- Mark



[gentoo-user] Am I an Erasee ?

2010-02-08 Thread meino . cramer
Hi,

 I wanted to unsubscribe from this list, but the 
 mlmmj said, that I cannot unsubscribe since I am
 not subscribed. Which isn't quite right as you
 can see here.
 I fear if I would subscribe now a second time and
 unsubscribe than, I will become two erasees...
 What can I do to become real again ... ;)

 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] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-08 Thread Stroller


On 9 Feb 2010, at 00:05, Frank Steinmetzger wrote:

...

- probably about the worst value it could be.


Hm what about those first 62 sectors?


If I'm understanding correctly, then the drive will *always* have to  
start at the 63rd sector, then swing back round and start reading a  
1st sector, for every read larger than 1 byte.


This will result in a minimum of one extra rotation of the disk's  
platter for every read, and instead of reading larger data  
contiguously the effect will be like a *completely*, least-optimally  
fragmented filesystem.


I may be mistaken on this - if that's the case I would love to be  
corrected.


The results shown by Valmor  Mark are *two orders of magnitude  
faster* when the partitions are correctly aligned.


Stroller.





Re: [gentoo-user] Problem compiling freemind

2010-02-08 Thread Peter Humphrey
On Monday 08 February 2010 19:36:49 Mark Knecht wrote:

 I actually meant to try the lower case L. Mine shows some ant stuff
 which I think you were having trouble with, at least in the compile
 messages?

Hmm. That gave me the clue; yes, freemind was throwing an ant error 
during compilation (but that didn't prevent emerge from reporting 
success), so I recompiled all the ant* packages on the system and that's 
fixed it.

Problem now is that I asked for ant-core, ant-nodeps, ant-trax and antlr 
to be remerged, but I saw this:

$ eix -I ant
...
[U] dev-java/antlr (2@22/01/10 - 2.7.7{tbz2} 3.1.3-r2(3)): A parser 
generator for C++, C#, Java, and Python
...

That's a puzzle, because I'd only just run an emerge --sync and -uaDv 
world, so why was antlr not upgraded then?

The upgrade of antlr pulled in a new package, stringtemplate.

Whatever was wrong, reinstalling those four packages solved my problem. 
Thanks for the hint, Mark.

-- 
Rgds
Peter.



Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-08 Thread Dale

chrome://messenger/locale/messengercompose/composeMsgs.properties:

On Mon, Feb 8, 2010 at 4:20 PM, Alan Mackenziea...@muc.de  wrote:
   

Please, somebody, tell me all this HAL stuff is straightforwardly
explained in an easily accessible Gentoo document, so that I can hang my
head in shame and apologise for the noise!  ;-)
 

I believe you'll be hearing from Dale in the near future. :)
   


ROFLMAO 

Nothing else needs to be said.  I think Alan knows how I feel about hal 
and all the issues I have with it.  He also knows how to disable the 
stupid thing too.  ;-)  If he doesn't, he certainly knows who to ask.  LOL


Dale

:-)  :-)



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-08 Thread Willie Wong
On Tue, Feb 09, 2010 at 01:05:11AM +0100, Frank Steinmetzger wrote:
 Am Sonntag, 7. Februar 2010 schrieb Mark Knecht:
 
  Hi Willie,
 OK - it turns out if I start fdisk using the -u option it show me
  sector numbers. Looking at the original partition put on just using
  default values it had the starting sector was 63
 
 Same here.
 
  - probably about the worst value it could be.
 
 Hm what about those first 62 sectors?

It is possible you can use some of those; I never tried. That's a
negligible amount of space on modern harddrives anyway. And actually,
starting on sector number 63 means that you are skipping 63 sectors,
not 62, since LBA numbering starts with 0. 

Historically there is a reason for all drives coming with default
formatting with the first partition at section 63. Sector 0 is the
MBR, which you shouldn't overwrite. MSDOS and all Windows up to XP
requires the partitions be aligned on Cylinder boundary. So it is
safest to just partition the drive, by default, such that the first
partition starts at LBA 63, or the 64th sector, or the first sector of
the second cylinder. 

Actually, this is why Western Digital et al are releasing this flood
of 4K physical sector discs now. Windows XP has been EOLed and Vista
and up supports partitioning not on cylinder boundary. If Windows XP
still had support, this order of magnitude inefficiency wouldn't have
been overlooked by most consumers. 

 I bought this 500GB drive for my laptop recently and did a fresh partitioning 
 scheme on it, and then rsynced the filesystems of the old, smaller drive onto 
 it. The first two partitions are ntfs, but I believe they also use cluster 
 sizes of 4k by default. So technically I could repartition everything and 
 then restore the contents from my backup drive.

Are you sharing the harddrive with a Windows operating system?
Especially Windows XP? There are reports that Windows XP supports
partitioning not aligned to cylinder boundary. However, if you are
dual booting you will almost surely be fscked if you try that. I had
some fun earlier last year when I did everything else right but
couldn't figure out why my laptop tells me it cannot find the
operating system when I tried to dual boot. 

 Though the result justifies your decision, I would have though one has to 
 start at 65, unless the disk starts counting its sectors at 0.

I've always assumed by default that computer programmers starts
counting at 0. Mathematicians, on the other hand, varies: analysts
start at 0 or minus infinity; number theorists at 1; algebraists at 1
for groups but 0 for rings; and logicians start counting at the empty
set. :)

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] How the HAL are you supposed to use these files?

2010-02-08 Thread Walter Dnes
On Mon, Feb 08, 2010 at 10:20:47PM +, Alan Mackenzie wrote

 However, I'm now trying to get X up and running.  The X Server
 Configuration HOWTO, section 3. Configuring Xorg says:
 
 Hal comes with many premade device rules, also called policies.
 These policy files are available in /usr/../policy.  Just find a
 few that suit your needs most closely and copy them to /etc/
 
 For example, to get a basic working keyboard/mouse combination, you
 could copy the following files...
 /usr/.../10-input-policy.fdi
 /usr/.../10-x11-input.fdi
 
 .  Am I the only person that finds this semantic gibberish?  Is there
 any explanation somewhere of what a policy aka device rule is?  What
 is the semantic significance of a device rule?  What does it mean, to
 rule a device, or what sort of restrictions are being placed on this
 device?

  My solution to simplify Gentoo...

waltd...@d531 ~ $ cat /etc/portage/package.mask 
sys-libs/pam
sys-apps/dbus
sys-apps/hal

  You'll have to do a manual depclean (very carefully) and
revdep-rebuild, but it's worth the effort to purify your Gentoo system.

-- 
Walter Dnes waltd...@waltdnes.org



Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? - bar performance so far

2010-02-08 Thread Frank Steinmetzger
Am Dienstag, 9. Februar 2010 schrieb Mark Knecht:

 4) Everything I've done so far leave me with messages about partition
 1 not ending on a cylinder boundary. Googling on that one says don't
 worry about it. I don't know...

Would that be when there’s a + sign behind the end sector? I believe to 
remember that _my_ fdisk didn’t show this warning, only parted did.

Anyway, mine's like this, just to throw it into the pot to the others
( those # are added by me to show their respective use )

eisen # fdisk -l -u /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x80178017

   Device Boot Start End  Blocks   Id  System
/dev/sda1   * 632515778912578863+   7  HPFS/NTFS # Windows
/dev/sda2   251577908808439431463302+   7  HPFS/NTFS # Win Games
/dev/sda3   88084395   12794165919928632+  83  Linux # /
/dev/sda4  127941660   976768064   424413202+   5  Extended
/dev/sda5  127941723   28881656980437423+  83  Linux # /home
/dev/sda6  288816633   780341309   245762338+  83  Linux # music
/dev/sda7  813113973   97670380481794916   83  Linux # X-Plane =o)
/dev/sda8   *  976703868   976768064   32098+  83  Linux # /boot
/dev/sda9  780341373   81311390916386268+   7  HPFS/NTFS # Win7 test

-- 
Gruß | Greetings | Qapla'
begin signature_virus
  Hi! I’m a signature virus.
  Please copy me to your signature to help me spread.
end


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


Re: [gentoo-user] Re: revdep-rebuild keeps reinstalling binutils

2010-02-08 Thread Konstantinos Bekiaris

 What do you have in /etc/env.d/gcc/?  I have this:

 #ls -l /etc/env.d/gcc/
 total 16
 -rw-r--r-- 1 root root  32 2010-02-08 11:53 config-i686-pc-linux-gnu
 -rw-r--r-- 1 root root 235 2009-01-29 12:33 i686-pc-linux-gnu-4.1.2
 -rw-r--r-- 1 root root 235 2009-07-04 09:02 i686-pc-linux-gnu-4.3.2
 -rw-r--r-- 1 root root 235 2010-01-10 12:29 i686-pc-linux-gnu-4.3.4

 Do you still have any version of gcc installed?

 drwxr-xr-x 2 root root 4096 Jan 24 13:16 .
drwxr-xr-x 5 root root 4096 Jan 24 13:17 ..
lrwxrwxrwx 1 root root   25 Jan 24 06:25 .NATIVE -
x86_64-pc-linux-gnu-4.1.2
-rw-r--r-- 1 root root   34 Jan 24 06:25 config-x86_64-pc-linux-gnu
-rw-r--r-- 1 root root  381 Jan 24 06:25 x86_64-pc-linux-gnu-4.3.4

I think that i have gcc, the problem is that it is not correctly linked with
tha appropriate files-libraries.


[gentoo-user] severe tearing and system lockup

2010-02-08 Thread Iain Buchanan
Hi all,

I've had this problem with various nvidia-drivers and never been able to
track it down.  AFAIR it only happens during certain (one?) xscreensaver
hack.  One of the 3d ones, but not necessarily one named GL*

When the hack starts, I see multiple tears every 1-2cm (10-15 in all),
each one offset to the right by the same amount.  The colours look
inverted, or neon.  The screen is frozen.

I can ssh in and initiate a shutdown, although it doesn't complete; or I
can use the magic sysrq key.  When the shutdown locks up, I can't use
sysrq.

Perhaps this is related, but when I run MoebiusGears with the settings
maxed I can get performance like this:
FPS:   220
Load:  100
Polys: 12000+

but sometimes on a different instance the FPS drops drastically to 90.
Don't know why.

I have:
nVidia Quadro FX 1600M (laptop)
2.6.32-tuxonice-r1
x11-drivers/nvidia-drivers-190.53-r1
x11-wm/compiz-0.8.4
x11-base/xorg-server-1.7.4

any ideas? thanks,
-- 
Iain Buchanan iaindb at netspace dot net dot au

Harp not on that string.
-- William Shakespeare, Henry VI