Re: Grep Guru

2008-06-08 Thread Raphael Becker
On Sun, Jun 08, 2008 at 10:15:50PM +0200, Wojciech Puchar wrote:
> find . -type f -print0|xargs -0 grep  

There's no more need for find | xargs

Try: 

find . -type -f -exec grep   {} \+

-exec foo {} \+ behaves like xargs foo  
-exec foo {} \; exec foo for every file

Regards
Raphael

-- 
Raphael Becker  <[EMAIL PROTECTED]>  http://rabe.uugrn.org/
GnuPG:E7B2 1D66 3AF2 EDC7 9828  6D7A 9CDA 3E7B 10CA 9F2D
.|.|.|.|.|.|.|..


pgpNOAj47TfSE.pgp
Description: PGP signature


Re: Promise SATA300 TX2plus with LG GGW-H20L burner on 7.0 causes endless timeouts.

2008-06-08 Thread Raphael Becker
Hi Edward,


same here (RELEASE 6.3):

atapci0:  port 0xd800-0xd87f,0xd400-0xd4ff 
mem 0xdfeff000-0xdfef,0xdfec00 00-0xdfed irq 19 at device 3.0 on pci2
[...]
atapci1:  port 
0xc400-0xc43f,0xc000-0xc00f,0xbc00-0xbc7f mem 
0xdfefd000-0xdfefdfff,0xdfe4-0xdfe5 irq 22 at device 14.0 on pci2
[...]
ad0: 78533MB  at ata0-master UDMA100
ad2: 286168MB  at ata1-master UDMA100
GEOM_LABEL: Label for provider ad0s1f is label/HOMEcrypt.
GEOM_LABEL: Label for provider ad2s1 is ufs/DATA.
acd0: timeout waiting to issue command
acd0: error issuing ATA PACKET command
acd0: timeout waiting to issue command
acd0: error issuing ATA PACKET command
acd0: timeout waiting to issue command
acd0: error issuing ATA PACKET command
acd0: CDROM  at ata5-master SATA150
acd0: timeout waiting to issue command
acd0: error issuing ATA PACKET command
acd0: timeout waiting to issue command
acd0: error issuing ATA PACKET command
[... lot more ...]
acd0: timeout waiting to issue command
acd0: error issuing ATA PACKET command
ad12: 286188MB  at ata6-master SATA150
ad14: 476940MB  at ata7-master SATA150
[...]

The DVDRAM doesn't work on both Promise-Controllers (onboard and the
300TX4 PCI), also tested with 7-STBLE snapshot and 8-CURRENT snapshot
live CDs. It's running perfect with a recent Knoppix DVD so it's not a
hardware bug.

See http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/122291 for more
details on this.

Regards
Raphael Becker

On Sat, Jun 07, 2008 at 12:03:00AM -0700, Edward Sutton wrote:
> 
>   This is a collection of information to my troubles. I am hoping to find out 
> what mailing list is most appropriate before I started posting kernel dump 
> backtraces and asking what other details to post. What other details may be 
> relevant to gather would also be helpful. Are there safe ways to crash a 
> system to gather details without further filesystem corruption?
>   My motherboard is about six years old so it has no SATA ports for the 
> drive; My old Promise SATA150 TX4 was loaded with four hard drives; it 
> appears to not support optical drives so I recently purchased the Promise 
> SATA300 TX2plus to have a card giving what I need on this old computer and 
> hopefully an IDE port on my next computer (if the board I buy in a year comes 
> with a PCI slot for it). I thought Promise cards receive good FreeBSD support 
> and was readily available at a local retailer. 
>   Upon booting, I get the following 2 errors after a long pause:
> 
> acd0: timeout waiting to issue command
> acd0: error issuing ATA PACKET command


-- 
Raphael Becker  <[EMAIL PROTECTED]>  http://rabe.uugrn.org/
GnuPG:E7B2 1D66 3AF2 EDC7 9828  6D7A 9CDA 3E7B 10CA 9F2D
.|.|.|.|.|.|.|..


pgpB8NzQ5ZFpJ.pgp
Description: PGP signature


Which SATA controller for DVDRAM?

2008-06-08 Thread Raphael Becker
Hi *,

which SATA controller is supported for SATA-DVDRAM (or just any other 
optical drive)? Promise controllers doesn't seem to work with FreeBSD.

Regards
Raphael Becker

-- 
Raphael Becker  <[EMAIL PROTECTED]>  http://rabe.uugrn.org/
GnuPG:E7B2 1D66 3AF2 EDC7 9828  6D7A 9CDA 3E7B 10CA 9F2D
.|.|.|.|.|.|.|..


pgpOwRTxM4uhJ.pgp
Description: PGP signature


Re: Auto Mounting USB Sticks and CD's

2008-03-28 Thread Raphael Becker
On Fri, Mar 28, 2008 at 12:15:13AM -0700, Predrag Punosevac wrote:
> >u need to add this to your rc.conf to have it all running on startup
> >
> >hald_enable="YES"
> >polkitd_enable="YES"
> >dbus_enable="YES"
> The HALD needs to be started in the specific order as
> 
> # enable HALd
> dbus_enable="YES"
> polkitd_enable="YES"
> hald_enable="YES"

In /etc/rc.conf are just defined variables. Every rc-script sources this
rc.conf, not rc.conf is executing something. The order of these lines is
irrelevant. In general the processing order of rc-scripts is arranged by 
rcorder(8), read the man page. 

Regards
Rapael

-- 
Raphael Becker  <[EMAIL PROTECTED]>  http://rabe.uugrn.org/
GnuPG:E7B2 1D66 3AF2 EDC7 9828  6D7A 9CDA 3E7B 10CA 9F2D
.|.|.|.|.|.|.|..


pgpsaBLbc14bY.pgp
Description: PGP signature