Free BSD 7 - Not able to receive messages

2008-08-28 Thread Blessan
I have installed free bsd 7 on on Intel Xeon Machine with 1 Gb ram.
But i cant use the mailing facility .. i can send mail by typing [mail
username]  then follows the subject and message then EOF. but i when i check
mail of that particular user it shows No mail for that user ??
Why is it so .. ? Do i have to reinstall ..
Also i have to configure my network card each time i reboot..
Plz reply


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


Re: Free BSD 7 - Not able to receive messages

2008-08-28 Thread Polytropon
On Thu, 28 Aug 2008 11:17:59 +0530, Blessan [EMAIL PROTECTED] wrote:
 I have installed free bsd 7 on on Intel Xeon Machine with 1 Gb ram.
 But i cant use the mailing facility .. i can send mail by typing [mail
 username]  then follows the subject and message then EOF. but i when i check
 mail of that particular user it shows No mail for that user ??
 Why is it so .. ?

Be sure to have the correct sendmail command in /etc/rc.conf
(see /etc/defaults/rc.conf), sendmail_enable=YES or
sendmail_submit_enable=YES.

If you sent a mail to a user, check if his mailbox has gotten
the massage, it is /var/mail/$USER.



 Do i have to reinstall ..

I don't think so.



 Also i have to configure my network card each time i reboot..

Did you put the proper ifconfig line in /etc/rc.conf?



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


PF rules evaluation

2008-08-28 Thread Michael Lednev

Hello.

Is there some tool to test rules-file for PF with arbitrary packets 
without need for real traffic?

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


How to eject an USB disk on FreeBSD

2008-08-28 Thread Olivier Nicole
Hello,

Is there a command in FreeBSD that ejects a USB disk like in Windows?

I mount the USB disk with automount daemone (amd).

I have a script that access this disk and force an umount at the end
of the script.

But anyone accessing the disk will have amd re'mount the disk and at
the time I unplu the disk, problem may occur because the disk is still
mounted and in use.

I would like to have a command that makes the disk/USB port physically
inaccessible, so at the end of the script a user cannot access the
disk again.

Like in Windows after stopping a USB mass storage device, one has to
unplg and replug the disk if he wants to access it again.

TIA,

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


Re: PF rules evaluation

2008-08-28 Thread Jay Chandler

Michael Lednev wrote:

Hello.

Is there some tool to test rules-file for PF with arbitrary packets 
without need for real traffic?

Yes.  It's called netcat (nc on most systems).

--
Jay Chandler / KB1JWQ
Living Legend / Systems Exorcist
Today's Excuse: Second-system effect

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


Re: PF rules evaluation

2008-08-28 Thread Michael Lednev

Jay Chandler пишет:

Michael Lednev wrote:

Hello.

Is there some tool to test rules-file for PF with arbitrary packets 
without need for real traffic?

Yes.  It's called netcat (nc on most systems).


Very funny. It will create real traffic which I want to avoid.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to eject an USB disk on FreeBSD

2008-08-28 Thread Polytropon
On Thu, 28 Aug 2008 13:56:27 +0700 (ICT), Olivier Nicole [EMAIL PROTECTED] 
wrote:
 Hello,
 
 Is there a command in FreeBSD that ejects a USB disk like in Windows?
 [...]
 I would like to have a command that makes the disk/USB port physically
 inaccessible, so at the end of the script a user cannot access the
 disk again.

If the USB disk is accessed via a device that is listed when
you do

# camcontrol devlist

you should be able to use camcontrol's eject or stop command
on that device, usually /dev/da[0-9].


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


Re: How to eject an USB disk on FreeBSD

2008-08-28 Thread Olivier Nicole
  I would like to have a command that makes the disk/USB port physically
  inaccessible, so at the end of the script a user cannot access the
  disk again.
 
 you should be able to use camcontrol's eject or stop command
 on that device, usually /dev/da[0-9].

I tried that. That would eventually stop the disk from spining, but
the USB device umass0 that emulates the disk device da0 is still there
and ready to restart the disk at the first interaction.

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


Re: How to eject an USB disk on FreeBSD

2008-08-28 Thread Andreas Rudisch
On Thu, 28 Aug 2008 13:56:27 +0700 (ICT)
Olivier Nicole [EMAIL PROTECTED] wrote:

 Like in Windows after stopping a USB mass storage device, one has to
 unplg and replug the disk if he wants to access it again.

What about just unplugging the disk when you are done with your skript
and do not need the disk any more?

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565


pgpiDVJa31F03.pgp
Description: PGP signature


Re: How to eject an USB disk on FreeBSD

2008-08-28 Thread Olivier Nicole
  Like in Windows after stopping a USB mass storage device, one has to
  unplg and replug the disk if he wants to access it again.
 
 What about just unplugging the disk when you are done with your skript
 and do not need the disk any more?

I may not be around when the script finishes...

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


Re: Security problems, I think I have a hacker attacker.

2008-08-28 Thread Martin Moeller
* Christopher Joyner [EMAIL PROTECTED] [26.08.2008 08:35]:
 I think someone is attempting to get into my system.
 Here is my details:  There are 2 login failuers on ttyv0,
 And also 2 login failers on ttyv0 root.

Man, you typed in a wrong password. :)

-- 
Dipl.-Theol. Martin Moeller ipse AT martinmoeller DOT net
http://martinmoeller.net - ICQ: 82221572
GnuPG DSA key 0x2A89AE36 - Jabber: [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Obscure df -h output

2008-08-28 Thread Marc Coyles
One of my servers appears to be having a slightly dippy moment...
Running FREEBSD 5.3-RELEASE-p5 i386 (I don't have the bottle to attempt
freebsd-update to 7.0-REL, altho I really should... Still a relative
newb tho, and not confident on a box I can only access by remote)
running WHM 11.23.2 cPanel 11.23.4-R26157 - I'm seeing some very obscure
results on df -h...

#FilesystemSizeUsed   Avail Capacity  Mounted on
/dev/ad0s1a   1.9G648M1.1G36%/
devfs 1.0K1.0K  0B   100%/dev
/dev/ad0s1g47G 18G 25G42%/home
/dev/ad0s1d   1.9G872K1.8G 0%/tmp
/dev/ad0s1e   9.7G3.5G5.4G40%/usr
/dev/ad0s1f   9.7G2.1G6.8G23%/var
devfs 1.0K1.0K  0B   100%/etc/namedb/dev
procfs4.0K4.0K  0B   100%/proc
/libexec  1.9G648M1.1G36%libexec
/lib  1.9G648M1.1G36%lib
/usr/lib  9.7G3.5G5.4G40%usr/lib
/usr/sbin 9.7G3.5G5.4G40%usr/sbin
/usr/share9.7G3.5G5.4G40%usr/share
/usr/bin  9.7G3.5G5.4G40%usr/bin
/usr/man  9.7G3.5G5.4G40%usr/man
/usr/X11R69.7G3.5G5.4G40%usr/X11R6
/usr/libexec  9.7G3.5G5.4G40%usr/libexec
/usr/local/bin9.7G3.5G5.4G40%usr/local/bin
/usr/local/lib9.7G3.5G5.4G40%usr/local/lib
/var/spool9.7G2.1G6.8G23%var/spool
/var/lib  9.7G2.1G6.8G23%var/lib
/var/run  9.7G2.1G6.8G23%var/run
/var/log  9.7G2.1G6.8G23%var/log
/home/tff  47G 18G 25G42%tff
/tmp  1.9G872K1.8G 0%tmp
/dev  1.0K1.0K  0B   100%dev
/bin  1.9G648M1.1G36%bin
/proc 4.0K4.0K  0B   100%proc


/etc/fstab reads as follows...

# DeviceMountpoint FStype OptionsDump Pass#
/dev/ad0s1b  noneswap   sw  0 0
/dev/ad0s1a  /   ufsrw  1 1
/dev/ad0s1g  /home   ufsrw  2 2
/dev/ad0s1d  /tmpufsrw  2 2
/dev/ad0s1e  /usrufsrw  2 2
/dev/ad0s1f  /varufsrw  2 2
/dev/acd0/cdrom  cd9660 ro,noauto   0 0


Any clues as to what's going on / advice on how to proceed...? This box
crashed last week whilst I was on holiday and appeared to be a brute for
Planet's TechSupport to get back online... Can't find anything in logs
as to why. Am wondering if HDD is a bit unhealthy? There is a spare
drive mounted in the box that I can begin to clone everything on to if
needs be (and have Absolute FreeBSD 2nd Edition and Best of FreeBSD
Basics to hand).

Ta!
Marc A Coyles
Horbury School ICT Support Team
Mbl: 07850 518106
Land: 01924 282740 ext 730



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


Re: defrag

2008-08-28 Thread Eduardo Morras

At 06:56 28/08/2008, you wrote:

On Wed, 27 Aug 2008 22:08:47 -0400
Mike Jeays [EMAIL PROTECTED] wrote:


 That's true about FAT.  What I have never understood is why Microsoft
 didn't fix the problem when they designed NTFS.  UFS and EXT2 both
 existed at that time, and neither needs periodic defragmentation.

I think they probably did, NTFS took a lot from UNIX filesystems, and
at the time it was released they said that NTFS didn't need any
defragmentation at all.


No, if you check a NTFS disk after some work, it's heavily 
fragmented. As you fill it and work with it, it becomes more and more 
fragmented.



I suspect that it's mostly a matter of attitude. Windows users have an
irrational obsessive-compulsive attitude to fragmentation, so they
end-up with good reliable defragmenters, and so less reason not to use
them. We don't really care, so we end-up with no, or poor,
defragmenters, which reinforces our don't care attitude.


The best way to defragment a NTFS drive is make a backup to other 
device, format the original and recover the backup. It take less time 
and device don't suffer. I do it monthly with the data disks and 
performance grows espectacularly (near x4 on sustained  file read).




---
   Este documento muestra mis ideas. Son originales mias.
   Queda prohibido pensar lo mismo que yo sin pago previo.
Si estas de acuerdo conmigo PAGAME  Cuidado con mi abogado MUERDE!!  


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


Re: Obscure df -h output

2008-08-28 Thread Kris Kennaway

Marc Coyles wrote:

One of my servers appears to be having a slightly dippy moment...
Running FREEBSD 5.3-RELEASE-p5 i386 (I don't have the bottle to attempt
freebsd-update to 7.0-REL, altho I really should... Still a relative
newb tho, and not confident on a box I can only access by remote)
running WHM 11.23.2 cPanel 11.23.4-R26157 - I'm seeing some very obscure
results on df -h...

#FilesystemSizeUsed   Avail Capacity  Mounted on
/dev/ad0s1a   1.9G648M1.1G36%/
devfs 1.0K1.0K  0B   100%/dev
/dev/ad0s1g47G 18G 25G42%/home
/dev/ad0s1d   1.9G872K1.8G 0%/tmp
/dev/ad0s1e   9.7G3.5G5.4G40%/usr
/dev/ad0s1f   9.7G2.1G6.8G23%/var
devfs 1.0K1.0K  0B   100%/etc/namedb/dev
procfs4.0K4.0K  0B   100%/proc
/libexec  1.9G648M1.1G36%libexec
/lib  1.9G648M1.1G36%lib
/usr/lib  9.7G3.5G5.4G40%usr/lib
/usr/sbin 9.7G3.5G5.4G40%usr/sbin
/usr/share9.7G3.5G5.4G40%usr/share
/usr/bin  9.7G3.5G5.4G40%usr/bin
/usr/man  9.7G3.5G5.4G40%usr/man
/usr/X11R69.7G3.5G5.4G40%usr/X11R6
/usr/libexec  9.7G3.5G5.4G40%usr/libexec
/usr/local/bin9.7G3.5G5.4G40%usr/local/bin
/usr/local/lib9.7G3.5G5.4G40%usr/local/lib
/var/spool9.7G2.1G6.8G23%var/spool
/var/lib  9.7G2.1G6.8G23%var/lib
/var/run  9.7G2.1G6.8G23%var/run
/var/log  9.7G2.1G6.8G23%var/log
/home/tff  47G 18G 25G42%tff
/tmp  1.9G872K1.8G 0%tmp
/dev  1.0K1.0K  0B   100%dev
/bin  1.9G648M1.1G36%bin
/proc 4.0K4.0K  0B   100%proc


/etc/fstab reads as follows...

# DeviceMountpoint FStype OptionsDump Pass#
/dev/ad0s1b  noneswap   sw  0 0
/dev/ad0s1a  /   ufsrw  1 1
/dev/ad0s1g  /home   ufsrw  2 2
/dev/ad0s1d  /tmpufsrw  2 2
/dev/ad0s1e  /usrufsrw  2 2
/dev/ad0s1f  /varufsrw  2 2
/dev/acd0/cdrom  cd9660 ro,noauto   0 0


Any clues as to what's going on / advice on how to proceed...? This box
crashed last week whilst I was on holiday and appeared to be a brute for
Planet's TechSupport to get back online... Can't find anything in logs
as to why. Am wondering if HDD is a bit unhealthy? There is a spare
drive mounted in the box that I can begin to clone everything on to if
needs be (and have Absolute FreeBSD 2nd Edition and Best of FreeBSD
Basics to hand).


Looks like they did some strange things trying to get it back.  Those 
look like nullfs mounts with the same source and destination, which 
makes no sense.  What does mount -v show you?


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


RE: Obscure df -h output

2008-08-28 Thread Marc Coyles
 Looks like they did some strange things trying to get it back.  Those
 look like nullfs mounts with the same source and destination, which
 makes no sense.  What does mount -v show you?


Hi Kris...

[EMAIL PROTECTED] ~]$ mount -v
/dev/ad0s1a on / (ufs, local, writes: sync 715484 async 362440, reads:
sync 16201 async 86)
devfs on /dev (devfs, local)
/dev/ad0s1g on /home (ufs, local, soft-updates, writes: sync 3879 async
1779995, reads: sync 876702 async 63257)
/dev/ad0s1d on /tmp (ufs, local, soft-updates, writes: sync 23 async
145025, reads: sync 588 async 89)
/dev/ad0s1e on /usr (ufs, local, soft-updates, writes: sync 47 async
874619, reads: sync 495263 async 13857)
/dev/ad0s1f on /var (ufs, local, soft-updates, writes: sync 360454 async
4721936, reads: sync 2557009 async 121766)
devfs on /etc/namedb/dev (devfs, local)
procfs on /proc (procfs, local)
/libexec on libexec (nullfs, local)
/lib on lib (nullfs, local)
/usr/lib on usr/lib (nullfs, local)
/usr/sbin on usr/sbin (nullfs, local)
/usr/share on usr/share (nullfs, local)
/usr/bin on usr/bin (nullfs, local)
/usr/man on usr/man (nullfs, local)
/usr/X11R6 on usr/X11R6 (nullfs, local)
/usr/libexec on usr/libexec (nullfs, local)
/usr/local/bin on usr/local/bin (nullfs, local)
/usr/local/lib on usr/local/lib (nullfs, local)
/var/spool on var/spool (nullfs, local)
/var/lib on var/lib (nullfs, local)
/var/run on var/run (nullfs, local)
/var/log on var/log (nullfs, local)
/home/tff on tff (nullfs, local)
/tmp on tmp (nullfs, local)
/dev on dev (nullfs, local)
/bin on bin (nullfs, local)
/proc on proc (nullfs, local)



Marc A Coyles
Horbury School ICT Support Team
Mbl: 07850 518106
Land: 01924 282740 ext 730



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


Wireless and Broadcast packets problem

2008-08-28 Thread Adrian Thearle

Hi Guys

I am having a problem with my wireless network. The Issue is that
clients connected to the wireless LAN cannot _see_ other clients. My
understanding of 802.11 was that clients could talk to other clients,
except all traffic would go via the access point and that the AP would
forward on the packets. This also ensures that encryption works as
expected as well as other RF issues.

One thing that I can see is going wrong is that clients on the Wireless
Lan sending Broadcast packets, but they are not being forwarded by the
AP to anyone else... Wireless clients also cannot ping each other
(mainly because their ARP requests are not being answered)

Below is a simplified system diagram.

AdriansPC  AlbertAP   \|/
-  192.168.123/24  |
||--LAN--bge0-||---| ral0 (192.168.124/24)
||||--tun0---PPPoE(bge0)

WindowsFreeBSD


 Sneaky\|/
-|
||---|  192.168.124.2  (Static IP address)
|| ral0
FreeBSD

 Laptop\|/
-|
||---|   192.168.124.150 (DHCP)
||
Windows

When running TCPDump on AlbertAP I can see plenty of wireless traffic
going around the place. Wireless Clients are able to connect and have
their session is encrypted with WPA. This all seems to work, wireless
clients are able to browse the net. (Those that can get an IP address
anyway, which happens to be the windows machines)

*Problem*
I have run tcpdump on both AlbertAP and Sneaky and seem some interesting
omissions. When I ping Sneaky from Laptop I see on Albert the ARP
request come out from Laptop asking for Sneaky's MAC address.

AlbertAP tcpdump -i ral0
10:27:51.979664 arp who-has 192.168.124.2 tell 192.168.124.150
10:27:51.979684 arp who-has 192.168.124.2 tell 192.168.124.150

But on Sneaky I cannot see these packets comming in... All I get is
random EAP traffic
Sneaky tcpdump -i ral0
10:30:32.987961 EAP code=2 id=3 length=123
10:30:32.988383 EAP code=1 id=3 length=95
10:30:32.990557 EAP code=2 id=3 length=135
10:30:32.991548 EAP code=1 id=3 length=95

However if a Wired client like AdriansPC tries to ping Laptop then
things work. Albert knows the MAC address of the Wireless client to send
the ping packet to and so just sends it off.


*Problem*
The other thing I see alot of is netbios broadcast traffic coming from
the Laptop on the wireless. Albert can see all this traffic coming in,
but none of it gets forwarded to Sneaky, (nothing about netbios from a
tcpdump on sneaky).

The same can be said for a particular client doing DHCP/BOOTP. On
AlbertAP, I see the request come in and see the response go out (the
response goes to 255.255.255.255) but I do not see this on sneaky (I
should right, its a broadcast address). Oh and I don't think this client
is actually getting a response as I can't do much with it(ie ping). (Its
a wireless print server)

Interestingly enough DHCP does seem to work to Laptop. I believe that
this is because windows is doing DHCP, where as my print server is doing
BOOTP.


*It does work*
Just so you believe me that normal traffic does get around, here is a
ping from sneaky to albert.

Sneaky tcpdump -i ral0
10:36:11.243678 arp who-has 192.168.124.1 tell 192.168.124.2
10:36:11.244634 arp reply 192.168.124.1 is-at 00:1a:ee:00:d5:c0 (oui
Unknown)
10:36:11.244693 IP 192.168.124.2  192.168.124.1: ICMP echo request, id
18949, seq 0, length 64
10:36:11.251920 IP 192.168.124.1  192.168.124.2: ICMP echo reply, id
18949, seq 0, length 64

AlbertAP tcpdump -i ral0
10:36:11.241001 arp who-has 192.168.124.1 tell 192.168.124.2
10:36:11.241017 arp who-has 192.168.124.1 tell 192.168.124.2
10:36:11.241042 arp reply 192.168.124.1 is-at 00:1a:ee:00:d5:c0 (oui
Unknown)
10:36:11.248582 IP 192.168.124.2  192.168.124.1: ICMP echo request, id
18949, seq 0, length 64
10:36:11.248600 IP 192.168.124.1  192.168.124.2: ICMP echo reply, id
18949, seq 0, length 64


*Discussion Point*
I find it interesting that sneaky asks for 192.168.124.1's MAC address
with an ARP request, but albert got two of them...



*System Details*
Things are basically setup as detailed in the Handbook, with the
wireless LAN on a different Subnet to the wired one. I have also had a
go at bridging the two interfaces but ran into trouble so didn't spend
long there. I expect I would have the same issues.

AlbertAP uname -a
FreeBSD albertAP 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #2: Mon Jul 14
09:00:17 EST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/AdriansKernel  i386

AlbertAP ifconfig
bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
   options=9bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM
   ether 00:11:85:b3:a2:7e
   inet 192.168.123.1 netmask 0xff00 broadcast 192.168.123.255
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
ral0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric
0 mtu 2290
   ether 

Re: Regular Expression Trouble

2008-08-28 Thread Peter Boosten


Paul Chvostek wrote:

  This is an attempt to isolate every MAC address that
 appears and then sort and count them to see who is having
 trouble or, in some cases, is causing trouble.
 
 Then you still may want to use awk for some of that...
 
   cat /var/log/dhcpd.log | \
   sed -nE 's/.*([0-9a-f]{2}(:[0-9a-f]{2}){5}).*/\1/p' | \
   awk '
{ a[$1]++; }
END {
 for(i in a){
  printf(%7.0f\t%s\n, a[i], i);
 }
}
   ' | sort -nr
 

Euhmm:

sed -nE 's/.*([0-9a-f]{2}(:[0-9a-f]{2}){5}).*/\1/p' /var/log/dhcpd.log|\
sort | uniq -c

:-)
Peter

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


Re: Obscure df -h output

2008-08-28 Thread Kris Kennaway

Marc Coyles wrote:

Looks like they did some strange things trying to get it back.  Those
look like nullfs mounts with the same source and destination, which
makes no sense.  What does mount -v show you?



Hi Kris...

[EMAIL PROTECTED] ~]$ mount -v
/dev/ad0s1a on / (ufs, local, writes: sync 715484 async 362440, reads:
sync 16201 async 86)
devfs on /dev (devfs, local)
/dev/ad0s1g on /home (ufs, local, soft-updates, writes: sync 3879 async
1779995, reads: sync 876702 async 63257)
/dev/ad0s1d on /tmp (ufs, local, soft-updates, writes: sync 23 async
145025, reads: sync 588 async 89)
/dev/ad0s1e on /usr (ufs, local, soft-updates, writes: sync 47 async
874619, reads: sync 495263 async 13857)
/dev/ad0s1f on /var (ufs, local, soft-updates, writes: sync 360454 async
4721936, reads: sync 2557009 async 121766)
devfs on /etc/namedb/dev (devfs, local)
procfs on /proc (procfs, local)
/libexec on libexec (nullfs, local)
/lib on lib (nullfs, local)
/usr/lib on usr/lib (nullfs, local)
/usr/sbin on usr/sbin (nullfs, local)
/usr/share on usr/share (nullfs, local)
/usr/bin on usr/bin (nullfs, local)
/usr/man on usr/man (nullfs, local)
/usr/X11R6 on usr/X11R6 (nullfs, local)
/usr/libexec on usr/libexec (nullfs, local)
/usr/local/bin on usr/local/bin (nullfs, local)
/usr/local/lib on usr/local/lib (nullfs, local)
/var/spool on var/spool (nullfs, local)
/var/lib on var/lib (nullfs, local)
/var/run on var/run (nullfs, local)
/var/log on var/log (nullfs, local)
/home/tff on tff (nullfs, local)
/tmp on tmp (nullfs, local)
/dev on dev (nullfs, local)
/bin on bin (nullfs, local)
/proc on proc (nullfs, local)


Yes, they did something bizarre.  Ask them why :)

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


network card configure (was: Re: Free BSD 7 - Not able to receive messages)

2008-08-28 Thread Boris Samorodov
(creating a new thread with a new subject)

On Thu, 28 Aug 2008 11:17:59 +0530 Blessan wrote:

 Also i have to configure my network card each time i reboot..

How do you configure your network card? Did you write your
configuration to /etc/rc.conf[.local]? You may consider
reading rc.conf(5) for more details (in particular the
description of network_interfaces).


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Free BSD 7 - Not able to receive messages

2008-08-28 Thread Boris Samorodov
On Thu, 28 Aug 2008 11:17:59 +0530 Blessan wrote:

 I have installed free bsd 7 on on Intel Xeon Machine with 1 Gb ram.
 But i cant use the mailing facility .. i can send mail by typing [mail
 username]  then follows the subject and message then EOF. but i when i check
 mail of that particular user it shows No mail for that user ??
 Why is it so .. ? Do i have to reinstall ..

Is your usename a local one? An example of your typing and system
diagnostics will be helpfull.

Then there is a /var/log/maillog file with sendmail (assuming you
didn't install and use other MTA) diagnostic messages. Look there
for more details. If you don't understand them, please post the
relevant part.


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Changing 'From:' address of periodic scripts

2008-08-28 Thread Jonathan Belson

Greg Larkin wrote:

Jonathan Belson wrote:
| Hiya
|
| I set up a remote box to e-mail 'periodic' output to me directly.  It
| has now
| stopped working, and I suspect it's because the 'From:' addresses of the
| status
| e-mails is of the form '[EMAIL PROTECTED]' and the ISP has upped its
| anti-spam
| checks.
|
| I see /usr/sbin/periodic itself uses the 'mail' command to send the
| mails, but I
| couldn't see a command line option to specify a 'From:'.  I guess 'mail'
| uses
| 'sendmail' to send e-mail; is there a simple way of forcing a 'From:'
| address
| via 'sendmail' config?
|
Hi Jon,

Have a look at this: http://www.sendmail.org/m4/masquerading.html and
perhaps this, too: http://www.madboa.com/geek/sendmail-genericstable/

You can rewrite [EMAIL PROTECTED] to appear as though it's coming from a
real email address by using the techniques on those pages.

Please post back here if you run into any trouble!


OK, thanks.  After playing with MASQUERADE_AS(), MASQUERADE_DOMAIN() plus a few 
FEATURES(), I've managed to change the 'From:' address for e-mails sent via the 
command line.  Unfortunately, e-mails sent via the cron-ed periodic scripts 
still don't get through, although if I run e.g. 'periodic daily' from the 
command line, the mail does reach me.


The only difference I can think of is that cron runs the scripts as root.  Could 
this cause the difference?


Cheers,

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


dragon player + no sound

2008-08-28 Thread Warren Liddell
When i open any movie file format, from avi, wmv, mpg .. they all play the 
picture perfectly, however i have no sound. xmms plays sound fine, the 
test of kmplayer using KDE4 plays picture  sound.  

Any reason why i have no sound ? Im using KDE4 on FreeBSD 7.0-
STABLE AMD64.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Changing 'From:' address of periodic scripts

2008-08-28 Thread Matthew Seaman

-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Jonathan Belson wrote:
| Greg Larkin wrote:
| Jonathan Belson wrote:
| | Hiya
| |
| | I set up a remote box to e-mail 'periodic' output to me directly.  It
| | has now
| | stopped working, and I suspect it's because the 'From:' addresses of 
| the

| | status
| | e-mails is of the form '[EMAIL PROTECTED]' and the ISP has upped its
| | anti-spam
| | checks.
| |
| | I see /usr/sbin/periodic itself uses the 'mail' command to send the
| | mails, but I
| | couldn't see a command line option to specify a 'From:'.  I guess 
| 'mail'

| | uses
| | 'sendmail' to send e-mail; is there a simple way of forcing a 'From:'
| | address
| | via 'sendmail' config?
| |
| Hi Jon,
|
| Have a look at this: http://www.sendmail.org/m4/masquerading.html and
| perhaps this, too: http://www.madboa.com/geek/sendmail-genericstable/
|
| You can rewrite [EMAIL PROTECTED] to appear as though it's coming from a
| real email address by using the techniques on those pages.
|
| Please post back here if you run into any trouble!
| 
| OK, thanks.  After playing with MASQUERADE_AS(), MASQUERADE_DOMAIN() 
| plus a few FEATURES(), I've managed to change the 'From:' address for 
| e-mails sent via the command line.  Unfortunately, e-mails sent via the 
| cron-ed periodic scripts still don't get through, although if I run e.g. 
| 'periodic daily' from the command line, the mail does reach me.
| 
| The only difference I can think of is that cron runs the scripts as 
| root.  Could this cause the difference?


Yes.  root is specifically exempted from all the masquerading stuff.
There's an EXPOSED_USER macro you can use in $(hostname).mc to control
that.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   Flat 3

~  7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
~  Kent, CT11 9PW, UK
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREDAAYFAki2cbQACgkQ3jDkPpsZ+VbRXgCcDzrkWTG0YsLNESOGA3H0Wof9
zk8AoJmW4bdOUC07pQ10nqw+ZluKLXtn
=KZr6
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: messagebus user

2008-08-28 Thread jef moskot

On Wed, 27 Aug 2008, Dan Nelson wrote:
You should be able to change its uid by deinstalling dbus, then editing 
/usr/ports/devel/dbus/pkg-install, changing the uid in that script to an 
unused ID, and reinstalling.


That worked fine, thanks.  Still don't know what this thing does (the 
things dependent on it seemed either irrelevant or mysterious), but I'm 
happy to resolve the issue this way.


All the userids created by ports should be listed in /usr/ports/UIDs and 
GIDs, so you can check to see if any other ports might conflict with 
existing users.


Interesting, thanks again.

On Wed, 27 Aug 2008, Chris St Denis wrote:
Keep in mind you will probably have the same problem when you upgrade 
the port. Portsnap/csup will overwrite your change so every time you 
upgrade you'll have to change it again.


This might not be an issue due to the explanation from Warren below.


May be easier to just change the user's UID once.


The user has been around longer than FreeBSD has existed and the UID is 
used across various system with different OSs, so the reinstall was 
actually the simpler solution.


On Wed, 27 Aug 2008, Warren Block wrote:
If dbus is required, you should be able to create the messagebus user 
before installing the dbus port.  Then the port's pkg-install should see 
that you already have a messagebus user and use it instead of creating a 
new one. (Untested, but it seems like that's worked for upgrading dbus.)


Out of curiosity, I tested this theory and it's correct.

Are there any files out there that messagebus is expected to own that I 
should double-check after the reinstallation?


Thanks to everyone for all the good advice.

Jeffrey Moskot
System Administrator
[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: curses.h, beep() returns ERR, flash() casuses segment fault.

2008-08-28 Thread Thomas Dickey
On Wed, Aug 27, 2008 at 07:10:40PM -0700, Christopher Joyner wrote:
 I do not get the OK from beep, and flash crashes the program.
 This is my code:
 
 #include curses.h
 
 int main(int argc,char** argv)
 {

  initscr();/* see also filter() and newterm() */

 if(beep()!=OK)

// printf(No OK\n); fflush(stdout);
printw(No OK\n);

 if(flash()!=OK)

// printf(No Flash\n); fflush(stdout);
printw(No Flash\n);
  getch();
  endwin();

 return 0;
 }

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpFLzadHJUGi.pgp
Description: PGP signature


Re: defrag

2008-08-28 Thread Bill Moran
RW [EMAIL PROTECTED] wrote:

 On Wed, 27 Aug 2008 22:08:47 -0400
 Mike Jeays [EMAIL PROTECTED] wrote:
 
  That's true about FAT.  What I have never understood is why Microsoft
  didn't fix the problem when they designed NTFS.  UFS and EXT2 both
  existed at that time, and neither needs periodic defragmentation.
 
 I think they probably did, NTFS took a lot from UNIX filesystems, and
 at the time it was released they said that NTFS didn't need any
 defragmentation at all. 
 
 I suspect that it's mostly a matter of attitude. Windows users have an
 irrational obsessive-compulsive attitude to fragmentation, so they
 end-up with good reliable defragmenters, and so less reason not to use
 them. We don't really care, so we end-up with no, or poor,
 defragmenters, which reinforces our don't care attitude.

Companies like Executive software make money off Diskkeeper by running
tests that demonstrate that defragging is wortwhile.  I've seen all sorts
of benchmarks, and I've seen the ones where they demonstrate that NTFS
really does have a fragmentation problem, unlike MS early claims.  If
UFS or ext2 had fragmentation problems, some company would have jumped
on it by now and be marketing a disk defragmenter for Linux/etc.  Also,
accessing a FS by block device and relocating file data isn't a terribly
difficult thing to do, so I have a hard time believing that nobody's
tried it ... my guess is that they've simply found that it wasn't
worth doing.

FAT had a fragmentation problem because it wasn't really designed, it was
just thrown together.  MS was lucky it didn't have bigger problems.

I think NTFS has a fragmentation problem because it wasn't a priority.
MS was focused on building a filesytem that could store the outrageous
ACLs they wanted, and that was non-trival (look at how long it took the
BSDs to have native file-level ACLs).  In that desire to get those other
features in place, I think long-term disk performance got second seat.

-- 
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: defrag

2008-08-28 Thread Wojciech Puchar

something that has puzzled me for years (but i've never got around to
asking) is how does *nix get away without regular defrag as with
windoze.


because it doesn't need it.



fsck is equivalent to scandisk, right?


not exactly - fsck usually fix errors, unlike scandisk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defrag

2008-08-28 Thread Wojciech Puchar
Maybe it is because FAT filesystem wasn't well designed from the beginning 
and defrag was a workaround to solve performances problems.


as everything else microsoft did it wasn't designed but stoled, possibly 
slightly changed.


FAT is similar (mostly the same) as CP/M filesystem.

CP/M was single-user and was used on floppies up to 360kB AFAIK, 
small enough to be able to keep most metadata in memory, even for small 
hard disks FAT was stupid.


The only innovation of Micro$oft was subdirs ;)


FAT does NOTHING to prevent fragmentation, simply gets the first block 
availble when needed.



NTFS is a theft of OS/2 HPFS. they didn't even bothered to use other 
partition ID :), but they managed to f..k^H^H^H^Hextend it's 
functionality, so it's actually even slower than FAT, and too - does 
nothing to prevent fragmentation.



This is normal, as Microsoft make a problems to be able to fix it 
(creating 3 times more others) in new releases, so idiots continue to buy 
new versions of windoze and new hardware, just to do as simple task as 
writing a few-paged document or view a webpage

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


Re: defrag

2008-08-28 Thread Wojciech Puchar

That's true about FAT.  What I have never understood is why Microsoft didn't
fix the problem when they designed NTFS.  UFS and EXT2 both existed at that
time, and neither needs periodic defragmentation.



because Microsoft never fixes the real problems, but create it.
if they would fix most of them, their users won't buy new versions of 
windoze and new hardware. for tasks 99% of users needs 486 with VGA card 
is enough with right software. or even less.

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


Re: defrag

2008-08-28 Thread Wojciech Puchar

I think they probably did, NTFS took a lot from UNIX filesystems, and

  
what for example?

it took 95% from OS/2 HPFS filesystem and another 5% is what microsoft 
f...ed up.




at the time it was released they said that NTFS didn't need any
defragmentation at all.


SAID is most important word in Your sentence.

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


Re: defrag

2008-08-28 Thread Wojciech Puchar
No, if you check a NTFS disk after some work, it's heavily fragmented. As you 
fill it and work with it, it becomes more and more fragmented.


it's just like FAT, because nothing is done to prevent fragmentation.

if NTFS needs to allocate block, it simply get first free.

consider writing to 3 files, one block at a time to each.

you will get block arranged like this (where 1 is file 1's data,2 is data 
from file 2 and 3 from file 3):


123123123123123123123123213213


with newer systems with lots of memory windoze POSSIBLY delays allocation, 
so it may somehow prevent allocation if these files are written within 
short period.


but there is no real thing, as simple and efficient as in BSD UFS.

The best way to defragment a NTFS drive is make a backup to other device, 
format the original and recover the backup. It take less time and device 
don't suffer. I do it monthly with the data disks and performance grows 
espectacularly (near x4 on sustained  file read).


did they finally managed to be able to backup everything just by copying 
files like in unix?


is there any way to restore it without doing windoze installation on blank 
drive?

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


Re: defrag

2008-08-28 Thread Wojciech Puchar

MS was focused on building a filesytem that could store the outrageous
ACLs they wanted, and that was non-trival


so - as usually - they quickly implemented OS/2 filesystem (at best, 
assuming no stolen code), and added their bloat then.


performance is never a priority in Microsoft. exactly opposite is true.
High quality of windows will kill Microsoft, few would buy new 
versions then.



(look at how long it took the
BSDs to have native file-level ACLs).


because in unix they are not actually needed.

usersgroups system is just perfect.

i don't know anyone here that actually use ACL under unix
because he/she needs it.

POSSIBLY it's needed for samba users to allow using this on windoze 
clients.

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


Re: defrag

2008-08-28 Thread Svein Halvor Halvorsen

Wojciech Puchar wrote:

(look at how long it took the
BSDs to have native file-level ACLs).


because in unix they are not actually needed.

usersgroups system is just perfect.


That's one man's opinion.


i don't know anyone here that actually use ACL under unix
because he/she needs it.


It depends on your definition of need, I guess. The groups file could 
always be the power set[1] of the passwd file.




Svein Halvor


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


Re: defrag

2008-08-28 Thread Wojciech Puchar

because in unix they are not actually needed.

usersgroups system is just perfect.


That's one man's opinion.


for sure not one. all local unix users (not linux fans) i know share the 
same opinion

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


How to disable cc1plus: warnings being treated as errors

2008-08-28 Thread Anton Shterenlikht
I'm trying to build a port and get stopped on a warning
because
cc1plus: warnings being treated as errors

Even though it is probably there for a reason, I'd like
to try to continue with the build. But I cannot see
what c++ switch prevents warnings from being treated as
errors.

Please advise
many thanks

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


HP DV2000 series

2008-08-28 Thread michael

anyone here have/use the hp pavillion dv2000 series laptop?
i have two. one of them is not showing post, i'm thinking its the lid 
switch.

should i try to open it and remove the switch? it is just out of warranty.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dump(8) ok, but restore(8) failes

2008-08-28 Thread Matthias Apitz
El día Wednesday, August 27, 2008 a las 01:00:18PM +0200, Matthias Apitz 
escribió:

 the DUMP itself seems to be ok because a restore like this works:
 
 $ ssh [EMAIL PROTECTED] 'cat dumpsRebelion-20080825/usr.dmp.gz' | gzip -dc | 
 restore -xv -f - ./home/guru/myThings/Espanol/diario2008
 
 the problem seems to be -P related; will file a bug report;

This was a known issue: http://www.freebsd.org/cgi/query-pr.cgi?pr=121502
I have CVS up to HEAD and applied the two patches mentioned in 121502
and the restore(8) is fine now;

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
We should all learn from the peoples of The Netherlands, France and Ireland.
Aprendamos todos de los pueblos de Holanda, Francia e Irlanda.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


UFS snapshot code changed?

2008-08-28 Thread Wojciech Puchar

were it changed between 6.3 and 7.0?

in 6 there was a little time used ti delete the snapshot (when ending
dump -L for example), it 7 it seems to be instant.

is it OK (very nice indeed) or sohmething is wrong?

i'm asking to be sure

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


Re: How to disable cc1plus: warnings being treated as errors

2008-08-28 Thread Anton Shterenlikht
On Thu, Aug 28, 2008 at 02:51:57PM +0200, Kris Kennaway wrote:
 Anton Shterenlikht wrote:
  I'm trying to build a port and get stopped on a warning
  because
  cc1plus: warnings being treated as errors
  
  Even though it is probably there for a reason, I'd like
  to try to continue with the build. But I cannot see
  what c++ switch prevents warnings from being treated as
  errors.
  
  Please advise
  many thanks
  
 
 It is -Werror.

seems to have no effect here:

# g++42 -o nsCookieService.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API
-D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_COM_OBSOLETE
-D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES
-DOSTYPE=\FreeBSD6\ -DOSARCH=FreeBSD -DIMPL_NS_NET -I. -I.
-I../../../dist/include/xpcom -I../../../dist/include/string
-I../../../dist/include/pref -I../../../dist/include/storage
-I../../../dist/include -I../../../dist/include/necko
-I/usr/local/include/nspr -I/usr/include -I../../../dist/sdk/include
-I/usr/local/include -fPIC -I/usr/local/include -I/usr/local/include
-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wcast-align -Wno-long-long -Werror -O -pipe -mcpu=ev6 -mieee -O2
^^^
-fno-strict-aliasing -fno-strict-aliasing -fshort-wchar -pipe -DNDEBUG
-DTRIMMED -O -Werror -I/usr/local/include -I/usr/local/include
-DMOZILLA_CLIENT -include ../../../mozilla-config.h nsCookieService.cpp
cc1plus: warnings being treated as errors
 

or is it being overwritten by other -W options?

thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to disable cc1plus: warnings being treated as errors

2008-08-28 Thread Kris Kennaway

Anton Shterenlikht wrote:

I'm trying to build a port and get stopped on a warning
because
cc1plus: warnings being treated as errors

Even though it is probably there for a reason, I'd like
to try to continue with the build. But I cannot see
what c++ switch prevents warnings from being treated as
errors.

Please advise
many thanks



It is -Werror.

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


hp dv2000

2008-08-28 Thread michael

apparently there are a lot of issues with this notebook.
i did have to disable dma on atapi and such just to get freebsd installed.
other than that, they have been great mobile workstations
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defrag

2008-08-28 Thread RW


 On Thu, 28 Aug 2008 10:13:40 +0200
 Eduardo Morras [EMAIL PROTECTED] wrote:

  No, if you check a NTFS disk after some work, it's heavily
  fragmented. As you fill it and work with it, it becomes more and
  more fragmented.

How did you measure it? AFAIK the percentage fragmentation figures given
by windows tools and fsck, aren't measured on the same basis.


On Thu, 28 Aug 2008 13:41:22 +0200 (CEST)
Wojciech Puchar [EMAIL PROTECTED] wrote:

 it's just like FAT, because nothing is done to prevent fragmentation.
 
 if NTFS needs to allocate block, it simply get first free.
 
 consider writing to 3 files, one block at a time to each.
 
 you will get block arranged like this (where 1 is file 1's data,2 is
 data from file 2 and 3 from file 3):
 
 123123123123123123123123213213

This is just untrue. I don't much like Microsoft, but I don't think
there's much to be gained by out-fudding them.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to disable cc1plus: warnings being treated as errors

2008-08-28 Thread Kris Kennaway

Anton Shterenlikht wrote:

On Thu, Aug 28, 2008 at 02:51:57PM +0200, Kris Kennaway wrote:

Anton Shterenlikht wrote:

I'm trying to build a port and get stopped on a warning
because
cc1plus: warnings being treated as errors

Even though it is probably there for a reason, I'd like
to try to continue with the build. But I cannot see
what c++ switch prevents warnings from being treated as
errors.

Please advise
many thanks


It is -Werror.


seems to have no effect here:

# g++42 -o nsCookieService.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API
-D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_COM_OBSOLETE
-D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES
-DOSTYPE=\FreeBSD6\ -DOSARCH=FreeBSD -DIMPL_NS_NET -I. -I.
-I../../../dist/include/xpcom -I../../../dist/include/string
-I../../../dist/include/pref -I../../../dist/include/storage
-I../../../dist/include -I../../../dist/include/necko
-I/usr/local/include/nspr -I/usr/include -I../../../dist/sdk/include
-I/usr/local/include -fPIC -I/usr/local/include -I/usr/local/include
-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wcast-align -Wno-long-long -Werror -O -pipe -mcpu=ev6 -mieee -O2
^^^
-fno-strict-aliasing -fno-strict-aliasing -fshort-wchar -pipe -DNDEBUG
-DTRIMMED -O -Werror -I/usr/local/include -I/usr/local/include
-DMOZILLA_CLIENT -include ../../../mozilla-config.h nsCookieService.cpp
cc1plus: warnings being treated as errors
 

or is it being overwritten by other -W options?


No, -Werror is the *cause* of that condition.  See the info(1) page.

Kris

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


SMP questions

2008-08-28 Thread H.fazaeli


Hi all,
I have 3 questions regrading SMP on freebsd 6.x:

1. Is there any userland tool/api to bound a process to a specific cpu?
2. Is there any way to force UP operation apart form recompiling kernel
  without SMP option?
3. Can someone shed some light on the logic of how schedulers (4.4.BSD/ULE)
  dispatch processes among CPUs?






--


Best regards.

Hooman Fazaeli [EMAIL PROTECTED]
Sepehr S. T. Co. Ltd.

Web: http://www.sepehrs.com
Tel: (9821)88975701-2
Fax: (9821)88983352




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


Re: How to eject an USB disk on FreeBSD

2008-08-28 Thread User Lenzi
Em Qui, 2008-08-28 às 13:56 +0700, Olivier Nicole escreveu:

 Hello,
 
 Is there a command in FreeBSD that ejects a USB disk like in Windows?
 
 I mount the USB disk with automount daemone (amd).
 


You have to umnount it using the umount command
usually umount /mountpount does the tick

if you are using a graphical interface... (I use gnome...)

install the disk monitor (application inside the panel)
right click the mouse on the panel and choose insert

or go to the storage icon and right click
or go to any nautilus screen and right click

I assume you are using gnome 2.22, 2,20

the system even pops a screen saying that the umass drive
can be removed.

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


Re: Changing 'From:' address of periodic scripts

2008-08-28 Thread Jonathan Belson

Matthew Seaman wrote:

Jonathan Belson wrote:
| | OK, thanks.  After playing with MASQUERADE_AS(), MASQUERADE_DOMAIN() 
| plus a few FEATURES(), I've managed to change the 'From:' address for 
| e-mails sent via the command line.  Unfortunately, e-mails sent via 
the | cron-ed periodic scripts still don't get through, although if I 
run e.g. | 'periodic daily' from the command line, the mail does reach me.
| | The only difference I can think of is that cron runs the scripts as 
| root.  Could this cause the difference?


Yes.  root is specifically exempted from all the masquerading stuff.
There's an EXPOSED_USER macro you can use in $(hostname).mc to control
that.


Ah, that explains it.  There doesn't seem to be a way to remove exposed users, 
but there is a web page explaining how to stop 'root' being added as a default 
exposed user:


http://www.grok.org.uk/docs/smroot.html

Instead of doing this, I've told periodic.conf to send its output to my local 
account on the server, and added a .forward file to pass the e-mail to my 'real' 
address.  Hopefully this will play nicely with sendmail's masquerading.


Cheers,

--Jon

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


gjournal fsck

2008-08-28 Thread Brian McCann
Hi all.  I'm having some problems with several servers I've built
recently (7.0-RELEASE) that are using gjournal.  I had two reboot a
few days ago (un-related to FreeBSD problems I think)...but when they
came back up, the file systems wouldn't mount since they were not
clean.  Now, I understand that UFS knows nothing about the fact that
it's journaled, and the journaling knows nothing about UFS...but it's
my understanding that by using gjournal, you should really never need
to fsck a file system.  However, the only way to get them to mount is
by doing the fsck.  Is there something else I should be doing instead
of fsck?

And since I know it will probably come up, I built the file systems
using the instructions and notes at
http://www.freebsd.org/cgi/man.cgi?query=gjournalapropos=0sektion=0manpath=FreeBSD+7.0-RELEASEformat=html.

Any help would be greatly appreciated!
Thanks!
--Brian

-- 
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
Brian McCann

I don't have to take this abuse from you -- I've got hundreds of
people waiting to abuse me.
 -- Bill Murray, Ghostbusters
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SMP questions

2008-08-28 Thread Kirk Strauser
On Thursday 28 August 2008 07:59:00 H.fazaeli wrote:
 Hi all,
 I have 3 questions regrading SMP on freebsd 6.x:

 1. Is there any userland tool/api to bound a process to a specific cpu?

I don't think so.  FreeBSD 7.x just got cpuset backported from -CURRENT.
-- 
Kirk Strauser
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problem in FreeBSD 7.x, in Xorg switching consoles.

2008-08-28 Thread Christopher Joyner
When I switch from my Xorg running KDE, for some reason it pushes a string as 
keypresses to the KDE.  I do not know if it's on return, or on exit.

Here is my setup! 
On tty3 is my Xorg KDE desktop.  On tty8 is a getty login.  
I use alt+ctrl+f8 to enter the login screen on tty8.
I then switch back by using alt+ctrl+f3, and enter the KDE desktop.

But then for some reason something crazy happens.  If i was using the konqueror 
web browser, the address would get replaced and it would go to a bogus website.

 
So I decided to put up a blank text pad in kedit to see what happens.
What I get is a url string is pushed to the pad.  
I believe this happens when coming back to the Desktop KDE.



In Love in Jesus Christ, Or Lord and Savior.


For God so loved the world, that he gave his only begotten Son, that whosoever 
believeth in him should not perish, but have everlasting life.
--John 3:16



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


Re: Help! Tape drive resets the server!

2008-08-28 Thread Kirk Strauser
On Wednesday 27 August 2008 14:53:44 Tyson Boellstorff wrote:

 3) Yes, it's possible that your drive is doing this, but more likely you
 have a bent pin/short somewhere causing the scsi bus to reset, and your
 kernel isn't handling this nicely. Check your pins. They bend easy, but a
 mechanical pencil with no lead in it can help you with that.

Interesting idea.  I'll check that next time I power down.

 4) Is your termination auto or physical?

Physical.

 5) Is the tape drive manually jumped for a specific ID? I assume that it is
 set for 3. Try 4.

Seriously?  I mean, I certainly don't mind trying it and it wouldn't be any 
harder than pulling the cable to check the pins, but what's your line of 
thinking here?

 6) Try a slower transfer rate.

Last night I bumped it down from 40MB/s to 20MB/s, disabled tagged queueing 
(which the adapter had enabled by default), and moved it to a different power 
lead.  So far so good, but 24 hours does not my confidence earn.  Thanks for 
the tips!  If it's still acting wonky, I'll work through them.
-- 
Kirk Strauser
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gjournal fsck

2008-08-28 Thread Ivan Voras
Brian McCann wrote:
 Hi all.  I'm having some problems with several servers I've built
 recently (7.0-RELEASE) that are using gjournal.  I had two reboot a
 few days ago (un-related to FreeBSD problems I think)...but when they
 came back up, the file systems wouldn't mount since they were not
 clean.  Now, I understand that UFS knows nothing about the fact that
 it's journaled, and the journaling knows nothing about UFS...but it's

Actually UFS needs to know about gjournal for just this purpose. There's
a special option to newfs that tells the file system to be aware of
gjournal and it should request fscks.

 my understanding that by using gjournal, you should really never need
 to fsck a file system.  However, the only way to get them to mount is
 by doing the fsck.  Is there something else I should be doing instead
 of fsck?

man 8 tunefs




signature.asc
Description: OpenPGP digital signature


Re: gjournal fsck

2008-08-28 Thread Brian McCann
On Thu, Aug 28, 2008 at 10:34 AM, Ivan Voras [EMAIL PROTECTED] wrote:
 Brian McCann wrote:
 Hi all.  I'm having some problems with several servers I've built
 recently (7.0-RELEASE) that are using gjournal.  I had two reboot a
 few days ago (un-related to FreeBSD problems I think)...but when they
 came back up, the file systems wouldn't mount since they were not
 clean.  Now, I understand that UFS knows nothing about the fact that
 it's journaled, and the journaling knows nothing about UFS...but it's

 Actually UFS needs to know about gjournal for just this purpose. There's
 a special option to newfs that tells the file system to be aware of
 gjournal and it should request fscks.

 my understanding that by using gjournal, you should really never need
 to fsck a file system.  However, the only way to get them to mount is
 by doing the fsck.  Is there something else I should be doing instead
 of fsck?

 man 8 tunefs



Yes...I apologize...I did that when I built the file system with
newfs -J.  Here's the tunefs -p output for one of the file systems:

# tunefs -p /dev/da2.journal
tunefs: ACLs: (-a) disabled
tunefs: MAC multilabel: (-l)   disabled
tunefs: soft updates: (-n) disabled
tunefs: gjournal: (-J) enabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)16384
tunefs: average number of files in a directory: (-s)   64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: optimization preference: (-o)  time
tunefs: volume label: (-L)

I'm concerned about this because the ones I've had problems with
recently are 1.1TB arrays...I've got 2 8.6TB arrays that are journaled
as well...and if I ever have to fsck them...that could take 1/2 the
day...

Any other thoughts?

Thanks for the help so far Ivan!
--Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gjournal fsck

2008-08-28 Thread Manolis Kiagias

Brian McCann wrote:

Hi all.  I'm having some problems with several servers I've built
recently (7.0-RELEASE) that are using gjournal.  I had two reboot a
few days ago (un-related to FreeBSD problems I think)...but when they
came back up, the file systems wouldn't mount since they were not
clean.  Now, I understand that UFS knows nothing about the fact that
it's journaled, and the journaling knows nothing about UFS...but it's
my understanding that by using gjournal, you should really never need
to fsck a file system.  However, the only way to get them to mount is
by doing the fsck.  Is there something else I should be doing instead
of fsck?

And since I know it will probably come up, I built the file systems
using the instructions and notes at
http://www.freebsd.org/cgi/man.cgi?query=gjournalapropos=0sektion=0manpath=FreeBSD+7.0-RELEASEformat=html.

Any help would be greatly appreciated!
Thanks!
--Brian

  


You may wish to have a look at this article:

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/gjournal-desktop

In particular, you should make sure you use tunefs to enable Journaling 
and disable soft update on the journaled filesystems, i.e.:


tunefs -J enable -n disable /dev/ad0s1f.journal

Mount them using the async option:

/dev/ad0s1f.journal /usrufs rw,async2   2

Note that the pass # still indicates the filesystem should be checked. 
While I was writing the article, I was trying several scenarios were I 
had the pass # set to 0, thinking that a gjournaled filesystem would not 
need fsck at all. I would then press the reset button. In most cases, 
the system would refuse to mount them. However with the pass # set, the 
fsck would finish almost immediately, since the actual consistency check 
takes place when the gjournal module is loaded (you will get a journal 
consistent after a bad reboot) and before fstab is even parsed.  All 
fsck does in this case is simply confirm to the system it is a clean volume.


In short, leaving the pass # to something that would cause an fsck is 
the safe way to go. The fsck will be almost instant anyway.






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


Re: SMP questions

2008-08-28 Thread Ivan Voras
H.fazaeli wrote:
 
 Hi all,
 I have 3 questions regrading SMP on freebsd 6.x:
 
 1. Is there any userland tool/api to bound a process to a specific cpu?

This support is native to 8-CURRENT, I think most of it is backported to
7.1.

 2. Is there any way to force UP operation apart form recompiling kernel
   without SMP option?

mostly - if you have a SMP kernel it will always use SMP locking and
scheduling algorithms, which are in 6.x somewhat slower than the UP
variants. You can force the kernel to use only one CPU with
machdep.hlt_cpus sysctl:

 sysctl -d machdep.hlt_cpus
machdep.hlt_cpus: Bitmap of CPUs to halt.  101 (binary) will halt CPUs 0
and 2.

(note that you have to give a decimal number to the sysctl)

 3. Can someone shed some light on the logic of how schedulers (4.4.BSD/ULE)
   dispatch processes among CPUs?

4.4BSD has a single queue of running threads from which the threads are
dispatched to CPUs when needed, in a way that's similar in effect to
round-robin. ULE has separate per-CPU queues and is aware of CPU
topologies so it knows that dispatching threads to cores on the same
physical CPU is better than picking a distant CPU. (this is all about
ULE in 7-STABLE and 8-CURRENT. ULE in 6.x is broken). This is why 4.4BSD
scales less well than ULE (but on the other hand 4.4BSD has had many
decades of hand optimizations and there are even now reports that it
behaves better in some edge circumstances).




signature.asc
Description: OpenPGP digital signature


Re: gjournal fsck

2008-08-28 Thread Ivan Voras
Brian McCann wrote:

 Yes...I apologize...I did that when I built the file system with
 newfs -J.  Here's the tunefs -p output for one of the file systems:
 
 # tunefs -p /dev/da2.journal
 tunefs: ACLs: (-a) disabled
 tunefs: MAC multilabel: (-l)   disabled
 tunefs: soft updates: (-n) disabled
 tunefs: gjournal: (-J) enabled
 tunefs: maximum blocks per file in a cylinder group: (-e)  2048
 tunefs: average file size: (-f)16384
 tunefs: average number of files in a directory: (-s)   64
 tunefs: minimum percentage of free space: (-m) 8%
 tunefs: optimization preference: (-o)  time
 tunefs: volume label: (-L)
 
 I'm concerned about this because the ones I've had problems with
 recently are 1.1TB arrays...I've got 2 8.6TB arrays that are journaled
 as well...and if I ever have to fsck them...that could take 1/2 the
 day...
 
 Any other thoughts?

Ok.

There was one person that complained about fsck on gjournal but not in
the same context - he created the journal for gjournal on an existing
file system and so destroyed a part of the data. I don't think this is
related to your case.

Does gjournal complain about your drive, for example that it doesn't
support BIOFLUSH?

Also, did fsck actually do something when it was started (did it find
anything corrupted)?



signature.asc
Description: OpenPGP digital signature


Re: gjournal fsck

2008-08-28 Thread Brian McCann

 You may wish to have a look at this article:

 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/gjournal-desktop

Great article...thanks.  Bookmarked for future use too!

 In particular, you should make sure you use tunefs to enable Journaling and
 disable soft update on the journaled filesystems, i.e.:

 tunefs -J enable -n disable /dev/ad0s1f.journal

I was mistaken...I did this when I made the file system...I just
posted a message to the thread showing the output of tunefs -p, but
soft-updates are off, and journaling does show as on.


 Mount them using the async option:

 /dev/ad0s1f.journal /usrufs rw,async2   2

Here's my fstab line:
/dev/da1.journal/files6/array2  ufs
rw,async,nosuid,noatime 2   2


 Note that the pass # still indicates the filesystem should be checked. While
 I was writing the article, I was trying several scenarios were I had the
 pass # set to 0, thinking that a gjournaled filesystem would not need fsck
 at all. I would then press the reset button. In most cases, the system would
 refuse to mount them. However with the pass # set, the fsck would finish
 almost immediately, since the actual consistency check takes place when the
 gjournal module is loaded (you will get a journal consistent after a bad
 reboot) and before fstab is even parsed.  All fsck does in this case is
 simply confirm to the system it is a clean volume.

 In short, leaving the pass # to something that would cause an fsck is the
 safe way to go. The fsck will be almost instant anyway.



The file system is about 1.1TB, and I've got 2 of them that are
journaled on this particular server.  One is currently empty, and
fsck's in about 10-15 mins, while the other is 31% used, and takes
about 45 mins.

Thanks for your help thus far!
--Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gjournal fsck

2008-08-28 Thread Brian McCann
On Thu, Aug 28, 2008 at 10:51 AM, Ivan Voras [EMAIL PROTECTED] wrote:

 Does gjournal complain about your drive, for example that it doesn't
 support BIOFLUSH?

Actually yes...I meant to post them in my last message, but hit send
too early...here's my output from boot (from dmesg.boot)

GEOM_JOURNAL: Journal 478661671: da1 contains data.
GEOM_JOURNAL: Journal 478661671: da1 contains journal.
GEOM_JOURNAL: Journal da1 clean.
(da1:mly0:4:1:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da1:mly0:4:1:0): CAM Status: SCSI Status Error
(da1:mly0:4:1:0): SCSI Status: Check Condition
(da1:mly0:4:1:0): ILLEGAL REQUEST asc:24,0
(da1:mly0:4:1:0): Invalid field in CDB
(da1:mly0:4:1:0): Unretryable error
GEOM_JOURNAL: BIO_FLUSH not supported by da1.
GEOM_JOURNAL: Journal 3065355517: da2 contains data.
GEOM_JOURNAL: Journal 3065355517: da2 contains journal.
GEOM_JOURNAL: Journal da2 clean.
(da2:mly1:4:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da2:mly1:4:0:0): CAM Status: SCSI Status Error
(da2:mly1:4:0:0): SCSI Status: Check Condition
(da2:mly1:4:0:0): ILLEGAL REQUEST asc:24,0
(da2:mly1:4:0:0): Invalid field in CDB
(da2:mly1:4:0:0): Unretryable error
GEOM_JOURNAL: BIO_FLUSH not supported by da2.


 Also, did fsck actually do something when it was started (did it find
 anything corrupted)?

No...it didn't find anything wrong / anything to fix.  (and one of the
file systems was being written to at the time...so at least journaling
appears to be working)  Something else I noticed...Manolis' article
says it should say journal  consistent...whereas mine says
Journal  clean.  I don't know what the differences mean, or what
the BIO_FLUSH means...but I'm hoping you can tell me. :)

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


Re: gjournal fsck

2008-08-28 Thread Brian McCann
On Thu, Aug 28, 2008 at 11:03 AM, Brian McCann [EMAIL PROTECTED] wrote:
 On Thu, Aug 28, 2008 at 10:51 AM, Ivan Voras [EMAIL PROTECTED] wrote:

 Does gjournal complain about your drive, for example that it doesn't
 support BIOFLUSH?

 Actually yes...I meant to post them in my last message, but hit send
 too early...here's my output from boot (from dmesg.boot)

 GEOM_JOURNAL: Journal 478661671: da1 contains data.
 GEOM_JOURNAL: Journal 478661671: da1 contains journal.
 GEOM_JOURNAL: Journal da1 clean.
 (da1:mly0:4:1:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
 (da1:mly0:4:1:0): CAM Status: SCSI Status Error
 (da1:mly0:4:1:0): SCSI Status: Check Condition
 (da1:mly0:4:1:0): ILLEGAL REQUEST asc:24,0
 (da1:mly0:4:1:0): Invalid field in CDB
 (da1:mly0:4:1:0): Unretryable error
 GEOM_JOURNAL: BIO_FLUSH not supported by da1.
 GEOM_JOURNAL: Journal 3065355517: da2 contains data.
 GEOM_JOURNAL: Journal 3065355517: da2 contains journal.
 GEOM_JOURNAL: Journal da2 clean.
 (da2:mly1:4:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
 (da2:mly1:4:0:0): CAM Status: SCSI Status Error
 (da2:mly1:4:0:0): SCSI Status: Check Condition
 (da2:mly1:4:0:0): ILLEGAL REQUEST asc:24,0
 (da2:mly1:4:0:0): Invalid field in CDB
 (da2:mly1:4:0:0): Unretryable error
 GEOM_JOURNAL: BIO_FLUSH not supported by da2.


 Also, did fsck actually do something when it was started (did it find
 anything corrupted)?

 No...it didn't find anything wrong / anything to fix.  (and one of the
 file systems was being written to at the time...so at least journaling
 appears to be working)  Something else I noticed...Manolis' article
 says it should say journal  consistent...whereas mine says
 Journal  clean.  I don't know what the differences mean, or what
 the BIO_FLUSH means...but I'm hoping you can tell me. :)

 Thanks again!
 --Brian


I should probably also mention that this is on a Mylex 2000 RAID
controller...with a RAID-5 array and using write-caching.

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


Re: gjournal fsck

2008-08-28 Thread Manolis Kiagias

Brian McCann wrote:

On Thu, Aug 28, 2008 at 11:03 AM, Brian McCann [EMAIL PROTECTED] wrote:
  

On Thu, Aug 28, 2008 at 10:51 AM, Ivan Voras [EMAIL PROTECTED] wrote:


Does gjournal complain about your drive, for example that it doesn't
support BIOFLUSH?
  

Actually yes...I meant to post them in my last message, but hit send
too early...here's my output from boot (from dmesg.boot)

GEOM_JOURNAL: Journal 478661671: da1 contains data.
GEOM_JOURNAL: Journal 478661671: da1 contains journal.
GEOM_JOURNAL: Journal da1 clean.
(da1:mly0:4:1:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da1:mly0:4:1:0): CAM Status: SCSI Status Error
(da1:mly0:4:1:0): SCSI Status: Check Condition
(da1:mly0:4:1:0): ILLEGAL REQUEST asc:24,0
(da1:mly0:4:1:0): Invalid field in CDB
(da1:mly0:4:1:0): Unretryable error
GEOM_JOURNAL: BIO_FLUSH not supported by da1.
GEOM_JOURNAL: Journal 3065355517: da2 contains data.
GEOM_JOURNAL: Journal 3065355517: da2 contains journal.
GEOM_JOURNAL: Journal da2 clean.
(da2:mly1:4:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da2:mly1:4:0:0): CAM Status: SCSI Status Error
(da2:mly1:4:0:0): SCSI Status: Check Condition
(da2:mly1:4:0:0): ILLEGAL REQUEST asc:24,0
(da2:mly1:4:0:0): Invalid field in CDB
(da2:mly1:4:0:0): Unretryable error
GEOM_JOURNAL: BIO_FLUSH not supported by da2.



Also, did fsck actually do something when it was started (did it find
anything corrupted)?

  

No...it didn't find anything wrong / anything to fix.  (and one of the
file systems was being written to at the time...so at least journaling
appears to be working)  Something else I noticed...Manolis' article
says it should say journal  consistent...whereas mine says
Journal  clean.  I don't know what the differences mean, or what
the BIO_FLUSH means...but I'm hoping you can tell me. :)

Thanks again!
--Brian




I should probably also mention that this is on a Mylex 2000 RAID
controller...with a RAID-5 array and using write-caching.

Thanks
--Brian
  


I don't have any exotic  hardware myself - the article was written 
with standard SATA disks as examples.
As I understand, the consistent message comes up when the journal is 
actually used to return the filesystem to a consistent state (what would 
happen after a power failure, when the filesystem is dirty) and the 
clean message means there was no inconsistency between the filesystem 
and journal (a normat shutdown of the filesystem).  If it comes up as 
clean, I wonder why fsck kicks in at all...

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


Re: defrag

2008-08-28 Thread Bob Johnson
On 8/27/08, prad [EMAIL PROTECTED] wrote:
 something that has puzzled me for years (but i've never got around to
 asking) is how does *nix get away without regular defrag as with
 windoze.


Essentially, the UFS file system (and its close relatives) is
intentionally fragmented in a controlled way as the files are written,
so that the effect of the fragmentation is limited. Files are written
at sort-of-random locations all over the disk, rather than starting at
one end and working toward the other, and there is a limit to how much
sequential disk space a single file can occupy (a large file
essentially gets broken up and stored as if it were a collection of
smaller files). The result is that as long as there is a reasonable
amount of empty disk space available, it will be possible to find
space to store a new file efficiently. This is why the filesystem
wants to have at least 8% empty space. If you have less than 8% empty
space left on the filesystem, it switches from the speed optimizing
mode that I just described to a mode that tries to pack things into
the remaining space as efficiently as possible, at the cost of speed.
FreeBSD also by default reserves some disk space for administrative
use that is not available to normal users.

One result of this scheme (and other issues) is that access time for
large files suffers a bit (but not as much as it would if they were
heavily fragmented). If you are setting up a volume mainly for storing
large files, you can adjust some of the parameters (e.g. using
tunefs(8)) so the filesystem will handle large files more efficiently,
at the expense of wasting space on small files.

 fsck is equivalent to scandisk, right?

Pretty much. It looks for errors and tries to fix them. It does not
attempt to defragment the disk. Unless the disk is almost full,
defragmenting probably wouldn't improve things enough to matter.


 so when you delete files and start getting 'holes', how does *nix deal
 with it?


The process of scattering files all over the disk intentionally leaves
holes all over the disk (that's what I mean by controlled
fragmentation). When you add and delete files, those holes get bigger
and smaller, and merge or split apart, but until the disk gets very
full, there should always be holes big enough to efficiently store new
files. The difference between this and what happens in a FAT
filesystem is that the process is designed so that there is a
statistically high likelihood that the holes produced will be large
enough to be used efficiently.

 --
 In friendship,
 prad

I hope that helps. And as usual, if I got any of that wrong, someone
please correct me. If I answer this question often enough, I will
eventually get it right, then perhaps we can make it a FAQ ;-)

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


Re: gjournal fsck

2008-08-28 Thread Brian McCann
On Thu, Aug 28, 2008 at 11:25 AM, Manolis Kiagias [EMAIL PROTECTED] wrote:



 I don't have any exotic  hardware myself - the article was written with
 standard SATA disks as examples.
 As I understand, the consistent message comes up when the journal is
 actually used to return the filesystem to a consistent state (what would
 happen after a power failure, when the filesystem is dirty) and the
 clean message means there was no inconsistency between the filesystem and
 journal (a normat shutdown of the filesystem).  If it comes up as clean, I
 wonder why fsck kicks in at all...



The only thing I can think of is the dirty bit is still set on the
file system, so it insists on fsck'ing it...but I'm obviously fuzzy on
the whole thing.

Interestingly enough...I checked dmesg.boot on one of the 8.6TB
machines (which is running a completely different controller...a 3Ware
9550)...and I didn't get those BIO_FLUSH errors...

Again, thanks for your help!  If you think of anything, please let me
know...this is getting old fast since the box has hung twice this week
now.
--Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sed html tags

2008-08-28 Thread Joseph Olatt
snip

   Hi, I have the string
  
   span  111 /span  span   /span
  
   And i wish to use sed to strip *only* the span  tag and its
   contents... is this possible ? I'm trying this expression, but it
   doesn't work...
  
   sed 's/span [^\(/span\)]+\/span//g' file
  
   is there anything like it ?
  
   I would like to obtain
  
   
  
  
  
   I hope someone can help,
  
   thank you,
  
   siran

If you haven't yet solved the above problem, give the following a try:

sed 's/\(span .*.*\/span\)\(.*\)\(span .*.*\/span\)/\2/'


regards,
joseph

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


Disk access is slowing my Eee PC

2008-08-28 Thread Lars Stokholm
Hi,

I've successfully installed FreeBSD 7-STABLE on my Eee PC 900. Just
one problem. Quite regularly the machine becomes unresponsive. I asume
because of something reading from or writing from the SSD, because it
always happens when the disk activity indicator is lit and it stops
immediately when it's turned off again. Sometimes it lasts as long as
20-30 seconds, just when using Firefox, OOo or similar.

Any ideas on how to deal with this? And just as interresting; what's the cause?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


_secure_path: cannot stat /dev/null/.login_conf: Not a directory

2008-08-28 Thread VeeJay
Hi there

I have installed FreeBSD 7.0 production. After installation, I am getting
this message when server boots

Could anybody tell what does it mean and how to fix this error???

_secure_path: cannot stat /dev/null/.login_conf: Not a directory

Have googled... without any luck...

Any help is welcomed

-- 
Thanks!

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


Re: _secure_path: cannot stat /dev/null/.login_conf: Not a directory

2008-08-28 Thread Dan Nelson
In the last episode (Aug 28), VeeJay said:
 Hi there
 
 I have installed FreeBSD 7.0 production. After installation, I am getting
 this message when server boots
 
 Could anybody tell what does it mean and how to fix this error???
 
 _secure_path: cannot stat /dev/null/.login_conf: Not a directory

Do you maybe have a user account whose home directory is /dev/null ? It
looks like program (su, maybe?) is looking for ~/.login_conf using the
_secure_path() function.  Try changing that home directroy to
/var/empty , which is an empty directory with no write permission
provided for cases when you need one.

-- 
Dan Nelson
[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: Disk access is slowing my Eee PC

2008-08-28 Thread Matthias Apitz
El día Thursday, August 28, 2008 a las 07:07:44PM +0200, Lars Stokholm escribió:

 Hi,
 
 I've successfully installed FreeBSD 7-STABLE on my Eee PC 900. Just
 one problem. Quite regularly the machine becomes unresponsive. I asume
 because of something reading from or writing from the SSD, because it
 always happens when the disk activity indicator is lit and it stops
 immediately when it's turned off again. Sometimes it lasts as long as
 20-30 seconds, just when using Firefox, OOo or similar.
 
 Any ideas on how to deal with this? And just as interresting; what's the 
 cause?

Hello Lars,

I've one of these eeePC 900 installed by my own and a fried of my as
well; he runs mySQL, Apache and a blogging engine on top of this without
any kind of problems; I use mineone for writing stuff and reading with
KDE's konqueror, as well without any issues;

the installation was done in both cases follwing this guide:
http://www.unixarea.de/installEeePC.txt

don't know if this will help you;

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
We should all learn from the peoples of The Netherlands, France and Ireland.
Aprendamos todos de los pueblos de Holanda, Francia e Irlanda.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sed html tags

2008-08-28 Thread An
yes, it does work perfectly with the example I gave... the actual file
is some like

... span  111 span www no /span /span  span yyy
 /span   span yyy  /span ...


your command only returns ]# sed 's/\(span
.*.*\/span\)\(.*\)\(span .*.*\/span\)/\2/' file

 


I wish to rip all span xxx .* /span and obtain

...  span yyy  /span  span yyy  /span...


i think sed should be able to do it, but the operator [ ^ (  ) ]* is
not behaving as i think it would... perl does it alright, though : s

thanks,

siran



On Thu, Aug 28, 2008 at 12:49 PM, Joseph Olatt [EMAIL PROTECTED] wrote:
 snip

   Hi, I have the string
  
   span  111 /span  span   /span
  
   And i wish to use sed to strip *only* the span  tag and its
   contents... is this possible ? I'm trying this expression, but it
   doesn't work...
  
   sed 's/span [^\(/span\)]+\/span//g' file
  
   is there anything like it ?
  
   I would like to obtain
  
   
  
  
  
   I hope someone can help,
  
   thank you,
  
   siran

 If you haven't yet solved the above problem, give the following a try:

 sed 's/\(span .*.*\/span\)\(.*\)\(span .*.*\/span\)/\2/'


 regards,
 joseph

 snip

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


32-bit fbsd binaries on amd64 (we can already run 32bit linux/fc4 stuff, so this should work, right?)

2008-08-28 Thread Steve Franks
I've been reading the wine64 wiki.  I've also seen some of myself 
other's questions in this general direction (not wine specifically,
but anything 64 vs 32) go by.  Near as I can tell, the big hangup is
having 32-bit libs (i.e for X) hanging around on your system.

Now, I'm sure, as usual, I'm being naive, but:

1) We can run 32-bit linux on amd64, so do we have 32-bit freebsd libs already?

2) If we don't have the 32-bit libs, is it possible to steal them
directly from the corresponding i386 freebsd (as long as we haven't
rebuilt our kernel too many times), or should we in all cases be
building them (is there a wiki?  I'm sure setting the CFLAGS for
32-bit (saw that somewhere) and buildworld is not the right way,
unless we manually copy things).

3) Once we have all the libs set up, how does one spoof a port (i.e.
linux/fc4-base or, in my case, wine) into building 64-bit?  I guess
fc4 is easy because it's pretty much a binary download, right, which
is not going to be the case for wine, unless maybe we use the pkg.tgz
(if we can do that, how would one force a 32-bit pkg to install on
amd64?)

It sure seems like there's a path to this coming soon.  It's not just
a matter of wine, I'd like eventually to run matlab64 (which is, of
course, in the opposite direction), and I note people working on
linuxulator64...

In the meantime, I'm going to attempt to get wine going in my fc4 emu,
but since I'm a FBSD snob, I consider that a very ugly hack...having
to run my FPGA compilers and Matlab in fc4 is insulting enough ;)  I
was so bloody impressed by the performance difference between wine 
kqemu on fedora, however, that I am compelled to try (darn CAD
vendors).

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


Re: gjournal fsck

2008-08-28 Thread Pawel Jakub Dawidek
On Thu, Aug 28, 2008 at 11:03:49AM -0400, Brian McCann wrote:
 On Thu, Aug 28, 2008 at 10:51 AM, Ivan Voras [EMAIL PROTECTED] wrote:
 
  Does gjournal complain about your drive, for example that it doesn't
  support BIOFLUSH?
 
 Actually yes...I meant to post them in my last message, but hit send
 too early...here's my output from boot (from dmesg.boot)
 
 GEOM_JOURNAL: Journal 478661671: da1 contains data.
 GEOM_JOURNAL: Journal 478661671: da1 contains journal.
 GEOM_JOURNAL: Journal da1 clean.
 (da1:mly0:4:1:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
 (da1:mly0:4:1:0): CAM Status: SCSI Status Error
 (da1:mly0:4:1:0): SCSI Status: Check Condition
 (da1:mly0:4:1:0): ILLEGAL REQUEST asc:24,0
 (da1:mly0:4:1:0): Invalid field in CDB
 (da1:mly0:4:1:0): Unretryable error
 GEOM_JOURNAL: BIO_FLUSH not supported by da1.
 GEOM_JOURNAL: Journal 3065355517: da2 contains data.
 GEOM_JOURNAL: Journal 3065355517: da2 contains journal.
 GEOM_JOURNAL: Journal da2 clean.
 (da2:mly1:4:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
 (da2:mly1:4:0:0): CAM Status: SCSI Status Error
 (da2:mly1:4:0:0): SCSI Status: Check Condition
 (da2:mly1:4:0:0): ILLEGAL REQUEST asc:24,0
 (da2:mly1:4:0:0): Invalid field in CDB
 (da2:mly1:4:0:0): Unretryable error
 GEOM_JOURNAL: BIO_FLUSH not supported by da2.
 
 
  Also, did fsck actually do something when it was started (did it find
  anything corrupted)?
 
 No...it didn't find anything wrong / anything to fix.  (and one of the
 file systems was being written to at the time...so at least journaling
 appears to be working)  Something else I noticed...Manolis' article
 says it should say journal  consistent...whereas mine says
 Journal  clean.  I don't know what the differences mean, or what
 the BIO_FLUSH means...but I'm hoping you can tell me. :)

Don't worry about those if you have memory-backed RAID card. BIO_FLUSH
is there to tell the disk to flush its write caches, but if it is
memory-backed, there is low risk on losing unwritted data.

This is not the cause of your problem.

BTW. journal ... clean means that there was clean shutdown and there
was no need to replay journal, while journal ... consistent means that
there was unclean shutdown and journal replay was successful.

-- 
Pawel Jakub Dawidek   http://www.wheel.pl
[EMAIL PROTECTED]   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgp9J7tgcfgnR.pgp
Description: PGP signature


Re: gjournal fsck

2008-08-28 Thread Pawel Jakub Dawidek
On Thu, Aug 28, 2008 at 05:44:32PM +0300, Manolis Kiagias wrote:
 Brian McCann wrote:
 Hi all.  I'm having some problems with several servers I've built
 recently (7.0-RELEASE) that are using gjournal.  I had two reboot a
 few days ago (un-related to FreeBSD problems I think)...but when they
 came back up, the file systems wouldn't mount since they were not
 clean.  Now, I understand that UFS knows nothing about the fact that
 it's journaled, and the journaling knows nothing about UFS...but it's
 my understanding that by using gjournal, you should really never need
 to fsck a file system.  However, the only way to get them to mount is
 by doing the fsck.  Is there something else I should be doing instead
 of fsck?
 
 And since I know it will probably come up, I built the file systems
 using the instructions and notes at
 http://www.freebsd.org/cgi/man.cgi?query=gjournalapropos=0sektion=0manpath=FreeBSD+7.0-RELEASEformat=html.
 
 Any help would be greatly appreciated!
 Thanks!
 --Brian
 
   
 
 You may wish to have a look at this article:
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/gjournal-desktop
 
 In particular, you should make sure you use tunefs to enable Journaling 
 and disable soft update on the journaled filesystems, i.e.:
 
 tunefs -J enable -n disable /dev/ad0s1f.journal
 
 Mount them using the async option:
 
 /dev/ad0s1f.journal /usrufs rw,async2   2
 
 Note that the pass # still indicates the filesystem should be checked. 
 While I was writing the article, I was trying several scenarios were I 
 had the pass # set to 0, thinking that a gjournaled filesystem would not 
 need fsck at all. I would then press the reset button. In most cases, 
 the system would refuse to mount them. However with the pass # set, the 
 fsck would finish almost immediately, since the actual consistency check 
 takes place when the gjournal module is loaded (you will get a journal 
 consistent after a bad reboot) and before fstab is even parsed.  All 
 fsck does in this case is simply confirm to the system it is a clean volume.
 
 In short, leaving the pass # to something that would cause an fsck is 
 the safe way to go. The fsck will be almost instant anyway.

Not exactly. Gjournal handles all inconsistencies, except one - orphaned
files. An orphaned file is a file that some open, deleted, but haven't
closed. If you have panic or power failure at this point, there will be
unreferenced file. When fsck detects that it operates on gjournaled file
system, it will do a very fast lookup of such orphaned files. It is
optimized so that total number of such files is kept in superblock - if
this counter is 0, we're done. If it is not zero, then fsck scans only
cylinder groups headers, there is another counter in each header says
how many orphaned files is in this CG. If CG's counter is 0, the whole
CG can be skipped. Once we found X dirty CGs (X is stored in superblock)
we can also stop earlier. All in all, there are very few such files (if
any), so fsck is way, way faster with gjournal (eg. ~1 minute instead of
~8 hours on huge file system).

-- 
Pawel Jakub Dawidek   http://www.wheel.pl
[EMAIL PROTECTED]   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgppLX1W7egLS.pgp
Description: PGP signature


Re: gjournal fsck

2008-08-28 Thread Pawel Jakub Dawidek
On Thu, Aug 28, 2008 at 10:43:58AM -0400, Brian McCann wrote:
 On Thu, Aug 28, 2008 at 10:34 AM, Ivan Voras [EMAIL PROTECTED] wrote:
  Brian McCann wrote:
  Hi all.  I'm having some problems with several servers I've built
  recently (7.0-RELEASE) that are using gjournal.  I had two reboot a
  few days ago (un-related to FreeBSD problems I think)...but when they
  came back up, the file systems wouldn't mount since they were not
  clean.  Now, I understand that UFS knows nothing about the fact that
  it's journaled, and the journaling knows nothing about UFS...but it's
 
  Actually UFS needs to know about gjournal for just this purpose. There's
  a special option to newfs that tells the file system to be aware of
  gjournal and it should request fscks.
 
  my understanding that by using gjournal, you should really never need
  to fsck a file system.  However, the only way to get them to mount is
  by doing the fsck.  Is there something else I should be doing instead
  of fsck?
 
  man 8 tunefs
 
 
 
 Yes...I apologize...I did that when I built the file system with
 newfs -J.  Here's the tunefs -p output for one of the file systems:
 
 # tunefs -p /dev/da2.journal
 tunefs: ACLs: (-a) disabled
 tunefs: MAC multilabel: (-l)   disabled
 tunefs: soft updates: (-n) disabled
 tunefs: gjournal: (-J) enabled
 tunefs: maximum blocks per file in a cylinder group: (-e)  2048
 tunefs: average file size: (-f)16384
 tunefs: average number of files in a directory: (-s)   64
 tunefs: minimum percentage of free space: (-m) 8%
 tunefs: optimization preference: (-o)  time
 tunefs: volume label: (-L)
 
 I'm concerned about this because the ones I've had problems with
 recently are 1.1TB arrays...I've got 2 8.6TB arrays that are journaled
 as well...and if I ever have to fsck them...that could take 1/2 the
 day...
 
 Any other thoughts?

Everything looks good. Do you have 'fsck_y_enable' in your rc.conf by
any chance? gjournal mode in fsck is only used for -p option, AFAIR.

-- 
Pawel Jakub Dawidek   http://www.wheel.pl
[EMAIL PROTECTED]   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgpjQcSutFUWM.pgp
Description: PGP signature


Re: Proxying broadcasts? SOLVED

2008-08-28 Thread Nejc Škoberne
Hey,

 The simple answer is no: if you want subnet-local broadcast traffic to
 be received, then your DB servers and your clients need to be on the
 same subnet.  Routers are designed and required to not propagate
 broadcast traffic, although you could switch to doing bridging rather
 than routing.  Or, you could set up Sybase's SQL.INI to list all of the
 databases you care about, if I recall correctly...

Actually, a little perl script (running daemonized on the firewall) for
each of the USERS networks solved my problem. It is somewhat ugly, but it
works.

-
#!/usr/local/bin/perl -w
# syproxy - Sybase broadcast proxy

use File::Basename;
use Fcntl qw(LOCK_EX LOCK_NB);
use IO::Socket;
use strict;
use Net::RawIP;

### Configuration
# Destination IP (broadcast) of the servers network
my $DESTINATION = 192.168.1.255;
# Sybase port
my $PORT = 2638;
# Broadcast address of the USERS network
my $LISTEN = 192.168.3.255;
# Packet length
my $MAXLEN = 1024;

my $sport;
my $source;
my $ipaddr;
my $data;
my $progname = basename($0);

# Selflock
open(SELFLOCK, $0) or die(Couldn't open $0: $!\n);
flock(SELFLOCK, LOCK_EX | LOCK_NB) or die(Aborting: another $progname is 
already running\n);
chdir('/');

# Double-fork to avoid leaving a zombie process behind:
exit if (fork());
exit if (fork());
sleep 1 until getppid() == 1;

# Create the socket
my $recv_socket = IO::Socket::INET-new(
 Proto  = 'udp',
 LocalPort  = $PORT,
 LocalAddr  = $LISTEN,
 Broadcast  = 1,
 ReuseAddr  = 1
) or die Creating socket: $!\n;

while (1) {
# Wait for packets
$recv_socket-recv($data, $MAXLEN);

# Get the sender address
($sport, $ipaddr) = unpack_sockaddr_in($recv_socket-peername);
$source = inet_ntoa($ipaddr);

# Construct the packet
my $send_socket = new Net::RawIP({udp ={}});
$send_socket-set({ip = {saddr = $source , daddr = $DESTINATION,
   tos = 22}, udp  = {source = $sport,
   dest = $PORT, data = $data }});

# Send the spoofed packet
$send_socket-send;
}
-

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


fileserver questions

2008-08-28 Thread Michael John Copeland

Hello All,
I am building a fileserver to store ripped movies, cds, etc on, to be 
used also as a home media center connected to tv. i'm going to use 1TB 
drives and was wondering if i should stick with ufs, or migrate to zfs. 
i've read about the zfs many times on the freebsd wiki, and it seems 
like a good choice. looking for pros and cons of each.

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


Network Card issues logging and aMule

2008-08-28 Thread disappearedng

Hi everyone
I am currently using Marvell Yukon's 88E8053 Network card and after a few
searches on google, i noticed that this card has a few issues. Fortunately,
I could use the network card without the need to do any manual labor.
However, I noticed that the network card crashes after perhaps 72 hours of
moderate to intense workload.

This has happened during the middle of scp, aMule downloading and many other
different types of application so I don't think that this is related to any
programs in general. 

I would like to know how I could log the activities of my network card or at
least be able to find out how I could diagnose this problem. What are the
steps that I should do?

Second, my aMule crashes unexpectedly after a couple of days. This causes me
to lose all my connections and queues so I am wondering whether there is a
method to diagnose this since the log file generated by amule under ~/.aMule
(logfile and logfile.bak) normally doesn't tell you much about it.

Thank you 
-- 
View this message in context: 
http://www.nabble.com/Network-Card-issues-logging-and-aMule-tp19209461p19209461.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: sed html tags

2008-08-28 Thread Joseph Olatt
On Thu, Aug 28, 2008 at 03:04:22PM -0400, An wrote:
 yes, it does work perfectly with the example I gave... the actual file
 is some like
 
 ... span  111 span www no /span /span  span yyy
  /span   span yyy  /span ...
 
 
 your command only returns ]# sed 's/\(span
 .*.*\/span\)\(.*\)\(span .*.*\/span\)/\2/' file
 
  
 
 
 I wish to rip all span xxx .* /span and obtain


If you wish to rip out all span xxx .* /span then the output would
be:

     


If that is what you want, then try the following:

sed 's/span [a-z]*[ 0-9a-z]*\/span//g; s/\/span//g'


But if Perl is already doing the job for you, I think this can be put to
rest.

regards,
joseph



 ...  span yyy  /span  span yyy  /span...
 
 
 i think sed should be able to do it, but the operator [ ^ (  ) ]* is
 not behaving as i think it would... perl does it alright, though : s


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


Re: fileserver questions

2008-08-28 Thread craig001
 Hello All,
 I am building a fileserver to store ripped movies, cds, etc on, to be
 used also as a home media center connected to tv. i'm going to use 1TB
 drives and was wondering if i should stick with ufs, or migrate to zfs.
 i've read about the zfs many times on the freebsd wiki, and it seems
 like a good choice. looking for pros and cons of each.
 thanks,
 Michael
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]



Hi Michael

I personally would consider zfs on freeBSD as unstable/experimental on
everything apart from AMD64's with loads of RAM to spare.  I have tried tuning
as per wiki on sparc64 and i386 compatible servers but still hit problems and
erratic kernel hangs.  My advise -- stick to UFS wrapped in goem goodness.

/Craig



This email has been handled by lerwick.hopto.org mail server
and has been scanned by 3 virus killers and spamassassin


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


BSD Process, etc Limits....

2008-08-28 Thread Agus
Hi guys

I've been googleing regarding this subject - Limiting users in mem,
proc and more- for a while now and think that the best and more
documented or at least the one that came in all my search results is
using login.conf...

Just wanted to ask if there is something in particular i should take
care, or maybe if theres another way to limit users taht is worth
commenting me please feel free to do it...

I will appreciate any feedback regarding thisthanks a lot

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


Re: BSD Process, etc Limits....

2008-08-28 Thread Wojciech Puchar

I've been googleing regarding this subject - Limiting users in mem,
proc and more- for a while now and think that the best and more
documented or at least the one that came in all my search results is
using login.conf...


yes this is exactly the way to do this.

but it doesn't work for multiple jails AFAIK when user IDs are the same
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 32-bit fbsd binaries on amd64 (we can already run 32bit linux/fc4 stuff, so this should work, right?)

2008-08-28 Thread Wojciech Puchar

Now, I'm sure, as usual, I'm being naive, but:

1) We can run 32-bit linux on amd64, so do we have 32-bit freebsd libs already?


yes.



2) If we don't have the 32-bit libs, is it possible to steal them


base system's 32-bit libs are installed by default, for older version 
through compat6x,5x,4x



directly from the corresponding i386 freebsd (as long as we haven't
rebuilt our kernel too many times), or should we in all cases be
building them (is there a wiki?  I'm sure setting the CFLAGS for


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


Re: Disk access is slowing my Eee PC

2008-08-28 Thread Wojciech Puchar

I've successfully installed FreeBSD 7-STABLE on my Eee PC 900. Just
one problem. Quite regularly the machine becomes unresponsive. I asume
because of something reading from or writing from the SSD, because it
always happens when the disk activity indicator is lit and it stops
immediately when it's turned off again. Sometimes it lasts as long as
20-30 seconds, just when using Firefox, OOo or similar.

Any ideas on how to deal with this? And just as interresting; what's the cause?


just an idea (i don't have EEE so it's ideas) - EEE simulates IDE drive 
through flash just like USB drives, adding mapping layer to simulate 512 
byte sectors writes and to prevent flash wornout.


this is VERY inefficient for random writes on USB flashdrives, and 
possibly here too.


as long as NAND flash chips won't be directly accessible, and some 
flash-designed filesystem will be writted it will be like that.

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


Re: Disk access is slowing my Eee PC

2008-08-28 Thread Wojciech Puchar

any kind of problems; I use mineone for writing stuff and reading with
KDE's konqueror, as well without any issues;

the installation was done in both cases follwing this guide:
http://www.unixarea.de/installEeePC.txt


just a comment - with 7.x it would be much better to make /tmp as tmpfs - 
it will then take only as much memory as needed.

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


Re: defrag

2008-08-28 Thread Wojciech Puchar


Essentially, the UFS file system (and its close relatives) is
intentionally fragmented in a controlled way as the files are written,


exactly that was invented over 20 years ago and still it works perfect.


at sort-of-random locations all over the disk, rather than starting at


it's definitely NOT sort of random.

it divides disk onto cylinder groups. it puts new files to the same 
cylinder group as other files in the same directory, BUT when files grow 
large (like over 1MB) it FORCES the fragmentation by switching to other 
cylinder group.


the reason is simple - having file fragmented every few megs doesn't make 
a speed difference, while it keeps every cylinder group from filling out.


for small files there will be almost always space available in the same 
cyl group. seek time within cylinder group is in order of 2-3ms at most.


UFS from the beginning optimized for rotational delay too, by dividing 
tracks into multiple angle zones, so if it has to fragment within 
cylinder group, it choose the space in the zone that after head movement 
it will be shortest rotational delay possible.

same for seeking between inode and file data.

unfortunately - modern drives hide real geometry, so such optimization 
doesn't work any more. this is quite a large loss, for 7200rpm drive
one rotation is 9 ms, average rotational delay 4.5ms, could be half that 
or less with such optimization possible.


UFS does not just prevent fragmentation, it tries to manage it (as 
unavoidable thing) to make it's effect as little as possible.



all of this worked fine and efficient on about 1 MIPS computer like VAX, 
after that UFS was changed a lot, but this basic mechanism is still the 
same.


except extreme cases there is never need for defragmenting UFS 
filesystem!!!





the remaining space as efficiently as possible, at the cost of speed.


while it still can keep fragmentation quite low with much less space 
available (unless it's really close to 0%), this low speed means mostly 
higher CPU load when selecting blocks to allocate. on modern machines like

1Ghz or more it's difficult to see any difference.


large files, you can adjust some of the parameters (e.g. using
tunefs(8)) so the filesystem will handle large files more efficiently,
at the expense of wasting space on small files.


rather by newfs, by making huge blocks like -b 65536 -f 8192, and make 
MUCH less inodes (like -i 1048576)


still - it will lose about as much space then as FAT32 with 8kB clusters, 
which is AFAIK default for FAT32 on large drives.


with huge files, such settings may not only speed things a bit, but 
actually save space by not reserving that much for inodes and bitmaps.

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


Re: defrag

2008-08-28 Thread Wojciech Puchar

you will get block arranged like this (where 1 is file 1's data,2 is
data from file 2 and 3 from file 3):

123123123123123123123123213213


This is just untrue. I don't much like Microsoft, but I don't think


i AM sure it is like that under DOS up to 6.2 (where i tested it), and 
almost sure with windoze 9598.


possibly untrue in Win NT, or just more blocks for each files like


 etc.


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


Re: fileserver questions

2008-08-28 Thread Wojciech Puchar

Hello All,
I am building a fileserver to store ripped movies, cds, etc on, to be used
also as a home media center connected to tv. i'm going to use 1TB drives and


UFS works perfect on my 6*500GB gstriped volume. RAID5 will be OK but for 
large files, for small files writes will be suboptimal (but not reads)

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


Re: fileserver questions

2008-08-28 Thread Wojciech Puchar

I personally would consider zfs on freeBSD as unstable/experimental on
everything apart from AMD64's with loads of RAM to spare.  I have tried tuning


for large files UFS offers near-raw performance.
it can't be much better.

it can be less efficient on concurrent operations because MAXBSIZE is 
128KB on FreeBSD.


i don't know why it's still that small!

i changed

#define MAXPHYS (128 * 1024)   /* max raw I/O transfer size */

to

#define MAXPHYS (1024 * 1024)   /* max raw I/O transfer size */


on EVERY machine i own (except those having 128MB RAM) and it works fine, 
while there are huge difference.


you WILL saturade gigabit ethernet port with just 2 gstriped drives 
and many concurrent users fetching files.


make sure gstripe use huge stripes not small (like 256MB), to speed up 
multiple concurrent access instead of single linear read speed.

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


Re: Network Card issues logging and aMule

2008-08-28 Thread Wojciech Puchar

Hi everyone
I am currently using Marvell Yukon's 88E8053 Network card and after a few
searches on google, i noticed that this card has a few issues. Fortunately,
I could use the network card without the need to do any manual labor.
However, I noticed that the network card crashes after perhaps 72 hours of
moderate to intense workload.


well i was unfortunate enough to use it once in new server (it was 
integrated on motherboard).


with server like load it never worked more than a few hours.

the simplest solution is to buy some network card and plug it to your 
computer

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


how to run JDownloader on freebsd 7?

2008-08-28 Thread Tsu-Fan Cheng
Hi,
   I just download the JDownloader to use with megaupload, I have
jdk1.5 installed, but when running JDownloader.jar
java JDownloader.jar, it show
Exception in thread main java.lang.NoClassDefFoundError: JDownloader/jar

how should I do this right?

thanks!!


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


Re: How to eject an USB disk on FreeBSD

2008-08-28 Thread Olivier Nicole
  Is there a command in FreeBSD that ejects a USB disk like in Windows?
  
  I mount the USB disk with automount daemone (amd).
  
 
 
 You have to umnount it using the umount command
 usually umount /mountpount does the tick

The disk is mounted by automout daemon (amd), so any access to the
disk will remount it, even if it has been umount'ed.

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


Re: how to run JDownloader on freebsd 7?

2008-08-28 Thread Norberto Meijome
On Thu, 28 Aug 2008 21:46:45 -0400
Tsu-Fan Cheng [EMAIL PROTECTED] wrote:

 java JDownloader.jar,

try 

java -jar JDownloader.jar 

_
{Beto|Norberto|Numard} Meijome

And that's one reason we like to believe in genius. It gives us an excuse for
being lazy. Paul Graham

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Disk access is slowing my Eee PC

2008-08-28 Thread Yi Wang
On Fri, Aug 29, 2008 at 1:07 AM, Lars Stokholm [EMAIL PROTECTED] wrote:
 Hi,

 I've successfully installed FreeBSD 7-STABLE on my Eee PC 900. Just
 one problem. Quite regularly the machine becomes unresponsive. I asume
 because of something reading from or writing from the SSD, because it
 always happens when the disk activity indicator is lit and it stops
 immediately when it's turned off again. Sometimes it lasts as long as
 20-30 seconds, just when using Firefox, OOo or similar.

 Any ideas on how to deal with this? And just as interresting; what's the 
 cause?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


Does original OS has the same performance?

I installed 7-stable on it. works fine.

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


might be OT, sorry.

2008-08-28 Thread Gary Kline

I have searched the OO website and read the manual with OO [2.4.0], 
but have not been able to find this one.  Can anyone tell me how to
replace 4 underscores  with 4 Section characters?  In HTML;
the section symbols are printed by typing sect;  Yes, it is that
simple.

I can locate the  that separate my meditative Jottings [or 
aphorisms]--thanks, Matthew, that's what they really are. [1]  But I
can't figure out how to substitute the 4  for 4 S-like symbols.
Anybody onlist have any URL that will show me how to make this subs,
please write me offlist.

And yes, I have tried using the table of non-ASCII characters; that may
work for a byte at a time, but not for global substitituions.  At least
I haven't found the magic keystrokes.

tia, people,

gary







-- 
[1]. (Altho if Marcus Aurelius' thoughts can be called his Meditations, 
  then why not my *non*-poetry?)

 Gary Kline  [EMAIL PROTECTED]  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Wine security question...

2008-08-28 Thread Christopher Joyner
Is it possible to use wine in a secure way?  I had a warning about it after 
installing it from the ports.  So I was wondering if it's possible to limit it 
to a certain area.  Like a sandbox?



 In Love in Jesus Christ, Or Lord and Savior.


For God so loved the world, that he gave his only *begotten Son, that whosoever 
believeth in him should not perish, but have everlasting life.
--John 3:16



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


Where is wrong with tcpdump?

2008-08-28 Thread EdwardKing
I want to watch ip:172.0.10.2 port:19 TCP information,so I use following 
command:
#tcpdump tcp port 19 host 172.0.10.2
tcpdump: syntax error

Why? How to do it?

Thanks


--
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s) is intended only for the use of the intended
recipient and may be confidential and/or privileged of Neusoft Corporation, its 
subsidiaries and/or its affiliates. If any reader of this communication is not 
the intended recipient, unauthorized use, forwarding, printing, storing, 
disclosure or copying is strictly prohibited, and may be unlawful. If you have 
received this communication in error, please immediately notify the sender by 
return e-mail, and delete the original message and all copies from your system. 
Thank you. 
---

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


Re: Where is wrong with tcpdump?

2008-08-28 Thread Olivier Nicole
 tcpdump tcp port 19 host 172.0.10.2

tcpdump tcp port 19 and host 172.0.10.2
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defrag

2008-08-28 Thread Ian Smith
On Thu, 28 Aug 2008 13:33:35 +0200 (CEST)
Wojciech Puchar [EMAIL PROTECTED] wrote:

  CP/M was single-user and was used on floppies up to 360kB AFAIK, 

And MP/M was multi-user, using the same filesystem.  From memory, there 
was perhaps one byte that indicated which user owned a file :)

  NTFS is a theft of OS/2 HPFS. they didn't even bothered to use other 
  partition ID :), but they managed to f..k^H^H^H^Hextend it's 
  functionality, so it's actually even slower than FAT, and too - does 
  nothing to prevent fragmentation.

It wasn't (straight-up) theft; MS cut a deal with IBM to use HPFS and 
OS/2, more or less in exchange for letting IBM licence Windows 3.1 as 
WINOS/2

When things went sour - google provides days of happy reading if you're 
interested - MS morphed it into NTFS for NT, cruelled the deal with IBM 
so OS/2 couldn't run NT/Win95 apps (signing OS/2's death warrant, though 
it took a long time to die) and stopped distributing OS/2 themselves.

  This is normal, as Microsoft make a problems to be able to fix it 
  (creating 3 times more others) in new releases, so idiots continue to buy 
  new versions of windoze and new hardware, just to do as simple task as 
  writing a few-paged document or view a webpage

Yeah, yeah :)  I'd be surprised if NTFS isn't as defrag-proof as HPFS, 
which as I recall had self-defragging garbage-collecting features built 
in; certainly I never felt the need to defrag any HPFS volumes, and I 
used it for quite a few years to run BBS and Fidonet stuff, not once 
losing any data .. HPFS was a very resiliant and reliable filesystem.

If you compare:
% find /usr/src -name *hpfs*
with
% find /usr/src -name *ntfs*

you'll go 'hmmm ..' and if you look through the sources you'll see whole 
large slabs of code that are shared between those two implementations, 
by the same author.

I've never tried writing to HPFS volumes, but I did recover many years 
of work and play from a number of HPFS disks and still hope to do some 
more someday, so I was glad to see the code is still there in 7.0 ..

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


Re: Where is wrong with tcpdump?

2008-08-28 Thread Paul A. Procacci
EdwardKing wrote:
 I want to watch ip:172.0.10.2 port:19 TCP information,so I use following 
 command:
 #tcpdump tcp port 19 host 172.0.10.2
 tcpdump: syntax error

 Why? How to do it?

 Thanks


 --
 Confidentiality Notice: The information contained in this e-mail and any
 accompanying attachment(s) is intended only for the use of the intended
 recipient and may be confidential and/or privileged of Neusoft Corporation, 
 its subsidiaries and/or its affiliates. If any reader of this communication 
 is not the intended recipient, unauthorized use, forwarding, printing, 
 storing, disclosure or copying is strictly prohibited, and may be unlawful. 
 If you have received this communication in error, please immediately notify 
 the sender by return e-mail, and delete the original message and all copies 
 from your system. Thank you. 
 ---

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
   
tcpdump tcp port 19 and host 172.0.10.2

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


Re: defrag

2008-08-28 Thread RW
On Fri, 29 Aug 2008 02:43:40 +0200 (CEST)
Wojciech Puchar [EMAIL PROTECTED] wrote:

  you will get block arranged like this (where 1 is file 1's data,2
  is data from file 2 and 3 from file 3):
 
  123123123123123123123123213213
 
  This is just untrue. I don't much like Microsoft, but I don't think
 
 i AM sure it is like that under DOS up to 6.2 (where i tested it),
 and almost sure with windoze 9598.

Well, you can't really say  it's just like FAT if you've only looked
at FAT.

 possibly untrue in Win NT, 

From what I've read, it's a journalling filesytem  based on a
B+ tree with small files stored directly in the tree and larger files in
variable-length extents. It sounds superficially similar to several
UNIX filesystems. 

I see that ext4 the successor to ext3, and which also has extent
support, has a defragmenter. And it appears to give significant
increases in read speeds. 

http://ols.108.redhat.com/2007/Reprints/sato-Reprint.pdf
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Make World Inside Jail

2008-08-28 Thread Jason C. Wells
I currently use a separate machine to make world and to make and archive 
ports and packages.  I would like to retire that machine and move that 
functionality into a jail. I am due to switch to 7.1 from 6.3 soon.


I understand that I cannot run divergent kernels in the jails.

I could still make a 7.1-RELEASE world on a 6.3-RELEASE jail and 
installworld into the jail.  That would leave me with a very strange 
jail system with a new generation system (binaries / libs / includes / 
utils / ports) with an old generation kernel.


The only purpose of the jails is compiling world and installing ports. 
The parent system on which the jails reside cannot be made unreliable 
due to running the mishmash old/new jails.


I'll need to run NFS servers and telnet servers inside the jails. 
Systems on my network would mount the jail's /usr/obj, /usr/src and 
/usr/ports via NFS to facilitate installworld and port upgrades.


Can I make this work? Am I asking for trouble?

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


RE: OT:KVM Switch

2008-08-28 Thread Jerry Dunham
On 27 Aug 2008 at 22:46, David Christensen wrote:

 Mark Busby wrote:
  Looking at a Trendnet KVM TK-407K switch. It shows to work with linux. Has
  anyone had success using it with FreeBSD?  I hate to waste time and money,
  even with the option of resale on eslay.  Thanks for your time.

I don't recall the model numbers, but a couple of TrendNet KVMs I bought
for a company I used to work for turned out to be flakey. At least they
were cheap and not too painful to throw away.

 I've had good luck with my IOGear Miniview GCS 78 -- 8-port VGA, PS/2 
 keyboard,
 PS/2 mouse.

I've used several IOGear KVMs with great success, from 2-port to 8-port.
In fact, I'm using a 4-port IOGear MiniView as I type this.


--
Jerry Dunham
Volunteer, Etosha Rescue  Adoption Center
Volunteer, American Black  Tan Coonhound Rescue
[EMAIL PROTECTED]

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


Why tcpdump don't work?

2008-08-28 Thread EdwardKing
I have a server and a client,they use TCP to communication.For example,when 
client send a message to server,the server return the same message to 
client,then client show it.When client or server shutdown,it will send FIN.So I 
want to use tcpdump to watch it. The server and client in the same machine,the 
IP is 172.0.10.2 and the port is 

#ifconfig
le0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 
1500
 options=8VLAN_MTU
 ether 00:0b:31:76:35:31
 inet6 fe80::20c:29ff:fe76:356a%le0 prefixlen 64 scopeid 0x1 
 inet 172.0.10.2 netmask 0xff00 broadcast 172.0.10.255
 media: Ethernet autoselect
 status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT metric 0 mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
 inet6 ::1 prefixlen 128 
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
 inet 127.0.0.1 netmask 0xff00 

#tcpdump tcp port  and host 172.0.10.2
tcpdump:verbose output suppressed,use -v or -vv for full protocol decode 
listening on le0,link-type EN10MB (Ethernet),capture size 96 bytes

#tcpdump -v tcp port  and host 172.0.10.2
tcpdump:listening on le0,link-type EN10MB (Ethernet),capture size 96 bytes

when client and server communication or client shutdown,tcpdump don't show any 
message!
Why? I am very puzzle with it!  How to show server and client tcp communication 
information by using tcpdump? 

Thanks!


--
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s) is intended only for the use of the intended
recipient and may be confidential and/or privileged of Neusoft Corporation, its 
subsidiaries and/or its affiliates. If any reader of this communication is not 
the intended recipient, unauthorized use, forwarding, printing, storing, 
disclosure or copying is strictly prohibited, and may be unlawful. If you have 
received this communication in error, please immediately notify the sender by 
return e-mail, and delete the original message and all copies from your system. 
Thank you. 
---

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


  1   2   >