Re: How to make man pages

2010-03-31 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 31/03/2010 04:00:15, Fbsd1 wrote:
 Where can I find documentation on the procedure to create man pages
 for a port?

If you want to write a man page from scratch, probably the best way to
get started is to just copy a man page from the base system and edit it
to taste.  See groff(1) for documentation on the command used to format
man pages from source, and groff_mdoc(7) for details on the groff macro
syntax.  groff+mdoc might be a markup language, but it's nothing at all
like HTML.

If you're after how to install man pages for a port, then look at:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-manpages.html

Note that the MANX and other ports Macros only affect the pkg-list and
compressing the man pages /after/ installation. You'll still have to put
in some code to copy your self-written man page into place.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuy+P8ACgkQ8Mjk52CukIxcggCeLR3OcpdwZ/OZGZv623DawCC9
E+4AoJNMvoINM9xkL2CdYBwz/ozPnAgK
=qVD0
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to make man pages

2010-03-31 Thread Fbsd1



On 31/03/2010 04:00:15, Fbsd1 wrote:
Where can I find documentation on the procedure to create man pages
for a port?


If you want to write a man page from scratch, probably the best way to
get started is to just copy a man page from the base system and edit it
to taste.  See groff(1) for documentation on the command used to format
man pages from source, and groff_mdoc(7) for details on the groff macro
syntax.  groff+mdoc might be a markup language, but it's nothing at all
like HTML.

If you're after how to install man pages for a port, then look at:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-manpages.html

Note that the MANX and other ports Macros only affect the pkg-list and
compressing the man pages /after/ installation. You'll still have to put
in some code to copy your self-written man page into place.

Cheers,

Matthew


OK i want to write a man page from scratch. So lets say i want to use
/usr/share/man/man2/jail.2.gz as my starting sample. How do I convert 
this .gz file to a plain text file so I can edit it with ee? And how do 
I turn the edited text file back in to a man page .gz file?


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


Re: How to make man pages

2010-03-31 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 31/03/2010 08:54:25, Fbsd1 wrote:
 OK i want to write a man page from scratch. So lets say i want to use
 /usr/share/man/man2/jail.2.gz as my starting sample. How do I convert
 this .gz file to a plain text file so I can edit it with ee?

   % cp /usr/share/man/man2/jail.2.gz .
   % gunzip jail.2.gz
   % mv jail.2 myname.2
   % ee myname.2

 And how do
 I turn the edited text file back in to a man page .gz file?

To compress the groff source:

   % gzip myname.2

To render the groff source as ascii text (what the man(1) command does):

   % groff -mdoc -Tascii myname.2 | less

or

   % gzcat myname.2.gz | groff -mdoc -Tascii | less

In general though, you should keep the man page source uncompressed
while you're working on it and within the port; install it uncompressed
and leave it to the ports machinery to compress it after installation.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuzE+0ACgkQ8Mjk52CukIx6VgCfV9R1LOrqcjzlnwSEMNHAT/Ys
iOEAniohL9mC7ehGZXKub+9RHKmI87px
=fhC7
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Copying mirrored partitions - will this work?

2010-03-31 Thread Mike Clarke
On Saturday 20 March 2010, Mike Clarke wrote:

 I'm currently running 8.0-RELEASE and am considering experimenting
 with 8.0-STABLE. I'd like to preserve my existing system in case
 things go pear-shaped so I'll copy the entire system onto a spare
 slice and then use csup to upgrade the copy to STABLE. Normally I'd
 go through the steps of bsdlabel, newfs and then dump|restore to
 create the copy but I'm wondering if I can take advantage of my
 recently created gmirror to cut down the work.

 I have two 500GB disks, /dev/ad4 and /dev/ad8, each partitioned into
 4 slices of 88, 88, 42 and 259GB. My system is installed on the first
 slices (ad4s1 and ad8s1) which are mirrored as /dev/mirror/gm0. The
 second slices (ad4s2 and ad8s2) are currently unused. My thoughts are
 to temporarily add ad4s2 into gm0 with gmirror insert gm0 ad4s2 and
 wait for the mirror to synchronise. I should then be able to remove
 the temporary addition with gmirror remove gm0 /dev/ad4s2 at which
 point ad4s2 should be a duplicate of the original system and I can
 then go ahead and create a new mirror with gmirror label -b load gm1
 ad4s2 and gmirror insert gm1 ad8s2. After editing /etc/fstab in
 the new mirror to use gm1 instead of gm0 I should then be able to
 boot into the system on slice 2 and upgrade it to STABLE while still
 keeping my original system to fall back to if required.

 Is this approach of moving disks from one mirror to another workable,
 or have I missed something that would lead me into deep trouble? I
 don't mind unduly if I make a mess of the second slice and have to
 start again but I don't want to lose the contents of my original
 system on slice 1.

I decided to give it a try and the process went through very smoothly. 
It was much less tedious than bsdlabel - newfs - dump|restore, and 
quicker too. The mirror synchronised at a bit over 100 MB/sec but dump|
restore only gave me about 10 MB/sec.

The system has now been running for a bit over a week without any 
problems with either the original or cloned slices so I'm quite 
confident that things are OK.

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


Re: How to make man pages

2010-03-31 Thread Jerry
On Wed, 31 Mar 2010 15:54:25 +0800, Fbsd1 fb...@a1poweruser.com
articulated:

 
  On 31/03/2010 04:00:15, Fbsd1 wrote:
  Where can I find documentation on the procedure to create man
  pages for a port?
  
  If you want to write a man page from scratch, probably the best way
  to get started is to just copy a man page from the base system and
  edit it to taste.  See groff(1) for documentation on the command
  used to format man pages from source, and groff_mdoc(7) for details
  on the groff macro syntax.  groff+mdoc might be a markup language,
  but it's nothing at all like HTML.
  
  If you're after how to install man pages for a port, then look at:
  
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-manpages.html
  
  Note that the MANX and other ports Macros only affect the pkg-list
  and compressing the man pages /after/ installation. You'll still
  have to put in some code to copy your self-written man page into
  place.
  
  Cheers,
  
  Matthew
  
 OK i want to write a man page from scratch. So lets say i want to use
 /usr/share/man/man2/jail.2.gz as my starting sample. How do I convert 
 this .gz file to a plain text file so I can edit it with ee? And how
 do I turn the edited text file back in to a man page .gz file?

If you visit this URL:
http://www.tldp.org/LDP/abs/html/writingscripts.html you will see
links to various scripts. One of them is for creating 'man' pages:
http://www.tldp.org/LDP/abs/html/contributed-scripts.html#MANED

You might want to investigate its usefulness for your project.

-- 
Jerry
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

FORTUNE REMEMBERS THE GREAT MOTHERS: #5

And, and, and, and, but, but, but, but!


Mrs. Janice Markowsky, April 8, 1965
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: dd cloning slightly different disks

2010-03-31 Thread Christoph Kukulies
Thanks, Peter and all others. Indeed, in contrary to the expected, I 
went into my office this morning, swapped the
HD against the SSD, and was able to boot both FreeBSD, Windows without a 
hitch or any other tweaking.


The dd over USB 2.0 to the SSD from the WD hard disk took 21261 s 
(nearly 6 hours)
I would possibly have had better results if I had both disks connected 
to a SATA controller

and did the dd there, but so what, I'm there happily.

Thanks for sharing.

--
Christoph
Will post bonnie results later.

Peter Steele schrieb:

Theoretically, doing a straight dd copy of one disk to another and then 
swapping in that disk should work. I've done it, with no other tweaking needed. 
I've never done it with mixed OS instances on the same disk, or for that matter 
with a solid state drive. You'll lose the trailing 12GB of your disk, although 
you might be able to expand the last partition of whatever OS uses it to 
include this lost space

-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Christoph Kukulies
Sent: Tuesday, March 30, 2010 8:48 AM
To: freebsd-questions@freebsd.org
Subject: dd cloning slightly different disks

Though not 100% FreeBSD centric, my question, I know that disk partitioning 
experts are around here.
My noteook HD is a WD 5000BEVT, (500GB). Today I bought a Kingston SDnowV+ 
Solid State drive, 512GB, with the intention to make my notebook a bit faster. 
It's an Intel Core 2 Duo,
7400 CPU.

The WD disk shows as having 976773168 sectors (500108 MB), the SSD has 
1000215216 sectors (512110 MB).

At the moment I'm copying (dd) from the WD internal disk to the SSD which I had 
put into an external SATA Icybox.

I'm hoping to be able to use my FreeBSD and Windows partitions afterwards 
somehow, possibly with some geometry tweaking or what. Due to the different 
disk geometry I'm expecting that the partition table entries will be wrong.

Any clues how I should proceed when the copy will be done in 7 hours or so? 
(20MB/s is the transfer rate I got from a short test that I did before starting 
the big copy).

--
Christoph
  


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


Default labeling and space for rebuilding the kernel.

2010-03-31 Thread Leon Meßner
Hi,

if one uses the default labeling with current installer it is not
possible to rebuild the kernel (GENERIC). It fails on installing the wlan.ko.

Isn't that wrong somehow ?

=== wi (install)
install -o root -g wheel -m 555   if_wi.ko /boot/kernel
install -o root -g wheel -m 555   if_wi.ko.symbols /boot/kernel
=== wlan (install)
install -o root -g wheel -m 555   wlan.ko /boot/kernel
install -o root -g wheel -m 555   wlan.ko.symbols /boot/kernel

/: write failed, filesystem is full
install: /boot/kernel/wlan.ko.symbols: No space left on device
*** Error code 71

Stop in /usr/src/sys/modules/wlan.
*** Error code 1

regards,
Leon


pgp1J9IYK1Sgu.pgp
Description: PGP signature


Re: freebsd-8 support for dell R710 SATA raid-0

2010-03-31 Thread krad
On 31 March 2010 02:13, Adam Vande More amvandem...@gmail.com wrote:

 On Tue, Mar 30, 2010 at 6:56 PM, John comp.j...@googlemail.com wrote:



 Hi, thanks for your input.

 I have an idea. Would the answer be to install the OS to a SD card, boot
 from that then use GPT or ZFS to see the drive once the OS is installed?

 What i mean is, the disks are attached to the SATA raid card. if I don't
 select any disks in the raid, will they be seen by the OS? then I could
 just use zfs for raid functionality.

 Freebsd 8 sees the card, just not the disks. The server has a sd slot.
 Maybe this is what it's for?
 --
 John - comp dot john at googlemail dot com
 OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop
 GPG: 0xF08A33C5


 Your best bet would be to configure the drives as JBOD and see if it
 detects the disks.  Post dmesg from that.

 --
 Adam Vande More



we are testing one at work at the moment. I think its a driver issue. We are
looking at either putting in a perc card or swapping it for the next chasis.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mkuzip and/or geom_uzip changes?

2010-03-31 Thread Tim Judd
Hi All,

Just starting to see if I can find other reports.  You all probably
have had the more than one pair of eyes looking at a thing is better
than my eyes alone.  This is why I'm writing now, as I'm starting the
discovery.

Let me background this a little bit.  I only started looking into this
because mkuzip and it's counterpart, geom_uzip are throwing errors on
FreeBSD8 i386


scenario (/etc/src.conf in effect, removing *LOTS* of stuff with knobs):
  make DESTDIR=/home/small8 installworld installkernel distribution
  mv /home/small8/boot /home/small8-boot/
  makefs -t ffs /home/small8/usr.img /home/small8/usr/
  mkuzip -o /home/small8/usr.uzip /home/small8/usr.img  [*]
  chflags -R noschg /home/small8/usr/*
  rm -rf /home/small8/usr/* /home/small8/usr.img
  ee /home/small8/etc/rc.d/mountcritlocal
  [**]
  makefs -t ffs /home/small8-boot/mfsroot /home/small8/
  gzip --best /home/small8-boot/mfsroot
  ee /home/small8-boot/boot/loader.conf
  [***]
  rm /home/small8-boot/boot/kernel/*.symbols
  gzip --best /home/small8-boot/boot/kernel/kernel
  mkisofs -U -J -r -V FreeBSD8 -b boot/cdboot -no-emul-boot
-iso-level 4 -o /home/small8.iso /home/small8-boot/


[*]: mkuzip inserts a script header that is broken.  module name it's
searching for may have been renamed?
[**]: Edited mountcritlocal to mount the usr.uzip file as by using the
above script header, throws errors
[***]: added zlib and geom_uzip modules to load to the boot image, to
satisfy the script header's requirements.

OK, the above scenario creates about a 33MB usr.uzip, and a 68MB iso.
Small enough to apparently fit into the undocumented 50 or 100MB size
limit of mfs_root module


The problem:
  mkuzip generates a few lines as a script in the head of the
resulting *.uzip file.  Two problems...
1) the module it queries for is geom_uzip (kldstat -m $m), but
FreeBSD8 names the geom_uzip module (i guess, internally) as g_uzip.
mkuzip's generated image will never find the module if they're not
named the same.
2) even with geom_uzip module and it's dependency zlib loaded, i don't
get a mdconfig node '/dev/md?.uzip' to appear.

It's been forever since I touched uzip, so I have to ask.


Looking at the cvsweb, (as a bonus question, what's the svn website
address to look at source files?) mkuzip program last modified 3 years
(2 months for the Makefile), geom_uzip module Makefile last modified 4
years ago.

3-4 years yield a median FreeBSD version 6.2.  Have we broken
something in 7 or 8?



The request:
  Is it a PEBKAC?  ID 10T error?  Duplicatable?


I'm gonna research what I can, when I can.  I would expect to see
something pop up clearly if it is a regression.  Can I ask you all to
use your eyes or past knowledge if something is broken?


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

Re: Copying mirrored partitions - will this work?

2010-03-31 Thread krad
On 31 March 2010 10:22, Mike Clarke jmc-freeb...@milibyte.co.uk wrote:

 On Saturday 20 March 2010, Mike Clarke wrote:

  I'm currently running 8.0-RELEASE and am considering experimenting
  with 8.0-STABLE. I'd like to preserve my existing system in case
  things go pear-shaped so I'll copy the entire system onto a spare
  slice and then use csup to upgrade the copy to STABLE. Normally I'd
  go through the steps of bsdlabel, newfs and then dump|restore to
  create the copy but I'm wondering if I can take advantage of my
  recently created gmirror to cut down the work.
 
  I have two 500GB disks, /dev/ad4 and /dev/ad8, each partitioned into
  4 slices of 88, 88, 42 and 259GB. My system is installed on the first
  slices (ad4s1 and ad8s1) which are mirrored as /dev/mirror/gm0. The
  second slices (ad4s2 and ad8s2) are currently unused. My thoughts are
  to temporarily add ad4s2 into gm0 with gmirror insert gm0 ad4s2 and
  wait for the mirror to synchronise. I should then be able to remove
  the temporary addition with gmirror remove gm0 /dev/ad4s2 at which
  point ad4s2 should be a duplicate of the original system and I can
  then go ahead and create a new mirror with gmirror label -b load gm1
  ad4s2 and gmirror insert gm1 ad8s2. After editing /etc/fstab in
  the new mirror to use gm1 instead of gm0 I should then be able to
  boot into the system on slice 2 and upgrade it to STABLE while still
  keeping my original system to fall back to if required.
 
  Is this approach of moving disks from one mirror to another workable,
  or have I missed something that would lead me into deep trouble? I
  don't mind unduly if I make a mess of the second slice and have to
  start again but I don't want to lose the contents of my original
  system on slice 1.

 I decided to give it a try and the process went through very smoothly.
 It was much less tedious than bsdlabel - newfs - dump|restore, and
 quicker too. The mirror synchronised at a bit over 100 MB/sec but dump|
 restore only gave me about 10 MB/sec.

 The system has now been running for a bit over a week without any
 problems with either the original or cloned slices so I'm quite
 confident that things are OK.

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



ive cloned many systems in this way before, and it does work. Not just
gmirror two, it should work with any mirroring, hardware or software.  One
thing to remember though is that it works at the block level. Therefore if
the drive if very big with a small % of data on it might be quicker to copy
it manually.

There is always an exception though. If you are using zfs, then only the
data on the drive is copied. This is because zfs works at block, and file
system levels, and therefore is aware of what is allocated on the disks.

One thing about your dump/restore speed. Did you play around with larger
block sizes? Increasing it should give you better throughput.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /boot.config

2010-03-31 Thread krad
On 31 March 2010 04:53, Fbsd1 fb...@a1poweruser.com wrote:

 Dan Nelson wrote:

 In the last episode (Mar 30), Fbsd1 said:

 During the boot process I want to change the device used to boot from.
  From the default 0:ad(0,a)/boot/loader
 to 0:da(0,a)/boot/loader forcing the boot to continue from usb stick.

 Here is the problem, the bios have no option to boot from USB device.  So
 thinking let the bios point to first drive to start the boot process and
 have a /boot.config file to redirect to booting from the USB stick.  I am
 assuming the '0' zero will mean the first USB device.

 Is there any command i can use to verify the single USB stick is the 0
 device?


 If you boot DOS from a floppy, can you see the USB stick as B: or C: ?  If
 not, then the BIOS probably has no USB support at all, and you'll need to
 put a small boot partition somewhere on your hard drive to pull the kernel
 from.  128MB is large enough for a /boot directory, and you can set
 vfs.root.mountfrom=ufs:/dev/da0s1a in loader.conf to make it mount its
 root filesystem from the USB stick (since at that point the kernel has
 loaded its own USB drivers).

 If you do see the USB drive from a DOS boot floppy, try entering
 1:da(0,a)? at the boot block prompt and see if it lists the files in
 your
 USB filesystem.  If it does, then 1:da(0,a)/boot/loader should let you
 boot FreeBSD.



 The USB stick is plugged in before booting. During boot I select option 6
 from Freebsd menu to go direct to the loader prompt. I have ok on command
 line. I enter
  vfs.root.mountfrom=ufs:/dev/da0s1a and get not found after hitting
 enter key.
 At the ok prompt I enter ? for list of available boot devices and only have
 ad0 listed.

 It seems the da0 device USB stick is not recognized yet.

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



try legacy usb in the bios, it may help
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Setting firewall symbolic constants

2010-03-31 Thread Walter

Bob Hall wrote:


I use
onet=`ifconfig rl0 | grep inet  | awk '{print $6}'`
where rl0 is the outward facing NIC on this gateway.
 


Thanks.  But I think I like a method which allows me to get the
device names also, to allow a 'hands-off' configuring of the fw.
I'll keep your code for future reference, tho.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /boot.config

2010-03-31 Thread Fbsd1

krad wrote:

On 31 March 2010 04:53, Fbsd1 fb...@a1poweruser.com wrote:


Dan Nelson wrote:


In the last episode (Mar 30), Fbsd1 said:


During the boot process I want to change the device used to boot from.
 From the default 0:ad(0,a)/boot/loader
to 0:da(0,a)/boot/loader forcing the boot to continue from usb stick.

Here is the problem, the bios have no option to boot from USB device.  So
thinking let the bios point to first drive to start the boot process and
have a /boot.config file to redirect to booting from the USB stick.  I am
assuming the '0' zero will mean the first USB device.

Is there any command i can use to verify the single USB stick is the 0
device?


If you boot DOS from a floppy, can you see the USB stick as B: or C: ?  If
not, then the BIOS probably has no USB support at all, and you'll need to
put a small boot partition somewhere on your hard drive to pull the kernel
from.  128MB is large enough for a /boot directory, and you can set
vfs.root.mountfrom=ufs:/dev/da0s1a in loader.conf to make it mount its
root filesystem from the USB stick (since at that point the kernel has
loaded its own USB drivers).

If you do see the USB drive from a DOS boot floppy, try entering
1:da(0,a)? at the boot block prompt and see if it lists the files in
your
USB filesystem.  If it does, then 1:da(0,a)/boot/loader should let you
boot FreeBSD.



The USB stick is plugged in before booting. During boot I select option 6
from Freebsd menu to go direct to the loader prompt. I have ok on command
line. I enter
 vfs.root.mountfrom=ufs:/dev/da0s1a and get not found after hitting
enter key.
At the ok prompt I enter ? for list of available boot devices and only have
ad0 listed.

It seems the da0 device USB stick is not recognized yet.

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




try legacy usb in the bios, it may help



My bios have no reference to USB at all.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: u3g network problem

2010-03-31 Thread Alejandro Imass
On Tue, Mar 30, 2010 at 5:27 PM, Patrick Lamaiziere
patf...@davenulle.org wrote:
 (8-STABLE/i386)

 Hi,

 I've got some troubles with a 3G connection. I don't know which things
 I should check to debug this:

 I use ppp to connect and it works fine. But after a while (not a long
 time), I don't have any reply to DNS requests, as far I can see with
 wireshark...


What are you using to dial to your 3g network? (I use wvdial, and love it)

I've seen this happen on my 3g network as well. It seems that the ISP
randomly updates the DNS to a broken one. So write down the DNSs when
it's actually working (cat /etc/resolv.conf) and make yourself a
little script that updates them back to the working DNSs here is mine
for example (adjust to your working DNSs):


# cat ./dnsdigitel

#!/bin/sh
echo nameserver 204.59.152.208  /etc/resolv.conf
echo nameserver 57.73.127.195  /etc/resolv.conf

So when it stops resolving I just ./dnsdigitel and that's it. Of
course, this could be easily automated, etc. but it's a quick fix to
your problem. Now, the interesting this is that your ISP does exactly
the same as my ISP, it changes the DNS randomly to non-working ones,
curious.

Best,
Alejandro Imass

 Then if I use an IP, it works. So it looks like it is a problem with
 DNS. I've tried with an other dns server with the same result. I've
 also tried with a local dns server to cache the requests. It looks to
 help a bit.

 Anyway I also use a ssh tunnel to connect to my server and (on the
 server) I can see a lot of CLOSED sockets with netstat, and a lot of
 sshd processes stuck, even after days. So there is something wrong with
 the connection.

 Any idea or suggestion?

 Thanks, regards.


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

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


RELENG_8 and clang

2010-03-31 Thread Svein Skogen
What is the current status of getting FreeBSD and clang to play nice
with eachother? Does world and kernel build? How far along is the
project to replace GCC in the base system?

//Svein

-- 
+---+---
  /\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
+---+---
 If you really are in a hurry, mail me at
   svein-mob...@stillbilde.net
 This mailbox goes directly to my cellphone and is checked
even when I'm not in front of my computer.

 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/




signature.asc
Description: OpenPGP digital signature


Re: Default labeling and space for rebuilding the kernel.

2010-03-31 Thread Michael Powell
Leon Meßner wrote:

 Hi,
 
 if one uses the default labeling with current installer it is not
 possible to rebuild the kernel (GENERIC). It fails on installing the
 wlan.ko.
 
 Isn't that wrong somehow ?
 
 === wi (install)
 install -o root -g wheel -m 555   if_wi.ko /boot/kernel
 install -o root -g wheel -m 555   if_wi.ko.symbols /boot/kernel
 === wlan (install)
 install -o root -g wheel -m 555   wlan.ko /boot/kernel
 install -o root -g wheel -m 555   wlan.ko.symbols /boot/kernel
 
 /: write failed, filesystem is full
 install: /boot/kernel/wlan.ko.symbols: No space left on device
[snip]

There has been some discussion lately about possibly changing the defaults. 
If you become faced with having to reinstall jot down your current partition 
sizes and adjust manually making / larger.

Since it is full, if you intend to try and recover it will entail deleting 
something. This could get tricky, especially if the new 'kernel' space is 
what filled up. This would presuppose that the kernel.old area was already 
written out successfully. If the machine will not boot successfully with the 
new kernel it is imperative that kernel.old still be healthy in order to 
recover. However, if the new kernel does actually boot, with the result 
being that some modules are missing you may be able to delete the kernel.old 
in order to buy space. Messing around with this can potentially be 
problematic, for obvious reasons. A strong 'YMMV' is indicated here.

If you can get past that, you may be able to mitigate the / being too small. 
Place STRIP= -s into /etc/make.conf and WITHOUT_PROFILE= true into 
/etc/src.conf. The con of this is that you lose some debugging ability. The 
pro is new kernels will now fit. I have two servers set up this way at home, 
and one uses 91MB while the other uses 93MB of space. The 91MB one only has 
a / of 200MB total, and is nearly half empty. Allows for rebuilding and 
installing a new kernel without running out of space.

-Mike



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


Re: RELENG_8 and clang

2010-03-31 Thread Daniel Bye
On Wed, Mar 31, 2010 at 02:34:11PM +0200, Svein Skogen wrote:
 What is the current status of getting FreeBSD and clang to play nice
 with eachother? Does world and kernel build? How far along is the
 project to replace GCC in the base system?

Take a look at http://wiki.freebsd.org/BuildingFreeBSDWithClang

I haven't tried it for a couple of months, at which point I ran into a 
build problem I didn't have time to investigate. Will have another go
over the long weekend, I think!

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpvGpn3ioF8M.pgp
Description: PGP signature


Re: How to make man pages

2010-03-31 Thread Randal L. Schwartz
 Matthew == Matthew Seaman m.sea...@infracaninophile.co.uk writes:

Matthew   groff+mdoc might be a markup language, but it's nothing at all
Matthew like HTML.

No, it's not.  It's actually turing-complete.  I did towers of hanoi
in troff at one point. Can't do that with HTML. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD Instalation question

2010-03-31 Thread Jerry McAllister
On Tue, Mar 30, 2010 at 11:48:54PM +0200, Polytropon wrote:

 On Tue, 30 Mar 2010 17:41:53 -0300 (CLST), pvida...@uc.cl wrote:
  Hello. I am interested in installing FreeBSD OS on my Notebook, which has at
  this time Windows 7 with a hard disk partitioned into 2 primary partition 
  (C:
  and D:).
  I read the installation instructions, but I was clear:
  How can I install FreeBSD OS on partition D: without deleting the contents 
  of
  C: (Windows 7 and other files) so you can choose when starting the OS with 
  my
  Notebook which to work (Windows 7 or FreeBSD)?
  Thank you!
 
 During the installation (usually involving the sysinstall
 installation program), you are entering the slice editor.
 This is where primary partitions are mentioned. Delete
 the partition corresponding to the drive letter D:, I
 would assume it's the second one on the disk. Then create
 a new slice for the (now) free space and make it a FreeBSD
 slice. After that, you can install the FreeBSD boot manager.
 I'm not familiar with Windows, so I would assume that
 it won't harm the Windows installation on the disk if
 you add this boot manager. After that, you continue in
 the normal way partitioning your FreeBSD slice, selecting
 things to install, and so on.

I think all you have to do is select that slice and let sysinstall
(via fdisk) set it to a FreeBSD type file system and then go ahead
and install on it.  That will wipe out everything previously in the
slice and install FreeBSD there.   During install, tell it to install 
the FreeBSD MBR.


There is some new problem with Win-7 boot manager that I haven't learned 
about yet.   MS puts some extra boot manager stuff in.  I think how
to get around it is documented.   You will have to look that up.

jerry

 
 The FreeBSD boot manager will then allow you to select
 to boot FreeBSD or Windows at system startup.
 
 Before:
 
   { [ Windows partition C: ]  [ Windows partition D: ] }
 
 First step in slice editor (delete second Windows partition):
 
   { [ Windows partition C: ]  -free- }
 
 Second step in slice editor (create FreeBSD slice):
   
   { [ Windows partition C: ]  [ FreeBSD] }
 
 Third step, after slice editor (install boot manager):
 
   {M[ Windows partition C: ]  [ FreeBSD] }
 
 Keep an eye on which partition you mark active inside the slice
 editor. As I said, I'm not familiar with how Windows handles
 things, and I'm not a multi-booter, so excuse me for being quite
 generic in my answer. :-)
 
 Don't miss the excellent documentation in the FreeBSD handbook,
 esp. ch. 2.6, to be found here:
 
 http://www.freebsd.org/doc/en/books/handbook/install-steps.html
 
 
 
 -- 
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD8.0 Firewall Script behaves much differently than 6.x

2010-03-31 Thread Martin McCormick
Is there a proper way to reset firewall rules in
FreeBSD8.0  ? I just discovered that if one is remotely logged
in and makes a change in the firewall rules, it is a disastor to
do something like

sh /etc/[firewall_rules_script]

One could do that in FreeBSD6.x. When the rules flushed,
you lost your connection, but the script continued to execute
and the new rules were in effect immediately. Trying this same
reload in FreeBSD8.0, I knew something was horribly wrong when
everything just locked up. I logged on to a local console and ran

ipfw list

It had stopped right after the flush.

Doing the same command from a local or even a serial
console works fine and the new rules are installed.

Thanks and maybe I have been using the wrong technique
for reloading firewall rules all along.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD8.0 Firewall Script behaves much differently than 6.x

2010-03-31 Thread Martin McCormick
I have just answered part of my own question. If you
background the process as in

sh /etc/rules.fw 

it works. You still get knocked off the remote connection but
the backgrounded process continues to run without a controlling
terminal and completes.

The only remaining part of the question is:

If one modifies the firewall rules and wants to make sure they
are good, is there a more correct way to safely reload them from
the script?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD8.0 Firewall Script behaves much differently than 6.x

2010-03-31 Thread Martin McCormick
Mark writes:
 You could use nohup

That's is a very good idea.

Thanks.

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


Re: FreeBSD8.0 Firewall Script behaves much differently than 6.x

2010-03-31 Thread Lowell Gilbert
Martin McCormick mar...@dc.cis.okstate.edu writes:

   Is there a proper way to reset firewall rules in
 FreeBSD8.0  ? I just discovered that if one is remotely logged
 in and makes a change in the firewall rules, it is a disastor to
 do something like

 sh /etc/[firewall_rules_script]

   One could do that in FreeBSD6.x. When the rules flushed,
 you lost your connection, but the script continued to execute
 and the new rules were in effect immediately. Trying this same
 reload in FreeBSD8.0, I knew something was horribly wrong when
 everything just locked up. I logged on to a local console and ran

 ipfw list

 It had stopped right after the flush.

   Doing the same command from a local or even a serial
 console works fine and the new rules are installed.

   Thanks and maybe I have been using the wrong technique
 for reloading firewall rules all along.

This situation has always existed.  See the note for -q in the ipfw(8)
manual and note the firewall_quiet variable in the default rc.firewall
script.  The most widely recommended approach is to run the script in a
screen(1) (or similar) session.  Even just redirecting the output is
enough to let the script run through while still keeping any potential
error information

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD8.0 Firewall Script behaves much differently than 6.x

2010-03-31 Thread Daniel Bye
On Wed, Mar 31, 2010 at 09:43:53AM -0500, Martin McCormick wrote:
   I have just answered part of my own question. If you
 background the process as in
 
 sh /etc/rules.fw 
 
 it works. You still get knocked off the remote connection but
 the backgrounded process continues to run without a controlling
 terminal and completes.
 
   The only remaining part of the question is:
 
 If one modifies the firewall rules and wants to make sure they
 are good, is there a more correct way to safely reload them from
 the script?

One possible approach might be to make a copy of your rules, edit that
and then do something like this in one session:

 # sleep 300  sh /etc/rules.fw 

And load the new rules from the new file in another:

 # sh /etc/rules.fw.new 

Now, if you lock yourself out, you wait 5 minutes before the last,
presumably good, ruleset, gets reloaded and normality is restored. If
you don't get locked out, simply kill the sleep process (which is why
it's important to use  instead of ; between your commands), and move
the new ruleset to the original file name. 

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: u3g network problem

2010-03-31 Thread Patrick Lamaiziere
Le Wed, 31 Mar 2010 08:18:26 -0400,
Alejandro Imass a...@p2ee.org a écrit :

 On Tue, Mar 30, 2010 at 5:27 PM, Patrick Lamaiziere
 patf...@davenulle.org wrote:

  I've got some troubles with a 3G connection. I don't know which
  things I should check to debug this:
 
  I use ppp to connect and it works fine. But after a while (not a
  long time), I don't have any reply to DNS requests, as far I can
  see with wireshark...
 
 
 What are you using to dial to your 3g network? (I use wvdial, and
 love it)

I use ppp (wvdial does not seem ported to FreeBSD, is it a Linux only
program?)

 I've seen this happen on my 3g network as well. It seems that the ISP
 randomly updates the DNS to a broken one. So write down the DNSs when
 it's actually working (cat /etc/resolv.conf) and make yourself a
 little script that updates them back to the working DNSs here is mine
 for example (adjust to your working DNSs):

I don't think that is the problem, I've already tried this (use
opendns).

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


libiconv-1.11_1

2010-03-31 Thread Jay Hall

Ladies and Gentlemen,

Today, when I installed samba from ports, libiconv-1.11_1 was added to  
my system.  Now, I have both libiconv-1.9.2_2 and libiconv-1.11_1 on  
my system.  This prevents me from using ssh remotely to connect to the  
server.  I am connecting from a Mac, OS X 10.5, but other FreeBSD  
systems are able to connect just fine.


If I uninstall SAMBA and remove libiconv-1.11_1, I am able to use ssh  
again.


libiconv-1.9.2_2 has several dependencies listed.

What is the best way to proceed?

Thanks,


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


Re: How to make man pages

2010-03-31 Thread Giorgos Keramidas
On Wed, 31 Mar 2010 15:54:25 +0800, Fbsd1 fb...@a1poweruser.com wrote:
 OK i want to write a man page from scratch. So lets say i want to use
 /usr/share/man/man2/jail.2.gz as my starting sample. How do I convert
 this .gz file to a plain text file so I can edit it with ee? And how do
 I turn the edited text file back in to a man page .gz file?

The manpage sources are plain text files with text that uses formatting
macros from the groff_mdoc(7) macro collection.  You can find sample
files for the style commonly used by the FreeBSD manpages in your
'/usr/share/examples/mdoc' directory.

keram...@kobe:/usr/share/examples/mdoc$ ls -ld *[0-9]
-r--r--r--  1 root  wheel  - 3550 18 Μαρ 01:55 example.1
-r--r--r--  1 root  wheel  - 7582 18 Μαρ 01:55 example.3
-r--r--r--  1 root  wheel  - 3302 18 Μαρ 01:55 example.4
-r--r--r--  1 root  wheel  - 7700 18 Μαρ 01:55 example.9
keram...@kobe:/usr/share/examples/mdoc$

Installed manpages can be found under '/usr/share/man/man?'.  They are
usually compressed with gzip(1) to save some space, but you can extract
any manpage to a plain text file with gzip or zcat:

zcat /usr/share/man2/jail.2.gz | more

The source of a manpage commonly uses _many_ formatting macros from the
groff_mdoc(7) collection.  You should probably print a copy of the
'groff_mdoc' manpage and keep it around for reference.  Reading through
this printed copy of the manpage at least once will be useful too, as it
will help you understand how macro options work and you will have a good
idea of what features are available.  Then you will be able to quickly
look in the printed reference copy for the features you need, because
you will know they are there.

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


Re: u3g network problem

2010-03-31 Thread Alexandre L.
Hi,

If your DNS are changed, I think that your network card is configured in DHCP 
mode.
To dissallow DNS changes (in /etc/resolv.conf) by DHCP updates, you can add 
this line to /etc/dhclient.conf : 
prepend domain-name-servers 
DNS_IP_adress_1,DNS_IP_adresse_2,DNS_IP_adresse_3;
After you must restart your network card and voilà.

Alexandre.

--- En date de : Mer 31.3.10, Alejandro Imass a...@p2ee.org a écrit :

 De: Alejandro Imass a...@p2ee.org
 Objet: Re: u3g network problem
 À: Patrick Lamaiziere patf...@davenulle.org
 Cc: freebsd-questions@freebsd.org
 Date: Mercredi 31 mars 2010, 12h18
 On Tue, Mar 30, 2010 at 5:27 PM,
 Patrick Lamaiziere
 patf...@davenulle.org
 wrote:
  (8-STABLE/i386)
 
  Hi,
 
  I've got some troubles with a 3G connection. I don't
 know which things
  I should check to debug this:
 
  I use ppp to connect and it works fine. But after a
 while (not a long
  time), I don't have any reply to DNS requests, as far
 I can see with
  wireshark...
 
 
 What are you using to dial to your 3g network? (I use
 wvdial, and love it)
 
 I've seen this happen on my 3g network as well. It seems
 that the ISP
 randomly updates the DNS to a broken one. So write down the
 DNSs when
 it's actually working (cat /etc/resolv.conf) and make
 yourself a
 little script that updates them back to the working DNSs
 here is mine
 for example (adjust to your working DNSs):
 
 
 # cat ./dnsdigitel
 
 #!/bin/sh
 echo nameserver 204.59.152.208  /etc/resolv.conf
 echo nameserver 57.73.127.195  /etc/resolv.conf
 
 So when it stops resolving I just ./dnsdigitel and that's
 it. Of
 course, this could be easily automated, etc. but it's a
 quick fix to
 your problem. Now, the interesting this is that your ISP
 does exactly
 the same as my ISP, it changes the DNS randomly to
 non-working ones,
 curious.
 
 Best,
 Alejandro Imass
 
  Then if I use an IP, it works. So it looks like it is
 a problem with
  DNS. I've tried with an other dns server with the same
 result. I've
  also tried with a local dns server to cache the
 requests. It looks to
  help a bit.
 
  Anyway I also use a ssh tunnel to connect to my server
 and (on the
  server) I can see a lot of CLOSED sockets with
 netstat, and a lot of
  sshd processes stuck, even after days. So there is
 something wrong with
  the connection.
 
  Any idea or suggestion?
 
  Thanks, regards.
 
 
  ___
  freebsd-questions@freebsd.org
 mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
 ___
 freebsd-questions@freebsd.org
 mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 




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


Re: random FreeBSD panics

2010-03-31 Thread Paul B Mahol
On 3/31/10, Anoop Kumar Narayanan anoop...@gmail.com wrote:
 On Wed, Mar 31, 2010 at 2:33 AM, Paul B Mahol one...@gmail.com wrote:
 On 3/30/10, Anoop Kumar Narayanan anoop...@gmail.com wrote:
 On Sun, Mar 28, 2010 at 5:33 PM, Gary Jennejohn
 gary.jennej...@freenet.de wrote:
 On Sun, 28 Mar 2010 11:18:59 +
 Masoom Shaikh masoom.sha...@gmail.com wrote:

 On Sun, Mar 28, 2010 at 10:32 AM, Ivan Voras ivo...@freebsd.org
 wrote:
  Masoom Shaikh wrote:
 
  Hello List,
 
  I was a happy FreeBSD user, just before I installed FreeBSD8.0-RC1.
  Since
  then, system randomly just freezes, and there is no option other
  than
  hard
  boot. I guessed this will get solved in 8.0-RELEASE, but it was not
  :(
 
  I wild shot - did you try disabling superpages?
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  freebsd-questions-unsubscr...@freebsd.org
 

 umm, how do I do that ?


 Add this to /boot/loader.conf
 vm.pmap.pg_ps_enabled=0

 I keep getting RW errors while writing into an USB drive, wondering if
 its the same problem is related to your reply ?
 USB mass storage driver seems to be broken.

 Works for me.


 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: Kingston DataTraveler 2.0 1.00 Removable Direct Access SCSI-2
 device
 da0: 40.000MB/s transfers
 da0: 1940MB (3973120 512 byte sectors: 255H 63S/T 247C)
 info: [drm] Num pipes: 2
 info: [drm] Loading R300 Microcode
 info: [drm] Num pipes: 2
 g_vfs_done():da0s1[WRITE(offset=648923648, length=32768)]error = 5
 g_vfs_done():da0s1[WRITE(offset=648956416, length=32768)]error = 5
 g_vfs_done():da0s1[WRITE(offset=648989184, length=32768)]error = 5
 g_vfs_done():da0s1[WRITE(offset=649021952, length=65536)]error = 5
 g_vfs_done():da0s1[WRITE(offset=649087488, length=32768)]error = 5

 Are you sure that your device is not dead (weared out)?

 That seem to have been the case. :P Ran a scan disk on windows and
 fixed it. :) But this doesn't solve the FreeBSD 8.0 frequent crashes.

Weared-out disc can not be fixed (at least not from windows).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: dd cloning slightly different disks

2010-03-31 Thread Christoph Kukulies

This are the bonnie results:

# bonnie -s 4000
File './Bonnie.1283', size: 4194304000
Writing with putc()...done
Rewriting...done
Writing intelligently...done
Reading with getc()...done
Reading intelligently...done
Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done...
 ---Sequential Output ---Sequential Input-- 
--Random--
 -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- 
--Seeks---
MachineMB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  
/sec %CPU
4000 118158 79.4 119134 19.0 44154 10.4 61967 53.0 104888 10.5 
5344.4 12.4


--
Christoph

Christoph Kukulies schrieb:
Thanks, Peter and all others. Indeed, in contrary to the expected, I 
went into my office this morning, swapped the
HD against the SSD, and was able to boot both FreeBSD, Windows without 
a hitch or any other tweaking.


The dd over USB 2.0 to the SSD from the WD hard disk took 21261 s 
(nearly 6 hours)
I would possibly have had better results if I had both disks connected 
to a SATA controller

and did the dd there, but so what, I'm there happily.

Thanks for sharing.

--
Christoph
Will post bonnie results later.

Peter Steele schrieb:
Theoretically, doing a straight dd copy of one disk to another and 
then swapping in that disk should work. I've done it, with no other 
tweaking needed. I've never done it with mixed OS instances on the 
same disk, or for that matter with a solid state drive. You'll lose 
the trailing 12GB of your disk, although you might be able to expand 
the last partition of whatever OS uses it to include this lost space


-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Christoph 
Kukulies

Sent: Tuesday, March 30, 2010 8:48 AM
To: freebsd-questions@freebsd.org
Subject: dd cloning slightly different disks

Though not 100% FreeBSD centric, my question, I know that disk 
partitioning experts are around here.
My noteook HD is a WD 5000BEVT, (500GB). Today I bought a Kingston 
SDnowV+ Solid State drive, 512GB, with the intention to make my 
notebook a bit faster. It's an Intel Core 2 Duo,

7400 CPU.

The WD disk shows as having 976773168 sectors (500108 MB), the SSD 
has 1000215216 sectors (512110 MB).


At the moment I'm copying (dd) from the WD internal disk to the SSD 
which I had put into an external SATA Icybox.


I'm hoping to be able to use my FreeBSD and Windows partitions 
afterwards somehow, possibly with some geometry tweaking or what. Due 
to the different disk geometry I'm expecting that the partition table 
entries will be wrong.


Any clues how I should proceed when the copy will be done in 7 hours 
or so? (20MB/s is the transfer rate I got from a short test that I 
did before starting the big copy).


--
Christoph


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


Re: Copying mirrored partitions - will this work?

2010-03-31 Thread Mike Clarke
On Wednesday 31 March 2010, krad wrote:

 On 31 March 2010 10:22, Mike Clarke jmc-freeb...@milibyte.co.uk 
wrote:
  On Saturday 20 March 2010, Mike Clarke wrote:

[snip]

   I have two 500GB disks, /dev/ad4 and /dev/ad8, each partitioned
   into 4 slices of 88, 88, 42 and 259GB. My system is installed on
   the first slices (ad4s1 and ad8s1) which are mirrored as
   /dev/mirror/gm0. The second slices (ad4s2 and ad8s2) are
   currently unused. My thoughts are to temporarily add ad4s2 into
   gm0 with gmirror insert gm0 ad4s2 and wait for the mirror to
   synchronise. I should then be able to remove the temporary
   addition with gmirror remove gm0 /dev/ad4s2 at which point
   ad4s2 should be a duplicate of the original system and I can then
   go ahead and create a new mirror with gmirror label -b load gm1
   ad4s2 and gmirror insert gm1 ad8s2. After editing /etc/fstab
   in the new mirror to use gm1 instead of gm0 I should then be able
   to boot into the system on slice 2 and upgrade it to STABLE while
   still keeping my original system to fall back to if required.
  
   Is this approach of moving disks from one mirror to another
   workable, or have I missed something that would lead me into deep
   trouble? I don't mind unduly if I make a mess of the second slice
   and have to start again but I don't want to lose the contents of
   my original system on slice 1.
 
  I decided to give it a try and the process went through very
  smoothly. It was much less tedious than bsdlabel - newfs -
  dump|restore, and quicker too. The mirror synchronised at a bit
  over 100 MB/sec but dump| restore only gave me about 10 MB/sec.

[snip]

 One thing about your dump/restore speed. Did you play around with
 larger block sizes? Increasing it should give you better throughput.

I used 32 MB for the cache size but I expect the reduced speed comes 
about from the need to find and open a large number of files whereas 
synchronising the mirror just does a sequential disk to disk copy at 
block level.

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


Re: libiconv-1.11_1

2010-03-31 Thread Jay Hall


On Mar 31, 2010, at 3:17 PM, Mikle wrote:


Hello,
In my ports tree there is only one version of libiconv, and  
compiling samba doesn't ask about any other versions
(/usr/ports/converters/libiconv, version 1.13). Maybe you should  
update your ports?
Also, i do not see why should libiconv affect ssh[d]. What does your  
macos's ssh tell you when you're trying to connect to fbsd-machine?



Here is what is logged on the Mac when trying to connect.

jh...@jefmhallja-~/.ssh$ ssh -vv hal...@10.129.10.2
OpenSSH_5.2p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.129.10.2 [10.129.10.2] port 22.
debug1: Connection established.
debug1: identity file /Users/jhall/.ssh/identity type -1
debug1: identity file /Users/jhall/.ssh/id_rsa type -1
debug1: identity file /Users/jhall/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version  
OpenSSH_5.2p1 FreeBSD-20090522

debug1: match: OpenSSH_5.2p1 FreeBSD-20090522 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie- 
hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman- 
group1-sha1

debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- 
ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128- 
cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- 
ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128- 
cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- 
ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- 
ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96

debug2: kex_parse_kexinit: none,z...@openssh.com,zlib
debug2: kex_parse_kexinit: none,z...@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie- 
hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman- 
group1-sha1

debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- 
ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128- 
cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- 
ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128- 
cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- 
ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- 
ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96

debug2: kex_parse_kexinit: none,z...@openssh.com
debug2: kex_parse_kexinit: none,z...@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server-client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client-server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 141/256
debug2: bits set: 513/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '10.129.10.2' is known and matches the RSA host key.
debug1: Found key in /Users/jhall/.ssh/known_hosts:1
debug2: bits set: 514/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /Users/jhall/.ssh/identity (0x0)
debug2: key: /Users/jhall/.ssh/id_rsa (0x0)
debug2: key: /Users/jhall/.ssh/id_dsa (0x0)
Connection closed by 10.129.10.2

Thanks,


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


Re: libiconv-1.11_1

2010-03-31 Thread Mikle
Hello, 
In my ports tree there is only one version of libiconv, and compiling samba 
doesn't ask about any other versions
(/usr/ports/converters/libiconv, version 1.13). Maybe you should update your 
ports?
Also, i do not see why should libiconv affect ssh[d]. What does your macos's 
ssh tell you when you're trying to connect to fbsd-machine?
On Wed, Mar 31, 2010 at 02:10:14PM -0500, Jay Hall wrote:
 Ladies and Gentlemen,
 
 Today, when I installed samba from ports, libiconv-1.11_1 was added to  
 my system.  Now, I have both libiconv-1.9.2_2 and libiconv-1.11_1 on  
 my system.  This prevents me from using ssh remotely to connect to the  
 server.  I am connecting from a Mac, OS X 10.5, but other FreeBSD  
 systems are able to connect just fine.
 
 If I uninstall SAMBA and remove libiconv-1.11_1, I am able to use ssh  
 again.
 
 libiconv-1.9.2_2 has several dependencies listed.
 
 What is the best way to proceed?
 
 Thanks,
 
 
 Jay
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

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


flash gotcha?

2010-03-31 Thread Chris Whitehouse

hi

I am installing flash on a fairly fresh installation of 8.0

FreeBSD 8.0-RELEASE-p2 #0: Wed Mar 24 GENERIC i386.
linux_base-f10-10_2
linux-f10-flashplugin-10.0r42
nspluginwrapper-1.2.2_5

muji2# nspluginwrapper -v -a -i
Auto-install plugins from /usr/local/lib/browser_plugins
Looking for plugins in /usr/local/lib/browser_plugins
Install plugin /usr/local/lib/browser_plugins/libflashplayer.so
  into /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so
Auto-install plugins from /root/.mozilla/plugins
Looking for plugins in /root/.mozilla/plugins
muji2#

%nspluginwrapper -v -a -i
Auto-install plugins from /usr/local/lib/browser_plugins
Looking for plugins in /usr/local/lib/browser_plugins
Install plugin /usr/local/lib/browser_plugins/libflashplayer.so
 ... already installed system-wide, skipping
Auto-install plugins from /home/chrisw/.mozilla/plugins
Looking for plugins in /home/chrisw/.mozilla/plugins
%

about:plugins in firefox3 shows flash is not installed.

muji2# nspluginwrapper -v -a -r
Auto-remove plugins from /usr/local/lib/browser_plugins
Looking for plugins in /usr/local/lib/browser_plugins
Remove plugin /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so
Auto-remove plugins from /root/.mozilla/plugins
Looking for plugins in /root/.mozilla/plugins

%nspluginwrapper -v -a -i
Auto-install plugins from /usr/local/lib/browser_plugins
Looking for plugins in /usr/local/lib/browser_plugins
Install plugin /usr/local/lib/browser_plugins/libflashplayer.so
  into /home/chrisw/.mozilla/plugins/npwrapper.libflashplayer.so
Auto-install plugins from /home/chrisw/.mozilla/plugins
Looking for plugins in /home/chrisw/.mozilla/plugins

Now about:plugins shows flash is installed and stays installed for the 
non-root user even if root subsequently runs nspluginwrapper again.


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


Re: Using webcam Windows driver

2010-03-31 Thread Chris Whitehouse

Glen Barber wrote:

Hi,

Fernando Apestegu?a wrote: 

On Thu, Feb 25, 2010 at 8:56 AM, Siju George sgeorge...@gmail.com wrote:

Hi,

I have a logitech quickcam. Will I be able to use it in FreeBSD?
Can I use Windows driver?

Maybe you want to have a look at pwcbsd[1]. This is to use linux drivers on


A more recent project exists in the ports tree.  If you're running
8.0-RELEASE or later, you might have a look at:

   ports/multimedia/video4bsd-kmod
   ports/multimedia/webcamd

Although, I don't know if your particular camera is supported.

Regards,


Hi,

I kept this thread open while I tried some cameras myself and I can say 
that all three cheapo web cams that I tried work.


I've now got
FreeBSD 8.0-RELEASE-p2 #0: Wed Mar 24 11:51:43 GMT 2010 GENERIC i386 
(note sources

were csupped a couple of weeks before)

video4bsd-kmod-0.1.3
libv4l-0.6.4
v4l_compat-1.0.20100113
webcamd-0.1.4
pwcview-1.4.1_2

loader.conf has
video4bsd_load=YES

rc.conf
webcamd_enable=YES

The webcam user needs write permissions on /dev/video0 - I still need to 
set this up in devfs.rules.


Webcams I have are an ancient Logitech, some sort of Microsoft cam and 
an ASDA Smart Value cam for £6 :)


I have a problem using any of the cameras with Skype which I will post 
separately.


cheers

Chris






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


I'd like you to join me on Swom...

2010-03-31 Thread N'guessan Koffi Ezai
Hi 

  I'd like to add you to my professional network on Swom. You can use Swom to 
connect with new contacts and promote your existing businesses. Swom even has 
an affiliate program that pays you.

- N'GUESSAN 

p.s. Here is the link:br
http://swom.com/r/51774-nguessan--koffi-ezai

--

This e-mail was sent on behalf of N'guessan  Koffi Ezai by Swom. 
If you do not wish to receive future commercial mailings from Swom, please use 
the link below. 
Swom's registered offices are located at The Courtyard, Goldsmith Way, Eliot 
Business Park, Nuneaton, CV10 7RJ

http://swom.com/blacklists/new?uuid=ab471ae15feb1f7f1e02676a2147922aabcb1a9f___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


skype webcam no device found

2010-03-31 Thread Chris Whitehouse

Hi,

I have my webcam setup and working and I can see stuff in pwcview. But
skype tells me 'no device found' for video.

I've tried various combinations of with/without webcamd and pwcview 
running, also as root, _and_ restarting webcamd each time, but no joy.


Any suggestions very gratefully received.

thanks

Chris

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


Re: u3g network problem

2010-03-31 Thread Alberto Mijares
 If your DNS are changed, I think that your network card is configured in DHCP 
 mode.
 To dissallow DNS changes (in /etc/resolv.conf) by DHCP updates, you can add 
 this line to /etc/dhclient.conf :
 prepend domain-name-servers 
 DNS_IP_adress_1,DNS_IP_adresse_2,DNS_IP_adresse_3;
 After you must restart your network card and voilà.


Better if you write

supersede domain-name-servers IP

instead.

Regards


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