Re: Flash

2007-08-18 Thread Tim Kellers

Jona Joachim wrote:

On Fri, 17 Aug 2007 18:38:12 +0200
Laszlo Nagy [EMAIL PROTECTED] wrote:

  

Zbigniew Komarnicki wrote:


Hello,

can I ask you for help, how to set up flash in Firefox natively,
step by step? 
  

The only native solution I know of is gnash but last time I tried
it it was very unstable and very slow.



gnash 0.8 is not in the ports yet.
It features some great improvements. It can for example play YouTube
videos without too many problems.
I heard very promising things about gnash last week.
gnash has already a lot of advantages compared to the 'real thing' from
Adobe. For example it runs on many platforms where Adobe's Flash
doesn't run. It will also perhaps soon hit the iPhone.
Useless to say Adobe are not so happy about it ;)

Best regards,
Jona
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  
I built and installed gnash 0.8.1 this evening. The only additional 
dependency not installed by the 0.7.x version that I needed was agg 
(/usr/ports/graphics/agg).


Interestingly enough, while the new plugin choked Firefox 2.0.0.5 and 
Seamonkey 1.14 on pages that had embedded flash files, Konqueror 3.5.7

handled most embedded Flash that was  = 7.

I built (and ran) it on a GateWay laptop running 6.2-STABLE:

FreeBSD access 6.2-STABLE FreeBSD 6.2-STABLE #2: Thu Jul 26 00:54:56 EDT 
2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ACCESS  i386


It still needs work, but it looks like it is headed in the right direction.

Tim Kellers
CPE/NJIT
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dump -L

2007-08-18 Thread Victor Sudakov
Colleagues,

Right now I am watching a dump:

[EMAIL PROTECTED] ~] dump -b64 -5Lau /home
  DUMP: Connection to big.sibptus.tomsk.ru established.
  DUMP: Date of this level 5 dump: Sat Aug 18 14:02:16 2007
  DUMP: Date of last level 0 dump: Sun Aug 12 11:10:56 2007
  DUMP: Dumping snapshot of /dev/ad0s2f (/home) to /dev/nsa0 on host big
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 3249348 tape blocks.

at the same moment:

[EMAIL PROTECTED] ~] snapinfo -v /home
/dev/ad0s2f mounted on /home
no snapshots found
[EMAIL PROTECTED] ~] ll /home/.snap/
total 0
[EMAIL PROTECTED] ~]


Is this normal? Does it mean that dump is not really dumping a
snapshot though it says it is?


-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Migrating from reiserfs to ext3

2007-08-18 Thread Konrad Scorciapino
Hello!

I have a single 200GB HD that is divided in three partitions, one with
FreeBSD, another with Linux and the other with my media. The first two are
10GB, and the latter, 180GB.

The problem is that it is a ReiserFS partition, not writable from FreeBSD,
so I'll have to change it to, say, ext3, if I'm going to be able to use
xMule again. Since I can't backup the whole thing, I'll have to use another
method to convert it.

I'm using quotes because apparently there is no such utility that converts a
given partition to another type. Why is that so? I was thinking about the
hard links.

Since the partition has some free space and its file hierarchy is quite
simple (eg, mp3/baroque/bach/bwv82_1.mp3), wouldn't it work if I resize it
to be full, using the freed space to create a new partition, and then, until
the first one is empty, move content from it to the newly created, resizing
both so that the first one is full again?

Anybody ever tried something like that? Are there utilities that could help
out, or dangers I need to avoid?

Thanks!

-- 
Konrad Scorciapino
http://www.greencnidoblast.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dump -L

2007-08-18 Thread Vince

Victor Sudakov wrote:

Colleagues,

Right now I am watching a dump:

[EMAIL PROTECTED] ~] dump -b64 -5Lau /home
  DUMP: Connection to big.sibptus.tomsk.ru established.
  DUMP: Date of this level 5 dump: Sat Aug 18 14:02:16 2007
  DUMP: Date of last level 0 dump: Sun Aug 12 11:10:56 2007
  DUMP: Dumping snapshot of /dev/ad0s2f (/home) to /dev/nsa0 on host big
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 3249348 tape blocks.

at the same moment:

[EMAIL PROTECTED] ~] snapinfo -v /home
/dev/ad0s2f mounted on /home
no snapshots found
[EMAIL PROTECTED] ~] ll /home/.snap/
total 0
[EMAIL PROTECTED] ~]


Is this normal? Does it mean that dump is not really dumping a
snapshot though it says it is?



man dump (the section regarding -L) says
The snapshot is unlinked as soon as the dump starts, and is thus 
removed when the dump is complete. What this means to you is that the 
snapshot is only visible on the file system for as long as it takes dump 
to start reading from it, dump will have an open filehandle to the 
snapshot so it can be unlinked from the filesystem and as soon as dump 
closed its handle then the snapshot is removed. Similar to when you 
delete a large logfile a program has open and forget to HUP/stop/restart 
the program, the logfile's diskspace isnt released until the the program 
closes its file handle.


Vince
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dump -L

2007-08-18 Thread Victor Sudakov
Vince wrote:
 
 Right now I am watching a dump:
 
 [EMAIL PROTECTED] ~] dump -b64 -5Lau /home
   DUMP: Connection to big.sibptus.tomsk.ru established.
   DUMP: Date of this level 5 dump: Sat Aug 18 14:02:16 2007
   DUMP: Date of last level 0 dump: Sun Aug 12 11:10:56 2007
   DUMP: Dumping snapshot of /dev/ad0s2f (/home) to /dev/nsa0 on host big
   DUMP: mapping (Pass I) [regular files]
   DUMP: mapping (Pass II) [directories]
   DUMP: estimated 3249348 tape blocks.
 
 at the same moment:
 
 [EMAIL PROTECTED] ~] snapinfo -v /home
 /dev/ad0s2f mounted on /home
 no snapshots found
 [EMAIL PROTECTED] ~] ll /home/.snap/
 total 0
 [EMAIL PROTECTED] ~]
 
 
 Is this normal? Does it mean that dump is not really dumping a
 snapshot though it says it is?
 
 
 man dump (the section regarding -L) says
 The snapshot is unlinked as soon as the dump starts, and is thus 

This explains why there is no visible snapshot file in /home/.snap/
However, I thought that snapinfo should be aware even of unlinked
snapshots. Just like mdconfig -l still shows the backingstore file
even if it has been unlinked.


-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Flash

2007-08-18 Thread Jona Joachim
On Fri, 17 Aug 2007 19:45:29 -0400
Robert Huff [EMAIL PROTECTED] wrote:

 Jona Joachim writes:
 
 
The only native solution I know of is gnash but last time I
tried it it was very unstable and very slow.
   
   gnash 0.8 is not in the ports yet.
 
   Is there an estimated date of arrival?

Sorry but I couldn't tell you, I'm not the maintainer of the port.

Jona
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vlc won't play region encoded DVDs

2007-08-18 Thread cpghost
On Fri, Aug 17, 2007 at 01:57:01PM -0400, Bob Johnson wrote:
  I was under the impression that VLC ignored region-encoding when
  playing DVDs, but this is apparently not the case on my BSD box.
 
 In all but the oldest DVD drives, region encoding is supposed to be
 enforced by the drive itself, not by your software. You can change the
 region code setting on your drive a few times, but there is a limit (5
 times, I think). Have you succeeded at playing the same DVDs with VLC
 on a different O/S?

All RPC-2 drives behave that way. It is enforced by the firmware,
not the hardware itself; and firmware can be hacked / replaced,
so that the RPC-2 drive can be flashed to become RPC-1. You'll void
your warranty though:

http://www.rpc1.org

But IIRC, though I may be wrong, mplayer (proably vlc as well)
don't care at all about that. They grab the data directly off
the drive, and if it's CSS-encoded, they can DeCSS it on-the-fly
when linked with /usr/ports/multimedia/libdvdcss.

I've been able to view out-of-region region-encoded DVDs both
on RPC-2 and RPC-1 drives (both old and recent) with mplayer
without any problems; and, yes, I've switched regions much more
often that just 5 times per RPC-2 drive: no problems at all.

 I hope I'm wrong, though. The sooner this idiot DRM stuff dies, the better.

Yep. Region encoding and CSS are broken anyway and have
been no problem for a long time already; the real interesting
hacking is now being done on AACS, but that's another story in
the neverending race between good and evil. ;-)

 - Bob

Cheers,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vlc won't play region encoded DVDs

2007-08-18 Thread cpghost
On Sat, Aug 18, 2007 at 02:25:17PM +0200, I wrote:
 I've been able to view out-of-region region-encoded DVDs both
 on RPC-2 and RPC-1 drives (both old and recent) with mplayer
 without any problems; and, yes, I've switched regions much more
 often that just 5 times per RPC-2 drive: no problems at all.

I've meant to say: I've switched disks from different regions
more than five times on RPC-2 drives (using mplayer) without
problems; NOT that I've switched the region encoding in the
RPC-2 drives themselves (there was no need for that).

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


OpenLDAP: weirdness with slapd.conf vs. slapd.d/

2007-08-18 Thread O. Hartmann

Hello,
while fiddling around with OpenLDAP 2.3.37 as taken from the ports 
collection I revealed something strange. Looking at the manpage of slapd 
I was taught that if neither -F nor -f option is applied when the SLAPD 
starts, default config directory /usr/local/etc/openldap/slapd.d/ is 
searched for dn=config.ldif. So I did, I configured my own 
dn=config.ldif file as it is described in chapter 5 and 6 of the 
OpenLDAP Administrator's documentation. But with FreeBSD 7.0-CURRENT and 
the port I run into something strange not being consistent with the 
documentation: the start of the slapd server was avoided by an error 
telling me there wasn't any readable slapd.conf file. What is that? Test 
with slaptest tells a syntactically correct slapd.d/ directory, but 
slapd won;t start. Touching an empty slapd.conf let the server start.


The documents tell one that slapd.conf is a kind of deprecated, but it 
seems still in use.


On the other hand, typing in the configuration taken from the 
Administrator's guide of OpenLDAP as found in chapters 5,6 does not 
work! Strange.


Regards,
Oliver
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Pine - Duplicate Messages

2007-08-18 Thread RW
On Fri, 17 Aug 2007 22:36:48 + (UTC)
Duane Hill [EMAIL PROTECTED] wrote:

 On Fri, 17 Aug 2007 at 18:24 +0100, [EMAIL PROTECTED]
 confabulated:
 
  On Fri, 17 Aug 2007 06:38:59 + (UTC)
  Duane Hill [EMAIL PROTECTED] wrote:
 
 
  Periodically I get duplicated messages in email folders I have
  defined and have rules set up for.
  ...
  If I remove ALL rules from Pine, I have absolutely no issues with
  duplicate messages.
 
  Are they perhaps deleted messages? when a pine rule moves a
  message, it copies it, marks the original as deleted and then hides
  it for the rest of the session.
 
 Nope. This happens with new messages that are coming in. 

What I was describing applies to any email moved by a rule, including
new messages.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Share folder over internet

2007-08-18 Thread Yance Kowara


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Laszlo Nagy
Sent: Friday, 17 August 2007 9:43 PM
To: Norberto Meijome; freebsd-questions@freebsd.org
Subject: Re: Share folder over internet


 It is hardly the freebsd community's fault that
Skype / Ebay doesn't
create a FreeBSD binary. Actually, the linux
compatibility layer is one of
the great things in FreeBSD. Of course, you may be
having other issues we
can't know about until you kindly tell us (on a
separate thread pls...)
   
Yes, I agree. I did not tell it is the fault of the
FreeBSD community. 
However, when you need to install an application
server for a couple of 
diskless X terminals, you should not use FreeBSD. I'm
serious. There are 
some very important applications that just don't work.
:-(
 ::shrug:: each solution needs to be considered for
the problem. It is,
after all, your server, feel free to install linux or
pay for MS licenses...
(btw, have ever actually used windows file sharing
over a slow link ?
whatever 'ease of use' you *may* have gain (and i'm
not sure how much of
that there really is) will probably be lost when you
consider other
factors...)
   
Well, yes. You are right about these factors. In my
case, it is almost 
too late to migrate to Linux. It would cost too much
and there would be 
other disadvantages too. For some things, FreeBSD is
definitely better.

Best,

   Laszlo


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


What about ssl-explorer?
http://www.sshtools.com/showSslExplorerCommunity.do

and the howto

http://techbytes.m2technology.com/networking/ssl-vpn-how-to-ssl-explorer-on-
freebsd/


Regards,


Yance



  

Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: performance hints (6.2)

2007-08-18 Thread Rob

At 04:00 PM 8/17/2007, Mark Messier wrote:

I've got a freebsd 6.2 system, dual 2Ghz 5130 cpu, 4g ram, with raid5
Adaptec 2120s, running not much more than /usr/ports/mail/imap-uw
and I'm having performance problems with only 20 IMAP users.


As previously suggested, Raid 5's performance sucks for almost every 
application.  What mailfile format are you using - mbox / mdir?  And 
while it might be a major change, consider dumping UW and using 
Dovecot http://dovecot.org/   UW's performance, scalability, and 
security have been less than great for many years.


  -RW

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


Re: Stunnel starting up twice?!?

2007-08-18 Thread [EMAIL PROTECTED]
On 17/08/07, Alan Garfield [EMAIL PROTECTED] wrote:
 Hey all,

 I've got a weird problem that's just appeared. I'd updated my ports to
 the latest CURRENT using portmanager, and now it seems
 like /usr/local/etc/rc.d/stunnel.sh is getting run twice!

 I have nuked my /etc/rc.d and run mergemaster -i. I'm running
 6.2-RELEASE-p7, and the port is the latest available (stunnel-4.20).

 Anyone else seem similar?

The running twice is usually that you have the
/usr/X11R6 - /usr/local link and your /etc/defaults/rc.conf
still has both /usr/X11R6/etc/rc.d and /usr/local/etc/rc.d in
the local rc scripts line.

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


Re: error in portupgrading audio/libmtp : bad c++ code ?

2007-08-18 Thread Jan Henrik Sylvester

Beni wrote:
 When trying to portupgrade audio/libmtp (and amarok), I'm getting this
 error : Bad C++ code.

I asked the maintainer... it is known, it is being worked on, and the 
problem and fixes / workarounds are documented here: 
http://www.freebsd.org/cgi/query-pr.cgi?pr=115218


If you simply pkg_delete the old version before you compile, it will 
work (because it does not pick up the old header).


HTH,
Jan Henrik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


BIND $GENERATE IPv6

2007-08-18 Thread Eric Crist

Hello list,

I'm having a problem trying to develop a proper generate record for  
my IPv6 reverse zones.


Can anyone point me to the correct FM in this case?  Preferably  
something with some examples?


Thanks!

-
Eric F Crist
Secure Computing Networks


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


Re: question about reporting bugs

2007-08-18 Thread Nikola Lecic
On Fri, 17 Aug 2007 16:53:27 +
Pollywog [EMAIL PROTECTED] wrote:

 I have a problem with the jabberd port in FreeBSD 6.2.
 The script apparently is not being executed on boot, though it works
 if executed manually.  Who gets the bug report, the porter?  Is the
 porter the person named for the port at FreshPorts?

Hello,

Do you have

  jabberd_enable=YES

in /etc/rc.conf?

If you are sure that's a bug, the porter of net-im/jabberd is
[EMAIL PROTECTED]:

  http://www.freebsd.org/cgi/ports.cgi?query=jabberd-2.1.12

In general, please read

  http://www.freebsd.org/doc/en_US.ISO8859-1/articles/problem-reports/

and send-pr(1) manpage.

Nikola Lečić
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: question about reporting bugs

2007-08-18 Thread Pollywog
On Saturday 18 August 2007 16:15:53 Nikola Lecic wrote:
 On Fri, 17 Aug 2007 16:53:27 +

 Pollywog [EMAIL PROTECTED] wrote:
  I have a problem with the jabberd port in FreeBSD 6.2.
  The script apparently is not being executed on boot, though it works
  if executed manually.  Who gets the bug report, the porter?  Is the
  porter the person named for the port at FreshPorts?

 Hello,

 Do you have

   jabberd_enable=YES

 in /etc/rc.conf?

Yes, I have that, but the startup script only works when executed manually.


 If you are sure that's a bug, the porter of net-im/jabberd is
 [EMAIL PROTECTED]:

   http://www.freebsd.org/cgi/ports.cgi?query=jabberd-2.1.12

 In general, please read

   http://www.freebsd.org/doc/en_US.ISO8859-1/articles/problem-reports/

 and send-pr(1) manpage.

 Nikola Lečić

Thank you for the information.

8)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: performance hints (6.2)

2007-08-18 Thread Jeffrey Goldberg

On Aug 18, 2007, at 10:41 AM, Rob wrote:

What mailfile format are you using - mbox / mdir?  And while it  
might be a major change, consider dumping UW and using Dovecot  
http://dovecot.org/   UW's performance, scalability, and security  
have been less than great for many years.


UW's performance and scalability is just fine if you use their  
*recommended* mailbox format, mbx.  It's only if you use mbox (unix)  
which is provided for transition and backwards compatibility that you  
experience performance and scalability problems.


I have no problem with mailboxes with more than 20K messages in mbx  
format using UW-IMAP.


In my experience, all of the performance complaints about UW-IMAP  
have to do with people using legacy mailbox formats.  UW appears to  
be the only IMAP server which provides support for such legacy  
formats, so that is probably why it takes so much blame for the  
performance problems of such mailboxes.


See

  http://www.washington.edu/imap/documentation/formats.txt.html

for Mark Crispin's rant about mailbox formats to help understand the  
choices made in UW-IMAP.


There may be plenty of good reasons to prefer dovecote or cyrus or  
zimbra over UW-IMAP, but on this performance and scalability issue,  
UW-IMAP has had an unfair rap.


-j

--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

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


Regular expressions

2007-08-18 Thread Christer Hermansson

Hi.

I'm trying to use regular expressions inside a shell script (/bin/sh) on 
my freebsd box and can't get it to work so I searched the web  and found 
http://regexlib.com/RETester.aspx


On this webpage I could test my pattern ^[A-Za-z0-9_-]+$ and 
everything was fine, did exactly what I wanted to do, check that a 
string only contains some combination of the characters A-Z, a-z, 0-9, 
hyphen - and underscore _.


I also found some basic example at 
http://www.grymoire.com/Unix/Sh.html#uh-88 :


88888

#!/bin/sh

echo Type in a number
read ans
number=`expr $ans : ([0-9]*)`
if [ $number != $ans ]; then
echo Not a number
elif [ $number -eq 0 ]; then
echo Nothing was typed
else
echo $number is a fine number
fi

88888

The above example doesn't work on my freebsd box. Maybe I need to update 
my system, sitting with 6.0R which never been updated.


Is there anyone who has some advice about how to get regular expressions 
to work in FreeBSD shell script ?


--

Christer Hermansson





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


Re: Regular expressions

2007-08-18 Thread Derek Ragona

At 12:04 PM 8/18/2007, Christer Hermansson wrote:

Hi.

I'm trying to use regular expressions inside a shell script (/bin/sh) on 
my freebsd box and can't get it to work so I searched the web  and found 
http://regexlib.com/RETester.aspx


On this webpage I could test my pattern ^[A-Za-z0-9_-]+$ and everything 
was fine, did exactly what I wanted to do, check that a string only 
contains some combination of the characters A-Z, a-z, 0-9, hyphen - and 
underscore _.


I also found some basic example at 
http://www.grymoire.com/Unix/Sh.html#uh-88 :


88888

#!/bin/sh

echo Type in a number
read ans
number=`expr $ans : ([0-9]*)`
if [ $number != $ans ]; then
echo Not a number
elif [ $number -eq 0 ]; then
echo Nothing was typed
else
echo $number is a fine number
fi

88888

The above example doesn't work on my freebsd box. Maybe I need to update 
my system, sitting with 6.0R which never been updated.


Is there anyone who has some advice about how to get regular expressions 
to work in FreeBSD shell script ?


--

Christer Hermansson


You have a syntax error using expr.  Do a man on expr for more details but 
if you change that line from:

number=`expr $ans : ([0-9]*)`
to:
number=`expr $ans : \([0-9]*\)`

You will get the desired results.

Also when debugging scripts remember to add:
set -x
to your script on the second line, and see what the script lines are 
actually doing.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


fsck strangeness

2007-08-18 Thread Christopher Key

Hello,

I'm having some rather strange behaviour with fsck.

When I boot the system, it asserts that all the file systems are clean, 
but subsequently running an fsck on /dev/ad8s1e (mounted as /var) 
detects errors.  Even if this first check is run whilst the file system 
is mounted, and is hence run in NO WRITE mode, a second check doesn't 
find block errors.  If I then unmount the file system and check the 
disk, it's fine, as indeed it is if I unmount, remount, then check.  
However, if I then reboot, the process repeats, and an fsck immediately 
after reboot will find errors again.  If I bring the system up in single 
user mode, and run fsck either before or after mounting /var, it finds 
no errors.


I'm running 6.2_RELEASE with a custom kernel based upon generic-smp, but 
with a lot of unecessary bits removed, and geom_mirror compiled in.  I 
don't think it's the drive that's at fault, all the other partitions in 
the slice are fine, it's a fairly new drive, and it passes a self test 
quite happily.  Included below is a transcript that attempt to show 
what's going on in detail, is there anything else relevant?


Can anyone suggest what might be going on and how to fix it, or suggest 
some slightly better diagnostics?  Apologies if this is an RTFM issue, I 
have had a good dig through the handbook, but can't seem to find 
anything that helps.


Regards,

Chris


# fsck /dev/ad8s1e
** /dev/ad8s1e (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=706567 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=706583 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=706593 (80 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=706594 (80 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=706595 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=706598 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730708 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730779 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730780 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730781 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730784 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730799 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730819 (24 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036295 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036313 (48 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036314 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036315 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036317 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036320 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036321 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036323 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036324 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1719339 (12 should be 8)
CORRECT? no

INCORRECT BLOCK COUNT I=1742856 (4 should be 0)
CORRECT? no

** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=730782  OWNER=slimserv MODE=100644
SIZE=771 MTIME=Aug 18 16:27 2007
RECONNECT? no


CLEAR? no

UNREF FILE  I=730783  OWNER=slimserv MODE=100644
SIZE=1309 MTIME=Aug 18 16:27 2007
RECONNECT? no


CLEAR? no

UNREF FILE  I=730818  OWNER=slimserv MODE=100644
SIZE=10825 MTIME=Aug 18 16:27 2007
RECONNECT? no


CLEAR? no

UNREF FILE I=2049026  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049029  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049030  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049031  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049032  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

SUMMARY INFORMATION BAD
SALVAGE? no

BLK(S) MISSING IN BIT MAPS
SALVAGE? no

1048 files, 53949 used, 8068123 free (643 frags, 1008435 blocks, 0.0% 
fragmentation)



# fsck /dev/ad8s1e
** /dev/ad8s1e (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=2049026  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049029  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049030  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049031  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049032  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

SUMMARY INFORMATION BAD
SALVAGE? no

BLK(S) MISSING IN BIT MAPS
SALVAGE? no

1045 files, 54019 used, 8068133 free (653 frags, 1008435 blocks, 0.0% 
fragmentation)



# fsck 

Re: fsck strangeness

2007-08-18 Thread Erik Trulsson
On Sat, Aug 18, 2007 at 08:21:42PM +0100, Christopher Key wrote:
 Hello,
 
 I'm having some rather strange behaviour with fsck.
 
 When I boot the system, it asserts that all the file systems are clean, but 
 subsequently running an fsck on /dev/ad8s1e (mounted as /var) detects 
 errors.  Even if this first check is run whilst the file system is mounted, 
 and is hence run in NO WRITE mode, a second check doesn't find block 
 errors.  If I then unmount the file system and check the disk, it's fine, 
 as indeed it is if I unmount, remount, then check.  However, if I then 
 reboot, the process repeats, and an fsck immediately after reboot will find 
 errors again.  If I bring the system up in single user mode, and run fsck 
 either before or after mounting /var, it finds no errors.
 
 I'm running 6.2_RELEASE with a custom kernel based upon generic-smp, but 
 with a lot of unecessary bits removed, and geom_mirror compiled in.  I 
 don't think it's the drive that's at fault, all the other partitions in the 
 slice are fine, it's a fairly new drive, and it passes a self test quite 
 happily.  Included below is a transcript that attempt to show what's going 
 on in detail, is there anything else relevant?
 
 Can anyone suggest what might be going on and how to fix it, or suggest 
 some slightly better diagnostics?  Apologies if this is an RTFM issue, I 
 have had a good dig through the handbook, but can't seem to find anything 
 that helps.
 

Running fsck on a file system that has been mounted read/write will almost
always report spurious errors and can really screw up the disk if it tries
to 'correct' those errors.

You should normally not run fsck on a mounted filesystem and you should
*NEVER* run fsck on a filesystem that has been mounted read/write.




-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fsck strangeness

2007-08-18 Thread Bill Moran
Christopher Key [EMAIL PROTECTED] wrote:

 Hello,
 
 I'm having some rather strange behaviour with fsck.
 
 When I boot the system, it asserts that all the file systems are clean, 
 but subsequently running an fsck on /dev/ad8s1e (mounted as /var) 
 detects errors.  Even if this first check is run whilst the file system 
 is mounted, and is hence run in NO WRITE mode, a second check doesn't 
 find block errors.  If I then unmount the file system and check the 
 disk, it's fine, as indeed it is if I unmount, remount, then check.  
 However, if I then reboot, the process repeats, and an fsck immediately 
 after reboot will find errors again.  If I bring the system up in single 
 user mode, and run fsck either before or after mounting /var, it finds 
 no errors.

Don't run fsck on mounted filesystems unless they're mounted read-only.

Although, it's possible I misunderstood your description of the problem.

 
 I'm running 6.2_RELEASE with a custom kernel based upon generic-smp, but 
 with a lot of unecessary bits removed, and geom_mirror compiled in.  I 
 don't think it's the drive that's at fault, all the other partitions in 
 the slice are fine, it's a fairly new drive, and it passes a self test 
 quite happily.  Included below is a transcript that attempt to show 
 what's going on in detail, is there anything else relevant?
 
 Can anyone suggest what might be going on and how to fix it, or suggest 
 some slightly better diagnostics?  Apologies if this is an RTFM issue, I 
 have had a good dig through the handbook, but can't seem to find 
 anything that helps.
 
 Regards,
 
 Chris
 
 
 # fsck /dev/ad8s1e
 ** /dev/ad8s1e (NO WRITE)
 ** Last Mounted on /var
 ** Phase 1 - Check Blocks and Sizes
 INCORRECT BLOCK COUNT I=706567 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=706583 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=706593 (80 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=706594 (80 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=706595 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=706598 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=730708 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=730779 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=730780 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=730781 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=730784 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=730799 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=730819 (24 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=1036295 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=1036313 (48 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=1036314 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=1036315 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=1036317 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=1036320 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=1036321 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=1036323 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=1036324 (4 should be 0)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=1719339 (12 should be 8)
 CORRECT? no
 
 INCORRECT BLOCK COUNT I=1742856 (4 should be 0)
 CORRECT? no
 
 ** Phase 2 - Check Pathnames
 ** Phase 3 - Check Connectivity
 ** Phase 4 - Check Reference Counts
 UNREF FILE  I=730782  OWNER=slimserv MODE=100644
 SIZE=771 MTIME=Aug 18 16:27 2007
 RECONNECT? no
 
 
 CLEAR? no
 
 UNREF FILE  I=730783  OWNER=slimserv MODE=100644
 SIZE=1309 MTIME=Aug 18 16:27 2007
 RECONNECT? no
 
 
 CLEAR? no
 
 UNREF FILE  I=730818  OWNER=slimserv MODE=100644
 SIZE=10825 MTIME=Aug 18 16:27 2007
 RECONNECT? no
 
 
 CLEAR? no
 
 UNREF FILE I=2049026  OWNER=slimserv MODE=100600
 SIZE=0 MTIME=Aug 18 16:40 2007
 CLEAR? no
 
 UNREF FILE I=2049029  OWNER=slimserv MODE=100600
 SIZE=0 MTIME=Aug 18 16:40 2007
 CLEAR? no
 
 UNREF FILE I=2049030  OWNER=slimserv MODE=100600
 SIZE=0 MTIME=Aug 18 16:40 2007
 CLEAR? no
 
 UNREF FILE I=2049031  OWNER=slimserv MODE=100600
 SIZE=0 MTIME=Aug 18 16:40 2007
 CLEAR? no
 
 UNREF FILE I=2049032  OWNER=slimserv MODE=100600
 SIZE=0 MTIME=Aug 18 16:40 2007
 CLEAR? no
 
 ** Phase 5 - Check Cyl groups
 FREE BLK COUNT(S) WRONG IN SUPERBLK
 SALVAGE? no
 
 SUMMARY INFORMATION BAD
 SALVAGE? no
 
 BLK(S) MISSING IN BIT MAPS
 SALVAGE? no
 
 1048 files, 53949 used, 8068123 free (643 frags, 1008435 blocks, 0.0% 
 fragmentation)
 
 
 # fsck /dev/ad8s1e
 ** /dev/ad8s1e (NO WRITE)
 ** Last Mounted on /var
 ** Phase 1 - Check Blocks and Sizes
 ** Phase 2 - Check Pathnames
 ** Phase 3 - Check Connectivity
 ** Phase 4 - Check Reference Counts
 UNREF FILE I=2049026  OWNER=slimserv MODE=100600
 SIZE=0 MTIME=Aug 18 16:40 2007
 CLEAR? no
 
 UNREF FILE I=2049029  OWNER=slimserv MODE=100600
 SIZE=0 MTIME=Aug 18 16:40 2007
 CLEAR? no
 
 UNREF FILE I=2049030  OWNER=slimserv MODE=100600
 SIZE=0 MTIME=Aug 18 16:40 2007
 CLEAR? no
 
 UNREF FILE I=2049031  OWNER=slimserv MODE=100600
 SIZE=0 MTIME=Aug 18 

problem with supfile

2007-08-18 Thread Pollywog
Someone please tell me why my supfile is not working.  I think the problem is 
the tag but I am unsure why:

*default host=cvsup2.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_6_2
*default delete use-rel-suffix

# If you seem to be limited by CPU rather than network or disk bandwidth, try
# commenting out the following line.  (Normally, today's CPUs are fast enough
# that you want to run compression.)
*default compress

# This collection retrieves the www/ tree of the FreeBSD repository
#www
ports-all
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: problem with supfile

2007-08-18 Thread Per olof Ljungmark

Pollywog wrote:
Someone please tell me why my supfile is not working.  I think the problem is 
the tag but I am unsure why:


*default host=cvsup2.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_6_2
*default delete use-rel-suffix



This how one of my (working) files look.

*default  host=cvsup.de.FreeBSD.org
*default  base=/usr
*default  prefix=/usr
*default  tag=.
*default  release=cvs tag=RELENG_6_2
*default  delete use-rel-suffix

Good luck,

Per olof
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: problem with supfile

2007-08-18 Thread Manolis Kiagias
Pollywog wrote:
 Someone please tell me why my supfile is not working.  I think the problem is 
 the tag but I am unsure why:

 *default host=cvsup2.FreeBSD.org
 *default base=/var/db
 *default prefix=/usr
 *default release=cvs tag=RELENG_6_2
 *default delete use-rel-suffix

 # If you seem to be limited by CPU rather than network or disk bandwidth, try
 # commenting out the following line.  (Normally, today's CPUs are fast enough
 # that you want to run compression.)
 *default compress

 # This collection retrieves the www/ tree of the FreeBSD repository
 #www
 ports-all
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


   
Since this is obviously a ports-supfile, are you sure you want to cvsup
the RELENG_6_2 ports;
These refer to the ports tree at the exact point when 6.2 was released.
You already have them, you installed that ports tree from your CDROM
during installation.
Instead, you probably need a line like:

*default release=cvs tag=.

to get the latest available ports.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: problem with supfile

2007-08-18 Thread Erik Trulsson
On Sat, Aug 18, 2007 at 10:47:21PM +0300, Manolis Kiagias wrote:
 Pollywog wrote:
  Someone please tell me why my supfile is not working.  I think the problem 
  is 
  the tag but I am unsure why:
 
  *default host=cvsup2.FreeBSD.org
  *default base=/var/db
  *default prefix=/usr
  *default release=cvs tag=RELENG_6_2
  *default delete use-rel-suffix
 
  # If you seem to be limited by CPU rather than network or disk bandwidth, 
  try
  # commenting out the following line.  (Normally, today's CPUs are fast 
  enough
  # that you want to run compression.)
  *default compress
 
  # This collection retrieves the www/ tree of the FreeBSD repository
  #www
  ports-all
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 

 Since this is obviously a ports-supfile, are you sure you want to cvsup
 the RELENG_6_2 ports;
 These refer to the ports tree at the exact point when 6.2 was released.
 You already have them, you installed that ports tree from your CDROM
 during installation.
 Instead, you probably need a line like:
 
 *default release=cvs tag=.
 
 to get the latest available ports.

And if the OP did want the ports tree that shipped with 6.2, then RELENG_6_2
would have been the wrong tag anyway (in that case the tag should have been
RELEASE_6_2_0.)  







-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fsck strangeness

2007-08-18 Thread Christopher Key

Bill Moran wrote:

Christopher Key [EMAIL PROTECTED] wrote:
  

Hello,

I'm having some rather strange behaviour with fsck.

When I boot the system, it asserts that all the file systems are clean, 
but subsequently running an fsck on /dev/ad8s1e (mounted as /var) 
detects errors.  Even if this first check is run whilst the file system 
is mounted, and is hence run in NO WRITE mode, a second check doesn't 
find block errors.  If I then unmount the file system and check the 
disk, it's fine, as indeed it is if I unmount, remount, then check.  
However, if I then reboot, the process repeats, and an fsck immediately 
after reboot will find errors again.  If I bring the system up in single 
user mode, and run fsck either before or after mounting /var, it finds 
no errors.



Don't run fsck on mounted filesystems unless they're mounted read-only.

Although, it's possible I misunderstood your description of the problem.

  

Thanks Eric, Bill,

I must have misunderstood, I was under the impression that running fsck 
on a device with a mounted file system would scan, but not actaully 
write anything, hence its reporting 'NO WRITE'.  I'll reread the fsck 
manpage.


Is running fsck -B /dev/ad8s1e safe, as I understand it, this creates a 
snapshot of the filesystem and scans that.


Regards,

Chris

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


Re: problem with supfile

2007-08-18 Thread Manolis Kiagias
Erik Trulsson wrote:
 On Sat, Aug 18, 2007 at 10:47:21PM +0300, Manolis Kiagias wrote:
   
 Pollywog wrote:
 
 Someone please tell me why my supfile is not working.  I think the problem 
 is 
 the tag but I am unsure why:

 *default host=cvsup2.FreeBSD.org
 *default base=/var/db
 *default prefix=/usr
 *default release=cvs tag=RELENG_6_2
 *default delete use-rel-suffix

 # If you seem to be limited by CPU rather than network or disk bandwidth, 
 try
 # commenting out the following line.  (Normally, today's CPUs are fast 
 enough
 # that you want to run compression.)
 *default compress

 # This collection retrieves the www/ tree of the FreeBSD repository
 #www
 ports-all
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


   
   
 Since this is obviously a ports-supfile, are you sure you want to cvsup
 the RELENG_6_2 ports;
 These refer to the ports tree at the exact point when 6.2 was released.
 You already have them, you installed that ports tree from your CDROM
 during installation.
 Instead, you probably need a line like:

 *default release=cvs tag=.

 to get the latest available ports.
 

 And if the OP did want the ports tree that shipped with 6.2, then RELENG_6_2
 would have been the wrong tag anyway (in that case the tag should have been
 RELEASE_6_2_0.)  

   

True, and quite obviously :) I never csup-ed the release ports myself,
so I missed this one! Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


The problem of connection between Windows and FreeBSD when using IPSec transport.

2007-08-18 Thread Alexey Vlasov
Hi,

On one side there's FreeBSD 6.2, ipsec-tools-0.6.7; on the other Windows
2003 Server.

If I start pinging under Windows everything works ok,

C:\Documents and Settingsping 111.111.111.2

Pinging 111.111.111.2 with 32 bytes of data:

Negotiating IP Security.
Reply from 111.111.111.2: bytes=32 time1ms TTL=63
Reply from 111.111.111.2: bytes=32 time1ms TTL=63

/var/log/racoon.log

2007-08-17 12:10:18: INFO: @(#)ipsec-tools 0.6.7
(http://ipsec-tools.sourceforge.net)
2007-08-17 12:10:18: INFO: @(#)This product linked OpenSSL 0.9.7e-p1 25
Oct 2004 (http://www.openssl.org/)
2007-08-17 12:10:18: INFO: 111.111.111.2[500] used as isakmp port
(fd=5)

2007-08-17 12:29:16: INFO: respond new phase 1 negotiation:
111.111.111.2[500]=111.111.111.1[500]
2007-08-17 12:29:16: INFO: begin Identity Protection mode.
2007-08-17 12:29:16: INFO: received broken Microsoft ID: MS NT5
ISAKMPOAKLEY
2007-08-17 12:29:16: INFO: received Vendor ID: FRAGMENTATION
2007-08-17 12:29:16: INFO: received Vendor ID:
draft-ietf-ipsec-nat-t-ike-02
2007-08-17 12:29:16: INFO: ISAKMP-SA established
111.111.111.2[500]-111.111.111.1[500]
spi:ceb3ba2040683da6:f80fc5ab1e3d931e
2007-08-17 12:29:16: INFO: respond new phase 2 negotiation:
111.111.111.2[0]=111.111.111.1[0]
2007-08-17 12:29:16: INFO: IPsec-SA established: ESP/Transport
111.111.111.1[0]-111.111.111.2[0] spi=36304726(0x229f756)
2007-08-17 12:29:16: INFO: IPsec-SA established: ESP/Transport
111.111.111.2[0]-111.111.111.1[0] spi=3194585143(0xbe698037)

From FreeBSD:

# ping 111.111.111.1
PING 111.111.111.1 (111.111.111.1): 56 data bytes
64 bytes from 111.111.111.1: icmp_seq=6 ttl=127 time=0.526 ms
64 bytes from 111.111.111.1: icmp_seq=7 ttl=127 time=6.382 ms

and ping works for 2 sides.


But if I initiate ping under FreeBSD (after restart racoon daemon),

# ping 111.111.111.1
PING 111.111.111.1 (111.111.111.1): 56 data bytes
^C
--- 111.111.111.1 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss

I see in the log the following:
2007-08-17 12:44:16: INFO: @(#)ipsec-tools 0.6.7
(http://ipsec-tools.sourceforge.net)
2007-08-17 12:44:16: INFO: @(#)This product linked OpenSSL 0.9.7e-p1 25
Oct 2004 (http://www.openssl.org/)
2007-08-17 12:44:16: INFO: 111.111.111.2[500] used as isakmp port
(fd=5)
2007-08-17 12:44:21: INFO: IPsec-SA request for 111.111.111.1 queued
due to no phase1 found.
2007-08-17 12:44:21: INFO: initiate new phase 1 negotiation:
111.111.111.2[500]=111.111.111.1[500]
2007-08-17 12:44:21: INFO: begin Identity Protection mode.
2007-08-17 12:44:21: INFO: received broken Microsoft ID: MS NT5
ISAKMPOAKLEY
2007-08-17 12:44:21: INFO: received Vendor ID: FRAGMENTATION
2007-08-17 12:44:21: INFO: received Vendor ID:
draft-ietf-ipsec-nat-t-ike-02

2007-08-17 12:44:21: INFO: ISAKMP-SA established
111.111.111.2[500]-111.111.111.1[500]
spi:94372eb384516aef:bccacea73409cfc6
2007-08-17 12:44:22: INFO: initiate new phase 2 negotiation:
111.111.111.2[0]=111.111.111.1[0]
2007-08-17 12:44:22: ERROR: unknown notify message, no phase2 handle
found.
2007-08-17 12:44:38: ERROR: 111.111.111.1 give up to get IPsec-SA due
to time up to wait.
2007-08-17 12:45:21: INFO: ISAKMP-SA expired
111.111.111.2[500]-111.111.111.1[500]
spi:94372eb384516aef:bccacea73409cfc6
2007-08-17 12:45:21: ERROR: unknown Informational exchange received.
2007-08-17 12:45:22: INFO: ISAKMP-SA deleted
111.111.111.2[500]-111.111.111.1[500]
spi:94372eb384516aef:bccacea73409cfc6

My configs:

# cat /etc/ipsec.conf
spdadd 111.111.111.2 111.111.111.1 any -P out ipsec
esp/transport//require;

spdadd 111.111.111.1 111.111.111.2 any -P in ipsec
esp/transport//require;

path pre_shared_key /usr/local/etc/racoon/psk.txt ;
log notify;

padding
{
maximum_length 20;
randomize off;
strict_check off;
exclusive_tail off;
}

timer
{
counter 5; # maximum trying count to send.
interval 20 sec; # maximum interval to resend.
persend 1; # the number of packets per a send.
phase1 30 sec;
phase2 15 sec;
}

remote anonymous
{
# exchange_mode aggressive,main;
exchange_mode main, base;
doi ipsec_doi;
situation identity_only;
nonce_size 16;
lifetime time 1 min; # sec, min, hour
initial_contact on;
support_proxy on;
proposal_check obey; # obey, strict or claim

proposal {
encryption_algorithm 3des;
hash_algorithm sha1;
authentication_method pre_shared_key ;
dh_group 2 ;
}
}

sainfo anonymous
{
pfs_group 1;
lifetime time 36000 sec;
encryption_algorithm 3des,des,cast128,blowfish ;
authentication_algorithm hmac_sha1,hmac_md5;
compression_algorithm deflate ;
}

What do I have to change in conf files, to make
IPSec properly work no matter from which server I initiate the
connection?
Thank you for any answers.

--
BRGDS. Alesha

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

Re: problem with supfile

2007-08-18 Thread Manolis Kiagias


Pollywog wrote:
 On Saturday 18 August 2007 19:47:21 Manolis Kiagias wrote:
   
 Pollywog wrote:
 
 Someone please tell me why my supfile is not working.  I think the
 problem is the tag but I am unsure why:

 *default host=cvsup2.FreeBSD.org
 *default base=/var/db
 *default prefix=/usr
 *default release=cvs tag=RELENG_6_2
 *default delete use-rel-suffix

 # If you seem to be limited by CPU rather than network or disk bandwidth,
 try # commenting out the following line.  (Normally, today's CPUs are
 fast enough # that you want to run compression.)
 *default compress

 # This collection retrieves the www/ tree of the FreeBSD repository
 #www
 ports-all
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
   
 Since this is obviously a ports-supfile, are you sure you want to cvsup
 the RELENG_6_2 ports;
 These refer to the ports tree at the exact point when 6.2 was released.
 You already have them, you installed that ports tree from your CDROM
 during installation.
 Instead, you probably need a line like:

 *default release=cvs tag=.

 to get the latest available ports.
 

 Thanks, that has to be it, because on my laptop, I have it as above and it 
 works.  The problem is that when I updated src-ports with a similar supfile, 
 I ended up with FreeBSD 7 on the laptop.


   
Yes, and this is the right behavious since tag=. will get you HEADS from
the repository and if you use it for the BASE SYSTEM, that is src-all, 
you will get FreeBSD 7.0
If you use it for the ports, you will simply get the latest available
applications, which (should) work fine on the RELEASE version.

If you wish to get the latest stable (base) system:

*default release=cvs tag=RELENG_6
src-all

If you wish to get the security branch of 6.2 RELEASE, us:

*default release=cvs tag=RELENG_6_2
src-all

I suggest you read the example files in /usr/share/examples/cvsup. You
will get it instantly.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: problem with supfile

2007-08-18 Thread Pollywog
On Saturday 18 August 2007 19:47:21 Manolis Kiagias wrote:
 Pollywog wrote:
  Someone please tell me why my supfile is not working.  I think the
  problem is the tag but I am unsure why:
 
  *default host=cvsup2.FreeBSD.org
  *default base=/var/db
  *default prefix=/usr
  *default release=cvs tag=RELENG_6_2
  *default delete use-rel-suffix
 
  # If you seem to be limited by CPU rather than network or disk bandwidth,
  try # commenting out the following line.  (Normally, today's CPUs are
  fast enough # that you want to run compression.)
  *default compress
 
  # This collection retrieves the www/ tree of the FreeBSD repository
  #www
  ports-all
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]

 Since this is obviously a ports-supfile, are you sure you want to cvsup
 the RELENG_6_2 ports;
 These refer to the ports tree at the exact point when 6.2 was released.
 You already have them, you installed that ports tree from your CDROM
 during installation.
 Instead, you probably need a line like:

 *default release=cvs tag=.

 to get the latest available ports.

Thanks, that has to be it, because on my laptop, I have it as above and it 
works.  The problem is that when I updated src-ports with a similar supfile, 
I ended up with FreeBSD 7 on the laptop.

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


Re: problem with supfile

2007-08-18 Thread Pollywog
On Saturday 18 August 2007 20:26:53 Manolis Kiagias wrote:


 I suggest you read the example files in /usr/share/examples/cvsup. You
 will get it instantly.

Thanks.  I do get it now, after reading your post and looking at the sample 
files.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Silly Sendmail Tricks

2007-08-18 Thread Tim Daneliuk

Under FreeBSD 4.11-STABLE, among other things, I had this in my access file:

# Throttling Defaults

# GreetPause:   2000# Set in the .mc file
ClientRate: 10
ClientConn: 10


# Don't throttle 127.0.0.1 or LAN traffic

GreetPause:127.0.0.10   # Time to wait before 220 msg
ClientRate:127.0.0.10   # Connections/interval
ClientConn:127.0.0.10   # Concurrent connections

GreetPause:192.168.00   # Time to wait before 220 msg
ClientRate:192.168.00   # Connections/interval
ClientConn:192.168.00   # Concurrent connections


Now, I've switched to FreeBSD 6.2-STABLE and it seems that the semantic
of 0 means no limiting is no longer supported.  With the configuration
above, the system starts throttling traffic generated on the localhost
when, say, a mailing list manager starts firing off a bunch of message.
I have to change things to:

ClientRate:127.0.0.11000   # Connections/interval
ClientConn:127.0.0.11000   # Concurrent connections

(I've not changed things for 192.168.0/24 because nothing on that network
sends email directly - or they shouldn't be - it all is routed via the
FreeBSD host.)

This fixed things - I can now send large volumes of email from localhost.
But, I wonder why the old setting does not work.  Did something change in the
semantics of sendmail since 4.11 that could have caused this?  Under
6.2 I have this for sendmail, BTW:

Version 8.14.1
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASLv2
SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG

 SYSTEM IDENTITY (after readcf) 
  (short domain name) $w = xxx
  (canonical domain name) $j = xxx.xxx.xxx
 (subdomain name) $m = xxx.xxx
  (node name) $k = xxx.xxx.xxx


ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter ruleset address


Inquiring minds wanna know ;)

--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

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


Re: Regular expressions

2007-08-18 Thread Christer Hermansson

Derek Ragona wrote:

At 12:04 PM 8/18/2007, Christer Hermansson wrote:
I also found some basic example at 
http://www.grymoire.com/Unix/Sh.html#uh-88 :


88888

#!/bin/sh

echo Type in a number
read ans
number=`expr $ans : ([0-9]*)`
if [ $number != $ans ]; then
echo Not a number
elif [ $number -eq 0 ]; then
echo Nothing was typed
else
echo $number is a fine number
fi

88888

The above example doesn't work on my freebsd box. Maybe I need to 
update my system, sitting with 6.0R which never been updated.




You have a syntax error using expr.  Do a man on expr for more details 
but if you change that line from:

number=`expr $ans : ([0-9]*)`
to:
number=`expr $ans : \([0-9]*\)`

You will get the desired results.

Also when debugging scripts remember to add:
set -x
to your script on the second line, and see what the script lines are 
actually doing.


-Derek

Thanks Derek ! Now both the example and my own code works for me. I 
changed my code from ^[A-Za-z0-9_-]+$ to \([A-Za-z0-9_-]*\) It seems 
that FreeBSD's expr want some different syntax than the webbased test 
tool at http://regexlib.com/RETester.aspx


--

Christer Hermansson


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


FreeBSD 6.2 on a Dell Inspiron 531s

2007-08-18 Thread Bill Moran

I'm looking at purchasing a Dell Inspiron 531s to use as a low-
end workstation.  The price is _really_ reasonable.

Anyone have FreeBSD running successfully on these units?  Any
problems getting FreeBSD to recognize/work with the hardware?

-- 
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 [EMAIL PROTECTED]


Re: Migrating from reiserfs to ext3

2007-08-18 Thread Nikola Lecic
Hello Konrad,

On Sat, 18 Aug 2007 05:51:19 -0300
Konrad Scorciapino [EMAIL PROTECTED] wrote:

 Hello!
 
 I have a single 200GB HD that is divided in three partitions, one with
 FreeBSD, another with Linux and the other with my media. The first
 two are 10GB, and the latter, 180GB.

 The problem is that it is a ReiserFS partition, not writable from
 FreeBSD, so I'll have to change it to, say, ext3, if I'm going to be
 able to use xMule again. Since I can't backup the whole thing, I'll
 have to use another method to convert it.

Well, migration from ReiserFS to EXT3 is not really a question for
FreeBSD list. :) They are both native to Linux; ReiserFS is fully
implemented in Linux only.

You might consider using UFS2 instead of EXT3 -- but I'm not
sufficiently sure if write support in Linux is still marked as
experimental (it was some time ago).

 I'm using quotes because apparently there is no such utility that
 converts a given partition to another type. Why is that so? I was
 thinking about the hard links.

True, with a couple of not very interesting exceptions (it's possible
to convert EXT2 to EXT3 in place, and pure little window$ has a
built-in convertor from FAT32 to NTFS) -- as far as official
conversions are concerned; for unofficial, see below.

(Let someone corrects me if I'm mistaken, but it's not possible to
convert UFS to UFS2 in place.)

 Since the partition has some free space and its file hierarchy is
 quite simple (eg, mp3/baroque/bach/bwv82_1.mp3), wouldn't it work if
 I resize it to be full, using the freed space to create a new
 partition, and then, until the first one is empty, move content from
 it to the newly created, resizing both so that the first one is full
 again?

I think it's the best for you to do so. How much free space you have
there? You can shrink ReiserFS partition either from Linux or, maybe
easier, using GParted (http://gparted.sourceforge.net). Please note
that GParted surrently cannot resize Reiser4 partitions.

Or, if you are extremely brave, you can try

  http://freshmeat.net/projects/convertfs/

(I wouldn't do it.)

 Anybody ever tried something like that? Are there utilities that
 could help out, or dangers I need to avoid?

Every utility dealing with partition resizing will tell you to backup
your data first if you really need them. Since you can't do that, I'd
suggest reading ReiserFS manual and careful deciding what tool to use
for shrinking. But this is a Linux part of your job.

However, if you end up with one or two UFS2 partitions, then further
work with them will be a different story and you'll certainly get much
more answers. :)

Nikola Lečić
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: problems with networking...

2007-08-18 Thread Bill Moran

[Please keep the mailing list in the CC]

Michael Hawkins [EMAIL PROTECTED] wrote:

 Certainly.  Here it is:
 #ifconfig -a
 vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 inet 10.11.12.253 netmask 0xff00 broadcast 10.11.12.254

That's really strange.  Your broadcast address should be
10.11.12.255.  It's quite likely that this is part of your
problem, but I can't imagine how you could have arrived at
this configuration.  What is in /etc/rc.conf?

 ether [MAC ADDRESS REMOVED]
 media: Ethernet autoselect (100baseTX full-duplex)
 statusL active
 plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
 inet6 ::1 prefixlen 128
 inet 127.0.0.1 netmask 0xff00
 
 
 #netstat -m
 65/205/270 mbufs in use (current/cache/total)
 64/134/198/25600 mbuf clusters in use (current/cache/total/max)
 0/128 mbuf+clusters out of packet secondary zone in use (current/cache)
 0/0/0/0 4k (page size) jumbo clisters in use (current/cache/total/max)
 0/0/0/0 9k jumbo clusters in use (current/cache/total/max)0/0/0/0 16k jumbo
 clusters in use (current/cache/total/max)
 144k/319k/463k bytes allocated to network (current/cache/total)
 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
 0/0/0 requests for jumbo clusters denied (4k/9k/16k)
 0/4/6656 sfbufs in use (current/peak/max)
 0 requests for sfbufs denied
 0 requests for sfbufs delayed
 0 requests for I/O initiated by sendfile
 0 calls to protocol drain routines

That's netstat -rn, not -m.  Unfortunately, the -m doesn't tell me
what I'm looking for, which is your routing table.

I'm wondering if your ipnat rules are awry.  Please provide the
ifconfig, routing table, and nat rules from the router machine.

 ...again, this is straight out of a fresh install (which I did because I had
 the exact same problem with the last install).

Well, obviously, you did it the same both times, and are getting the
same result.

 On 8/18/07, Bill Moran [EMAIL PROTECTED] wrote:
 
  Michael Hawkins [EMAIL PROTECTED] wrote:
  
   Sorry if this is sorta n00bish, but I have a problem that Google hasn't
   answered for me yet...
   I have a moderately-sized network that I am trying to run, with about 70
  or
   so machines on it.  The DHCP server (running FreeBSD 6.2, IPv4 address:
   10.11.12.254, Subnet is 10.11.12.0/24) acts as a gateway server as well,
  and
   has ipnat running for traffic routing.
  
   So far, I have had no problems with ANY of the machines on this network
   connecting, save one--my File server (running FreeBSD 6.2 as well, IPv4
   address: 10.11.12.253).  For some reason, whenever I try to establish
  any
   connection to ANY network address (on any protocol), it will only
  connect to
   one address: 10.11.12.252 (and won't connect to anything when that
  machine
   is off).
   Here is a ping listing:
   #ping 10.11.12.254
   PING 10.11.12.254 (10.11.12.254): 56 data bytes
   64 bytes from 10.11.12.252: icmp_seq=0 ttl=64 time=0.852 ms
  
  
   ...and it continues precisely in that manner until I stop it.
  
   I have tried re-installing the OS on the file server, but with no change
  in
   results.  I have removed the machine at 10.11.12.252 with the only
  change
   being that the file-server can obtain NO connection to ANY IP address.
  
   Any help would be appreciated.
 
  Why don't your cut/paste the output of ifconfig -a and netstat -rn
 
  I suspect your network settings are incorrect.
 
  --
  Bill Moran
  Collaborative Fusion Inc.
 
  [EMAIL PROTECTED]
  Phone: 412-422-3463x4023
 
 
 
 
 
 
 
 
 


-- 
Bill Moran
Collaborative Fusion Inc.

[EMAIL PROTECTED]
Phone: 412-422-3463x4023


IMPORTANT: This message contains confidential information
and is intended only for the individual named. If the reader of
this message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.

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


The FreeBSD Diary: 2007-07-29 - 2007-08-18

2007-08-18 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 

These are the articles posted during this period:

6-Aug : IBM ThinkPad T41: Upgrading RAM and HDD - pictures
 Pictures now! 
 http://freebsddiary.org/ibm-thinkpad-t41-hardware-upgrades-pics.php?2

1-Aug : IBM ThinkPad T41: Upgrading RAM and HDD
 Things are getting tight and slow... 
 http://freebsddiary.org/ibm-thinkpad-t41-hardware-upgrades.php?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


(no subject)

2007-08-18 Thread Ian Smith
On Sat, 18 Aug 2007 21:32:28 +0200 Erik Trulsson [EMAIL PROTECTED] wrote:
  On Sat, Aug 18, 2007 at 08:21:42PM +0100, Christopher Key wrote:
   Hello,
   
   I'm having some rather strange behaviour with fsck.
   
   When I boot the system, it asserts that all the file systems are clean, 
   but 
   subsequently running an fsck on /dev/ad8s1e (mounted as /var) detects 
   errors.  Even if this first check is run whilst the file system is 
   mounted, 
   and is hence run in NO WRITE mode, a second check doesn't find block 
   errors.  If I then unmount the file system and check the disk, it's fine, 
   as indeed it is if I unmount, remount, then check.  However, if I then 
   reboot, the process repeats, and an fsck immediately after reboot will 
   find 
   errors again.  If I bring the system up in single user mode, and run fsck 
   either before or after mounting /var, it finds no errors.
   
   I'm running 6.2_RELEASE with a custom kernel based upon generic-smp, but 
   with a lot of unecessary bits removed, and geom_mirror compiled in.  I 
   don't think it's the drive that's at fault, all the other partitions in 
   the 
   slice are fine, it's a fairly new drive, and it passes a self test quite 
   happily.  Included below is a transcript that attempt to show what's going 
   on in detail, is there anything else relevant?
   
   Can anyone suggest what might be going on and how to fix it, or suggest 
   some slightly better diagnostics?  Apologies if this is an RTFM issue, I 
   have had a good dig through the handbook, but can't seem to find anything 
   that helps.

  Running fsck on a file system that has been mounted read/write will almost
  always report spurious errors and can really screw up the disk if it tries
  to 'correct' those errors.

I'm a bit confused by this.  I've been running 'fsck -n' over FreeBSD
systems since 2.2.6, and modulo seeing the at-the-time inconsistencies
on those filesystems in /etc/fstab that are mounted, as Chris reported
and as are expected, I've never had a problem with it, nor seen the sort
of inconsistent results between runs that Chris is reporting.

  You should normally not run fsck on a mounted filesystem and you should
  *NEVER* run fsck on a filesystem that has been mounted read/write.

This seems to imply that using the -n switch may have different results
than not using it and having fsck determine 'NO WRITE' itself from the
fact that it's noticed that the fs is mounted?  Are you suggesting by
can really screw up the disk if it tries to 'correct' those errors 
that fsck might WRITE to a mounted fs that it's showing as 'NO WRITE'? 

I've never had any screwups with it, but then I've always specified -n.

Later Bill Moran said:

  Don't run fsck on mounted filesystems unless they're mounted read-only.
  
  Although, it's possible I misunderstood your description of the problem.

so I'm still curious, and am wondering if Chris using SMP kernel and/or
geom_mirror might have anything to do with this?  Or whether his use of
'umount -f' might be (or cause) the problem indicated by his results? 

   # umount -f /var
   
   
   # mount /var

Cheers, Ian

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