/boot.config

2010-03-30 Thread Fbsd1

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?


Is this concept valid?
___
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: Marvell Yukon Driver for Hp notebook??

2010-03-30 Thread Kaya Saman






What is needed is the line just before the Vendor, with the card and 
chip IDs.  Then compare it against the list of cards the FreeBSD msk 
driver supports:


http://www.freebsd.org/cgi/man.cgi?query=mskapropos=0sektion=0manpath=FreeBSD+8.0-RELEASEformat=html 



Line goes as follows:

none2:pci0:133:0:0:

class=0x02 card=0x30e8103c chip=0x45711ab rev=0x00 hdr=0x00



Wait, the (binary|proprietary?) driver for FreeBSD 7.0 is almost 
certainly not going to work on FreeBSD 8.0.


Yeah I messed the system up completely now and attempted to recover it 
with FreeSBIE based on BSD 6.0 which doesn't even start for some 
strange reason. Can't mount the CD it says?? Any other system I've 
tried manages.


I just performed a re-install.. nothing lost so is ok.





Kaya
___
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: Create GMIRROR only one slice

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

On 29/03/2010 21:10:42, krad wrote:
 You will need to newfs the gmirror device
 after that so backup the data currently on /, then copy it back afterwards.

This is counter to all my experience of dealing with gmirror -- it's
carefully designed so that the metadata it writes to the drive
*doesn't* interfere with the filesystem.  While it is always a good
idea to have backups, I do not believe that destroying and recreating
the filesystem should be necessary.

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/

iEYEARECAAYFAkuxopAACgkQ8Mjk52CukIxvZwCaAgTijPzbHoL5whM6F3GQax2N
eN4An3/HZSRgUml7jy+IpYRyK0rEfGRr
=e+4T
-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: Enough Is Enough

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

On 30/03/2010 02:58:13, Programmer In Training wrote:
 find /usr/local/bin /usr/local/lib -name -type f | \

 Is the 'f' a typo? I had to remove it because find kept on erroring on it.

There is a typo, but it's to do with the -name predicate. -name needs
an argument -- but as the quoted script seems to be trying to scan for
the libraries linked to be everything in ${PREFIX}/bin and
${PREFIX}/lib you don't need to filter by name at all.  Just use:

find /usr/local/bin /usr/local/lib -type f | \

'-type f' says 'only regular files, not directories or sym-links'

Note that using grep(1) to work out what a binary links to is
exceedingly bizarre.  ldd(1) is the correct tool for that job.

In any case, there are better solutions to this problem: try using the
sysutils/libchk port.

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/

iEYEARECAAYFAkuxp9kACgkQ8Mjk52CukIzmqgCfVX1vLd0TW/AZ01SLEVtKUvPP
nEwAnjFHrOj+CdtF09CqC6/VAaoP2ERP
=Tlgk
-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: Freebsd, postfix and push email

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

On 30/03/2010 03:01:27, Tim Judd wrote:
 I've never heard of either, but when I configure my IMAP server and
 put any mail client to it, as soon as a mail is delivered, the mail
 client is notified.

That's the IDLE extension to IMAPv4 -- it's not a push protocol as
such: the client still has to log into the server rather than vice
versa, but once the client has read all the available e-mail, it can
put itself into an idle state, and the server will wake it up as soon
as any new e-mail comes in.

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/

iEYEARECAAYFAkuxqLQACgkQ8Mjk52CukIx6IgCfSDPdb2LrxBDJZ+csTQfn73lB
+mMAniO4pq4K9gFEZ1SU53OrJOie9kaQ
=oVgM
-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: Freebsd, postfix and push email

2010-03-30 Thread Jonathan McKeown
On Tuesday 30 March 2010 09:31:00 Matthew Seaman wrote:
 On 30/03/2010 03:01:27, Tim Judd wrote:
  I've never heard of either, but when I configure my IMAP server and
  put any mail client to it, as soon as a mail is delivered, the mail
  client is notified.

 That's the IDLE extension to IMAPv4 -- it's not a push protocol as
 such: the client still has to log into the server rather than vice
 versa, but once the client has read all the available e-mail, it can
 put itself into an idle state, and the server will wake it up as soon
 as any new e-mail comes in.

Yes. In fact, one of the nice things about IMAPrev4 as a protocol is that the 
server is allowed (in fact, required by rfc3501) to notify the client if the 
mailbox size increases while executing any command, by sending an EXISTS 
response which the client is required to handle. IDLE is just a command that 
takes a long time to execute (specifically, until the client ends it or the 
server's time limit is reached) so that the server has to send EXISTS 
responses whenever mail comes in.

Jonathan
___
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: Create GMIRROR only one slice

2010-03-30 Thread krad
2010/3/30 Matthew Seaman m.sea...@infracaninophile.co.uk

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 29/03/2010 21:10:42, krad wrote:
  You will need to newfs the gmirror device
  after that so backup the data currently on /, then copy it back
 afterwards.

 This is counter to all my experience of dealing with gmirror -- it's
 carefully designed so that the metadata it writes to the drive
 *doesn't* interfere with the filesystem.  While it is always a good
 idea to have backups, I do not believe that destroying and recreating
 the filesystem should be necessary.

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/

 iEYEARECAAYFAkuxopAACgkQ8Mjk52CukIxvZwCaAgTijPzbHoL5whM6F3GQax2N
 eN4An3/HZSRgUml7jy+IpYRyK0rEfGRr
 =e+4T
 -END PGP SIGNATURE-


Im pretty sure that it will nick the last sector from the slice, so you will
at least need to fsck it. If its a production system i would always go for
the cleaner approach as well and newfs is about as clean as it gets.
___
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


faad2 build error

2010-03-30 Thread DA Forsyth
Hiya all

I keep getting this when building faad2

.
.
.
aclocal.m4:4655: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4654: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.in:14: warning: 
AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-
id, must contain _cv_ to be cached
aclocal.m4:4761: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4760: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
checking for a BSD-compatible install... /usr/bin/install -c -o root -
g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether gmake sets $(MAKE)... yes
./configure: 2553: Syntax error: word unexpected (expecting ))
===  Script configure failed unexpectedly.
Please report the problem to multime...@freebsd.org [maintainer] and 
attach
the /usr/ports/audio/faad/work/faad2-2.7/config.log including the 
output
of the failure of your make command. Also, it might be a good idea to 
provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/audio/faad.
--

I mailed the maintainer last week but have had no reply and no 
action.

I have looked at the code in 'configure' and cannot see a problem 
with line 2553, except maybe that it needs to be one line, and 
possibly needs quotes.  However, I've tried those changes but cannot 
seem to make them stick as the file gets rewritten somehwere in the 
make process.

Any ideas or workarounds?


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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


Setting firewall symbolic constants

2010-03-30 Thread Walter

In the example firewall rule set in rc.firewall, there are
the following lines:

# set these to your outside interface network
   oif=$firewall_simple_oif
   onet=$firewall_simple_onet

# set these to your inside interface network
   iif=$firewall_simple_iif
   inet=$firewall_simple_inet

Can these be set by the system automatically?  Specifically
$firewall_simple_onet?

When the IP changes on the ISP's side, I'd like to
have this detected and updated in the rules without my
manual intervention.  Do I need to write a utility and
run in crontab?  Or is there a better way?

I'm off-list, so please reply directly to this e-mail addy.

TIA.

Walter
___
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: faad2 build error

2010-03-30 Thread Koop Mast
On Tue, 2010-03-30 at 15:13 +0200, DA Forsyth wrote:
 Hiya all
 
 I keep getting this when building faad2
 
 .
 .
 .
 aclocal.m4:4655: _LT_AC_LANG_F77_CONFIG is expanded from...
 aclocal.m4:4654: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
 configure.in:14: warning: 
 AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-
 id, must contain _cv_ to be cached
 aclocal.m4:4761: _LT_AC_LANG_GCJ_CONFIG is expanded from...
 aclocal.m4:4760: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
 checking for a BSD-compatible install... /usr/bin/install -c -o root -
 g wheel
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... ./install-sh -c -d
 checking for gawk... no
 checking for mawk... no
 checking for nawk... nawk
 checking whether gmake sets $(MAKE)... yes
 ./configure: 2553: Syntax error: word unexpected (expecting ))
 ===  Script configure failed unexpectedly.
 Please report the problem to multime...@freebsd.org [maintainer] and 
 attach
 the /usr/ports/audio/faad/work/faad2-2.7/config.log including the 
 output
 of the failure of your make command. Also, it might be a good idea to 
 provide
 an overview of all packages installed on your system (e.g. an `ls
 /var/db/pkg`).
 *** Error code 1
 
 Stop in /usr/ports/audio/faad.
 --
 
 I mailed the maintainer last week but have had no reply and no 
 action.

Yeah sorry about that. 

I read up your previous mail that it
found /usr/local/share/aclocal/libtool15.m4. This file was part of the
libtool15 package. Which was removed 7 months ago in flavor of
libtool22. It seems you got stale packages or files on your system.

Can you see if you got libtool-1.5.x install, and if so remove it. If
you don't have it remove the libtool15.m4 and we will see after that.

-Koop

 I have looked at the code in 'configure' and cannot see a problem 
 with line 2553, except maybe that it needs to be one line, and 
 possibly needs quotes.  However, I've tried those changes but cannot 
 seem to make them stick as the file gets rewritten somehwere in the 
 make process.
 
 Any ideas or workarounds?
 
 
 --
DA Fo rsythNetwork Supervisor
 Principal Technical Officer -- Institute for Water Research
 http://www.ru.ac.za/institutes/iwr/
 
 
 ___
 freebsd-multime...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
 To unsubscribe, send any mail to freebsd-multimedia-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: Setting firewall symbolic constants

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

On 30/03/2010 13:52:57, Walter wrote:
 In the example firewall rule set in rc.firewall, there are
 the following lines:
 
 # set these to your outside interface network
oif=$firewall_simple_oif
onet=$firewall_simple_onet
 
 # set these to your inside interface network
iif=$firewall_simple_iif
inet=$firewall_simple_inet
 
 Can these be set by the system automatically?  Specifically
 $firewall_simple_onet?
 
 When the IP changes on the ISP's side, I'd like to
 have this detected and updated in the rules without my
 manual intervention.  Do I need to write a utility and
 run in crontab?  Or is there a better way?
 
 I'm off-list, so please reply directly to this e-mail addy.

If you switch to using PF rather than IPFW, this is very easy.

In a PF ruleset, the name of an interface is expanded to a list of all
of the IP numbers configured on it.  So you'll frequently see rules like
this:

ext_if = de0
[...]
pass log on $ext_if proto tcp  \
 from any to any port smtp \
 flags S/SA keep state

You can also say $ext_if:network to mean the locally attached network on
that inerface.  Works with both IPv4 and IPv6.

One important wrnkle -- normally the resolution from interface name to
IP number happens just once, when the rules are initially loaded.  If
your interface has a dynamic address, simple enclose the i/f name in
brackets, like so: ($ext_if)  This causes PF to update the mapping as
the IP number changes.  It's less efficient, which is why it isn't
usually done for a machine with fixed addresses, but that won't cause
you any problems for typical DSL or even Cable speeds.

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/

iEYEARECAAYFAkuyElMACgkQ8Mjk52CukIy6LQCePtDUIteOMTnUQVYBZ2eUogfU
nUgAn1U87/YBfSw/jBaP1nn9370zbzEN
=eUTt
-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: /boot.config

2010-03-30 Thread Dan Nelson
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.

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


Re: Custom Kernel to Memory Stick

2010-03-30 Thread Jay Hall


On Mar 29, 2010, at 6:30 PM, Aiza wrote:



This is the procedure you want to follow.

http://forums.freebsd.org/showthread.php?t=11680


And for greater detail

http://forums.freebsd.org/showthread.php?t=11715


Thanks for the links.  I will give them a try.

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


Making sense out of impitool power supply readings

2010-03-30 Thread Peter Steele
Is there some trick to know when the power supply sensor readings returned by 
ipmitool actually reflects that there is a power supply issue? Our difficulty 
is that no one seems to use the same sensor values when it comes to power 
supply reporting, and even if there are two power supplies the impitool command 
may only report a single status. For example, here's one box that I have:

# ipmitool sdr type Power Supply
PS 1 STATUS  | 61h | lcr | 10.0 | 0 unspecified
PS 2 STATUS  | 62h | lnc | 10.1 | 0 unspecified
PS REDUNDANCY| 6Fh | lcr | 19.0 | 0 unspecified

Here's another:

# ipmitool sdr type Power Supply
Power Supply | 17h | ok  | 10.0 | 0 unspecified

And another:

# ipmitool sdr type Power Supply
PS1 PRESENT  | 53h | ok  | 10.0 | Device Present
PS2 PRESENT  | 54h | ok  | 10.1 | Device Present
PDB PRESENT  | 55h | ok  | 21.0 | Device Present
PS1 STATUS   | 4Ah | ok  | 10.0 |
PS2 STATUS   | 4Bh | ok  | 10.1 |
PS REDUNDANCY| 4Dh | ok  | 21.0 | Fully Redundant

And here's yet another:

# ipmitool sdr type Power Supply
Status   | 64h | ok  | 10.1 | Presence detected
Status   | 65h | ok  | 10.2 | Presence detected
PS Redundancy| 74h | ok  |  7.1 | Fully Redundant

All of these are systems with dual power supplies. When we query these sensors 
are queried, on some systems 0 means the power supply is online and 200 
means it's offline, whereas others might user 80 and 180 or 180 and 380. Is 
there some trick in figuring out what status values means online, or would we 
have to maintain a table of motherboard/vendor versions and map these to how to 
interpret the PS readings?

___
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


dd cloning slightly different disks

2010-03-30 Thread Christoph Kukulies
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


Oracle 64bit driver

2010-03-30 Thread krad
Hi

Has anyone had any success with the
/usr/ports/databases/linux-oracle-instantclient-basic driver install on
64bit machines?
___
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


problem with mailing list archives?

2010-03-30 Thread Robert Huff

If I go to
http://docs.freebsd.org/mail/archive/freebsd-questions.html;, the
last weekly archive is dated March 07.
What's up with that?   :-)


Robert Huff

___
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-30 Thread Peter Steele
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
___
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-30 Thread Jerry McAllister
On Tue, Mar 30, 2010 at 05:47:44PM +0200, Christoph Kukulies wrote:

 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).

Well, this could possibly work, but I wonder why you want to do it
this way.I would be inclined to divide the disk as desired, do
the MSW install in the first slice and then get a FeeBSD fixit and
partition the other slice and then use dump/restore to move the FreeBSD
stuff over.   That way you get the best fit for the new disk, no
worries about tweaking geometry and no loss of the amount the new
drive is bigger than the old one.

jerry


 
 --
 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
___
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-30 Thread ill...@gmail.com
On 30 March 2010 12:11, Jerry McAllister jerr...@msu.edu wrote:
 On Tue, Mar 30, 2010 at 05:47:44PM +0200, Christoph Kukulies wrote:

 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).

 Well, this could possibly work, but I wonder why you want to do it
 this way.    I would be inclined to divide the disk as desired, do
 the MSW install in the first slice and then get a FeeBSD fixit and
 partition the other slice and then use dump/restore to move the FreeBSD
 stuff over.   That way you get the best fit for the new disk, no
 worries about tweaking geometry and no loss of the amount the new
 drive is bigger than the old one.

 jerry


Or even a middle path of creating the slices, making sure
that the windows-to-be slice is exactly close enough, dd-ing
the windows slice over (testing that it boots), and then
running the dump/restore cycle for the freebsd portion of
the drive.

-- 
--
___
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-30 Thread Christoph Kukulies

Jerry McAllister schrieb:

On Tue, Mar 30, 2010 at 05:47:44PM +0200, Christoph Kukulies wrote:

  
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).



Well, this could possibly work, but I wonder why you want to do it
this way.I would be inclined to divide the disk as desired, do
the MSW install in the first slice and then get a FeeBSD fixit and
partition the other slice and then use dump/restore to move the FreeBSD
stuff over.   That way you get the best fit for the new disk, no
worries about tweaking geometry and no loss of the amount the new
drive is bigger than the old one.
  


Reason was: I wanted to preserve all settings (Windows XP and FreeBSD) 
and avoid any
reinstallation of packages or sth. and wanted to continue working with a 
minimum of interruption.


Maybe I could  use the 12GB overspace  either later by assigning it an 
extra partition or

grow some partition that is adjacent to the free space.

--
Christoph


jerry


  

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



___
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-30 Thread Jerry McAllister
On Tue, Mar 30, 2010 at 06:26:08PM +0200, Christoph Kukulies wrote:

 Jerry McAllister schrieb:
 On Tue, Mar 30, 2010 at 05:47:44PM +0200, Christoph Kukulies wrote:
 
   
 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).
 
 
 Well, this could possibly work, but I wonder why you want to do it
 this way.I would be inclined to divide the disk as desired, do
 the MSW install in the first slice and then get a FeeBSD fixit and
 partition the other slice and then use dump/restore to move the FreeBSD
 stuff over.   That way you get the best fit for the new disk, no
 worries about tweaking geometry and no loss of the amount the new
 drive is bigger than the old one.
   
 
 Reason was: I wanted to preserve all settings (Windows XP and FreeBSD) 
 and avoid any
 reinstallation of packages or sth. and wanted to continue working with a 
 minimum of interruption.

Well, I don't know about the MSW stuff, but for the FreeBSD part, 
the dump/restore would keep everything they way it was.

jerry

 
 Maybe I could  use the 12GB overspace  either later by assigning it an 
 extra partition or
 grow some partition that is adjacent to the free space.

 
 --
 Christoph
 
 jerry
 
 
   
 --
 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
 
 
 ___
 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: problem with mailing list archives?

2010-03-30 Thread andrew clarke
On Tue 2010-03-30 11:55:18 UTC-0400, Robert Huff (roberth...@rcn.com) wrote:

   If I go to
 http://docs.freebsd.org/mail/archive/freebsd-questions.html;, the
 last weekly archive is dated March 07.
   What's up with that?   :-)

Mar 07 means the week preceding March 7, 2010.  It looks like the
index hasn't been generated for mail newer than that for some reason.

However there's a this week link above Mar 07 which is current,
and it links to your question:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=463321+0+current/freebsd-questions

For the list archives you may prefer to use this link instead:

http://lists.freebsd.org/pipermail/freebsd-questions/

... although it only goes back to 2003, whereas the archive you
pointed to goes way back to 1994!
___
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: emacs-23.1_3,1 - 23.1._4,1 upgrade

2010-03-30 Thread Giorgos Keramidas
On Mon, 29 Mar 2010 11:22:12 +0200, n dhert ndhert...@gmail.com wrote:
 There was an emacs upgrade in the ports today, but it fails:
 ...
 image.o(.text+0x6674): In function `png_load':
 : undefined reference to `png_check_sig'
 image.o(.text+0x6db4): In function `png_load':
 : undefined reference to `png_check_sig'

On Mon, 29 Mar 2010 09:31:56 +, George Liaskos geo.lias...@gmail.com 
wrote:
 I had the same problem with x11-fm/thunar, png_check_sig got replaced
 by png_sig_cmp in libpng 1.4.0.

Right.  The new libpng version has png_check_sig - png_sig_cmp.

I am testing a patch submitted by a few Emacs users and I will try to
commit it during the next few days.  In the meantime you can also test
the same patch for Emacs by fetching the patch from PR ports/145171.

It appears to work for editors/emacs on i386.  I will be testing
editors/emacs-devel and editors/emacs22 too in the next few hours.

___
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 send a patch in a proper way?

2010-03-30 Thread Giorgos Keramidas
On Fri, 19 Mar 2010 23:20:49 +0100, Adam PAPAI w...@wooh.hu wrote:
 Hi,

 As of today I'll try to help and create bugfix patches for usr/src and
 usr/ports.

 I've already done 2 patches and posted it to the -current list but
 don't really know what is the best way to post the patches. Who will
 check them? who will make the decision to use them? How should I
 send the patches? diff -u full path or relative path?

 Is there any FAQ about this issue?

The appropriate path is often a judgement call for you.  I usually send
patches that include at least *part* of the pathname, e.g. when patches
for ports are created I diff at the toplevel /usr/ports tree, so that
both the port-categogy and the port-name are visible in the patch file.

When generating patches for the /usr/src tree it is also useful to see
the relative path under /usr/src, e.g. I try to use:

cd /usr/src
diff -ruN bin/ls.orig bin/ls

When the pathname of the source subdirectory is trivial to infer from
the name of the utility itself you can also just diff files inside the
source of the utility itself:

cd /usr/src/bin/ls
diff -u ls.c.orig ls.c

You shouldn't worry too much about pathname context though.  The FreeBSD
developers will ask for more details if they cannot understand what you
are patching.  A couple of email iterations later you'll both know what
is being patched where it was patched, and so on.

___
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: Custom Kernel to Memory Stick

2010-03-30 Thread Giorgos Keramidas
On Mon, 29 Mar 2010 10:49:08 -0500, Jay Hall jh...@socket.net wrote:
 Ladies and Gentlemen,

 I have been asked to explore the possibility of booting FreeBSD from a
 memory stick.  This was not a problem; worked great when installed  from
 the distribution CD.

 What would be the best way to get our custom configuration onto the
 memory stick?

The fastest way I know is to create an image to an 'image' file stored
on disk or ramdisk and then dd the image to the USB disk.  You can
create a suitably large image with truncate(1), e.g.:

truncate -s 1g /var/tmp/image.bin

Then attach the image to an mdconfig device:

mdconfig -a -t vnode -u 20 -f /var/tmp/image.bin

Create a filesystem on it, and install everything from your buildworld
and buildkernel run:

fdisk -BI /dev/md20
bsdlabel -w -B /dev/md20s1
newfs -U /dev/md20s1a

Mount the new image partition before installkernel+installworld:

mount -t ufs /dev/md20s1a /mnt

Then you sould be able to install with DESTDIR pointing to the image
partition:

cd /usr/src
env DESTDIR=/mnt make installkernel installworld

Don't forgte to use mergemaster with -D /mnt to install the /mnt/etc
files from /usr/src/etc.  Then tweak the /mnt/etc/fstab file to point at
the USB disk as the root filesystem.

Finally detach the image and write it on a USB disk:

umount /mnt
mdconfig -du 20
dd if=/var/tmp/image.bin of=/dev/da0 bs=4m

One of the nice tricks you can use for the root filesystem of the USB
disk is to add a UFS label to the USB root filesystem.  This way you
don't have to assume that the USB root filesystem is called da0s1a but
you can use /dev/ufs/LABELNAME in the fstab file of the image partition.

___
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-30 Thread Mike Clarke
On Tuesday 30 March 2010, Christoph Kukulies wrote:

 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.

Having created problems for myself by doing something similar in the 
past I'd be wary of using dd for this, 
http://preview.tinyurl.com/yzckfx5 will take you to Google Groups for 
the relevant thread in comp.unix.bsd.freebsd.misc.

The safe approach would be to use fdisk to create the desired slices on 
the new disk, use bsdlabel to partition the FreeBSD slice and then use 
dump|restore to copy the data.

You should be able to copy your Windows partition with DriveImage XML, 
free for private use from http://www.runtime.org/driveimage-xml.htm

-- 
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: Setting firewall symbolic constants

2010-03-30 Thread Bob Hall
On Tue, Mar 30, 2010 at 07:52:57AM -0500, Walter wrote:
 Can these be set by the system automatically?  Specifically
 $firewall_simple_onet?

I use

onet=`ifconfig if | grep inet  | awk '{print $6}'`

where if is rl0 or em0 or whatever the outward facing interface is for
your system.
___
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: Making sense out of impitool power supply readings

2010-03-30 Thread Peter Steele
I think I might be able to solve my issues if I could filter out which of these 
entries returned by 

ipmitool sdr type Power Supply

actually represent the physical power supplies. One of the cases I have below 
for example produces a list of six sensors. Only two of those actually 
represent the true physical status, but when I'm writing generic code, how do I 
filter these? In some cases the ones I want are called PS 1 STATUS and PS 2 
STATUS and in others PS1 STATUS and PS2 STATUS are used (note the missing 
space). Yet another one just uses Status for both PS sensors. This is all 
very non-deterministic. Is there a call I can make in the ipmitool library to 
list only the sensors representing the real power status and not these other 
sensors like PDB PRESENT?

-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Peter Steele
Sent: Tuesday, March 30, 2010 8:42 AM
To: freebsd-questions@freebsd.org
Subject: Making sense out of impitool power supply readings

Is there some trick to know when the power supply sensor readings returned by 
ipmitool actually reflects that there is a power supply issue? Our difficulty 
is that no one seems to use the same sensor values when it comes to power 
supply reporting, and even if there are two power supplies the impitool command 
may only report a single status. For example, here's one box that I have:

# ipmitool sdr type Power Supply
PS 1 STATUS  | 61h | lcr | 10.0 | 0 unspecified
PS 2 STATUS  | 62h | lnc | 10.1 | 0 unspecified
PS REDUNDANCY| 6Fh | lcr | 19.0 | 0 unspecified

Here's another:

# ipmitool sdr type Power Supply
Power Supply | 17h | ok  | 10.0 | 0 unspecified

And another:

# ipmitool sdr type Power Supply
PS1 PRESENT  | 53h | ok  | 10.0 | Device Present
PS2 PRESENT  | 54h | ok  | 10.1 | Device Present
PDB PRESENT  | 55h | ok  | 21.0 | Device Present
PS1 STATUS   | 4Ah | ok  | 10.0 |
PS2 STATUS   | 4Bh | ok  | 10.1 |
PS REDUNDANCY| 4Dh | ok  | 21.0 | Fully Redundant

And here's yet another:

# ipmitool sdr type Power Supply
Status   | 64h | ok  | 10.1 | Presence detected
Status   | 65h | ok  | 10.2 | Presence detected
PS Redundancy| 74h | ok  |  7.1 | Fully Redundant

All of these are systems with dual power supplies. When we query these sensors 
are queried, on some systems 0 means the power supply is online and 200 
means it's offline, whereas others might user 80 and 180 or 180 and 380. Is 
there some trick in figuring out what status values means online, or would we 
have to maintain a table of motherboard/vendor versions and map these to how to 
interpret the PS readings?

___
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 won't build?

2010-03-30 Thread Steve Franks
Never had trouble with buildworld before...I don't see anything in
UPDATING or on the current-list (or a google of the error for that
matter), so I assume I've hosed my system in some fashion, but how??

Thanks,
Steve

#sudo csup /usr/share/examples/cvsup/stable-supfile (which points to releng-8)
Connected to 130.94.149.166
Updating collection src-all/cvs
Finished successfully
#sudo make clean
...
#sudo make buildworld
...
In file included from
/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/asn1/a_mbstr.c:62:
/usr/obj/usr/src/tmp/usr/include/openssl/asn1.h:717:36: error: ` may
not appear in macro parameter list
*** Error code 1

Stop in /usr/src/secure/lib/libcrypto.
*** Error code 1
___
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-30 Thread Warren Block

On Tue, 30 Mar 2010, Mike Clarke wrote:

On Tuesday 30 March 2010, Christoph Kukulies wrote:


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

...

You should be able to copy your Windows partition with DriveImage XML,
free for private use from http://www.runtime.org/driveimage-xml.htm


Clonezilla is open source and has worked for me:
  http://www.clonezilla.org

-Warren Block * Rapid City, South Dakota USA
___
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-30 Thread Paul B Mahol
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)?
___
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-30 Thread Walter

Matthew Seaman wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 


Can these be set by the system automatically?  Specifically
$firewall_simple_onet?
   


If you switch to using PF rather than IPFW, this is very easy.

In a PF ruleset, the name of an interface is expanded to a list of all
of the IP numbers configured on it.  So you'll frequently see rules like
this:

ext_if = de0
[...]
pass log on $ext_if proto tcp  \
from any to any port smtp \
flags S/SA keep state

You can also say $ext_if:network to mean the locally attached network on
that inerface.  Works with both IPv4 and IPv6.

One important wrnkle -- normally the resolution from interface name to
IP number happens just once, when the rules are initially loaded.  If
your interface has a dynamic address, simple enclose the i/f name in
brackets, like so: ($ext_if)  This causes PF to update the mapping as
the IP number changes.  It's less efficient, which is why it isn't
usually done for a machine with fixed addresses, but that won't cause
you any problems for typical DSL or even Cable speeds.

Cheers,

Matthew

 


Thanks, that's good to know, but I think I'll still plunge along
to work a solution for ipfw; it seems to be the default.  And along
the way I can detect and assign both interfaces and addresses
automatically so I can make it work magically (crosses fingers)
on computers with different cards without me having to configure
them.

Walter
___
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


u3g network problem

2010-03-30 Thread Patrick Lamaiziere
(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...

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 Instalation question

2010-03-30 Thread pvidales
Hola. Estoy interesado en instalar el SO FreeBSD en mi Notebook, el cual tiene
en este momento Windows 7 con un disco duro particionado en 2 (C: y D:).
Leí las instrucciones de instalación, pero no me quedó claro lo siguiente:
Como puedo instalar FreeBSD en la particion D: sin borrar el contenido de C:
(Windows 7 y otros archivos) de manera que pueda elegir al momento de iniciar
mi Notebook el SO con el cual trabajar (Windows 7 o FreeBSD)?
Gracias !!

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!

Pablo Vidales Sáez
Santiago, Chile

___
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-30 Thread Polytropon
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.

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


Re: FreeBSD Instalation question

2010-03-30 Thread Dima Panov
On Wednesday 31 March 2010 08:48:54 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.
 
 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

Just one note.

Usually Windows7 have additional hidden 100M boot partition first, than own 
system 
partition (Drive C:), don't be missed.


-- 
Dima Red Fox Panov @ Home | C73E 2B72 1FFD 61BD E206 1234 A626 76ED 93E3 B018
Khabarovsk, Russia  | 2D30 2CCB 9984 130C 6F87 BAFC FB8B A09D D539 8F29
k...@freebsd Team | FreeBSD committer since 10.08.2009 | FreeBSD since Sept 1995
Twitter.com:fluffy_khv | Skype:dima.panov | Jabber.org:fluffy.khv | ICQ:1745024
___
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-30 Thread Bob Hall
On Tue, Mar 30, 2010 at 04:17:22PM -0500, Walter wrote:
 Can these be set by the system automatically?  Specifically
 $firewall_simple_onet?

My first response never showed up. Second try.

I use
onet=`ifconfig rl0 | grep inet  | awk '{print $6}'`
where rl0 is the outward facing NIC on this gateway.
___
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-8 support for dell R710 SATA raid-0

2010-03-30 Thread John
On Tue, Mar 30, 2010 at 05:37:58PM +, Varan Okul wrote:
Hi,
 
I suggest you try these scenario first.
 
1st - At RAID controller BIOS.
 Create 1 small logical drive for FreeBSD installation.
 The rest space from RAID0, just create 2TB for each logical drive.
 
2nd - Boot with FreeBSD installation CD/DVD
 Lets see FreeBSD bootable CD/DVD can see the small logical drive
created, or not?
 
If this not work, may be the RAID controller is too new for this FreeBSD
version.
The CD/DVD doesn't have driver for it inside.
You may need to change to older RAID controller, or move to newer FreeBSD
version.

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
___
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-30 Thread Anoop Kumar Narayanan
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.
___
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-8 support for dell R710 SATA raid-0

2010-03-30 Thread Adam Vande More
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
___
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


How to make man pages

2010-03-30 Thread Fbsd1
Where can I find documentation on the procedure to create man pages 
for a port?

___
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


Upgrading releases?

2010-03-30 Thread Slack-Moehrle
Hi All,

I have a system with 8.0-RELEASE and I read that 8-STABLE has ZFS v14 (instead 
of v13)

I am trying:

# freebsd-update upgrade -r 8-STABLE 

and it does not work. it tried 3 mirrors, all fail and nada.

Since I am new to FreeBSD, what am I obviously missing? Is there a place that 
states the releases? Is there an 8.1 or 8.2 out now that has even a new version 
of ZFS?

Best,
-Jason
___
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: Upgrading releases?

2010-03-30 Thread Glen Barber
Hi Jason,

Slack-Moehrle wrote: 
 Hi All,
 
 I have a system with 8.0-RELEASE and I read that 8-STABLE has ZFS v14 
 (instead of v13)
 
 I am trying:
 
 # freebsd-update upgrade -r 8-STABLE 
 
 and it does not work. it tried 3 mirrors, all fail and nada.
 
 Since I am new to FreeBSD, what am I obviously missing? Is there a place that 
 states the releases? Is there an 8.1 or 8.2 out now that has even a new 
 version of ZFS?
 

Have a look at the DESCRIPTION section of the freebsd-update(8) man page,
which explains why you cannot upgrade to -STABLE using this utility.  If
you wish to upgrade from -RELEASE to -STABLE, the handbook covers the
proper source-based upgrade procedure.

Regards,

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


Re: /boot.config

2010-03-30 Thread Fbsd1

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


uname -a

2010-03-30 Thread alexus
su-3.2# uname -a
FreeBSD dd.alexus.org 7.3-RELEASE FreeBSD 7.3-RELEASE #13: Tue Mar 23
20:47:52 UTC 2010 xx...@x.xxx.:/usr/obj/usr/src/sys/GENERIC
amd64
su-3.2#

why is it showing up #13 here? back when I had 7.2-RELEASE-pX i've had
#12, I then did following:

rm -rf /usr/src
csup /usr/share/examples/cvsup/standard-supfile
cd /usr/src
make buildworld
make buildkernel
...
reboot
now it show shows 7.3 and #13, i thought if i get rid of /usr/src and
re-csup it it should reset to #1? or #0




-- 
http://alexus.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: uname -a

2010-03-30 Thread Jason

On Wed, Mar 31, 2010 at 12:08:08AM -0400, alexus thus spake:

su-3.2# uname -a
FreeBSD dd.alexus.org 7.3-RELEASE FreeBSD 7.3-RELEASE #13: Tue Mar 23
20:47:52 UTC 2010 xx...@x.xxx.:/usr/obj/usr/src/sys/GENERIC
amd64
su-3.2#

why is it showing up #13 here? back when I had 7.2-RELEASE-pX i've had
#12, I then did following:

rm -rf /usr/src
csup /usr/share/examples/cvsup/standard-supfile
cd /usr/src
make buildworld
make buildkernel
...
reboot
now it show shows 7.3 and #13, i thought if i get rid of /usr/src and
re-csup it it should reset to #1? or #0



Did you perform a 'make installkernel' ?






--
http://alexus.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



--
Jason Helfman
System Administrator
experts-exchange.com
http://www.experts-exchange.com/M_4830110.html
___
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: uname -a

2010-03-30 Thread Glen Barber
Hi,

alexus wrote: 
 su-3.2# uname -a
 FreeBSD dd.alexus.org 7.3-RELEASE FreeBSD 7.3-RELEASE #13: Tue Mar 23
 20:47:52 UTC 2010 xx...@x.xxx.:/usr/obj/usr/src/sys/GENERIC
 amd64
 su-3.2#
 
 why is it showing up #13 here? back when I had 7.2-RELEASE-pX i've had
 #12, I then did following:
 
 rm -rf /usr/src
 csup /usr/share/examples/cvsup/standard-supfile
 cd /usr/src
 make buildworld
 make buildkernel
 ...
 reboot
 now it show shows 7.3 and #13, i thought if i get rid of /usr/src and
 re-csup it it should reset to #1? or #0
 

The kernel version is incremented from /usr/obj, not /usr/src.  To revert
it to #0, remove /usr/obj.

Regards,

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