Re: [gentoo-user] Problem with hdparm and SATA-controller

2007-11-15 Thread Billy Holmes
from what I recall, hdparm works perfectly for PATA drives, but not so  
much for SATA. Something about PATA drives looking like IDE drives and  
SATA drives looking like SCSI drives (to the kernel).


notice /dev/sda

a pata would be /dev/hda

I think you're rather limited in what you can control in the sata side  
of things. It's mainly in the driver, and if the driver isn't doing it  
to the best of it's abilities, you're not likely to change it.


But.. I hope someone can tell me I'm wrong, because I have an SATA  
drive, too :)


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] how to detect the throughput in the lan?

2007-11-15 Thread Billy Holmes

Quoting Chuanwen Wu [EMAIL PROTECTED]:

Can't you recommend  some tools?


I've always liked ntop. It provides way more than you probably want,  
but it provides pretty graphs.


--
[EMAIL PROTECTED] mailing list



[gentoo-user] Problem with hdparm and SATA-controller

2007-11-15 Thread Marc Blumentritt
Hi,

I want to optimize the sound output of my shiny new sata disc, but I
have some problems to set hdparm options. My options look like this:

# SATA Disk
sda_args=-d1 -c1 -u1 -A1 -S6 -M128 -B1

I don't know, if I really want it to spin down, since my system is
running on it. But that's not the real problem. I think I have a problem
with my sata driver, since the output of hdparm looks like this:

hive linux # hdparm /dev/sda

/dev/sda:
 IO_support=  0 (default 16-bit)
 readonly  =  0 (off)
 readahead = 256 (on)
 geometry  = 30394/255/63, sectors = 488281250, start = 0
hive linux # hdparm -i /dev/sda

/dev/sda:

 Model=SAMSUNG SP2504C , FwRev=VT100-52,
SerialNo=  S0WRJ1PP510578
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=34902, SectSize=554, ECCbytes=4
 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=?16?
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: unknown:  ATA/ATAPI-1,2,3,4,5,6,7

 * signifies the current active mode


This was AFTER starting hdparm with the options given above. I also have
these error messages after starting hdparm:

* Running hdparm on /dev/sda ...
 HDIO_SET_32BIT failed: Invalid argument
 HDIO_SET_UNMASKINTR failed: Inappropriate ioctl for device
 HDIO_SET_DMA failed: Inappropriate ioctl for device
 HDIO_DRIVE_CMD failed: Input/output error


This the output of lspci:
hive linux # lspci
00:00.0 Host bridge: Intel Corporation DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation PCI Express Root Port (rev 02)
00:1a.0 USB Controller: Intel Corporation USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation PCI Express Port 1 (rev 02)
00:1c.4 PCI bridge: Intel Corporation PCI Express Port 5 (rev 02)
00:1c.5 PCI bridge: Intel Corporation PCI Express Port 6 (rev 02)
00:1d.0 USB Controller: Intel Corporation USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 2 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 2 port SATA IDE Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation Unknown device
0421 (rev a1)
02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit
Ethernet Adapter (rev b0)
03:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363
AHCI Controller (rev 03)
03:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363
AHCI Controller (rev 03)
05:03.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host
Controller (rev c0)

(Motherboard is an ASUS P5K)

What is the correct driver for my SATA devices? And what is wrong with
the hdparm output?

Thanks for any help and hints,
Marc

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Partition tale recovery

2007-11-15 Thread pepone.onrez
There is any way for recover the partition table of a hardisk with out a
copy of the partition table?

I know that this hard this has 3 partitions hda1(jfs) hd2(swap) and had3
(jfs)

any help will be aprecciatted.

--
Pepone


Re: [gentoo-user] Partition tale recovery

2007-11-15 Thread Hemmann, Volker Armin
On Donnerstag, 15. November 2007, pepone.onrez wrote:
 There is any way for recover the partition table of a hardisk with out a
 copy of the partition table?


testdisk can do it
gpart can do it
maybe parted can do it too.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Partition tale recovery

2007-11-15 Thread Billy Holmes

Quoting pepone.onrez [EMAIL PROTECTED]:


There is any way for recover the partition table of a hardisk with out a
copy of the partition table?


if you can recreate the partition table EXACTLY as it looked, then you  
might be able to run some type of recovery util like e2fsck or  
xfs_repair, or whatever jfs's counterpart is on the other partitions  
and get them back.


But.. without access to a spare harddrive, you better have backups,  
because if you get it wrong, you could totally mess up what you have.


for example: my laptop drive I know has three partitions. A boot, a  
swap and everything else.


I always make my /boot 100 megs. so in fdisk I'd make it a new  
partition with +100M as the size.


My swap I normally make it about 2x the memory for systems with less  
than a gig of ram, and 1x the memory for systems with 1g of ram. I  
happen to have 2gigs, so it's size would be +2048M.


Next, I'd make the last partition (or 3rd), whatever is left over.

Then I would have recreated my partition table had I blown it away  
accidentally. Then I could run some type of fs repair utility on what  
was giving me errors.


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Partition tale recovery

2007-11-15 Thread Mick
On Thursday 15 November 2007, Hemmann, Volker Armin wrote:
 On Donnerstag, 15. November 2007, pepone.onrez wrote:
  There is any way for recover the partition table of a hardisk with out a
  copy of the partition table?

 testdisk can do it
 gpart can do it
 maybe parted can do it too.

I haven't used gpart, or parted for this job, but have successfully used 
testdisk.  I think I ran it either from a CD, or a floppy and it was able to 
find the last few partition tables that I had set up on that disk.  I chose 
the desired partition table (it was the most recent) and off it went from 
there.  I have to say I was well impressed with it.  Must have 
application.  :)

Good luck.

(PS. [OT slightly] Don't mean to start another flamewar about the pro's  
con's, but would this sort of recovery work the same with a LVM?  I would 
assume that it would, because the LVM is sort of a superstructure, but I do 
not know how the conventional partition table relates to the LV tables.)
-- 
Regards,
Mick


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


Re: [gentoo-user] VERY OFF TOPIC - change sparse data to daily data

2007-11-15 Thread Albert Hopkins

On Thu, 2007-11-15 at 14:25 -0800, Mark Knecht wrote:
 Hi,
I know this is EXTREMELY off topic but I don't know of another
 better list to ask on. I'm hoping maybe there is a Linux command line
 method for doing this. Thanks in advance.
 
I have a data file with data that changes infrequently. The file
 lists only the day the data changes. There are only 144 lines
 representing 23 years of data. There are three values for the data -
 1, 0  -1. The file looks like this:
 
 09/27/74,   1
 07/11/75,   -1
 08/01/75,   1
 03/12/76,   -1
 04/02/76,   1
 05/07/76,   -1
 06/04/76,   1
 
I need to turn this data into a file with the same format but one
 that has data for every date, something like this:
 
 09/28/74,   1
 09/29/74,   1
 09/30/74,   1
 ...
 ...
 ...
 07/09/75,   1
 07/10/75,   1
 07/11/75,   -1
 
 and so on...
 
Would anyone proficient in Linux command line know how to do that?
 Or might there be some app in portage that could do this as part of
 it's functionality?
 

You're probably not going to find something so specific off the
shelf (although if I'm wrong, someone will correct me).  Likely you'll
have to do some kind of scripting (either in bash or whatever). With
that in mind, it would be relatively easy to do in python:

Read the file and put data into a dict: 

 date_dict[datetime.date(1975, 04, 12)] = -1
...
Then write a loop
 start_date = datetime.date(1972, 3, 1)
 end_date = datetime.date(2007, .
 one_day = datetime.datedelta(days=1)
 default_value = 1
 mydate = start_date
 while mydate = end_date:
 ... value = date_dict.get(mydate, default_value)
 ... outfile.write('%s %s\n' % (mydate, value))
 ... mydate = mydate + one_day

That's the general idea, though the above code is incomplete and
untested.

BTW, 2-digit year is a bad idea (unless it's truly 74 AD ;-).

--
Albert W. Hopkins

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] VERY OFF TOPIC - change sparse data to daily data

2007-11-15 Thread Mark Knecht
Hi,
   I know this is EXTREMELY off topic but I don't know of another
better list to ask on. I'm hoping maybe there is a Linux command line
method for doing this. Thanks in advance.

   I have a data file with data that changes infrequently. The file
lists only the day the data changes. There are only 144 lines
representing 23 years of data. There are three values for the data -
1, 0  -1. The file looks like this:

09/27/74,   1
07/11/75,   -1
08/01/75,   1
03/12/76,   -1
04/02/76,   1
05/07/76,   -1
06/04/76,   1

   I need to turn this data into a file with the same format but one
that has data for every date, something like this:

09/28/74,   1
09/29/74,   1
09/30/74,   1
...
...
...
07/09/75,   1
07/10/75,   1
07/11/75,   -1

and so on...

   Would anyone proficient in Linux command line know how to do that?
Or might there be some app in portage that could do this as part of
it's functionality?

   Thanks in advance and sorry for the noise.

Cheers,
Mark
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] VERY OFF TOPIC - change sparse data to daily data

2007-11-15 Thread Mark Kirkwood
I'd use something like perl[1] to read (2 lines initially) and then each 
line of the original file, generate the intermediate lines by comparing 
each line to the one before... printing the new generated lines to 
stdout (or a specified file if desired).


Cheers

Mark

[1], perl, php, python, awk etc ... probably a bit tricky for bash (tho 
there's probably someone out there who would try it...)


Mark Knecht wrote:

Hi,
   I know this is EXTREMELY off topic but I don't know of another
better list to ask on. I'm hoping maybe there is a Linux command line
method for doing this. Thanks in advance.

  


--
[EMAIL PROTECTED] mailing list



[gentoo-user] problems with clipboard separation

2007-11-15 Thread hkml

Hi Group,

I have problems with my clipboard, that I never experienced with other 
Linux distributions: If I do 'mark text; Ctrl-c; mark different text; 
Ctrl-v' e.g. in Eclipse the second selection is not overwritten by the 
content of the first selection.


It seems that the clipboard content is overwritten as soon as I mark 
text. This behaviour is not depending on the window manager/ desktop 
environment (I tried fvwm and kde), so it is probably some X 
configuration stuff. As far as I have understood, there are 2 different 
clipboards with one being changed as soon as you mark text (pasting at 
mouse-middle-click) and the other is changed by pressing Ctrl-c (pasting 
at Ctrl-v). Is that correct?


If so, then it seems that for me mouse-selection and Ctrl-c write into 
the same buffer. Can anyone give me a hint, where to look for the 
possibility to change this behaviour?


Cheers, Heinz
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] VERY OFF TOPIC - change sparse data to daily data

2007-11-15 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

I'd read the whole file into a 2-field array, then just fill-in the gaps until 
the next value-change
(value being the 2nd column).

- --
Arturo Buanzo Busleiman - Consultor Independiente en Seguridad Informatica
Apoye la Musica Libre - Vote Futurabanda desde: (ver sgte. linea)
http://www.frecuenciazero.com.ar/realityrock/votar.htm
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPNgdAlpOsGhXcE0RCj4SAJ9v/RO8VhMcjOzoEf8nJ6KHYA94zwCdH44B
E821s+Zq5YiIR/ovk2m2/cA=
=yGkt
-END PGP SIGNATURE-
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Partition tale recovery

2007-11-15 Thread Neil Bothwick
On Thu, 15 Nov 2007 21:27:11 +, Mick wrote:

 (PS. [OT slightly] Don't mean to start another flamewar about the pro's
  con's, but would this sort of recovery work the same with a LVM?  I
 would assume that it would, because the LVM is sort of a
 superstructure, but I do not know how the conventional partition table
 relates to the LV tables.)

It will find lost LVM partitions, I don't if it can recover accidentally
deleted logical volumes.


-- 
Neil Bothwick

Due to inflation, all clouds will now be lined with zinc.


signature.asc
Description: PGP signature


Re: [gentoo-user] grub hell

2007-11-15 Thread maxim wexler
 http://supergrub.forjamari.linex.org/
 
 I use this cd image and it works like a treat. 
 

Not for me. Same problem: grub can get the HDs
straight. I quit. 

Not a great biggee; I only use XP for one proprietary
program that has yet to be linux-fied. I'll just tell
the BIOS to boot from that drive whenever I have to
use it again, which is rarely.

Outtahere,

-mw


  

Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  
http://overview.mail.yahoo.com/
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] portage update problems due to sane-backends

2007-11-15 Thread Jeff Cranmer
Can anyone help me with an update issue?

I do not seem to be able to update a lot of my system, because sane-backends 
fails to compile.

This is the error I get

make[1]: Entering directory 
`/var/tmp/portage/media-gfx/sane-backends-1.0.18-r4/work/sane-backends-1.0.18/backend'
make[1]: *** No rule to make target `libsane-hpaio.la', needed by `all'.  
Stop.
make[1]: Leaving directory 
`/var/tmp/portage/media-gfx/sane-backends-1.0.18-r4/work/sane-backends-1.0.18/backend'
make: *** [all-recursive] Error 1
 *
 * ERROR: media-gfx/sane-backends-1.0.18-r4 failed.
 * Call stack:
 *ebuild.sh, line 1701:  Called dyn_compile
 *ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *ebuild.sh, line   44:  Called src_compile
 *   sane-backends-1.0.18-r4.ebuild, line  109:  Called die
 * The specific snippet of code:
 *  emake || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if 
relevant.
 * A complete build log is located 
at '/var/tmp/portage/media-gfx/sane-backends-1.0.18-r4/temp/build.log'.
 *

 * Messages for package media-gfx/sane-backends-1.0.18-r4:

 *
 * ERROR: media-gfx/sane-backends-1.0.18-r4 failed.
 * Call stack:
 *ebuild.sh, line 1701:  Called dyn_compile
 *ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *ebuild.sh, line   44:  Called src_compile
 *   sane-backends-1.0.18-r4.ebuild, line  109:  Called die
 * The specific snippet of code:
 *  emake || die
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if 
relevant.
 * A complete build log is located 
at '/var/tmp/portage/media-gfx/sane-backends-1.0.18-r4/temp/build.log'.

Can anyone suggest a workaround?

Thanks

Jeff
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] problems with clipboard separation

2007-11-15 Thread Alex Schuster
[EMAIL PROTECTED] writes:

 I have problems with my clipboard, that I never experienced with other
 Linux distributions: If I do 'mark text; Ctrl-c; mark different text;
 Ctrl-v' e.g. in Eclipse the second selection is not overwritten by the
 content of the first selection.

 It seems that the clipboard content is overwritten as soon as I mark
 text. This behaviour is not depending on the window manager/ desktop
 environment (I tried fvwm and kde), so it is probably some X
 configuration stuff. As far as I have understood, there are 2 different
 clipboards with one being changed as soon as you mark text (pasting at
 mouse-middle-click) and the other is changed by pressing Ctrl-c (pasting
 at Ctrl-v). Is that correct?

 If so, then it seems that for me mouse-selection and Ctrl-c write into
 the same buffer. Can anyone give me a hint, where to look for the
 possibility to change this behaviour?

Klipper (the KDE clipbboard) has a setting to keep the content of clipboard 
and current selection separately. I thought this could only be used to 
force the behaviour you experence, but maybe it works the other way around 
for you and lets you disable it.

Wonko
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] VERY OFF TOPIC - change sparse data to daily data

2007-11-15 Thread Philip Webb
071115 Mark Knecht wrote:
 I have a data file with data that changes infrequently.
 The file lists only the day the data changes.
 There are only 144 lines representing 23 years of data.
 There are three values for the data - 1, 0  -1. The file looks like this:
   09/27/74,   1
   07/11/75,   -1
   08/01/75,   1
   03/12/76,   -1
   04/02/76,   1
   05/07/76,   -1
   06/04/76,   1
 I need to turn this data into a file with the same format
 but one that has data for every date, something like this:
   09/28/74,   1
   09/29/74,   1
   09/30/74,   1

I would do it with Vim, mainly 's'  'q'.  It would probably help slightly
if you used international date format: '1974-09-27' etc.  HTH

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



[gentoo-user] Re: problems with clipboard separation

2007-11-15 Thread Miernik
[EMAIL PROTECTED] wrote:
 If so, then it seems that for me mouse-selection and Ctrl-c write into
 the same buffer. Can anyone give me a hint, where to look for the
 possibility to change this behaviour?

Very interesting, my Gentoo machine is currently X-less so I can't test
it, but I'd like such behaviour on my Debian machine, where clipboards
are separate, but I'd like them to be common. Preferably also common
with GNU screen clipboard (/tmp/screen-exchange). Any ideas how to do
it?

-- 
Miernik
http://miernik.name/

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] problems with clipboard separation

2007-11-15 Thread Crayon Shin Chan
On Friday 16 November 2007, [EMAIL PROTECTED] wrote:

 If so, then it seems that for me mouse-selection and Ctrl-c write into
 the same buffer. Can anyone give me a hint, where to look for the
 possibility to change this behaviour?

I use Klipper and have it configured so that both clipboard buffers are 
synced. Normally this works fine. However some GTK based programs 
*always* puts whatever is highlighted onto the clipboard - it doesn't 
matter *how* it was highlighted - ie whether I specifically mouse 
dragged, or shift cursor, or even when the program itself highlighted it 
(eg usually when you TAB within a dialog the text in a text input is 
automatically highlighted).

It is this last behaviour which is the most annoying - if I didn't 
specifically highlighted then I don't want it on the clipboard, but gtk 
based programs thinks otherwise. Another reason why I hate gtk and 
gnome :)

-- 
Crayon
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] problems with clipboard separation

2007-11-15 Thread Bryan Whitehead
This is the default behavior of X. Highlighting IS copying to the
clipboard. Also, middle-click (or whatever is mapped to your 3rd mouse
button) is paste. This is just how X works. Getting around this is a
hack in itself.

Next time you are on an Solaris or AIX workstation - know that
cut/paste is the same (as X intended): highlight and 3rd button click.
:)

On Nov 15, 2007 8:28 PM, Crayon Shin Chan [EMAIL PROTECTED] wrote:
 On Friday 16 November 2007, [EMAIL PROTECTED] wrote:

  If so, then it seems that for me mouse-selection and Ctrl-c write into
  the same buffer. Can anyone give me a hint, where to look for the
  possibility to change this behaviour?

 I use Klipper and have it configured so that both clipboard buffers are
 synced. Normally this works fine. However some GTK based programs
 *always* puts whatever is highlighted onto the clipboard - it doesn't
 matter *how* it was highlighted - ie whether I specifically mouse
 dragged, or shift cursor, or even when the program itself highlighted it
 (eg usually when you TAB within a dialog the text in a text input is
 automatically highlighted).

 It is this last behaviour which is the most annoying - if I didn't
 specifically highlighted then I don't want it on the clipboard, but gtk
 based programs thinks otherwise. Another reason why I hate gtk and
 gnome :)

 --
 Crayon

 --
 [EMAIL PROTECTED] mailing list


-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: problems with clipboard separation

2007-11-15 Thread Miernik
Bryan Whitehead [EMAIL PROTECTED] wrote:
 This is the default behavior of X. Highlighting IS copying to the
 clipboard. Also, middle-click (or whatever is mapped to your 3rd mouse
 button) is paste. This is just how X works. Getting around this is a
 hack in itself.

No, read this: http://www.jwz.org/doc/x-cut-and-paste.html

-- 
Miernik
http://miernik.name/

-- 
[EMAIL PROTECTED] mailing list