Re: 8.0 upgrade geometry does not match label

2010-04-30 Thread Reinhard Haller
Am 29.04.2010 16:29, schrieb Marcel Moolenaar:
 On Apr 29, 2010, at 6:07 AM, Reinhard Haller wrote:

   
 Hi,

 as far as I know my disk is not operating in dangerously dedicated mode.
 Despite this I'm unable to upgrade to freebsd 8.0.
 
 Please explain how or why you can't upgrade. The information you gave
 does not point towards any problems. All looks good.

 Also, the subject line mentions geometry does not match label, but
 you did not mention anything it in your email about it. Again, it
 by itself does not indicate a problem.

 Thanks,

   
the kernel reboots and one of the last lines contains the well known
geometry string and a bufwrite error -- and no entry in any logfile.
Currently I'm preparing a kernel with debugging enabled to track down
the issue. I don't believe the disk geometry problems are responsible
for the reboot, but having solved this issue should help.


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


Parent Child SIGPIPE and write problem

2010-04-30 Thread Murray Taylor
I am writing a process that has a parent running as a daemon process
that has to spawn an appropriate child to parse whatever the parent has
in one of several formats (hence the variety of child parsers)

I am getting occasional SIGPIPE errors (and the boring bit is that I
have put in code that I think _should_prevent the SIGPIPE occurring

any comments or guidance welcome ...


parent pseudo code

main()
{
daemon

while(1)
{
get test data

pipe()

fork()
in Parent
read(child-parent pipe) until \n
log string to logfile
write(parent-child pipe) real data to child for
processing
close(parent-child pipe)

read(child-parent pipe) until EOF for result

waitpid(child)
get return code

in Child
set stdin nonblocking so child will inherit
execve the correct parser
}
}

child pseudo code

main()
{
read cmdline params

write(child-parent pipe) my PID

read(parent-child pipe) intil EOF
process through flex/bison parser
write(child-parent pipe) the result
return (code)
}

I am catching SIPPIPE in the parent and logging it, and have a 
test on the parent write for EPIPE and am doing a go-around twice loop
through
the write before giving up.



Murray Taylor
Bytecraft Systems
Special Projects Engineer

P: +61 3 8710 0600
D: +61 3 9238 4275
F: +61 3 9238 4140

--
 |_|0|_|Absence of evidence
 |_|_|0|is not evidence of absence
 |0|0|0|Carl Sagan
---
The information transmitted in this e-mail is for the exclusive
use of the intended addressee and may contain confidential
and/or privileged material. Any review, re-transmission,
dissemination or other use of it, or the taking of any action
in reliance upon this information by persons and/or entities
other than the intended recipient is prohibited. If you
received this in error, please inform the sender and/or
addressee immediately and delete the material. 

E-mails may not be secure, may contain computer viruses and
may be corrupted in transmission. Please carefully check this
e-mail (and any attachment) accordingly. No warranties are
given and no liability is accepted for any loss or damage
caused by such matters.
---

### This e-mail message has been scanned for Viruses by Bytecraft ###
___
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: Gaming

2010-04-30 Thread Mikle Krutov
On Thu, Apr 29, 2010 at 09:46:15PM +0200, David DEMELIER wrote:
 Yes probably, but for now I can play urban terror as well. Which
 features are missing ?
 
 -- 
 Demelier David
First, it's shaders support. I've used to play toribash a lot, and it
requires OpenGL 1.3 which mesa does support, but it could not use
cell-shading and graphics were not-too-good. 
Second, i do not know what feature does it require, but i'm a
pretty-long-time dwarf fortress player, and with ATI i can not play
graphics version (where graphics are just .bpm tiles)  stonesence does
not even run with wine. (whell.. ascii rocks, but i like watching what
have i created in 3d-version :))
Third, i used to play wurm online, that does not require high-end
graphics, but is unplayeble (e.g. it doesn't even run with ATI).
And, of course, missing s3tc support that disallows playing some newer
commercial games. 
But don't take me wrong, i like ATI, and the only feature that i really 
miss and because of which i use now nvidia-graphics card -- vdpau, 
while waiting for stabilization of mplayer-mt patches (e.g. on some of
video-files it crashes)

-- 
Wbr,
Krutov Mikle
___
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: Gaming

2010-04-30 Thread Mikle Krutov
On Fri, Apr 30, 2010 at 11:41:33AM +1200, Jonathan Chen wrote:
 I agree. There's a wiki entry detailing the process:
 
 http://wiki.freebsd.org/Wine#head-6963d527c173e57b1567e881305b544d33435b6d
 
 There are a few problems with the network interfaces on the 32-64 bit
 bridge; which will intefere with some network related games (eg: EVE
 Online), but on the whole the experience is very positive.
 
 Cheers.
 -- 
 Jonathan Chen j...@chen.org.nz
 --
 If everything's under control, you're going too slow
   - Mario Andretti
As for me, the worst thing with wine on amd64 is that wineserver is
using 100% cpu all the time and so it is kind of slowier than wine on 
i386. The only game i play for now is dwarf fortress, it is really 
cpu-using game, and on my pretty-old laptop with i386 and 2.2GHz cpu 
it runs little faster than on amd64 3.0GHz machine.
Btw, does that wineserver behavior reproduce for anyone?

-- 
Wbr,
Krutov Mikle
___
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: Gaming

2010-04-30 Thread George Liaskos
On Thu, Apr 29, 2010 at 8:54 PM, David Kelly dke...@hiwaay.net wrote:
 On Thu, Apr 29, 2010 at 10:10:20AM -0700, Joe's Morgue wrote:
 Looking thru your manuals, I have not seen anything about gaming on a
 FreeBSD machine. ?

 You are not reading the manual correctly. Then *entire* manual is the
 game.  :-)

Where is that upvote button when you need it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Using a scanner (USB) as user and not as root

2010-04-30 Thread Marco Beishuizen

On Fri, 30 Apr 2010, Warren Block wrote:


On Thu, 29 Apr 2010, Marco Beishuizen wrote:


On Thu, 29 Apr 2010, Warren Block wrote:


One more problem: there should be a quote at the end of the last line.

attach 100 {
device-name ugen[0-9].[0-9];
match vendor 0x04b8;
match product 0x010a;
action usb_devaddr=`echo $device-name | sed 's#^ugen##'`  \
chown root:saned /dev/usb/${usb_devaddr}.*  \
chmod 0660 /dev/usb/${usb_devaddr}.*


Shouldn't there be a ; at the end of the action line also? Because every 
line above ends with it too. I also ended the total attach 100 statement 
with }; because that seems the case in the rest of devd.conf.


Yes, sorry about that.  Next time I'm going to post the whole section instead 
of trying to edit it down.


To see if these changes work I'll have to reboot later because I'm updating 
my ports, and this can take a while...


There's '/etc/rc.d/devd restart', but it's probably not something to 
experiment with during updates.


After the changes in devd.conf the scanner now works as user! It has the 
user as owner and saned as group.

Thanks for the help.

Regards,
Marco
--
The Poems, all three hundred of them,
may be summed up in one of their phrases:
Let our thoughts be correct.
-- Confucius
___
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


Broken port 'py-sqlite3'... or maybe something else?

2010-04-30 Thread Modulok
List,

I tried to install 'py-sqlite3' with the usual 'make install clean'
routine. Instead, I got this:

===  Vulnerability check disabled, database not found
===  Extracting for py25-sqlite3-2.5.1_1
= No MD5 checksum recorded for python/Python-2.5.1.tgz.
= No SHA256 checksum recorded for python/Python-2.5.1.tgz.
= No suitable checksum found for python/Python-2.5.1.tgz.
*** Error code 1

Stop in /usr/ports/databases/py-sqlite3.


What does it mean? And...how do I go about getting 'py-sqlite3'
installed in light of it?
-Modulok-
___
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


Network Card Ordering

2010-04-30 Thread Dave
Hi all,
 I am using FreeBSD 7 and all my computers have built in intel lan
cards. When you boot you get em0 and em1. On some pc's I add an
additional network card which shows up as em2 and em3.

The problem I have is that on certain hardware that network card will
take the spaces em0 and em1, and the onboard cards will shuffle. Now
for various reasons this is a problem - is there any way to
specify/force cards on boot. I don't want to rename them because I
can't tell when this will/wont happen; I would rather force it somehow
to prefer the onboard cards?

Thanks for the help
Dave
___
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: Wireless networking question

2010-04-30 Thread S Roberts
Hello Chip,
  Good to hear from you..,

On Thu, 29 Apr 2010 15:52:13 -0700
Chip Camden sterl...@camdensoftware.com wrote:

 On Apr 26 2010 22:00, Carl Chave wrote:
   More info:  I found the following in the output of pciconf -vl:
  
  
   no...@pci0:2:0:0:       class=0x028000 card=0x10891a3b
   chip=0x002b168c rev=0x01 hdr=0x00 vendor     = 'Atheros
   Communications Inc.' class      = network
  
  From here:
  http://www.pcidatabase.com/vendor_details.php?id=174
  
 
 It looks like someone has already patched 8.0-STABLE:
 
 http://forums.freebsd.org/showthread.php?t=6310highlight=Atheros+AR9285
 
 The link to the .diff file 404's now, though.  How can I get a copy?
 
 Or maybe I should just upgrade to STABLE?
 

Well.., personally, I'd ping the patch author to confirm, but Yes,
bumping to next STABLE would be the preferred option myself..,

Regards,

S Roberts

___
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: Rosegarden seg faults

2010-04-30 Thread Da Rock
Still heard no word now, and I've tried the ports list several days ago
now. Can anyone tell me what the next step in this process is? Do I
contact the maintainer directly?


On Mon, 2010-04-26 at 17:25 +1000, Da Rock wrote:
 I've installed rosegarden for a task my missus has to do. The only
 problem is its seg faults and can't do anything.
 
 I can run rosegarden at the prompt, but when I click notation or
 sequencer it fails with a seg fault.
 
 The symptoms are the same as bug #346448 at the debian bugs site, but
 that is 2006 and is supposedly resolved; although the version in freebsd
 hasn't seemed to have changed since then.
 
 I running Freebsd 8, rosegarden 2.1pl2.
 
 Running gdb I find:
 0x000800c938b2 in _XtCountVaList () from /usr/local/lib/libXt.so.6
 
 The fault was apparently solved in 2.1pl4-2.
 
 Cheers
 
 ___
 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: iwi0 and spontaneous reboot on /etc/rc.d/netif restart

2010-04-30 Thread Joey Mingrone
Hello,

I just upgraded to 8.0-RELEASE-p2 from 7.2 and I'm also seeing kernel
crashes and reboots after running /etc/rc.d/netif restart, which
didn't occur with 7.2.  This is reproducible on demand.

After writing this email I found the following PR:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/144755

% /etc/rc.d/netif restart
Apr 30 08:57:04 met wpa_supplicant[1785]: CTRL-EVENT-SCAN-RESULTS
Apr 30 08:57:04 met wpa_supplicant[1719]: CTRL-EVENT-SCAN-RESULTS
Apr 30 08:57:04 met wpa_supplicant[1719]: Trying to associate with
0:xxx:aa (SSID='blah' freq=2447 MHz)
Apr 30 08:57:04 met wpa_supplicant[1785]: Trying to associate with
00:xx:aa (SSID='blah' freq=2447 MHz)
Apr 30 08:57:04 met wpa_supplicant[1785]: Associated with 00:xx:aa
Apr 30 08:57:04 met kernel: wlan0: link state changed to UP
Apr 30 08:57:05 met kernel: iwi0: firmware error
Apr 30 08:57:04 met wpa_supplicant[1719]: Associated with 00:xx:aa
Apr 30 08:57:05 met kernel: iwi0: need multicast update callback
Apr 30 08:57:10 met kernel: iwi0: device timeout
Apr 30 08:57:15 met wpa_supplicant[1719]: Authentication with 00:xx:aa
timed out.
Apr 30 08:57:15 met wpa_supplicant[1785]: Authentication with 00:xx:aa
timed out.
Apr 30 08:57:15 met kernel: wlan0: link state changed to DOWN
Apr 30 08:57:15 met wpa_supplicant[1719]: CTRL-EVENT-DISCONNECTED -
Disconnect event - remove keys
Apr 30 08:57:15 met wpa_supplicant[1785]: CTRL-EVENT-DISCONNECTED -
Disconnect event - remove keys
Apr 30 08:57:24 met dhclient[1876]: send_packet: Network is down
Apr 30 08:58:01 met last message repeated 2 times

...crash and reboot...

% kgdb kernel /var/crash/vmcore.0
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
...
This GDB was configured as i386-marcel-freebsd...

Unread portion of the kernel message buffer:
wlan0: ieee80211_new_state_locked: pending SCAN - AUTH transition lost

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xc49331d5
fault code  = supervisor read, page not present
instruction pointer = 0x20:0xc0ad5b0c
stack pointer   = 0x28:0xc43bbb7c
frame pointer   = 0x28:0xc43bbc34
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 0 (iwi0 taskq)
trap number = 12
panic: page fault
Uptime: 1m42s
Physical memory: 1518 MB
Dumping 69 MB: 54 38 22 6

% kldstat
Id Refs AddressSize Name
 1   95 0xc040 656394   kernel
 21 0xc0a57000 b69c if_fxp.ko
 32 0xc0a63000 2698cmiibus.ko
 41 0xc0a8a000 f528 if_iwi.ko
 56 0xc0a9a000 3fc40wlan.ko
 61 0xc0ada000 7194 snd_ich.ko
 72 0xc0ae2000 567b0sound.ko
 81 0xc0b39000 87d8 atapicd.ko
 91 0xc0b42000 4f6c atapicam.ko
101 0xc0b47000 d87c cpufreq.ko
111 0xc0b55000 30228iwi_bss.ko
121 0xc0b86000 2f2b0iwi_ibss.ko
131 0xc0bb6000 2f578iwi_monitor.ko
141 0xc0be6000 2ee0 wlan_acl.ko
151 0xc4858000 8000 linprocfs.ko
161 0xc4895000 26000linux.ko
171 0xc48f6000 3000 wlan_wep.ko
181 0xc48f9000 4000 wlan_tkip.ko
191 0xc48fe000 7000 wlan_ccmp.ko
201 0xc4cae000 9000 i915.ko

% less /boot/loader.conf
hw.ata.ata_dma=1
hw.ata.atapi_dma=1
kern.maxdsiz=734003200
kern.ipc.semmni=256
kern.ipc.semmns=512
kern.ipc.semmnu=256
sem_load=YES

atapicd_load=YES
atapicam_load=YES
cpufreq_load=YES
if_fxp_load=YES
snd_ich_load=YES

# stuff for wireless
legal.intel_iwi.license_ack=1
if_iwi_load=YES
iwi_bss_load=YES
iwi_ibss_load=YES
iwi_monitor_load=YES
wlan_acl_load=YES

Here are the relevant parts from /etc/rc.conf
wlans_iwi0=wlan0
ifconfig_wlan0=WPA DHCP

% cat /usr/src/sys/i386/conf/MY_KERNEL_CONFIG
cpu I686_CPU
ident MET_ATH_CX_2010-04-29

options SCHED_ULE
options PREEMPTION #Enable kernel thread preemption
options INET #InterNETworking
options INET6 #IPv6 communications protocols
options SCTP # Stream Control Transmission Protocol
options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support
options UFS_ACL #Support for access control lists
options UFS_DIRHASH #Improve performance on big directories
options UFS_GJOURNAL # Enable gjournal-based UFS journaling
options MD_ROOT #MD is a potential root device
options NFSCLIENT #Network Filesystem Client
options NFSSERVER #Network Filesystem Server
options NFSLOCKD #Network Lock Manager
options NFS_ROOT #NFS usable as /, requires NFSCLIENT
options PROCFS #Process filesystem (requires PSEUDOFS)
options PSEUDOFS #Pseudo-filesystem framework
options GEOM_PART_GPT # GUID Partition Tables.
options GEOM_LABEL # Provides labelization
options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options COMPAT_FREEBSD7 # Compatible with FreeBSD7

upgrading from i386 to AMD64

2010-04-30 Thread Neil Short
Based upon a different question in this forum, I find myself motivated to 
upgrade my i386 install to AMD64. Can this be done by a simple kernel rebuild 
or a binary upgrade? Is a full reinstallation necessary?


  

___
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 from i386 to AMD64

2010-04-30 Thread Robert Huff

Neil Short writes:

  Based upon a different question in this forum, I find myself
  motivated to upgrade my i386 install to AMD64. Can this be done
  by a simple kernel rebuild or a binary upgrade? Is a full
  reinstallation necessary?

Perhaps not strictly necessary, but the path of least
resistance and lowest risk.


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


I am new to BSD

2010-04-30 Thread Magel, Reid (DIS)
Here is what I want to use it for.

I have background in the Avaya/Lucent PBX world and I know how reliable
Unix is.

I would like to install a version of unix  on  a computer and just use
it for the following purposes.

1.  I want to add a couple terabyte drives to it and share them on
my network.   I want my kids and wife to be able to backup their files
from a Windows XP, Windows7 or Vista machine to these terabyte drives.
2.  I want to be able to load Asterisk on this machine and utilize a
couple digitrex boards.
3.  I may attach a printer to this box and share it across my
network.

Let me know your thoughts.

Thanks reid

David (Reid) Magel
Department of Information Services
Local Telephone Service-Tech Support
Post Office Box 42442
Olympia, WA  98504-2442
Office:  (360) 902-3350
Pager:  (206) 819-3256
Fax: (360) 586-6280
email   davi...@dis.wa.gov
text page: 2068193...@vtext.com

 Magel, Reid (DIS).vcf 
___
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: I am new to BSD

2010-04-30 Thread Jerry McAllister
On Fri, Apr 30, 2010 at 08:52:50AM -0700, Magel, Reid (DIS) wrote:

 Here is what I want to use it for.
 
 I have background in the Avaya/Lucent PBX world and I know how reliable
 Unix is.
 
 I would like to install a version of unix  on  a computer and just use
 it for the following purposes.
 
 1.I want to add a couple terabyte drives to it and share them on
 my network.   I want my kids and wife to be able to backup their files
 from a Windows XP, Windows7 or Vista machine to these terabyte drives.
 2.I want to be able to load Asterisk on this machine and utilize a
 couple digitrex boards.
 3.I may attach a printer to this box and share it across my
 network.
 
 Let me know your thoughts.

Sounds like a good idea.

Samba can handle connections from the MS machines.
I am not familiar with Asterisk, but it is in the ports
at /usr/ports/net/asterisk

You may want to go with an AMD64 type CPU system rather than i386
because the sizes  you are talking about are pretty big - though
far from too big for either.

jerry


 
 Thanks reid
 
 David (Reid) Magel
 Department of Information Services
 Local Telephone Service-Tech Support
 Post Office Box 42442
 Olympia, WA  98504-2442
 Office:  (360) 902-3350
 Pager:  (206) 819-3256
 Fax: (360) 586-6280
 email   davi...@dis.wa.gov
 text page: 2068193...@vtext.com
 
  Magel, Reid (DIS).vcf 

 ___
 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: I am new to BSD

2010-04-30 Thread Adam Vande More
On Fri, Apr 30, 2010 at 10:52 AM, Magel, Reid (DIS) davi...@dis.wa.govwrote:

 1.  I want to add a couple terabyte drives to it and share them on
 my network.   I want my kids and wife to be able to backup their files
 from a Windows XP, Windows7 or Vista machine to these terabyte drives.
 2.  I want to be able to load Asterisk on this machine and utilize a
 couple digitrex boards.
 3.  I may attach a printer to this box and share it across my
 network.


1  3 are certain possible depending on particulars.  Samba/cups would
likely handle most setups like this.  2(a) is also not a problem, 2(b) you'd
need to see if there's a driver available.  I'm not familar with digitrex,
is it a TDM based product?  I'd guess you'd have some trouble in that area,
FreeBSD and asterisk require special consideration when hardware is
involved.  You can ask further on the freebsd asterisk mailing list.

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


'at' command syntax

2010-04-30 Thread Drew Tomlinson
I'm am unable to figure out the proper syntax of the 'at' command.  I've 
read the man page over and over.  I've attempted Google searches but 
there is a lot of  'at' in the world.  Can someone please point out 
what's wrong with this syntax?


at noon '/usr/local/bin/curl -u user:pass -d status=New products added 
to catalog. Check out the demo videos! - http://bit.ly/7dtLny; 
https://twitter.com/statuses/update.xml'


I've tried various ways of specifying time but always get at: 
incomplete time.  However if I just enter 'at noon', then I am in an 
interactive mode where I can paste the command, end with ctrl-D, and my 
job gets scheduled.  What am I missing?


Thanks,

Drew
___
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: 'at' command syntax

2010-04-30 Thread tk
On Fri, Apr 30, 2010 at 09:52:26AM -0700, Drew Tomlinson wrote:

Hi Drew,

at reads its job from standard input, so basically you have to

$ echo '$yourcommand' | at noon

An alternative is to save you command in a small text file, and either

$ cat $file | at noon

or

$ at -f $file noon


Hope this helps

Regards,
Thomas



 I'm am unable to figure out the proper syntax of the 'at' command.  I've 
 read the man page over and over.  I've attempted Google searches but 
 there is a lot of  'at' in the world.  Can someone please point out 
 what's wrong with this syntax?
 
 at noon '/usr/local/bin/curl -u user:pass -d status=New products added 
 to catalog. Check out the demo videos! - http://bit.ly/7dtLny; 
 https://twitter.com/statuses/update.xml'
 
 I've tried various ways of specifying time but always get at: 
 incomplete time.  However if I just enter 'at noon', then I am in an 
 interactive mode where I can paste the command, end with ctrl-D, and my 
 job gets scheduled.  What am I missing?
 
 Thanks,
 
 Drew
 ___
 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


help

2010-04-30 Thread Okechukwu Bartholomew Asobie
How may I resolve this problem
***
$ pine
The /home/oba/mail subdirectory already exists, but it is not
writable by Pine so Pine cannot run.  Please correct the permissions
and restart Pine.
**

There was no problem until I upgraded to 8.0. Thank you.

Bartholomew
___
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: 'at' command syntax

2010-04-30 Thread Allie Daneman

Read the man page...that should shed light on the issue.

Sent from my electronic slavery device.

On Apr 30, 2010, at 12:52, Drew Tomlinson d...@mykitchentable.net  
wrote:


I'm am unable to figure out the proper syntax of the 'at' command.   
I've read the man page over and over.  I've attempted Google  
searches but there is a lot of  'at' in the world.  Can someone  
please point out what's wrong with this syntax?


at noon '/usr/local/bin/curl -u user:pass -d status=New products  
added to catalog. Check out the demo videos! - http://bit.ly/7dtLny; https://twitter.com/statuses/update.xml'


I've tried various ways of specifying time but always get at:  
incomplete time.  However if I just enter 'at noon', then I am in  
an interactive mode where I can paste the command, end with ctrl-D,  
and my job gets scheduled.  What am I missing?


Thanks,

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


More than 8 partitions

2010-04-30 Thread Jon Theil Nielsen
Hi

I'm running 8.0-Release on an external usb hard drive. and have dual-boot
with FreeBSD on da0s2 and Windows XP on da0s1. I made a setup via Sysinstall
with 7 partitions:

/dev/da0s2a on / (ufs, local)
/dev/da0s2b (swap)
/dev/da0s2d on /var (ufs, local, soft-updates)
/dev/da0s2e on /tmp (ufs, local, soft-updates)
/dev/da0s2f on /usr (ufs, local, soft-updates)
/dev/da0s2h on /var/log (ufs, local, soft-updates)
/dev/da0s2g on /home (ufs, local, soft-updates)

I have about 660 GB left unused on da0s2 that I would like to use for
backups. But I can't figure out how to create one more partition.
If i create a file for bsdlabel like

#   sizeoffset  fstype
i:  *   0   4.2BSD

I get the following error message: line 2: partition name out of range a-h:
i
I have also tried with gpart:

gpart add -s 500G -t freebsd -f x da0s2

I get something like gpart: index '9': No space left on device

I thought that 8.0 should support more than 8 partitions. Maybe it does, but
then I don't know how to do.
Any ideas?

Regards,
Jon
___
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: 'at' command syntax

2010-04-30 Thread Drew Tomlinson

On 4/30/2010 10:11 AM, Allie Daneman wrote:

Read the man page...that should shed light on the issue.

Sent from my electronic slavery device.


[snip]


I've read the man page over and over.


Thanks for your reply.

I started there but guess I am dense.  However Thomas' post told me that 
I have to use 'echo' or 'cat' and the pipe to feed 'at' from the command 
line.  I wasn't grasping that I had to do it in this manner.


Cheers,

Drew
___
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: Disk Usage

2010-04-30 Thread ill...@gmail.com
On 23 April 2010 12:24, Jerry freebsd.u...@seibercom.net wrote:
 On Fri, 23 Apr 2010 12:06:14 -0400
 ill...@gmail.com ill...@gmail.com articulated:

 64bit executables are going to be larger,
 sometimes as much as 2x, but do you
 now have a bunch of (large)
 /boot/kernel/*.symbols
 files now?

 I have 1115 total files in that directory. It appears that half of them
 are *.symbols files.


I'm pretty sure that you don't actually need those for
day to day running (I assume they have something to
do with GDB).  They can pretty safely be rm(1)ed.

-- 
--
___
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 determine /dev/ad* from mount label

2010-04-30 Thread ill...@gmail.com
On 27 April 2010 18:29, Mark G.
mark-fbsd-quest-10+20100...@giovannetti.ca wrote:
 On 04/27/2010 00:04, Carl Johnson wrote:

 Mark G.mark-fbsd-quest-10+20100...@giovannetti.ca  writes:

 [...]

 I just wanted to know if there was a utility to tell me
 which actual device was mounted.  I also tried camcontrol devlist
 and atacontrol list.  The latter allowed me to determine that
 /dev/label/rootfs0 is ad2s1a based on the actual disk size
 and a process of elimination.

 Does anyone know a magic incantation to output this label-device
 mapping?

 Try looking at glabel(8).  I don't know what option will list which is
 mounted, but 'glabel status' shows the names and what partitions they
 are associated with.


 That's the ticket, I knew I was missing something.  Thanks!


 if the verbosity isn't high enough
geom label list
or
glabel list
will certainly cover that.

-- 
--
___
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: I am new to BSD

2010-04-30 Thread osp
 On Fri, Apr 30, 2010 at 08:52:50AM -0700, Magel, Reid (DIS) wrote:
 
  Here is what I want to use it for.
  
  I have background in the Avaya/Lucent PBX world and I know how reliable
  Unix is.
  
  I would like to install a version of unix  on  a computer and just use
  it for the following purposes.
  
  1.  I want to add a couple terabyte drives to it and share them on
  my network.   I want my kids and wife to be able to backup their files
  from a Windows XP, Windows7 or Vista machine to these terabyte drives.
  2.  I want to be able to load Asterisk on this machine and utilize a
  couple digitrex boards.
  3.  I may attach a printer to this box and share it across my
  network.
  
  Let me know your thoughts.
 
 Sounds like a good idea.
 
 Samba can handle connections from the MS machines.
 I am not familiar with Asterisk, but it is in the ports
 at /usr/ports/net/asterisk

Info about the ports collection is at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html

Best thing is to agree to install ports collection during OS installation.
This does not install all sourcecode, just the index. The traditional way
to install is cd to the port folder and do make, make install, make clean.

cd /usr/ports/net/asterisk
make
(get a snack)
make install
make clean

I prefer to use portinstall and portupgrade. 

Be sure to use portsnap to freshen up your ports tree and when you add a
new port to an existing system do a portupgrade -a first so what you
already have is up to date.

Be sure to read /usr/ports/UPDATING before you update anything.

Have fun!

Gary Dunn
Open Slate Project


___
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: Need info about FreeBSD and interrupted system calls for MySQL code

2010-04-30 Thread Joerg Bruehe
Dan,


thanks for your reply:

Dan Nelson wrote:
 In the last episode (Apr 29), Joerg Bruehe said:
 For some long, unknown time, the MySQL code contains a variable
 net_retry_count which is by default set to 10 (ten) for all platforms,
 but to 100 (1 million) for FreeBSD (during configure phase).

 The source code comment about this variable reads
If a read on a communication port is interrupted, retry this many
times before giving up.

 [[...]]
 
 I'm pretty sure this is a holdover from when FreeBSD only had a user
 pthreads package (libc_r).  libc calls that would normally block got
 converted into non-blocking versions and a select() loop would execute
 threads as the events they were waiting on occurred.  Incoming signals would
 cause all threads waiting on read() to return EINTR.  If you have other
 threads doing work and sending/receiving signals, this can add up to a lot
 of extra EINTR's.

Interesting information - thanks. I never heard that before, but it
explains a lot.

 
 FreeBSD 5.0 (released in 2003) was the first version to have kernel-based
 pthread support, so the original reason for raising net_retry_count has long
 since disappeared.

It is quite possible that nobody checked this:
If it ain't broken ...

 
 A related question might be, though:  Should that variable even exist? 
 EINTR isn't technically a failure, and most programs that read from sockets
 simply wrap their read()s in a loop that retries when EINTR is received. 
 Only mysql actually counts the number of times through the loop.

I know and agree that EINTR is no failure if a system call takes long,
like read() or write() from/to a socket (or other slow device) on
sufficiently large data.

But my current action is not to change the code, rather it is a cleanup
in the build system (you may have heard we are changing from the
autotools to cmake), so currently I won't change that loop dealing with
possible system call interruptions (by not counting).

So you are saying it might all be obsolete, and current versions of
FreeBSD don't need this special setting.
This sounds like I should do a build without it and then run tests. Thanks!


Regards,
Jörg

-- 
Joerg Bruehe,  MySQL Build Team,  joerg.bru...@sun.com
Sun Microsystems GmbH,   Komturstrasse 18a,   D-12099 Berlin
Geschaeftsfuehrer: Juergen Kunz
Amtsgericht Muenchen: HRB161028



___
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: Need info about FreeBSD and interrupted system calls for MySQL code

2010-04-30 Thread Dan Nelson
In the last episode (Apr 30), Joerg Bruehe said:
 Dan Nelson wrote:
  In the last episode (Apr 29), Joerg Bruehe said:
  For some long, unknown time, the MySQL code contains a variable
  net_retry_count which is by default set to 10 (ten) for all platforms,
  but to 100 (1 million) for FreeBSD (during configure phase).
 
  The source code comment about this variable reads
 If a read on a communication port is interrupted, retry this many
 times before giving up.
 
  [[...]]
  
  I'm pretty sure this is a holdover from when FreeBSD only had a user
  pthreads package (libc_r).  libc calls that would normally block got
  converted into non-blocking versions and a select() loop would execute
  threads as the events they were waiting on occurred.  Incoming signals
  would cause all threads waiting on read() to return EINTR.  If you have
  other threads doing work and sending/receiving signals, this can add up
  to a lot of extra EINTR's.
 
 Interesting information - thanks. I never heard that before, but it
 explains a lot.

This may also have been due to a bug in the early libc_r code.  Appropriate
use of sigwait() and pthread_sigmask() should let the pthreads library know
which read() calls it can silently retry on behalf of threads that are
ignoring signals (and thus shouldn't have their syscalls aborted with
EINTR).  I have email records talking about libc_r problems with signal
masking from the FreeBSD 2.2.7 days (~1998).  It's possible that later
libc_r versions had fixed the bug.  I used to have copies of the ancient
mysql source code around (3.22 and 3.23 era), but have since deleted them,
so I don't know when the 100 workaround was added.

-- 
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: Need info about FreeBSD and interrupted system calls for MySQL code

2010-04-30 Thread Joerg Bruehe
Dan,


your info is very valuable - thanks:

Dan Nelson wrote:
 In the last episode (Apr 30), Joerg Bruehe said:
 Dan Nelson wrote:
 In the last episode (Apr 29), Joerg Bruehe said:
 For some long, unknown time, the MySQL code contains a variable
 net_retry_count which is by default set to 10 (ten) for all platforms,
 but to 100 (1 million) for FreeBSD (during configure phase).

 The source code comment about this variable reads
If a read on a communication port is interrupted, retry this many
times before giving up.

 [[...]]
 I'm pretty sure this is a holdover from when FreeBSD only had a user
 pthreads package (libc_r).  [[...]]
 Interesting information - thanks. I never heard that before, but it
 explains a lot.
 
 This may also have been due to a bug in the early libc_r code.  Appropriate
 use of sigwait() and pthread_sigmask() should let the pthreads library know
 which read() calls it can silently retry on behalf of threads that are
 ignoring signals (and thus shouldn't have their syscalls aborted with
 EINTR).  I have email records talking about libc_r problems with signal
 masking from the FreeBSD 2.2.7 days (~1998).  It's possible that later
 libc_r versions had fixed the bug.  I used to have copies of the ancient
 mysql source code around (3.22 and 3.23 era), but have since deleted them,
 so I don't know when the 100 workaround was added.

The readily available revision control history of the MySQL source code
goes back to the year 2000 only (the system used was changed back then,
without history transfer), but a colleague checked that this workaround
is documented in the manual of 3.22.

All this seems to be a good indication we should get rid of this.


Thanks for your help,
Jörg

-- 
Joerg Bruehe,  MySQL Build Team,  joerg.bru...@sun.com
   (+49 30) 417 01 487
Sun Microsystems GmbH,   Komturstrasse 18a,   D-12099 Berlin
Geschaeftsfuehrer: Juergen Kunz
Amtsgericht Muenchen: HRB161028

___
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


Fwd: More than 8 partitions

2010-04-30 Thread Jon Theil Nielsen
-- Forwarded message --
From: Jon Theil Nielsen jonth...@gmail.com
Date: 2010/4/30
Subject: Re: More than 8 partitions
To: Alberto Mijares amijar...@gmail.com


2010/4/30 Alberto Mijares amijar...@gmail.com

On Fri, Apr 30, 2010 at 1:14 PM, Jon Theil Nielsen jonth...@gmail.com
 wrote:
  Hi
 
  I'm running 8.0-Release on an external usb hard drive. and have dual-boot
  with FreeBSD on da0s2 and Windows XP on da0s1. I made a setup via
 Sysinstall
  with 7 partitions:
 
  /dev/da0s2a on / (ufs, local)
  /dev/da0s2b (swap)
  /dev/da0s2d on /var (ufs, local, soft-updates)
  /dev/da0s2e on /tmp (ufs, local, soft-updates)
  /dev/da0s2f on /usr (ufs, local, soft-updates)
  /dev/da0s2h on /var/log (ufs, local, soft-updates)
  /dev/da0s2g on /home (ufs, local, soft-updates)
 
  I have about 660 GB left unused on da0s2 that I would like to use for
  backups. But I can't figure out how to create one more partition.



 You should create a new slice (da0s3) and then create new partitions
 on it or use the whole slice (ad0s3c).

 Regards


 Alberto Mijares


Thanks Alberto

So it is *not* possible to have more than 8 partitions?  Just a matter of
interest, since I'm experimenting here. But nice to know.

The next problem is that i made fdisk create the two slices covering all the
space of the disk. Can I somehow - using FreeBSD tools - shrink the size of
da0s2 without data loss?

Regards,
Jon

-  reposting this to the list...
___
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


Fwd: More than 8 partitions

2010-04-30 Thread Jon Theil Nielsen
2010/5/1 Da Rock freebsd-questi...@herveybayaustralia.com.au

On Fri, 2010-04-30 at 19:44 +0200, Jon Theil Nielsen wrote:
  Hi
 
  I'm running 8.0-Release on an external usb hard drive. and have dual-boot
  with FreeBSD on da0s2 and Windows XP on da0s1. I made a setup via
 Sysinstall
  with 7 partitions:
 
  /dev/da0s2a on / (ufs, local)
  /dev/da0s2b (swap)
  /dev/da0s2d on /var (ufs, local, soft-updates)
  /dev/da0s2e on /tmp (ufs, local, soft-updates)
  /dev/da0s2f on /usr (ufs, local, soft-updates)
  /dev/da0s2h on /var/log (ufs, local, soft-updates)
  /dev/da0s2g on /home (ufs, local, soft-updates)
 
  I have about 660 GB left unused on da0s2 that I would like to use for
  backups. But I can't figure out how to create one more partition.
  If i create a file for bsdlabel like
 
  #   sizeoffset  fstype
  i:  *   0   4.2BSD
 
  I get the following error message: line 2: partition name out of range
 a-h:
  i
  I have also tried with gpart:
 
  gpart add -s 500G -t freebsd -f x da0s2
 
  I get something like gpart: index '9': No space left on device
 
  I thought that 8.0 should support more than 8 partitions. Maybe it does,
 but
  then I don't know how to do.
  Any ideas?

 Use vinum - thats what I needed to do. Mind I had around 15 partitions
 to work out so it is effective...

 Maybe I should consider that too. But this installation is quite
experimental, and I just thought that it would be a simple task to make a
few extra partitions, since that was what I read about when 8.0 was
released. But I haven't found any documentation on the issue.
I guess I either  have to use some non-FreeBSD tool to change the size of my
slices or backup the installation to another drive, rerun fdisk etc., and
copy the system back.

'Regards,
Jon
___
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: More than 8 partitions

2010-04-30 Thread C. P. Ghost
On Sat, May 1, 2010 at 1:58 AM, Jon Theil Nielsen jonth...@gmail.com wrote:
 So it is *not* possible to have more than 8 partitions?  Just a matter of
 interest, since I'm experimenting here. But nice to know.

Unlike OpenBSD's disklabel(8) which supports up to 15 partitions, bsdlabel(8)
supports only 8 partitions (including the whole disk):

http://www.openbsd.org/cgi-bin/man.cgi?query=disklabelsektion=8

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

-cpghost.

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


Re: nfe0 startup

2010-04-30 Thread Robert Jenssen
Hi,

Many thanks to those who responded to my question. It seems that waiting for 
the network to start up is a common problem. Recently Jeremy Chadwick proprosed 
adding a /usr/local/etc/rc.d/waitnetwork script. In response others have 
suggested the more radical step of replacing /etc/rc.d with launchd. See 
Message-ID  20100418213727.ga98...@icarus.home.lan etc. I will await 
developments.

Cheers,

Rob Jenssen
___
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: More than 8 partitions

2010-04-30 Thread Jon Theil Nielsen
2010/5/1 C. P. Ghost cpgh...@cordula.ws

 On Sat, May 1, 2010 at 1:58 AM, Jon Theil Nielsen jonth...@gmail.com
 wrote:
  So it is *not* possible to have more than 8 partitions?  Just a matter of
  interest, since I'm experimenting here. But nice to know.

 Unlike OpenBSD's disklabel(8) which supports up to 15 partitions,
 bsdlabel(8)
 supports only 8 partitions (including the whole disk):

 http://www.openbsd.org/cgi-bin/man.cgi?query=disklabelsektion=8


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

 -cpghost.

 --
 Cordula's Web. http://www.cordula.ws/


I am very far from being an expert on these issues. And this link is
certainly not  documentation:
http://ivoras.sharanet.org/freebsd/freebsd8.html
But if I look into the source code of bsdlabel
(/usr/src/sbin/bsdlabel/bsdlabel.c), I can see this:
#define MAXPARTITIONS   26
which at least tells me that is has been the *intention* that it should be
possible.

Regards,
Jon
___
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: Wireless networking question

2010-04-30 Thread Chip Camden
On Apr 30 2010 13:39, S Roberts wrote:
 Hello Chip,
   Good to hear from you..,
 
 On Thu, 29 Apr 2010 15:52:13 -0700
 Chip Camden sterl...@camdensoftware.com wrote:
 
  On Apr 26 2010 22:00, Carl Chave wrote:
More info:  I found the following in the output of pciconf -vl:
   
   
no...@pci0:2:0:0:       class=0x028000 card=0x10891a3b
chip=0x002b168c rev=0x01 hdr=0x00 vendor     = 'Atheros
Communications Inc.' class      = network
   
   From here:
   http://www.pcidatabase.com/vendor_details.php?id=174
   
  
  It looks like someone has already patched 8.0-STABLE:
  
  http://forums.freebsd.org/showthread.php?t=6310highlight=Atheros+AR9285
  
  The link to the .diff file 404's now, though.  How can I get a copy?
  
  Or maybe I should just upgrade to STABLE?
  
 
 Well.., personally, I'd ping the patch author to confirm, but Yes,
 bumping to next STABLE would be the preferred option myself..,
 
 Regards,
 
 S Roberts

Just for closure:  upgrading to 8.0-STABLE went smoothly, and the
wireless device works!

Thanks for the help.

-- 
Sterling (Chip) Camden | camdensoftware.com | chipstips.com | chipsquips.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: More than 8 partitions

2010-04-30 Thread Polytropon
On Sat, 1 May 2010 02:53:13 +0200, Jon Theil Nielsen jonth...@gmail.com wrote:
 But if I look into the source code of bsdlabel
 (/usr/src/sbin/bsdlabel/bsdlabel.c), I can see this:
 #define MAXPARTITIONS   26
 which at least tells me that is has been the *intention* that it should be
 possible.

Obviously, this refers to the possible letters a, b, c, ..., z
as partition identifiers instead of numerical ones (e. g. ad0p7).



-- 
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: I am new to BSD

2010-04-30 Thread Polytropon
On Fri, 30 Apr 2010 10:34:52 HST, o...@aloha.com wrote:
 Best thing is to agree to install ports collection during OS installation.
 This does not install all sourcecode, just the index. The traditional way
 to install is cd to the port folder and do make, make install, make clean.
   ^^

Forgive me that I do mention this, but please use the correct
terminology. FreeBSD has directories, not folders. It also
has files, not sheets of paper. :-)



 cd /usr/ports/net/asterisk
 make
 (get a snack)
 make install

Get another snack while run dependencies are installed. :-)
Okay, Asterisk is not that problematic in terms of time
consumption.



 I prefer to use portinstall and portupgrade. 

The tool portmaster is also worth looking at.



 Be sure to use portsnap to freshen up your ports tree and when you add a
 new port to an existing system do a portupgrade -a first so what you
 already have is up to date.

Also keep your package database in good condition using pkgdb -aF.



 Be sure to read /usr/ports/UPDATING before you update anything.

Additionally, read man 7 ports which gives many helpful
information about how ports work, which make targets are
supported and which means of configuration you can use
to optimize the whole process for you.



 Have fun!

The most important hint! :-)




-- 
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: More than 8 partitions

2010-04-30 Thread Jon Theil Nielsen
2010/5/1 Polytropon free...@edvax.de

 On Sat, 1 May 2010 02:53:13 +0200, Jon Theil Nielsen jonth...@gmail.com
 wrote:
  But if I look into the source code of bsdlabel
  (/usr/src/sbin/bsdlabel/bsdlabel.c), I can see this:
  #define MAXPARTITIONS   26
  which at least tells me that is has been the *intention* that it should
 be
  possible.

 Obviously, this refers to the possible letters a, b, c, ..., z
 as partition identifiers instead of numerical ones (e. g. ad0p7).



 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...


Sure. It could be so. All I know is that the bdslabel error message tells me
that I can't add a label outside the range a-h. And I must admit that I
can't find any official documentation saying that I should be able to do so.
I guess it has been the intention, but that it hasn't been implemented
(yet).

Regards,
Jon
___
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


ziz a dumb question?

2010-04-30 Thread Gary Kline
i've never been anything near the extreme-green movement.  i
figured that newer computers/cpus/etc would be more efficient
than what came before.  still, getting-real, i checked out the
power stats for the various chipsets.   right now, everybody is
racing for efficiency.  not here yet.


i'm thinking of buying another dell dual-core and using it as a
backup Sever.  DNS, web, mail.  also it would function as my new
tao.  if the freebsd.ORG wants my present dell, 2.4ghz
computer, great.  i'll ship it off on my dime.   what i'm
wondering is:: how good is this PC-BSD at being a server?  i
mean, if it's good at being a toy [to listen to A/V STreams and
other less-nerdy things], it probably can't be that solid on
handling DNS ... at least not as well as FreeBSD.  If anybody
onlist has messed around with PC-BSD for *server* stuff, i'd be
very interested in hearing about it.

tia, y'all

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: ziz a dumb question?

2010-04-30 Thread Polytropon
On Fri, 30 Apr 2010 18:57:08 -0700, Gary Kline kl...@thought.org wrote:
 i've never been anything near the extreme-green movement.  i
 figured that newer computers/cpus/etc would be more efficient
 than what came before. 

Oh, you mean that a modern desktop PC consumes as much power
as my old AS/400e with 10 hard disk drives - as loud a a common
PC, 2 times as big and 4 times as heavy? :-)



 right now, everybody is
 racing for efficiency.  not here yet.

I would say racing for efficiency will start if people do
recognize that in many settings, networked terminals are a
much better solution than one full-featured modern PC per
desk. At the moment, industry is just trying to sell energy
efficiency to those who are interested in it, but they get
the same crap as anybody else, but more expensive. :-)



 what i'm
 wondering is:: how good is this PC-BSD at being a server?  i
 mean, if it's good at being a toy [to listen to A/V STreams and
 other less-nerdy things], it probably can't be that solid on
 handling DNS ... at least not as well as FreeBSD. 

Basically, it's still FreeBSD under the hood, so you can
run the basic services. Of course, you will have to install
them in either of the non-supported ways (i. e. PBI packages
usually won't be available for server-centered applications),
via pkg_add or by ports.

Because GUI operations vs. DNS workload won't be an issue
in terms of resource consumption, you probably will be lucky.
Serving web pages and maybe streams, and other server stuff
will be possible, too. PC-BSD performs acceptably even under
load.



 If anybody
 onlist has messed around with PC-BSD for *server* stuff, i'd be
 very interested in hearing about it.

In any case, check ports and firewall. PC-BSD intends to make
the experience to the user as comfortable as possible. This,
sadly, means to abandon well intended means of security. So
there may (!) be something that makes your machine interesting
for attackers - allthough you don't participate in 99.998% of
market share. :-)

I've tested PC-BSD on some occiassions, but I never really
used it for anything that would allow me to call it a server,
so I can't be more specific.




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


8.0-RELEASE install freezes

2010-04-30 Thread Steve Bernacki

Hi,

I have an ancient Pentium II 350Mhz system that I've used as a home 
firewall for several years.  I decided to try to upgrade it from 6.1 to 
8.0 today, but I was unable to get the kernel to boot without freezing.  
The point at which it froze was:


vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0

Thinking it may be some ACPI related issue, I tried disabling ACPI in 
the kernel and from the boot prompt, but still no joy.  I also tried 
fiddling with the PnP BIOS settings with no luck.  Placing system into 
verbose logging mode, it gets as far as printing out:


Device configuration finished.
procfs registered

And then freezes, right before it normally displays the Timecounters 
tick every xxx msec line.


I have attached the full dmesg from the working 6.1 system.  I know it's 
a shot in the dark, but does anyone have any ideas or suggestions as to 
what I could do to try to get this thing to boot?  I've gotten many 
years of service out of this system, but I'd still like to squeeze out a 
few more.  :)


Thanks,
Steve


=== 6.1 dmesg ===

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006
r...@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (367.50-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x665  Stepping = 5
  
Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE3

6,MMX,FXSR
real memory  = 268369920 (255 MB)
avail memory = 253128704 (241 MB)
kbd1 at kbdmux0
acpi0: 123456 AWRDACPI on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-safe frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x4008-0x400b on acpi0
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 
0xcf8-0xcff,0x4000-0x4041,0x5000-0x500f on acpi0

pci0: ACPI PCI bus on pcib0
agp0: Intel 82443BX (440 BX) host to PCI bridge mem 
0xd000-0xd3ff at device

0.0 on pci0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci1: display, VGA at device 3.0 (no driver attached)
isab0: PCI-ISA bridge at device 7.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel PIIX4 UDMA33 controller port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf0

00-0xf00f at device 7.1 on pci0
ata0: ATA channel 0 on atapci0
ata1: ATA channel 1 on atapci0
uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0xe000-0xe01f irq 
15 at device 7

.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: Intel 82371AB/EB (PIIX4) USB controller on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: bridge at device 7.3 (no driver attached)
pcib2: PCI-PCI bridge at device 11.0 on pci0
pci2: PCI bus on pcib2
fxp0: Intel 82557 Pro/100 Ethernet port 0xd000-0xd01f mem 
0xd910-0xd9100fff,0xd7

00-0xd70f irq 11 at device 13.0 on pci2
miibus0: MII bus on fxp0
nsphy0: DP83840 10/100 media interface on miibus0
nsphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:a0:c9:1b:01:5c
dpt0: DPT Caching SCSI RAID Controller port 0xd400-0xd41f irq 10 at 
device 14.0 on p

ci2
dpt0: DPT PM2044W FW Rev. 07M1, 1 channel, 64 CCBs
dpt0: [GIANT-LOCKED]
fxp1: Intel 82559 Pro/100 Ethernet port 0xe400-0xe43f mem 
0xd9301000-0xd9301fff,0xd9

00-0xd90f irq 15 at device 12.0 on pci0
miibus1: MII bus on fxp1
inphy0: i82555 10/100 media interface on miibus1
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:50:bf:00:00:41
fxp2: Intel 82559 Pro/100 Ethernet port 0xe800-0xe83f mem 
0xd930-0xd9300fff,0xd9

20-0xd92f irq 11 at device 13.0 on pci0
miibus2: MII bus on fxp2
inphy1: i82555 10/100 media interface on miibus2
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp2: Ethernet address: 00:50:bf:00:00:42
acpi_tz0: Thermal Zone on acpi0
fdc0: floppy drive controller port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: 1440-KB 3.5 drive on fdc0 drive 0
ppc0: Standard parallel printer port port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: Parallel port bus on ppc0
plip0: PLIP network interface on ppbus0
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0
atkbdc0: Keyboard controller (i8042) port 0x60,0x64 irq 1 on acpi0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
pmtimer0 on isa0
orm0: ISA Option ROM at iomem 0xcc000-0xccfff on isa0
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A

Re: 'at' command syntax

2010-04-30 Thread mikel king


On Apr 30, 2010, at 2:19 PM, Drew Tomlinson wrote:


On 4/30/2010 10:11 AM, Allie Daneman wrote:

Read the man page...that should shed light on the issue.

Sent from my electronic slavery device.


[snip]


I've read the man page over and over.


Thanks for your reply.

I started there but guess I am dense.  However Thomas' post told me  
that I have to use 'echo' or 'cat' and the pipe to feed 'at' from  
the command line.  I wasn't grasping that I had to do it in this  
manner.


Cheers,

Drew


BSD users are normally more civil and will at least point you to the  
section of the manual or even a good how to if we don't have the time  
to write one for you. RTFM responses are normally left to the Linux  
crowd and their lists.


I hope that Thomas' note earlier shed some light on the subject.

Cheers,
Mikel King
Senior Editor, BSD News Network
Columnist, BSD Magazine
6 Alpine Court,
Medford, NY 11763
http://www.linkedin.com/in/mikelking
http://twitter.com/mikelking

___
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: ziz a dumb question?

2010-04-30 Thread Gary Kline
On Sat, May 01, 2010 at 04:19:13AM +0200, Polytropon wrote:
 On Fri, 30 Apr 2010 18:57:08 -0700, Gary Kline kl...@thought.org wrote:
  i've never been anything near the extreme-green movement.  i
  figured that newer computers/cpus/etc would be more efficient
  than what came before. 
 
 Oh, you mean that a modern desktop PC consumes as much power
 as my old AS/400e with 10 hard disk drives - as loud a a common
 PC, 2 times as big and 4 times as heavy? :-)
 

Yeah, gee-whiz :)

 
 
  right now, everybody is
  racing for efficiency.  not here yet.
 
 I would say racing for efficiency will start if people do
 recognize that in many settings, networked terminals are a
 much better solution than one full-featured modern PC per
 desk. At the moment, industry is just trying to sell energy
 efficiency to those who are interested in it, but they get
 the same crap as anybody else, but more expensive. :-)
 


i've thought about this for at Least ten years why not
have 4 CRT's or xterminals hanging off one very beefy
machine?  but do they have anything with graphics and
keyboard + mouse that can work via one USB port/jack?  i'm
sure my wasted cycles could be put to very good use.  but it 
would mean haning off a second display/kybd/mouse.  

the ARM/A-9 chip looks great.  its a RISC chip that is super
efficient.  gang four A9's in one package:: low power and at
least 2GHZ   the only drawback is that the a9 is only
32bits.  So we cannot try to calcale the 7th root of
infinity, :-)  i mean, come-on-people, get real.  4G of ram
ought to be Plenty!!  
 
 
  what i'm
  wondering is:: how good is this PC-BSD at being a server?  i
  mean, if it's good at being a toy [to listen to A/V STreams and
  other less-nerdy things], it probably can't be that solid on
  handling DNS ... at least not as well as FreeBSD. 
 
 Basically, it's still FreeBSD under the hood, so you can
 run the basic services. Of course, you will have to install
 them in either of the non-supported ways (i. e. PBI packages
 usually won't be available for server-centered applications),
 via pkg_add or by ports.
 
 Because GUI operations vs. DNS workload won't be an issue
 in terms of resource consumption, you probably will be lucky.
 Serving web pages and maybe streams, and other server stuff
 will be possible, too. PC-BSD performs acceptably even under
 load.
 


i'm trying to// or i'm =thinking about= getting rid of my
pfSense machine.  i used ifp for *yesrs* with no breakins.
So NOBODY got into my poetry!!


 
 
  If anybody
  onlist has messed around with PC-BSD for *server* stuff, i'd be
  very interested in hearing about it.
 
 In any case, check ports and firewall. PC-BSD intends to make
 the experience to the user as comfortable as possible. This,
 sadly, means to abandon well intended means of security. So
 there may (!) be something that makes your machine interesting
 for attackers - allthough you don't participate in 99.998% of
 market share. :-)


according to my /var/log/foo.log files, the only crackins
were from kiddie-scripters.  i squashed them.   
 
 I've tested PC-BSD on some occiassions, but I never really
 used it for anything that would allow me to call it a server,
 so I can't be more specific.
 
 

thanks for your POV.  any others?  it may be that using
PC-BSD would mean that pfSense would be wise.  i'm just tired
of having to use Linux for fun stuff, and it frequently
breaks, and relying on FreeBSD too.
 
 
 -- 
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: ziz a dumb question?

2010-04-30 Thread Polytropon
On Fri, 30 Apr 2010 20:03:50 -0700, Gary Kline kl...@thought.org wrote:
 On Sat, May 01, 2010 at 04:19:13AM +0200, Polytropon wrote:
  On Fri, 30 Apr 2010 18:57:08 -0700, Gary Kline kl...@thought.org wrote:
   i've never been anything near the extreme-green movement.  i
   figured that newer computers/cpus/etc would be more efficient
   than what came before. 
  
  Oh, you mean that a modern desktop PC consumes as much power
  as my old AS/400e with 10 hard disk drives - as loud a a common
  PC, 2 times as big and 4 times as heavy? :-)
  
 
   Yeah, gee-whiz :)

Incorrect values: 4 times as big and 8 times as heavy - but
the same power consumption. :-)



   i've thought about this for at Least ten years why not
   have 4 CRT's or xterminals hanging off one very beefy
   machine?  but do they have anything with graphics and
   keyboard + mouse that can work via one USB port/jack? 

Don't confuse my use of network terminal with classic serial
terminals. Look, for example, at the devices AXEL builds, or
already present for many years: Sun Ray terminals. They also
have audio I/O, card reader, and USB connectors (where the
keyboard and mouse usually are connected). A regular monitor
(maybe with speakers) makes it a full-featured workstation.
But no data users can mess around with, and its power requirements
are really low.

Our university's library had many of them, and I liked them
because they were completely silent (in difference to the
boring beige PC boxes they scattered around the library).

You can find specs of an AXEL terminal as exemple here:

http://www.axel.com/usa2/prod_ax3.html?mv2_pos=1

They're calling it thin client, but it's terminal. A box
where you plug in a screen and a keyboard and connect it
to a network IS a terminal. :-)



 i'm
   sure my wasted cycles could be put to very good use. 

Today's average users are treating their high-end HPC PCs
as worse typewriters, so there are enough cycles to use. :-)



 but it 
   would mean haning off a second display/kybd/mouse.  

Which is no problem using network terminals, everything you need
is a LAN (or maybe even WLAN) connection.

Still, multiple GPUs is possible, but results in a major raise
of power consumption (because you have to use a modern GPU).
Multiple input devices is no problem via USB.



   the ARM/A-9 chip looks great.  its a RISC chip that is super
   efficient.  gang four A9's in one package:: low power and at
   least 2GHZ   the only drawback is that the a9 is only
   32bits.  So we cannot try to calcale the 7th root of
   infinity, :-) 

ARM is an efficient platform in terms of energy, and I think
it will be more and more important in the future, especially
if you consider the mobile devices market. And when it's good
at running on battery, it's good on running on AC power. When
the industry comes up with extra new energy efficient PC
hardware, we already know that it existed for years. :-)



 i mean, come-on-people, get real.  4G of ram
   ought to be Plenty!!  

Hey, 640 kB should be enough for everyone. :-)



   i'm trying to// or i'm =thinking about= getting rid of my
   pfSense machine.  i used ifp for *yesrs* with no breakins.
   So NOBODY got into my poetry!!

That's what they want to make you believe. :-)



   according to my /var/log/foo.log files, the only crackins
   were from kiddie-scripters.  i squashed them.   

By using means of blocking for known script-kiddie sources, you
can get rid of a lot of useless traffic - and possible trouble.





-- 
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: How To create msdosfs on HD?

2010-04-30 Thread Fbsd1

Fbsd1 wrote:

On Thu, 29 Apr 2010 09:29:35 -0300, Fbsd1 fb...@a1poweruser.com wrote:

I know mount_msdosfs command is used to mount a HD formated with 
fat, but

I could not find a FBSD command to create a msdos file system on a hard
drive. Native dos fdisk/format is no good because it's not USB 
aware. Is
there any FBSD command or port I can use to reformat the UFS hard 
drive with

msdosfs?



dd if=/dev/zero of=/dev/da0 bs=512k count=10
fdisk -i /dev/da0
newfs_msdos -F32 /dev/da0s1



Thank you very much.
Thats the answer I was hoping for.





For the archives here is a detailed explanation.

Create MS/Windows file system on a Hard Drive so it will be recognized 
on an MS/Windows system.


The goal here is to initialize a hard drive that was previous 
initialized with a non-Microsoft Windows file system, with a single 
active partition populated with Microsoft Windows 32 bit FAT (LBA) file 
system. So this hard drive will be recognized as containing a valid 
MS/Windows file system when used on a Microsoft Windows system.


I have an old IDE 3.5” hard drive with FBSD Release 7.0 on it. I want to 
use it as external USB attached disk on XP. I bought a 'CD-r king' hard 
drive to USB adapter cable. It will work with 2.5”  3.5” IDE drives and 
SATA drives. When I plug the USB end of the cable into a FBSD system I 
can mount the 3.5” IDE 7.0 HD's da0s1a, da0s1d, da0s1e and da0s1f  file 
systems with no problem. But when I plug the same drive into a XP system 
the USB drive shows in “control panel/system/hardware/devices/hard 
drives” as there, but “windows explorer” does not assign a drive letter 
for it so I can not reformat it.


All PC’s running a MS/Windows system inspect sector 0 of the hard drive 
for the partition/slice table to determine the sysid of each 
partition/slice. If the sysid value is 12 then it’s a valid Microsoft 
Windows file system and gets assigned a drive letter in “windows 
explorer”. Any other sysid value means non-Microsoft Windows file system 
and the device is seen in  “control panel/system/hardware/devices/hard 
drives” as there but “windows explorer” does not assign a drive letter 
to it.


There are 2 ways to initialize ((2.5” or 3.5”) (IDE or SATA)) hard 
drives with a valid MS/Windows file system. Using the Microsoft “fdisk” 
program or the FreeBSD “fdisk” program. The Microsoft “fdisk” program 
defaults to sysid =12. The FreeBSD “fdisk” program defaults to sysid = 
165, but has alternate way to assign any sysid value you want.


Microsoft method. Replace the 2.5” hard drive in your laptop with the 
2.5” hard drive containing the FreeBSD system. If 3.5” hard drive then 
open your desktop PC, remove the data cable ribbon and power connection 
from the existing hard drive and attach them to the 3.5” hard drive 
containing the FreeBSD system. Put the Microsoft XP, Vista, or Windows7 
install CD in the cdrom drive and boot. Select fdisk option from the 
install menu to populate the hard drive with official ntfs file system. 
No need to continue with the install after fdisk complete.


FreeBSD method. You need a PC with a running FreeBSD system and USB 
hardware to attach the 2.5” or 3.5” IDE or SATA hard drives with. A USB 
external hard drive housing will work fine for 3.5” IDE and SATA drives. 
For 2.5” IDE or SATA drives you will need a USB adapter cable. The 'CD-r 
king' hard drive to USB cable I purchased works with 2.5”  3.5” IDE 
drives and SATA drives, cost $10 USA. If you have a 3.5” IDE or SATA 
hard drive and FreeBSD is running on a desktop PC, you could open it up 
and add it as a second hard drive on the data ribbon.


Attach the hard drive to the USB equipment and plug into USB port on the 
PC running FreeBSD. Best if you are logged in as “root”. You will see 
the USB console messages as the USB hard drive is connected. In most 
cases the USB drive will be assigned da0 as the device name. The 
following instructions are for initializing the hard drive as a single 
MS/Windows partition occupying the whole hard drive.



 Wipe clean the sector 0 slice table
# dd if=/dev/zero of=/dev/da0 count=2


The following is what you would do if the initialized msdosfs hard drive 
will only be used on a FreeBSD system. The slice table is populated with 
the sysid of 165, which means FreeBSD is using this slice, but the slice 
contains a MSDOS FAT32 file system. The newfs_msdos command is really 
acting like the msdos format command. The larger your hard drive the 
longer this command will take to complete.


#fdisk -BI /dev/da0
#newfs_msdos -F32 /dev/da0s1
This creates the sector 0 slice table and loads the default bios boot 
code and activates a single slice covering the entire disk.



If at this point you un-plugged the USB cable from the FreeBSD system 
and plugged it into a Microsoft Windows PC. The USB drive would be 
un-accessible by “windows explorer” because no drive letter gets 
assigned. That’s because Window’s see this hard drive as a non-windows 
drive. Which is