Re: Bios chip update suggestions

2009-02-14 Thread Jos Chrispijn

Can you set your system clock first L-)
This message is dated 14.3.2009 @ 11:37

Jos Chrispijn

Fbsd1 wrote:

Chris Whitehouse wrote:

Fbsd1 wrote:
I have an desktop manufactured in 2002 by a South Korean company 
Hyunju.

The company is now out of business.
It's bio's do not allow booting from a usb memory stick.

I want to find an bio's update that adds booting from usb memory stick.

I know the desktop uses AWARD bio's chip and the bio's id string is 
01/08/2002-694T-686-P6VXM2TC-00


All the internet bio's chip update url's found by Google search are 
customized for MS windows.


Suggestions on how or where to purchase the correct bio's chip update?



What do you mean the update url's are customised for windows? The 
bios doesn't know anything about operating system. Most likely you 
could download a dos boot disk image - google, there are plenty 
around - create a bootable floppy and copy your latest bios image and 
bios update program, eg awdflash.exe onto it. Just boot from the 
floppy and run the update.


Just be sure the bios image is really intended for your motherboard 
and don't interrupt the update.


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





What i mean is all the bio update sites have a utility that runs from 
the website to fetch your bio id string info. This utility will not 
work on a non-windows operating 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

___
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 interrupt hung boot process?

2009-02-14 Thread Dieter
Shaun writes:

 Have you tried ^X or ^Z? Often when my cable modem has lost its link and
 I reboot, FreeBSD will hang waiting to start sendmail because it can't
 determine the local IP. Sometimes it will hang while processing my ipfw
 scripts due to DNS failures.
 
 I usually try ^C, ^X, and ^Z in that order and in my experience one of
 them will abort the hung process.

I tried every letter on the keyboard, ^\, a few other keys, and break
(RS-232 console).  Seems like ^\ used to be a sure kill (SIGKILL maybe?).

Tim writes:

 If a shell script traps the signals, there is nothing you can do except
 by calling a SIGKILL to the PID, which requires the system to be in
 Multi-User Mode.

The shell script doesn't, but a binary program it calls might.
I'll have to look into that.

michael writes:

 or, boot with rescue cd or anything that will write to the fs and 
 disable the script

I managed to get the boot loader to boot single user, then
moved the script to a different filename.  Added a symlink
from the script name to /bin/true, which turns out to not
exist.  Someone moved true to /usr/bin.  Fortunately the
script not existing didn't cause a problem.

Thanks, gang.  Any other ideas?

BTW, softdeps and background fsck are very much appreciated
when pressing the reset button!
___
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


Unix Epoch

2009-02-14 Thread Jos Chrispijn
On 13.02.2009 at exactly 23:31:30 (UTC), Unix time was equal to 
'1234567890'. This was the total time that has been elapsed since 1 
januari 1970 0:00 UTC. After having survived from a major headache (...) 
I wonder whether this can technically affect my system or is it just a 
milestone in history?


Jos Chrispijn
___
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


Unix Epoch

2009-02-14 Thread Jos Chrispijn

   On 13.02.2009 at exactly 23:31:30 (UTC), Unix time was equal to
   '1234567890'. This was the total time that has been elapsed since 1
   januari 1970 0:00 UTC. After having survived from a major headache
   (...) I wonder whether this can technically affect my system or is it
   just a milestone in history?
   Jos Chrispijn
   
   

References

   Visible links
   Hidden links:
   1. http://en.wikipedia.org/wiki/Unix_time#cite_note-0
___
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: Unix Epoch

2009-02-14 Thread Wojciech Puchar

  On 13.02.2009 at exactly 23:31:30 (UTC), Unix time was equal to
  '1234567890'. This was the total time that has been elapsed since 1
  januari 1970 0:00 UTC. After having survived from a major headache
  (...) I wonder whether this can technically affect my system or is it
  just a milestone in history?


just a milestone ;)


  Jos Chrispijn



References

  Visible links
  Hidden links:
  1. http://en.wikipedia.org/wiki/Unix_time#cite_note-0
___
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: Recommendations for running FreeBSD as a guest OS

2009-02-14 Thread Vincent Hoffman
On 14/2/09 06:28, Tim Judd wrote:
 On Sat, 2009-02-14 at 22:32 -0600, Bobby Walker wrote:
   
 I have a small network at work that, unfortunately, uses Windows 2003.   
 I need a good mail server, but I do not have a budget for purchasing 
 additional software.  Exchange requires too many hacks to configure a 
 catchall email account, and Exchange and I do not get along very well.  
 So, today while brainstorming, I thought why not run FreeBSD as a guest 
 OS on the box.  Any suggestions for the best way of doing this?

 Thanks in advance,
 Bobby
 

 There was a recommendation of another win32-based email server -- and I
 have it bookmarked at work.  From the single person that mentioned it,
 he was praising it pretty well.

 When I get to work, I'll send it on your way.  I just don't have a clue
 what it was right now.

   
From what I can remember http://www.hmailserver.com/ is decent for a
windows based free mailserver (smtp imap pop and imap.)
Been a while since i used it and they seem to have closed the source for
the latest version but its still free as in beer.

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


ipv6 aliases in rc.conf

2009-02-14 Thread Reinhard Haller
Hi,

I'm trying to add ipv6 aliases for my jails (7.1) in rc.conf.

ifconfig_lo0_alias0=inet 192.168.64.1 netmask 255.255.255.0
ifconfig_lo0_alias1=inet 192.168.64.2 netmask 255.255.255.255
ipv6_ifconfig_lo0_alias0=inet6 fd08:2548:a3e8:40::1 prefixlen 48
ipv6_ifconfig_lo0_alias1=inet6 fd08:2548:a3e8:40::2 prefixlen 128

The ipv6 aliases aren't configured as expected. I tried also  the  variants

ipv6_ifconfig_lo0_alias2=inet6 fd08:2548:a3e8:40::1 prefixlen 48

ipv6_ifconfig_lo0=inet6 alias fd08:2548:a3e8:40::1 prefixlen 48

without success. Btw the man page for rc.conf suggests the following
as replacement for the alias syntax (for ipv4):

ipv4_addrs_lo0=127.0.0.1/8 192.168.64.1-7/24
ipv6_addrs_lo0=::1/128 fe80::1/64 fd08:2548:a3e8:40::1-7/48

Which syntax is suggested and working for mixed ipv4/ipv6 aliases in
rc.conf?





___
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: reread newsyslog.conf without reboot

2009-02-14 Thread H.fazaeli


newsyslog.conf is read by newsyslog(8) and newsyslog is executed by cron(8)
as specified in /etc/crontab, usually every hour. so you changes
will take effect the next time cron runs newsyslog.

Fbsd1 wrote:
How do I get the system to reread /etc/newsyslog.conf file with out 
rebooting the 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





--


Best regards.

Hooman Fazaeli h...@sepehrs.com
Sepehr S. T. Co. Ltd.

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




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


Re: Recommendations for running FreeBSD as a guest OS

2009-02-14 Thread Jerry
On Sat, 14 Feb 2009 22:32:39 -0600
Bobby Walker bo...@missionaccess.org wrote:

I have a small network at work that, unfortunately, uses Windows
2003. I need a good mail server, but I do not have a budget for
purchasing additional software.  Exchange requires too many hacks to
configure a catchall email account, and Exchange and I do not get
along very well. So, today while brainstorming, I thought why not run
FreeBSD as a guest OS on the box.  Any suggestions for the best way of
doing this?

Actually, I know of several instances of Exchange with 'catchall mail
boxes. It is, to a certain degree, version dependent. You can get the
scripts and other information here. Google for more if you need it.

http://support.microsoft.com/default.aspx/kb/324021
http://technet.microsoft.com/en-us/library/bb691132.aspx

-- 
Jerry
ges...@yahoo.com

The only way to get rid of a temptation is to yield to it.

Oscar Wilde


signature.asc
Description: PGP signature


OT console based editor that can do php syntax highlighting

2009-02-14 Thread Simon Griffiths
Hello Everyone,

I'm guessing this is off-topic so thank you in advance if you can offer any
help.

I currently SSH into a couple of freebsd machine I have dotted about which
run some console and web based php code.  This is all fine and dandy but
when it comes to remote support I struggle reading plain code when the file
gets over a certain size and find a little syntax highlighting helps a lot. 

So can anyone recommend an editor that can do this ?  I did try vim some
time ago but being a novice in these areas I couldn't get the syntax file to
load and help on the web confusing or indecipherable. 

TIA,

Si.


___
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: OT console based editor that can do php syntax highlighting

2009-02-14 Thread Wojciech Puchar
joe probably can. i don't use PHP but it highlights properly every other 
language source i use


On Sat, 14 Feb 2009, Simon Griffiths wrote:


Hello Everyone,

I'm guessing this is off-topic so thank you in advance if you can offer any
help.

I currently SSH into a couple of freebsd machine I have dotted about which
run some console and web based php code.  This is all fine and dandy but
when it comes to remote support I struggle reading plain code when the file
gets over a certain size and find a little syntax highlighting helps a lot.

So can anyone recommend an editor that can do this ?  I did try vim some
time ago but being a novice in these areas I couldn't get the syntax file to
load and help on the web confusing or indecipherable.

TIA,

Si.


___
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


Pendrive 8G+CAM_REQ_CMP_ERR

2009-02-14 Thread Sylvio César Teixeira Amorim
Hello everyone,

  Gentlemen, I wonder if someone passed by the following problem, I have
3 Pendrive, 2 are 1, 1G and 8G, I'm using FreeBSD-7.1-stable, the problem is
when you connect to 8G, the fbsd detects the device, da0, etc, but not
create the / dev/da0 takes us about 10min trying to create this device, only
appears after / dev/da0 and various error messages such as: IOERROR,
CAM_REQ_CMP_ERR and not mounted.
  The 8G are of FAT32 and to recognize and are usually mounted in Linux,
usually the mount of 1G in FreeBSD, but the filesystem is FAT16.
Someone went through this problem?


-- 
-=-=-=-=-=-=-=- Live free or die - UNIX* -=-=-=-=-=-=-=
___
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: OT console based editor that can do php syntax highlighting

2009-02-14 Thread Simon Griffiths
Beautiful!  That is exactly what I wanted.  

Thank you very much!  

Si. 

 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Wojciech Puchar
 Sent: 14 February 2009 12:46
 To: Simon Griffiths
 Cc: freebsd-questions@freebsd.org
 Subject: Re: OT console based editor that can do php syntax highlighting
 
 joe probably can. i don't use PHP but it highlights properly every other
 language source i use
 
 On Sat, 14 Feb 2009, Simon Griffiths wrote:
 
  Hello Everyone,
 
  I'm guessing this is off-topic so thank you in advance if you can offer
 any
  help.
 
  I currently SSH into a couple of freebsd machine I have dotted about
which
  run some console and web based php code.  This is all fine and dandy but
  when it comes to remote support I struggle reading plain code when the
 file
  gets over a certain size and find a little syntax highlighting helps a
 lot.
 
  So can anyone recommend an editor that can do this ?  I did try vim some
  time ago but being a novice in these areas I couldn't get the syntax
file
 to
  load and help on the web confusing or indecipherable.
 
  TIA,
 
  Si.
 
 
  ___
  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
 
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.0.237 / Virus Database: 270.10.23/1950 - Release Date: 02/13/09
 06:51:00

___
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 Preferred RAID controllers

2009-02-14 Thread Gabe
--- On Mon, 2/9/09, Matthew Seaman m.sea...@infracaninophile.co.uk wrote:

 From: Matthew Seaman m.sea...@infracaninophile.co.uk
 Subject: Re: FreeBSD Preferred RAID controllers
 To: n...@att.net
 Cc: freebsd-questions@freebsd.org
 Date: Monday, February 9, 2009, 3:08 PM
 Gabe wrote:
 
  Now with a gstripe+gmirror setup, would it be possible
 to fail a
  specific drive on purpose? I mean fail a (good) drive,
 pull it out,
  replace it and rebuild(?) it. I know I know, but humor
 me.
 
 Yes.
 
   Cheers,
 
   Matthew
 
 Well, to 'fail' the drive, you'ld have to
 physically pull the drive
 from the chassis which will involve a power cycle unless
 you've got
 hot-swap drives.  Of course, you should confirm that your
 system will
 boot with the RAID in a degraded state and that rebuilding
 the RAID will
 continue even if interrupted by a reboot.  gmirror(8)
 passes those
 tests.  You do have to type some commands to get a mirror
 to rebuild
 (examples are shown in the man page) unlike some hardware
 RAIDs where
 simply inserting an unused disk is sufficient.
 
 -- Dr Matthew J Seaman MA, D.Phil.   7
 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11
 9PW

Hello again all,

So I wanted to test out gmirror on software RAID so I installed a completely 
vanilla FBSD 7, as base an install as you can get, it hasn't even been on the 
network. Anyway, I did the following upon first boot to get gmirror going:

# sysctl kern.geom.debugflags=17

Then:
# gmirror label -vb round-robin gm0 /dev/ad0

Then:
# gmirror load

Then:
# echo 'geom_mirror_load=YES'  /boot/loader.conf

Then I edited /etc/fstab to show:
/dev/mirror/gm0s1bnoneswapsw  0   0
/dev/mirror/gm0s1a/   ufs rw  1   1
/dev/mirror/gm0s1e/tmpufs rw  0   0
/dev/mirror/gm0s1f/usrufs rw  2   2
/dev/mirror/gm0s1d/varufs rw  2   2

I then rebooted the system, once I setup the mirror:

# gmirror insert gm0 /dev/ad1
# gmirror status

and it shows as COMPLETE. Okay, here comes the annoying part, I've got 
hot-swappable bays and I went ahead and pulled the drive. I then tried to write 
to the disk so that it realizes the disk is no longer there:

# touch file

once I do that and execute: gmirror status it shows as degraded. All fine and 
dandy. However when it comes time to pop the drive back in the drive is not 
recognized at all. I mean, the green light on the bay comes on so it definitely 
makes a connection but then thats it, atacontrol list doesn't list it and 
gmirror status still shows the same, degraded.

What gives? I wonder if this is hardware related? Bios related even? Any clues?

Thanks!
___
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: OT console based editor that can do php syntax highlighting

2009-02-14 Thread Lars Eighner

On Sat, 14 Feb 2009, Simon Griffiths wrote:


So can anyone recommend an editor that can do this ?  I did try vim some
time ago but being a novice in these areas I couldn't get the syntax file to
load and help on the web confusing or indecipherable.


joe

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
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 gcc on FreeBSD 4.11

2009-02-14 Thread RW
On Sat, 14 Feb 2009 01:29:12 -0600
Shaun free...@shaunc.com wrote:

   Is it safe to install one of the newer gcc ports on FreeBSD 4.11?
   I've had this machine for three years; I don't recall ever
   upgrading the compiler, although pkg_info seems to think that I
   did, or at least attempted to. I'm wondering if there are any
   risks involved in going from gcc 2.95 to, say, 3.4.6. Typically
   I'm happy to pull the latest stable of just about anything, but
   the compiler is a different story.
...
 FWIW: The reason I was wanting to upgrade gcc was to get the
 /usr/ports/net-mgmt/darkstat package installed. 


For future reference, installing a gcc port doesn't upgrade gcc, it
installs a extra version of the compiler with differently named binaries
e.g. gcc44 instead of gcc. Ports that need specific versions of gcc to
build will acquire a gcc build-dependency if they cannot be built from
the system compiler.  Probably, this didn't work correctly for you since
the port's infrastructure no longer supports 4.x. Although it might
also happen if you have ccache installed, and you put it's symlinks in
your path.


The only correct way to upgrade the system compiler itself is to build a
later version of FreeBSD. 
___
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


OT: sed + exit status

2009-02-14 Thread Robert Huff

According to the man page:

EXIT STATUS
 The sed utility exits 0 on success, and 0 if an error occurs.


However, what constitutes success is undefined.
Consider the sed command

s/FOO/bar/

.  Is sed successful is there are no instances of FOO?  Or
only if there is at least one instance of FOO and it is successfully
replaced by bar?

Respectfully,


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: Unix Epoch

2009-02-14 Thread Andrew Gould
On Sat, Feb 14, 2009 at 2:32 AM, Jos Chrispijn j...@webrz.net wrote:

 On 13.02.2009 at exactly 23:31:30 (UTC), Unix time was equal to
 '1234567890'. This was the total time that has been elapsed since 1 januari
 1970 0:00 UTC. After having survived from a major headache (...) I wonder
 whether this can technically affect my system or is it just a milestone in
 history?

 Jos Chrispijn
 ___


It is my understanding that this event resulted in a certain amount of
alcohol consumption yesterday.  It is possible, therefore, depending on how
you define technically affect, that certain systems may experience
certain..inefficiencies today.  Your mileage may vary.  ;-)
___
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: OT console based editor that can do php syntax highlighting

2009-02-14 Thread Sean Cavanaugh
Nano supports syntax highlighting. it is off by default but can easily be 
turned on.  I think that you actually have to find the config file to make 
it handle PHP though but that can be found pretty easily on the web


-Sean

--
From: Simon Griffiths simon.griffi...@tenenbaum.co.uk
Sent: Saturday, February 14, 2009 7:27 AM
To: freebsd-questions@freebsd.org
Subject: OT console based editor that can do php syntax highlighting


Hello Everyone,

I'm guessing this is off-topic so thank you in advance if you can offer 
any

help.

I currently SSH into a couple of freebsd machine I have dotted about which
run some console and web based php code.  This is all fine and dandy but
when it comes to remote support I struggle reading plain code when the 
file
gets over a certain size and find a little syntax highlighting helps a 
lot.


So can anyone recommend an editor that can do this ?  I did try vim some
time ago but being a novice in these areas I couldn't get the syntax file 
to

load and help on the web confusing or indecipherable.

TIA,

Si.


___
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: OT console based editor that can do php syntax highlighting

2009-02-14 Thread Simon Griffiths
Thanks for the tip Sean.  

It was mentioned that I could use joe and part of the /usr/ports/editors/joe
build there is jpico which emulates the shortcuts im so used to in pico and
nano.  I think joe works great for me.

Cheers,

Si.

Simon Griffiths
So bored I made...
www.tenenbaum.co.uk

 -Original Message-
 From: Sean Cavanaugh [mailto:millenia2...@hotmail.com]
 Sent: 14 February 2009 15:55
 To: Simon Griffiths; freebsd-questions@freebsd.org
 Subject: Re: OT console based editor that can do php syntax highlighting
 
 Nano supports syntax highlighting. it is off by default but can easily be
 turned on.  I think that you actually have to find the config file to make
 it handle PHP though but that can be found pretty easily on the web
 
 -Sean
 
 --
 From: Simon Griffiths simon.griffi...@tenenbaum.co.uk
 Sent: Saturday, February 14, 2009 7:27 AM
 To: freebsd-questions@freebsd.org
 Subject: OT console based editor that can do php syntax highlighting
 
  Hello Everyone,
 
  I'm guessing this is off-topic so thank you in advance if you can offer
  any
  help.
 
  I currently SSH into a couple of freebsd machine I have dotted about
which
  run some console and web based php code.  This is all fine and dandy but
  when it comes to remote support I struggle reading plain code when the
  file
  gets over a certain size and find a little syntax highlighting helps a
  lot.
 
  So can anyone recommend an editor that can do this ?  I did try vim some
  time ago but being a novice in these areas I couldn't get the syntax
file
  to
  load and help on the web confusing or indecipherable.
 
  TIA,
 
  Si.
 
 
  ___
  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
 
 
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.0.237 / Virus Database: 270.10.23/1950 - Release Date: 02/13/09
 06:51:00

___
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 Preferred RAID controllers

2009-02-14 Thread Matthew Seaman

Gabe wrote:

--- On Mon, 2/9/09, Matthew Seaman m.sea...@infracaninophile.co.uk wrote:


From: Matthew Seaman m.sea...@infracaninophile.co.uk
Subject: Re: FreeBSD Preferred RAID controllers
To: n...@att.net
Cc: freebsd-questions@freebsd.org
Date: Monday, February 9, 2009, 3:08 PM
Gabe wrote:


Now with a gstripe+gmirror setup, would it be possible

to fail a

specific drive on purpose? I mean fail a (good) drive,

pull it out,

replace it and rebuild(?) it. I know I know, but humor

me.

Yes.

Cheers,

Matthew

Well, to 'fail' the drive, you'ld have to
physically pull the drive
from the chassis which will involve a power cycle unless
you've got
hot-swap drives.  Of course, you should confirm that your
system will
boot with the RAID in a degraded state and that rebuilding
the RAID will
continue even if interrupted by a reboot.  gmirror(8)
passes those
tests.  You do have to type some commands to get a mirror
to rebuild
(examples are shown in the man page) unlike some hardware
RAIDs where
simply inserting an unused disk is sufficient.

-- Dr Matthew J Seaman MA, D.Phil.   7
Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11
9PW


Hello again all,

So I wanted to test out gmirror on software RAID so I installed a completely 
vanilla FBSD 7, as base an install as you can get, it hasn't even been on the 
network. Anyway, I did the following upon first boot to get gmirror going:

# sysctl kern.geom.debugflags=17

Then:
# gmirror label -vb round-robin gm0 /dev/ad0

Then:
# gmirror load

Then:
# echo 'geom_mirror_load=YES'  /boot/loader.conf

Then I edited /etc/fstab to show:
/dev/mirror/gm0s1bnoneswapsw  0   0
/dev/mirror/gm0s1a/   ufs rw  1   1
/dev/mirror/gm0s1e/tmpufs rw  0   0
/dev/mirror/gm0s1f/usrufs rw  2   2
/dev/mirror/gm0s1d/varufs rw  2   2

I then rebooted the system, once I setup the mirror:

# gmirror insert gm0 /dev/ad1
# gmirror status

and it shows as COMPLETE. Okay, here comes the annoying part, I've got 
hot-swappable bays and I went ahead and pulled the drive. I then tried to write 
to the disk so that it realizes the disk is no longer there:

# touch file

once I do that and execute: gmirror status it shows as degraded. All fine and 
dandy. However when it comes time to pop the drive back in the drive is not 
recognized at all. I mean, the green light on the bay comes on so it definitely 
makes a connection but then thats it, atacontrol list doesn't list it and 
gmirror status still shows the same, degraded.

What gives? I wonder if this is hardware related? Bios related even? Any clues?


See atacontrol(8)

  # atacontrol list

shows what your system knows is there

  # atacontrol attach X

where X is the channel number, probes and attaches any devices on that
channel in exactly the same way it is done at system boot.

See camcontrol(8) if you've got SCSI drives.

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



signature.asc
Description: OpenPGP digital signature


Re: Recommendations for running FreeBSD as a guest OS

2009-02-14 Thread Michael Powell
Bobby Walker wrote:

 I have a small network at work that, unfortunately, uses Windows 2003.
 I need a good mail server, but I do not have a budget for purchasing
 additional software.  Exchange requires too many hacks to configure a
 catchall email account, and Exchange and I do not get along very well.
 So, today while brainstorming, I thought why not run FreeBSD as a guest
 OS on the box.  Any suggestions for the best way of doing this?
 

Another options may be to just use the smtp and pop3 that comes with Win2K3. 
You'll see these in the Add/Remove Windows Components under Add or Remove 
Software of Control Panel. These were previously on the Options Pack CD 
from which you installed IIS, but when Win2K3 came out they were added.

May not fit your requirements. But it is free and Exchange is high $dollar 
and in many situations is overkill. Postfix in a VM might suffice for a 
small load. Free: http://www.vmware.com/products/server/

The main problem I see is the default networking situation in most VM 
installs is NAT. This allows outbound/return traffic but will block incoming 
connection attempts. There are three different networking configurations you 
can choose from, and the one you want is bridge. It's also the most 
difficult to configure. 

I've used VirtualBox on a Linux machine for a while now but it's quite 
possible the VMware Server may be a little more mature for use on a Windows 
box. YMMV

-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


Why there are so many binary packages missing on FTP?

2009-02-14 Thread Yuri

/usr/ports/UPDATING recently recommended to upgrade kde-4.1.0 to kde-4-2.0.

So I deleted kde-4.1.0 only to find out that there are no binaries for 
both kde-4.1.0 and kde-4.2.0.
So I had to build kde-4.2.0 for many hours, again, only to find out that 
it doesn't work as well as kde-4.1.0.


Desktop Folder applet doesn't show anything for ke-4.1.0. Applets show 
contents of other folders
but there are no scrollbars in them. Also bottom panel doesn't have any 
colors and looks ugly.


So now I a stuck with broken kde-4.2.0 and there is no easy way to go 
anywhere.


I sent similar question to k...@freebsd.org but got no answer.

So why kde-4.1.0 and kde-4.2.0 binaries are missing on FTP?
And does kde4-4.2.0 work for anybody?

Yuri

___
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: ipv6 aliases in rc.conf

2009-02-14 Thread Steve Bertrand
Reinhard Haller wrote:
 Hi,
 
 I'm trying to add ipv6 aliases for my jails (7.1) in rc.conf.
 
 ifconfig_lo0_alias0=inet 192.168.64.1 netmask 255.255.255.0
 ifconfig_lo0_alias1=inet 192.168.64.2 netmask 255.255.255.255
 ipv6_ifconfig_lo0_alias0=inet6 fd08:2548:a3e8:40::1 prefixlen 48
 ipv6_ifconfig_lo0_alias1=inet6 fd08:2548:a3e8:40::2 prefixlen 128

ifconfig_lo0=inet 192.168.64.1 netmask 255.255.255.0
ifconfig_lo0_alias0=inet 192.168.64.2 netmask 255.255.255.255
ifconfig_lo0_alias1=inet6 fd08:2548:a3e8:40::1 prefixlen 48
ifconfig_lo0_alias2=inet6 fd08:2548:a3e8:40::2 prefixlen 128

...works for me.

Technically, IPv6 is designed for multiple addresses on each interface,
so the secondary (alias) parameter should not be needed at all. However,
using ifconfig, we must abide by it's methods of usage.

IPv6 addresses should be put inline with the IPv4 addresses under the
alias numbering scheme, and things will hold together.

Out of curiosity, why are you using a /48 prefixlen? I understand the
/128 (when it is not inside of another assigned prefix), but IMHO, you
should only use a /64 on an interface.

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


gpac-libgpac port not building on amd64

2009-02-14 Thread Troy
I just did a successful portupgrade of multimedia/gpac-libgpac but when
trying to upgrade the exact same port on amd64, it fails with the
following error.

Thanks

cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
-fno-strict-aliasing -Wno-pointer-sign
-I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
-DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/events.c -o
compositor/events.opic
compositor/events.c: In function 'load_text_node':
compositor/events.c:239: warning: passing argument 3 of 'gf_utf8_wcstombs'
from incompatible pointer type
compositor/events.c:247: warning: passing argument 3 of 'gf_utf8_wcstombs'
from incompatible pointer type
cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
-fno-strict-aliasing -Wno-pointer-sign
-I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
-DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/font_engine.c -o
compositor/font_engine.opic
cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
-fno-strict-aliasing -Wno-pointer-sign
-I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
-DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/hardcoded_protos.c -o
compositor/hardcoded_protos.opic
cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
-fno-strict-aliasing -Wno-pointer-sign
-I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
-DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/mesh.c -o
compositor/mesh.opic
In file included from compositor/mesh.c:33:
compositor/gl_inc.h:45:19: error: GL/gl.h: No such file or directory
gmake: *** [compositor/mesh.opic] Error 1
*** Error code 2

Stop in /usr/ports/multimedia/gpac-libgpac.
___
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: OT console based editor that can do php syntax highlighting

2009-02-14 Thread Polytropon
On Sat, 14 Feb 2009 12:27:02 -, Simon Griffiths 
simon.griffi...@tenenbaum.co.uk wrote:
 So can anyone recommend an editor that can do this ?  I did try vim some
 time ago but being a novice in these areas I couldn't get the syntax file to
 load and help on the web confusing or indecipherable. 

Joe's own editor (joe) now supports syntax highlightin,
as well as VI improved (vim). The editor of the Midnight
Commander (mcedit) is my individual program of choice,
allthough I needed to modify the syntax files to fit
my imaginations, just as I created new ones. :-)




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


Re: gpac-libgpac port not building on amd64

2009-02-14 Thread Josh Carroll
On Sat, Feb 14, 2009 at 1:42 PM, Troy t...@twisted.net wrote:
 I just did a successful portupgrade of multimedia/gpac-libgpac but when
 trying to upgrade the exact same port on amd64, it fails with the
 following error.

 Thanks

 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/events.c -o
 compositor/events.opic
 compositor/events.c: In function 'load_text_node':
 compositor/events.c:239: warning: passing argument 3 of 'gf_utf8_wcstombs'
 from incompatible pointer type
 compositor/events.c:247: warning: passing argument 3 of 'gf_utf8_wcstombs'
 from incompatible pointer type
 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/font_engine.c -o
 compositor/font_engine.opic
 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/hardcoded_protos.c -o
 compositor/hardcoded_protos.opic
 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/mesh.c -o
 compositor/mesh.opic
 In file included from compositor/mesh.c:33:
 compositor/gl_inc.h:45:19: error: GL/gl.h: No such file or directory
 gmake: *** [compositor/mesh.opic] Error 1
 *** Error code 2

 Stop in /usr/ports/multimedia/gpac-libgpac.

I ran into this, too. Since I didn't want OpenGL support anyway, I
just added OPTIONS support to this port, and one of those options is
to disable OpenGL support and submitted this as a PR.

The PR hasn't fully posted yet, but here's the URL for when it's in the system:

http://www.freebsd.org/cgi/query-pr.cgi?pr=131681

The patch is here if you're interested:

http://pflog.net/~floyd/gpac-libgpac.patch

cd /usr/ports/multimedia/gpac-libgpac

patch  /path/to/gpac-libgpac.patch

Then just make config and unselect the option for OPENGL, and it should build.

The port should have OpenGL as a dependency if OpenGL support is
enabled - as it is now, it's building with GL support if it finds
GL/gl.h and libGL.so, but it should be listed explicitly as a
dependency in the Makefile. I'll work on another patch for that.

As for getting it to build as-is, I think it'd be sufficient to add
-I${LOCALBASE}/include to --extra-cflags and -L${LOCALBASE}/lib to
--extra-ldflags, but I'm not sure this is the proper way to do that
(I'd have to check the porter's handbook). It does in fact build
properly by adding those, though so just update those lines in the
Makefile to:

--extra-cflags=${CFLAGS} ${PTHREAD_CFLAGS} -fPIC
-I${LOCALBASE}/include \
--extra-ldflags=${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib \

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


getty on /dev/ttypN

2009-02-14 Thread Michael P. Soulier
After upgrading from 5.5 to 6.3 I'm noticing this a lot on the main console
and in my logs. 

Dec 25 09:33:28 kanga init: can't exec getty 'none' for port /dev/ttyp0: No
such file or directory
Dec 25 09:33:38 kanga init: can't exec getty 'none' for port /dev/ttyp1: No
such file or directory

etc...

msoul...@kanga:/etc$ ls -l /dev/ttyp0
crw--w  1 msoulier  tty0,  94 Feb 14 15:29 /dev/ttyp0

it's there...

/etc/ttys only mentions them as

msoul...@kanga:/etc$ grep ttyp0 /etc/ttys 
ttyp0   nonenetwork on

The only getty configured terminals are

msoul...@kanga:/etc$ grep getty /etc/ttys 
# getty The program to start running on the terminal.  Typically a
#   getty program, as the name implies.  Other common entries
#   include none, when no getty is needed, and xdm, to start the
# status Must be on or off.  If on, init will run the getty program on
# name  getty   typestatus  comments
ttyv0   /usr/libexec/getty Pc cons25  on  secure
ttyv1   /usr/libexec/getty Pc cons25  on  secure
ttyv2   /usr/libexec/getty Pc cons25  on  secure
ttyv3   /usr/libexec/getty Pc cons25  on  secure
ttyv4   /usr/libexec/getty Pc cons25  on  secure
ttyv5   /usr/libexec/getty Pc cons25  on  secure
ttyv6   /usr/libexec/getty Pc cons25  on  secure
ttyv7   /usr/libexec/getty Pc cons25  on  secure
ttyd0   /usr/libexec/getty std.9600   dialup  off secure
ttyd1   /usr/libexec/getty std.9600   dialup  off secure
ttyd2   /usr/libexec/getty std.9600   dialup  off secure
ttyd3   /usr/libexec/getty std.9600   dialup  off secure
dcons   /usr/libexec/getty std.9600   vt100   off secure

I think I ran mergemaster correctly on the upgrade. I'm not sure why init is
trying to talk to these ports, which are obviously pseudo terminals...

Advice appreciated.

Mike
-- 
Michael P. Soulier msoul...@digitaltorque.ca
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein


pgpkznDNScJa0.pgp
Description: PGP signature


Re: portupgrade failing on perl modules

2009-02-14 Thread Michael P. Soulier
On 08/02/09 Matthew Seaman said:

 I'd wager that 'pkg_info -l p5-Module-Giving-You-Trouble' says everything
 is installed under ${LOCALBASE}/lib/perl5/site-perl/5.8.8 but that if you
 run 'perl -v' the number 5.8.9 is prominently displayed.

 Please read the UPDATING entry for 20090113, strike yourself upon the
 forehead whilst crying D'oh! in a loud voice and then run
 'perl-after-upgrade -f' as instructed.

All of the above worked, except striking myself on the forehead, which just
hurt. 

Mike
-- 
Michael P. Soulier msoul...@digitaltorque.ca
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein


pgpyyqGgDqsCT.pgp
Description: PGP signature


Re: gpac-libgpac port not building on amd64

2009-02-14 Thread Josh Carroll
 http://pflog.net/~floyd/gpac-libgpac.patch

Oops, if anyone grabbed that patch, grab it again, I ran the diff
against the wrong original Makefile that had my --disable-opengl
hard-coded in there during testing.

Sorry for the trouble.

Josh
___
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: getty on /dev/ttypN

2009-02-14 Thread Polytropon
On Sat, 14 Feb 2009 15:33:20 -0500, Michael P. Soulier 
msoul...@digitaltorque.ca wrote:
 I think I ran mergemaster correctly on the upgrade. I'm not sure why init is
 trying to talk to these ports, which are obviously pseudo terminals...

Do you have X running? Usually, the ttypN pseudo terminals
are employed by xterms (or other terminal emulators on X).
Maybe this is a result of a non-starting X?

Do you have automated screen sessions running? Does the
command w show something strange?

The configuration files you showed seem to look completely
normal.

I don't see why init tries to getty for the ttypN...

init: can't exec getty 'none' for port /dev/ttyp[01]:
No such file or directory

The ttypN files in /dev are, if I see this correctly, only
generated when needed.


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


The FreeBSD Diary: 2009-02-14

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

RECENT ARTICLES:

2-Dec : Obscuring smtp auth headers
 If you consider your smtp-auth location to be private, this is what you 
want. 
 http://freebsddiary.org/smtp-headers-rewrite-auth.php?2

29-Nov : OpenVPN - creating a routed VPN
 If you have multiple VPN clients, this is a practical solution. 
 http://freebsddiary.org/openvpn-routed.php?2

27-Nov : Creating your own Certificate Authority
 How to create a CA and generate your own SSL certificates
 http://freebsddiary.org/openvpn-easy-rsa.php?2

27-Nov : OpenVPN - getting it running
 Using OpenVPN to create a secure pathway between home and office 
 http://freebsddiary.org/openvpn.php?2

5-Oct : Removing dead mailing lists from Mailman
 Mailing lists can outlive their usefulness 
 http://freebsddiary.org/mailman-removing-dead-lists.php?2

30-Aug : gmirror - recovering from a failed HDD
 an HDD failed.  gmirror to the rescue. 
 http://freebsddiary.org/gmirror-failure.php?2

6-Jul : ezjail - A jail administration framework
 This makes jails easier 
 http://freebsddiary.org/ezjail.php?2

24-Jun : Adding gmirror to an existing installation
 Adding RAID-1 to an existing FreeBSD 7 installation
 http://freebsddiary.org/gmirror.php?2

20-Mar : ThinkPad x61s
 Unpacking the box, installing PC-BSD 
 http://freebsddiary.org/thinkpad-x61s.php?2

17-Mar : Using two monitors with X.org
 The GeForce 8600 GT with two monitors 
 http://freebsddiary.org/xorg-two-screens.php?2


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

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


Re: FreeBSD Preferred RAID controllers

2009-02-14 Thread Gabe
--- On Sat, 2/14/09, Matthew Seaman m.sea...@infracaninophile.co.uk wrote:

 From: Matthew Seaman m.sea...@infracaninophile.co.uk
 Subject: Re: FreeBSD Preferred RAID controllers
 To: n...@att.net
 Cc: freebsd-questions@freebsd.org
 Date: Saturday, February 14, 2009, 8:30 AM
 Gabe wrote:
  --- On Mon, 2/9/09, Matthew Seaman
 m.sea...@infracaninophile.co.uk wrote:
  
  From: Matthew Seaman
 m.sea...@infracaninophile.co.uk
  Subject: Re: FreeBSD Preferred RAID controllers
  To: n...@att.net
  Cc: freebsd-questions@freebsd.org
  Date: Monday, February 9, 2009, 3:08 PM
  Gabe wrote:
 
  Now with a gstripe+gmirror setup, would it be
 possible
  to fail a
  specific drive on purpose? I mean fail a
 (good) drive,
  pull it out,
  replace it and rebuild(?) it. I know I know,
 but humor
  me.
 
  Yes.
 
 Cheers,
 
 Matthew
 
  Well, to 'fail' the drive, you'ld have
 to
  physically pull the drive
  from the chassis which will involve a power cycle
 unless
  you've got
  hot-swap drives.  Of course, you should confirm
 that your
  system will
  boot with the RAID in a degraded state and that
 rebuilding
  the RAID will
  continue even if interrupted by a reboot. 
 gmirror(8)
  passes those
  tests.  You do have to type some commands to get a
 mirror
  to rebuild
  (examples are shown in the man page) unlike some
 hardware
  RAIDs where
  simply inserting an unused disk is sufficient.
 
  -- Dr Matthew J Seaman MA, D.Phil.
   7
  Priory Courtyard
  
 Flat 3
  PGP: http://www.infracaninophile.co.uk/pgpkey
 Ramsgate
  
 Kent, CT11
  9PW
  
  Hello again all,
  
  So I wanted to test out gmirror on software RAID so I
 installed a completely vanilla FBSD 7, as base an install as
 you can get, it hasn't even been on the network. Anyway,
 I did the following upon first boot to get gmirror going:
  
  # sysctl kern.geom.debugflags=17
  
  Then:
  # gmirror label -vb round-robin gm0 /dev/ad0
  
  Then:
  # gmirror load
  
  Then:
  # echo 'geom_mirror_load=YES'
  /boot/loader.conf
  
  Then I edited /etc/fstab to show:
  /dev/mirror/gm0s1bnoneswapsw  
0   0
  /dev/mirror/gm0s1a/   ufs rw  
1   1
  /dev/mirror/gm0s1e/tmpufs rw  0   0
  /dev/mirror/gm0s1f/usrufs rw  2   2
  /dev/mirror/gm0s1d/varufs rw  
2   2
  
  I then rebooted the system, once I setup the mirror:
  
  # gmirror insert gm0 /dev/ad1
  # gmirror status
  
  and it shows as COMPLETE. Okay, here comes the
 annoying part, I've got hot-swappable bays and I went
 ahead and pulled the drive. I then tried to write to the
 disk so that it realizes the disk is no longer there:
  
  # touch file
  
  once I do that and execute: gmirror status it shows as
 degraded. All fine and dandy. However when it comes time to
 pop the drive back in the drive is not recognized at all. I
 mean, the green light on the bay comes on so it definitely
 makes a connection but then thats it, atacontrol list
 doesn't list it and gmirror status still shows the same,
 degraded.
  
  What gives? I wonder if this is hardware related? Bios
 related even? Any clues?
 
 See atacontrol(8)
 
# atacontrol list
 
 shows what your system knows is there
 
# atacontrol attach X
 
 where X is the channel number, probes and attaches any
 devices on that
 channel in exactly the same way it is done at system boot.
 
 See camcontrol(8) if you've got SCSI drives.
 
   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

They're SATA drives. The two drives are on the same channel when using 
atacontrol list. I'm unsure that atacontrol attach ata0 would work but I'll 
give it a shot, hopefully that works. I'll report back.

Thanks again
___
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


bootable 7.1 USB disk versus flash drive versus internal ide hard drive

2009-02-14 Thread Fbsd1

Is there a differences between a usb external hard drive
and a usb flash drive boot loader pgm?
When i plug a usb flash drive in FreeBSD handles it
just like a internal IDE hard drive.

To make a hard drive bootable you have to write the boot loader pgm to 
the disk. Does the ide hard drive boot loader pgm work on usb external 
hard drives and a usb flash drive?


My pc has bios option to boot from usb disk but will not boot when i 
plug in a bootable flash drive.


What am i missing here?

___
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: OT: sed + exit status

2009-02-14 Thread Dimitar Vasilev


.  Is sed successful is there are no instances of FOO?  Or
 only if there is at least one instance of FOO and it is successfully
 replaced by bar?

Respectfully,


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

Hi Robert,
try to use truss or strace to see the exit codes in both cases.
___
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