Re: Sed question

2008-12-21 Thread Gary Kline
On Sun, 2008-12-21 at 07:42 +0200, Giorgos Keramidas wrote:
 On Sat, 20 Dec 2008 21:34:10 -0800, Gary Kline kl...@thought.org wrote:
  how can i delete, say, lines 8,9,and 10 from 200 files
  using sed?  Is it
 
  sed '8,10d' file newfile
  or is there a better way?
 
 Use in-place editing:
 
   keram...@kobe:/tmp$ cat -n foo
1  foo
2  bar
3  baz
   keram...@kobe:/tmp$ sed -i '' -e '2d' foo
   keram...@kobe:/tmp$ cat -n foo
1  foo
2  baz
   keram...@kobe:/tmp$
 
 Look at the manpage of sed for more details about the -i option, and
 consider using backup files while you are running tests.  In-place
 editing is very cool, but it can also make changes that are difficult
 to recover from.
 
thanks much.  it works just fine in-place.  ...but i did made a separate
copy, just in case;-)


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


error reading SATA DVDRW

2008-12-21 Thread Ivan Carey

I am unable to install FreeBSD because of the following error
acd0: FAILURE - READ BIG_MEDIUM ERROR asc=0x21 ascq=0x00

The computer reboots during install.

I have read that this error can be due to the DVD drive being a master, 
as it is a SATA drive it is assigned as a master in the BIOS


Is there a way this can be resolved.

Thanks,
Ivan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: error reading SATA DVDRW

2008-12-21 Thread Glen Barber
On Sun, Dec 21, 2008 at 5:34 AM, Ivan Carey i...@careytech.com.au wrote:
 I am unable to install FreeBSD because of the following error
 acd0: FAILURE - READ BIG_MEDIUM ERROR asc=0x21 ascq=0x00

 The computer reboots during install.

 I have read that this error can be due to the DVD drive being a master, as
 it is a SATA drive it is assigned as a master in the BIOS

 Is there a way this can be resolved.


http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2008-11/msg00327.html


-- 
Glen Barber

If you have any trouble sounding condescending, find a Unix user to
show you how it's done.
 --Scott Adams
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


error reading SATA DVDRW

2008-12-21 Thread Glen Barber
On Sun, Dec 21, 2008 at 5:55 AM, Ivan Carey i...@careytech.com.au wrote:
 Glen Barber wrote:

 On Sun, Dec 21, 2008 at 5:34 AM, Ivan Carey i...@careytech.com.au wrote:


 I am unable to install FreeBSD because of the following error
 acd0: FAILURE - READ BIG_MEDIUM ERROR asc=0x21 ascq=0x00

 The computer reboots during install.

 I have read that this error can be due to the DVD drive being a master,
 as
 it is a SATA drive it is assigned as a master in the BIOS

 Is there a way this can be resolved.




 http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2008-11/msg00327.html




 Thanks Glen I have already read that article, safe mode does not help.
 I'm installing FreeBSD 7.0 and also trying the latest PCBSD


The OP in the article said safe mode did not work for them either.
Try another cd if possible; that's why I posted the link.

Also, please CC the list on replies; don't send them to me alone.


 I forgot to CC the list.


-- 
Glen Barber


If you have any trouble sounding condescending, find a Unix user to
show you how it's done.
 --Scott Adams
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: SOLVED: Simple swap question

2008-12-21 Thread Mel
On Friday 19 December 2008 19:04:26 FreeBSD wrote:

 This server is very lightly used, so most of the time if the swap is
 getting used it shows that something is going wrong. This warning
 already proved usefull once, so I don't think I'm going to change it.

Swapping is a symptom of a symptom - or just the machine doing it's job. 

Better let nagios monitor:
- fork rate by observing kern.lastpid sysctl over time
- nr. of processes running
- top 10 processes sorted by resident memory (res not size in top(1))

Those are the actual symptoms of something going wrong that can cause a system 
to start swapping heavily. 3MB swap is not 'heavily' and is nothing to worry 
about.In fact, a high fork rate can DOS a system pretty well, without the 
machine ever going into swap.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can not start SVNserve

2008-12-21 Thread Mel
On Thursday 18 December 2008 09:03:54 KES wrote:
 Здравствуйте, Mel.

 Вы писали 18 декабря 2008 г., 9:05:35:

 M On Wednesday 17 December 2008 21:02:07 KES wrote:
  Здравствуйте, Mel.
 
  Вы писали 17 декабря 2008 г., 9:11:19:
 
  M On Sunday 14 December 2008 16:11:17 KES wrote:
   Здравствуйте, Polytropon.
  
   Вы писали 14 декабря 2008 г., 15:11:35:
  
   P On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar
  
   P woj...@wojtek.tensor.gdynia.pl wrote:
 su: Sorry


 kes# pw user mod svn -s /bin/bash
 kes# pw user show svn
 svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash
 kes# /usr/local/etc/rc.d/svnserve start
 Starting svnserve.
 su: Sorry
   
try to change directory to existent
  
   P (1) What's /bin/bash? Check existing shell.
  
   P (2) As you said: Check existing directory.
  
   P (3) Regarding su, check for wheel group inclusion.
  
   home# uname -a
   FreeBSD home.kes.net.ua 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug 12
   02:11:24 EEST 2008
   k...@kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 home# pw user
   show svn
   svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin
  
   As you can see on 'home' machine svn user has no valid shell also it
   has not valid home directory and it is not included into wheel group
  
   But svnserve is started and works fine. With same settings svnserve
   does not work on
   kes# uname -a
   FreeBSD kes.net.ua 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #: Sun Nov
   23 17:19:12 EET 2008
   k...@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386
 
  M echo 'rc_debug=YES'/etc/rc.conf
  M /usr/local/etc/rc.d/svnserve start
 
  M Show output from /var/log/messages.
 
  kes# kes# /usr/local/etc/rc.d/svnserve start
  /usr/local/etc/rc.d/svnserve: DEBUG: checkyesno: svnserve_enable is set
  to YES. Starting svnserve.
  /usr/local/etc/rc.d/svnserve: DEBUG: run_rc_command: doit: su -m svn -c
  'sh -c /usr/local/bin/svnserve -d --listen-port=3690 --foreground -r
  /var/db/trunk' su: Sorry

 M Does this command work from the command line?
 M If not, does it work if called as su -fm rather then su -m?
 M If that does not work, does the primary group svn is supposed to be in
 exist?


 kes# su -m svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690
 --foreground -r /var/db/trunk' su: Sorry
 kes# su -fm svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690
 --foreground -r /var/db/trunk' su: Sorry
 kes# pw group show svn
 svn:*:1005:
 kes# cat /etc/group | grep svn
 svn:*:1005:
 kes# pw user show svn
 svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash

 As you see it does not work also with -fm option


 Also I notice next differences between FreeBDS 7.0 and 7.1 (detail below)
 Notice that on both system account is locked, has no valid shell and
 home directory
 on FreeBSD 7.0 when I try to login with svn user it says: This account is
 currently not available. on FreeBSD 7.1 when I try to login with svn user
 it says: su: Sorry Maybe there is a problem with su on FreeBSD 7.1?



 home# pw user show svn
 svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin
 home# su svn
 This account is currently not available.


 kes# pw user show svn
 svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash
 kes# su svn
 su: Sorry
 kes# pw user mod svn -s /usr/bin/nologin
 kes# pw user show svn
 svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/bin/nologin
 kes# su svn
 su: Sorry

The problem is elsewhere. Probably in pam(3) on the faulty machine. The only 
change to su.c from 7.0 to 7.1 is fixing a compiler warning. There are 3 
instances where su exits with Sorry. All occasions are logged to syslog. 
Can you dig those log entries up?

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: error reading SATA DVDRW

2008-12-21 Thread Wojciech Puchar

enter bootloader prompt (6) and type

set hw.ata.atapi_dma=0
boot


On Sun, 21 Dec 2008, Ivan Carey wrote:


I am unable to install FreeBSD because of the following error
acd0: FAILURE - READ BIG_MEDIUM ERROR asc=0x21 ascq=0x00

The computer reboots during install.

I have read that this error can be due to the DVD drive being a master, as it 
is a SATA drive it is assigned as a master in the BIOS


Is there a way this can be resolved.

Thanks,
Ivan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re[2]: can not start SVNserve

2008-12-21 Thread KES
Здравствуйте, Mel.

Вы писали 21 декабря 2008 г., 13:10:47:

M On Thursday 18 December 2008 09:03:54 KES wrote:
 Здравствуйте, Mel.

 Вы писали 18 декабря 2008 г., 9:05:35:

 M On Wednesday 17 December 2008 21:02:07 KES wrote:
  Здравствуйте, Mel.
 
  Вы писали 17 декабря 2008 г., 9:11:19:
 
  M On Sunday 14 December 2008 16:11:17 KES wrote:
   Здравствуйте, Polytropon.
  
   Вы писали 14 декабря 2008 г., 15:11:35:
  
   P On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar
  
   P woj...@wojtek.tensor.gdynia.pl wrote:
 su: Sorry


 kes# pw user mod svn -s /bin/bash
 kes# pw user show svn
 svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash
 kes# /usr/local/etc/rc.d/svnserve start
 Starting svnserve.
 su: Sorry
   
try to change directory to existent
  
   P (1) What's /bin/bash? Check existing shell.
  
   P (2) As you said: Check existing directory.
  
   P (3) Regarding su, check for wheel group inclusion.
  
   home# uname -a
   FreeBSD home.kes.net.ua 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug 12
   02:11:24 EEST 2008
   k...@kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 home# pw user
   show svn
   svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin
  
   As you can see on 'home' machine svn user has no valid shell also it
   has not valid home directory and it is not included into wheel group
  
   But svnserve is started and works fine. With same settings svnserve
   does not work on
   kes# uname -a
   FreeBSD kes.net.ua 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #: Sun Nov
   23 17:19:12 EET 2008
   k...@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386
 
  M echo 'rc_debug=YES'/etc/rc.conf
  M /usr/local/etc/rc.d/svnserve start
 
  M Show output from /var/log/messages.
 
  kes# kes# /usr/local/etc/rc.d/svnserve start
  /usr/local/etc/rc.d/svnserve: DEBUG: checkyesno: svnserve_enable is set
  to YES. Starting svnserve.
  /usr/local/etc/rc.d/svnserve: DEBUG: run_rc_command: doit: su -m svn -c
  'sh -c /usr/local/bin/svnserve -d --listen-port=3690 --foreground -r
  /var/db/trunk' su: Sorry

 M Does this command work from the command line?
 M If not, does it work if called as su -fm rather then su -m?
 M If that does not work, does the primary group svn is supposed to be in
 exist?


 kes# su -m svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690
 --foreground -r /var/db/trunk' su: Sorry
 kes# su -fm svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690
 --foreground -r /var/db/trunk' su: Sorry
 kes# pw group show svn
 svn:*:1005:
 kes# cat /etc/group | grep svn
 svn:*:1005:
 kes# pw user show svn
 svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash

 As you see it does not work also with -fm option


 Also I notice next differences between FreeBDS 7.0 and 7.1 (detail below)
 Notice that on both system account is locked, has no valid shell and
 home directory
 on FreeBSD 7.0 when I try to login with svn user it says: This account is
 currently not available. on FreeBSD 7.1 when I try to login with svn user
 it says: su: Sorry Maybe there is a problem with su on FreeBSD 7.1?



 home# pw user show svn
 svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin
 home# su svn
 This account is currently not available.


 kes# pw user show svn
 svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash
 kes# su svn
 su: Sorry
 kes# pw user mod svn -s /usr/bin/nologin
 kes# pw user show svn
 svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/bin/nologin
 kes# su svn
 su: Sorry

M The problem is elsewhere. Probably in pam(3) on the faulty machine. The only
M change to su.c from 7.0 to 7.1 is fixing a compiler warning. There are 3
M instances where su exits with Sorry. All occasions are logged to syslog.
M Can you dig those log entries up?

Dec 21 13:47:54 kes su: kes to root on /dev/ttyp5
Dec 21 13:47:58 kes kes: /r/svnserve: DEBUG: checkyesno: svnserve_enable is set 
to YES.
Dec 21 13:47:58 kes kes: /r/svnserve: DEBUG: run_rc_command: doit: su -m svn -c 
'sh -c /usr/local/bin/svnserve -d
--listen-port=3690 --foreground -r /var/db/trunk'
Dec 21 13:47:58 kes su: pam_acct_mgmt: authentication error

Yeah, there is problem with pam. Why pam restrict root to run command
under other user?

-- 
С уважением,
 KES  mailto:kes-...@yandex.ru

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


acronis true image

2008-12-21 Thread jamshid omidi
hi
1-there are a software that create image from os (acronis true image)
this program run a daemon and agent
daemon run at server and agent install on the client.
in acronis cd is  been all agent for all os for example windows linux ,  
but agent for freebsd in not
please help me for find thid agent
2-i want exe a file name is XXX.i686 in freebsd 7
but when i run ./XXX.i686 this message appear 
ELf binary type 0 not known ./XXX.i686 exec format error
please help me to resolve this problem
thsnk a lot
j.o
 



  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Snow in my Server

2008-12-21 Thread Valentin Bud
Hello,

 Just leave it be, enjoy the holidays and afterward the snow will go by its
self :).

Merry Xmas to everybody,
v

On Sat, Dec 20, 2008 at 8:01 PM, Gennady Kudryashoff
lothlor...@tochka.ruwrote:

 Just try to remove old-stoned CGA video adapter.

 GH Help, I'm in southern Ontario and I have 20cm of snow on my freebsd
 GH 7-release server.
 GH
 GH IT seems to be causeing some http outages.
 GH
 GH My FBSD 6-.0 doesn't seem to be affected thou.
 GH
 GH
 GH Any suggestions,


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Snow in my Server

2008-12-21 Thread Outback Dingo
you could do me a favor and pack it all up in a cooler and ship it to me
here in thailand, we dont see snow here, last i saw snow was like 7 years
ago, i hear russia is also seeking snow in moscow this year, hrmmm might
want to put it up on ebay see who wins.

On Sun, Dec 21, 2008 at 7:16 PM, Valentin Bud valentin@gmail.comwrote:

 Hello,

  Just leave it be, enjoy the holidays and afterward the snow will go by its
 self :).

 Merry Xmas to everybody,
 v

 On Sat, Dec 20, 2008 at 8:01 PM, Gennady Kudryashoff
 lothlor...@tochka.ruwrote:

  Just try to remove old-stoned CGA video adapter.
 
  GH Help, I'm in southern Ontario and I have 20cm of snow on my freebsd
  GH 7-release server.
  GH
  GH IT seems to be causeing some http outages.
  GH
  GH My FBSD 6-.0 doesn't seem to be affected thou.
  GH
  GH
  GH Any suggestions,
 
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
  freebsd-questions-unsubscr...@freebsd.org
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Snow in my Server

2008-12-21 Thread Glen Barber
On Sun, Dec 21, 2008 at 7:20 AM, Outback Dingo outbackdi...@gmail.com wrote:
 you could do me a favor and pack it all up in a cooler and ship it to me
 here in thailand, we dont see snow here, last i saw snow was like 7 years
 ago, i hear russia is also seeking snow in moscow this year, hrmmm might
 want to put it up on ebay see who wins.


Natural Canadian snow.  $39.99/lb - Buy-it-now!

Disclaimer:  Buyer must provide insurance.  Not responsible for
condition of contents.  Sold by weight, not volume. (etc, etc)

Happy holidays, everyone.

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Snow in my Server

2008-12-21 Thread Aggelidis Nikos
On Fri, Dec 19, 2008 at 10:07 PM, Eitan Adler eitanadlerl...@gmail.com wrote:

 Build a bike shed over the server? :)
 make sure its green...
 --
i think blue is better suited for the job

Merry Christmas to everybody,

-nicolas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Sed question

2008-12-21 Thread Bertram Scharpf
Hi,

Am Sonntag, 21. Dez 2008, 02:08:04 -0800 schrieb Gary Kline:
 On Sun, 2008-12-21 at 07:42 +0200, Giorgos Keramidas wrote:
  On Sat, 20 Dec 2008 21:34:10 -0800, Gary Kline kl...@thought.org wrote:
  
   sed '8,10d' file newfile
   or is there a better way?
  
keram...@kobe:/tmp$ sed -i '' -e '2d' foo
  
 thanks much.  it works just fine in-place.  ...but i did made a separate
 copy, just in case;-)

To make a copy, call

  $ sed -i .bak 8,10d myfile

Be aware that the -i option is not portable. - man sed /^STANDARDS

Consider Perl or

  $ ruby -i.bak -pe 'next if 8..10 === $.' x

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[solved] Re: Linking libraries for compat_linux

2008-12-21 Thread Chris


On Dec 19, 2008, at 9:46 AM, Chris wrote:

I've bumped into a library I can't resolve and I must have a  
disconnect
in how the linux_compat works because I can't see how it could be  
solved.




I found that using FreeBSD Port fam for the daemon with openSUSE 10
fam 2.7.0 for my /compat/linux/lib/libfam.so* worked. Other fam versions
from other linux distributions failed. I'm able to detect file
changes with a linux binary that employs libfam.so. I tested it using  
the

fileschanged application provided with the linux fam version. qbmonitord
also works with this configuration.


I have the following:
* compat_linux enabled in the kernel,
* /usr/ports/emulators/linux_base_fc7
* sysctl kern.fallback_elf_brand=3
* rpm2cpio to alter rpms
* cpio to create the directories and place the files where they  
belong in /compat/linux.


I have a program that now has all it's libraries resolved but one in
preparation to attempt to run the Linux Quickbooks install on FreeBSD.
The ldd output, prior to installing /usr/ports/devel/fam (a  
required shared

library) looks like this.

ldd ./opt/qbes7/util/qbmonitord
./opt/qbes7/util/qbmonitord:
libfam.so.0 = not found
libpthread.so.0 = /lib/libpthread.so.0 (0x28072000)
libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x28088000)
libm.so.6 = /lib/libm.so.6 (0x28171000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x28198000)
libc.so.6 = /lib/libc.so.6 (0x281a4000)
/lib/ld-linux.so.2 (0x28054000)

I install fam to get rid of the not found, perform the following link:
ln /usr/local/lib/libfam.so.0 /compat/linux/lib/libfam.so.0

and then I get this:

ldd ./opt/qbes7/util/qbmonitord
./opt/qbes7/util/qbmonitord:
./opt/qbes7/util/qbmonitord: error while loading shared libraries: / 
lib/libfam.so.0: ELF file OS ABI invalid

./opt/qbes7/util/qbmonitord: exit status 127

which kind of makes sense since this library is not a linux  
library. I'd read
that I don't need to brandelf -t linux a library but I tried that  
anyway,
realizing it was likely meaningless (or harmful). It didn't help of  
course.


My next thought was to try and get a libfam.so.0 binary from a  
linux distro
but stopped when it occurred to me that it would be illogical since  
fam uses
kqueue on FreeBSD rather than something called imon. imon is not  
available
for FreeBSD so a linux version shouldn't be able to function if it  
expects that. On

FreeBSD, fam configures itself to not use imon.

What is the appropriate course of action to get a linux flavor  
shared library
for fam (or anything which runs into such conflicts) that will work  
on FreeBSD

yet be recognized as suitable for linux under the compat mode?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
unsubscr...@freebsd.org




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [solved] Re: usb-stick accessible, but doesn't boot

2008-12-21 Thread clemens fischer
clemens fischer wrote:

 On Fri, 19 Dec 2008 22:29:15 +0100 clemens fischer wrote:
 
 My USB-stick (trekstore, identifies as USB DISK SMI Corporation) is
 sliced using sade(8), labelled using bsdlabel, accessible using mount
 /dev/da0s1a /mnt/usb, it has kernel and world, but doesn't boot.
 
 The problem had nothing to do with kernel features or setup, except for
 etc/fstab.  I had a what I thought quicksimple md for /var: md /var
 mfs rw,-s100M,noatime 0 0, but this doesn't account for all the preset
 stuff in /var needed to run a system.
 
 The current version looks like:
 
  # /etc/fstab
  #
  /dev/ad6s2b noneswap sw 0 0
  /dev/da0s1a /   ufs  rw,noatime 1 1
  /dev/da0s1g /home   ufs  rw,noatime,noexec 0 0
  /dev/da0s1f /usrufs  rw,noatime 0 0
  md  /tmpmfs rw,-s24M,noatime 0 0
  md  /var/runmfs rw,-s4M,noatime 0 0
  md  /var/logmfs rw,-s32M,noatime 0 0
  #
  proc /proc procfs rw 0 0
 
 Of course the directory structure had been setup with make
 DESTDIR=/mnt/usb/ufs distrib-dirs distribution.

I am very sorry for this inaccurate information.  As it turns out, only
the GENERIC kernel is bootable, my custom configuration doesn't.  On the
bright side, this indicates some feature missing from my normally very
lean kernels, nothing is kaputt beyond repair.  I'll just have to find
out which module just has to be in the kernel to make it boot from an
USB stick.

-c

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


bzip2split

2008-12-21 Thread Kelly Jones
Can I split a large (4G+) bzip2 file into smaller bzip2 files? Notes:

 % Obviously, 'split' won't work for 2 reasons:

  % Each chunk won't have the BZIP2 header

  % 'split' will cut the file inside a bzip2 block, rendering the
  first/last blocks of each file unreadable.

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bzip2split

2008-12-21 Thread Bill Moran
In response to Kelly Jones kelly.terry.jo...@gmail.com:

 Can I split a large (4G+) bzip2 file into smaller bzip2 files? Notes:
 
  % Obviously, 'split' won't work for 2 reasons:
 
   % Each chunk won't have the BZIP2 header
 
   % 'split' will cut the file inside a bzip2 block, rendering the
   first/last blocks of each file unreadable.

You can split it.  You'll just have to rejoin it before you can
uncompress it.  Clever use of cat and pipes will do that without
intermediate files.

You could also split the file prior compression.  Then you could
uncompress each part separately, _then_ rejoin the parts.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bzip2split

2008-12-21 Thread Dan Nelson
In the last episode (Dec 21), Kelly Jones said:
 Can I split a large (4G+) bzip2 file into smaller bzip2 files? Notes:
 
  % Obviously, 'split' won't work for 2 reasons:
 
   % Each chunk won't have the BZIP2 header
 
   % 'split' will cut the file inside a bzip2 block, rendering the
   first/last blocks of each file unreadable.

The bzip2recover command will split each block of data in a bzip2 file
into separate .bz2 files; you can then cat them back together to create
runs of files however big you want.  Even though the resulting files
have bzip2 headers between blocks, bunzip2 will skip over them when
extracting.

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Sed question

2008-12-21 Thread Gary Kline
On Sun, Dec 21, 2008 at 03:06:58PM +0100, Bertram Scharpf wrote:
 Hi,
 
 Am Sonntag, 21. Dez 2008, 02:08:04 -0800 schrieb Gary Kline:
  On Sun, 2008-12-21 at 07:42 +0200, Giorgos Keramidas wrote:
   On Sat, 20 Dec 2008 21:34:10 -0800, Gary Kline kl...@thought.org wrote:
   
sed '8,10d' file newfile
or is there a better way?
   
 keram...@kobe:/tmp$ sed -i '' -e '2d' foo
   
  thanks much.  it works just fine in-place.  ...but i did made a separate
  copy, just in case;-)
 
 To make a copy, call
 
   $ sed -i .bak 8,10d myfile
 
 Be aware that the -i option is not portable. - man sed /^STANDARDS


yeah, i've been checking around: sed, even gsed.  surprised
that the berkeley sed is non-standard with some flag.  [next
thing i'll read is that berkeley did Not code half of unix.]

anyway, this is one for giiorgos, or another perl wiz. i've
been using the perl subsitution cmd one-liner for years with
unfailing success.  is there a way of deleting lines with perl
using the same idea as:

  perl -pi.bak -e 's/OLDSTRING/NEWSTRING/g' file1 file2 fileN

  that i swiped somewhere.  [?]

  last night i was up until the wee hours coding or extending
  a c++ program to assist in this stuff.  while i really get
  off on hacking code, it's less of a thrill at 02:10, say:_)

  gary


 
 Consider Perl or
 
   $ ruby -i.bak -pe 'next if 8..10 === $.' x
 
 Bertram
 
 
 -- 
 Bertram Scharpf
 Stuttgart, Deutschland/Germany
 http://www.bertram-scharpf.de

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.17a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Status of hyperthreading in FreeBSD

2008-12-21 Thread Ivan Voras
Brett Glass wrote:

 Which raises a question: What's the status of FreeBSD's support for
 hyperthreading? As far as I know, after it was revealed that some
 processes on a machine with hyperthreading could spy on others, and

Yes, but that is a hardware problem which is independent of the
operating system (it's present in all of them).

 also that hyperthreading didn't always improve performance on high end
 processors, the feature was turned off by default. But on single-user

Yes, especially on the early Pentium 4 CPUs. This is also OS-independent.

 machines, or on servers where the CPU was likely to be shared by two
 processes that were both privileged anyway, it might make sense to
 re-enable it. But has this feature of the scheduler been maintained well
 enough for this to be a good idea? If not, would it worth looking into
 updating it so that FreeBSD runs well on the Atom?

It's as good as it can be on recent ULE2 scheduler. ULE2 has support for
HTT but there's not much that can be done at the scheduler level as the
Atom is single-socket, single-core CPU.

Atom's HTT is actually pretty good - I saw up to 25% more performance
simply by using multithreading in 7zip's compression benchmark (on
WinXP, though). Of course, OTOH it uses about that much more transistors
on the CPU die so it's not exactly free performance.





signature.asc
Description: OpenPGP digital signature


disk error / reboot / 6.3

2008-12-21 Thread jerome
 
  
Hi,  
   
We are running 6.3 on a fileserver with a couple of data disks.  
   
Once the server encounters an error on a data disk (os disk is separate) the 
server will reset itself without warning.  
   
We can usually identify the problem disk with a smartctl, the disk will show 
'Offline uncorrectable errors'.  
   
The fact that the server reboots itself, is this normal? Can we prevent this 
from happening?  
The disks are attached to the on-board sata ports of the mainboard itself, so 
no (raid)controllers whatsoever.  
We also do not use software raid.  
   
Best regards  
   
Jerome
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Status of hyperthreading in FreeBSD

2008-12-21 Thread Sam Fourman Jr.

 as far as i know, just enabling smp will allow ht to function. also, i don't
 know if intel changed ht in the new atom processor, they could have.

is FreeBSD's smp special in some way that it would be the exception to
the following statement.
I know there was a lot of changes made in the new ULE2 scheduler maybe
that is why?

/*
Hyper-threading relies on support in the operating system as well as
the CPU. Conventional multiprocessor support is not enough to take
advantage of hyper-threading.[1] For example, even though Windows 2000
supports multiple CPUs, Intel does not recommend that hyper-threading
be enabled under that operating system.
*/

I found this in wikipedia at the following link
http://en.wikipedia.org/wiki/Hyper-threading

Sam Fourman Jr.
Fourman Networks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: error reading SATA DVDRW

2008-12-21 Thread Ivan Carey

Wojciech Puchar wrote:

enter bootloader prompt (6) and type

set hw.ata.atapi_dma=0
boot


On Sun, 21 Dec 2008, Ivan Carey wrote:


I am unable to install FreeBSD because of the following error
acd0: FAILURE - READ BIG_MEDIUM ERROR asc=0x21 ascq=0x00

The computer reboots during install.

I have read that this error can be due to the DVD drive being a 
master, as it is a SATA drive it is assigned as a master in the BIOS


Is there a way this can be resolved.

Thanks,
Ivan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org




Wojciech
I entered the command set hw.ata.atapi_dma=0
while loading I still get the error
acd0: FAILURE - READ BIG_MEDIUM ERROR asc=0x11 ascq=0x00

I installed FreeBSD 7.0 with out a problem

When I install PCBSD 7.0.2 
During the boot process I get 4 messages of

acd0: FAILURE - READ BIG_MEDIUM ERROR asc=0x11 ascq=0x00

At the loader prompt I also entered
set hw.ata.atapi_dma=0

I get this error at the Install GUI when it is reading each package from 
the disc

Seek failed: Invalid argument

Then about half way through the install I get a message
An error occurred while extracting the system image

The system then reboots.

For interest and information I have now problems installing Ubuntu and 
Win XP


Thanks,
Ivan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: disk error / reboot / 6.3

2008-12-21 Thread Paul B. Mahol
On 12/21/08, jerome jer...@code-monkey.nl wrote:
 Hi,

 We are running 6.3 on a fileserver with a couple of data disks.

 Once the server encounters an error on a data disk (os disk is separate) the
 server will reset itself without warning.

It just reset or it panic? There is known panic on bad block on some FreeBSD
versions but I don't think that such regression hit 6.X.


-- 
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: disk error / reboot / 6.3

2008-12-21 Thread jerome
Hi Paul,

The server resets while running, like pressing the reset button...

-Jerome
  _  

From: Paul B. Mahol [mailto:one...@gmail.com]
To: jerome [mailto:jer...@code-monkey.nl]
Cc: freebsd-questions@freebsd.org
Sent: Mon, 22 Dec 2008 00:35:04 +0100
Subject: Re: disk error / reboot / 6.3

On 12/21/08, jerome jer...@code-monkey.nl wrote:
   Hi,
  
   We are running 6.3 on a fileserver with a couple of data disks.
  
   Once the server encounters an error on a data disk (os disk is separate) the
   server will reset itself without warning.
  
  It just reset or it panic? There is known panic on bad block on some FreeBSD
  versions but I don't think that such regression hit 6.X.
  
  
  -- 
  Paul

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: recover data from damaged msdos fat32 partition

2008-12-21 Thread Polytropon
On Sat, 20 Dec 2008 16:16:38 +0800, Fbsd1 fb...@a1poweruser.com wrote:
 I know i can mount fat32 partition using mount_msdos command. But my 
 msdos fat32 partition is a bad disk with corrupted fat table.
 
 Question is can i use freebsd to recover data from this msdos fAT32 disk

Oh yes, you can! As a side product of my attempt to restore data
from an UFS partition with orphaned inodes, I found some good
utilities that might be helpful fo you.



 What tools do you suggest to use?

Check 'em out!

System:
dd
fsck_ffs
clri
fsdb
fetch -rR device
recoverdisk

Ports:
ddrescue
dd_rescue
ffs2recov
magicrescue
testdisk
The Sleuth Kit:
fls
dls
ils
autopsy
scan_ffs
recoverjpeg
fatback

Especially magicrescue can do wonders. If everything fails,
The Sleuth Kit is a good tool.

Don't forget to try mtools.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount DVD - invalid argument

2008-12-21 Thread Polytropon
On Sat, 20 Dec 2008 11:45:49 +, Max Russell thedoss...@googlemail.com 
wrote:
 I have two DVD drives on my machine.
 
 m...@~: grep acd /var/run/dmesg.boot
 acd0: DVDR PIONEER DVD-RW DVR-111D/1.19 at ata1-master UDMA66
 acd1: DMA limited to UDMA33, device found non-ATA66 cable
   
Try to put an 80pol. ATA cable (intead of a 40pol.) one in.

 acd1: DVDROM ASUS DVD-E616A2/1.03 at ata1-slave UDMA33
 
 the optical section of my fstab is like this:
 
 /dev/acd0 /cdrom cd9660 ro,noauto 0 0
 /dev/acd1 /cdrom cd9660 ro,noauto 0 0

As it has been suggested, try to use a differentiated form for
your devices, such as

/dev/acd0 /writer cd9660 ro,noauto 0 0
/dev/acd1 /dvdcd9660 ro,noauto 0 0

 however, when I try and mount a DVD, I get the following:
 
 m...@~: sudo mount_cd9660 -s 0 /dev/acd0 /cdrom
 mount_cd9660: /dev/acd0: Invalid argument

Your new command would be:

# mount /writer

or

# mount /dvd

according to the device.

If you put a media in, first check if it gets recognized
correctly.

# cdcontrol -f /dev/acd0 info

or

# cdcontrol -f /dev/acd0 info

If you prefer your DVD not-writer to be the default device
for reading CDs or DVDs (I do so, I use the writer only for
writing), you can set CDROM environment variable to that device
anbd you don't have to include the -f option anymore.



 I have been able to mount CDs.
 
 If I'm missing something really obvious, any help would be appreciated.

Defective media?



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: acronis true image

2008-12-21 Thread Polytropon
On Sun, 21 Dec 2008 00:35:57 -0800 (PST), jamshid omidi rayran...@yahoo.com 
wrote:
 hi
 [...]
 2-i want exe a file name is XXX.i686 in freebsd 7
 but when i run ./XXX.i686 this message appear 
 ELf binary type 0 not known ./XXX.i686 exec format error
 please help me to resolve this problem

Maybe you need to install the Linux ABI because it's a binary
designed for Linux?



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Snow in my Server

2008-12-21 Thread Kevin Kinsey

Eitan Adler wrote:

Jeff Laine wrote:

Just mv teh snowflakes to /dev/null ^_-

You can't mv things to /dev/null
 Operation not supported


Hmm, but you can cat /dev/null to something ...
so, a true UNIX guru should be able to do
something like:

find *snow* | xargs cat /dev/null  $1

Of course, that doesn't work, either.  Shows
why csh(1) is considered bad for snow removal,
as the story, maybe, goes

Joy to the world,

Kevin Kinsey
--
Distrust all those who love you extremely upon a very slight
acquaintance and without any visible reason.
-- Lord Chesterfield

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Sed question

2008-12-21 Thread Giorgos Keramidas
On Sun, 21 Dec 2008 14:27:44 -0800, Gary Kline kl...@thought.org wrote:
 perl -pi.bak -e 's/OLDSTRING/NEWSTRING/g' file1 file2 fileN

 that i swiped somewhere.  [?]

 last night i was up until the wee hours coding or extending
 a c++ program to assist in this stuff.  while i really get
 off on hacking code, it's less of a thrill at 02:10, say:_)

You don't need C++ for this.  If you don't mind the verbosity, Python
can do the same thing with:

  #!/usr/bin/env python

  import sys

  skiplines = [1, 3]  # line numbers that should be skipped
  lc = 0
  for l in sys.stdin.readlines():
  lc += 1
  if not (lc in skiplines):
  print l,

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Sed question

2008-12-21 Thread Polytropon
On Mon, 22 Dec 2008 05:31:08 +0200, Giorgos Keramidas 
keram...@ceid.upatras.gr wrote:
 On Sun, 21 Dec 2008 14:27:44 -0800, Gary Kline kl...@thought.org wrote:
perl -pi.bak -e 's/OLDSTRING/NEWSTRING/g' file1 file2 fileN
 
that i swiped somewhere.  [?]
 
last night i was up until the wee hours coding or extending
a c++ program to assist in this stuff.  while i really get
off on hacking code, it's less of a thrill at 02:10, say:_)
 
 You don't need C++ for this.  If you don't mind the verbosity, Python
 can do the same thing with:
 
   #!/usr/bin/env python
 
   import sys
 
   skiplines = [1, 3]  # line numbers that should be skipped
   lc = 0
   for l in sys.stdin.readlines():
   lc += 1
   if not (lc in skiplines):
   print l,
 

Interesting example. The same could be achieved using awk:

awk '(NR != 1  NR != 3)' sourcefile

NR specifies the number of record (input line). But I still
think the sed in-place editing method is the most comfortable
one, allthough your example raises my interest in learning Python.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org