gpt booting (Was: Re: boot problem after freebsd-update from 9.1-RC2 to 9.1-RC3)

2012-11-21 Thread Arthur Chance

On 11/21/12 05:11, Warren Block wrote:

gptboot looks for the first UFS partition.  Maybe /boot/boot can be
modified to do that also.


It's a little more complicated than that Warren.

AIUI gptboot first looks (in partition order) for partitions with both 
the bootme and bootonce attributes set. If it doesn't find any, or if 
they all failed to boot it then tries booting partitions with just the 
bootme attribute. It only boots the first UFS partition if no partitions 
have the bootme attribute set, and IIRC that is for compatibility with 
the 8.x gptboot which didn't know the boot* attributes.


Confusingly, there's no manual page for gptboot to document this. It's 
sort of implicit in the gpart manual page, in the section on ATTRIBUTES 
for GPT, but the best way to understand it is to read the code for 
gptfind in


/usr/src/sys/boot/common/gpt.c


___
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: portsnap

2012-11-21 Thread Polytropon
On Tue, 20 Nov 2012 18:42:37 + (UTC), jb wrote:
 Robert Bonomi bonomi at mail.r-bonomi.com writes:
 
  ... 
the authors of the portsnap docs (and the _numerous_ other applications 
that describe the use of certain keywords used as input to that 
appication ARE correct -- despite your boneheaded denial of that fact.
 
 Yes, it is a keyword, a keyword parameter that tells CLI command what to do
 (yes, a keyword that may be taken verbatim or translated into an internal
 command parameter(s), a keyword that represents an action).
 But, it is not a command, or parameter of type command.

I think Robert is right (which implies that you are wrong), at
least in acknowledging the _possibility_ to interpret _certain_
command line arguments as commands to the program (where a
program can do various actions), in opposite to a modifier
(which changes the way the one action a program performs
in a certain way).

NB: Modifier term borrowed from VMS here. :-)

Examples:

$ ls -la
Here the ls program will change its default behaviour
and list all stuff in long format.

$ portsnap fetch extract
Here the portsnap program will first fetch new ports
(1st command) and then extract it (2nd command).

However, I agree that this is primarily about _interpretation_
of the word command, and especially when the consideration
command line option can be command to program is taken. This
especially applies when a program can perform actions which are
fundamentally different (fetch != extract) in opposite to just
modifying the same operation (list files: how?).

Note that command line arguments can also contain associations.
A famous example is dd. In other programs, like cp or mv, the
position of the command line argument decides about its inter-
pretation (which is source, which is destination).



   With regard to definition of a command as we practice and argue about 
   here:
  
   In general (see bash(1), SHELL GRAMMAR, Simple Commands), a command is an 
   executable preceded by optional vars and followed by optional parameters.
 
  You lie.  A command does not have to have the attributes of a command-line
  invocation.
 
 Well, a second nature ... But, it is an honor :-)

At least those are entertaining lies. :-)



 To drive the point:
 let's assume that it is a valid syntax to pass a parameter like this:
 ls -al
 or much better, command=command, like this:
 command=ls -al
 then it would be clear that a command (parameter) is passed to CLI command.
 This kind of command parameter passing fulfilles the definition of a command
 as referenced.

This is a fully valid interpretation, especially from the shell's
point of view.

But also consider programs that drive their own CLI. One of them
is mail. It presents a prompt and expects you to enter a command.
It will not system() that command, but act according to it.



 If you are familiar with C function system(), you will have easier time to
 understand:
 http://www.cplusplus.com/reference/clibrary/cstdlib/system/
 The prototype is:
 int system ( const char * command );

According to man 3 system, it is

int system(const char *string);

with the following description: The system() function hands the
argument string to the command interpreter sh(1).  The calling
process waits for the shell to finish executing the command,
ignoring SIGINT and SIGQUIT, and blocking SIGCHLD. If string is
a NULL pointer, system() will return non-zero if the command
interpreter sh(1) is available, and zero if it is not.

Again, we get new terminology: argument. The string in question
is actually considered a command in the first meaning mentioned.
And again, there's nothing wrong in interpreting _parts_ of that
string to be commands to the program actually called.



 The command ls -al (yes, it is a command as referenced) is a parameter to
 system() function:
 system(ls -al);

Ah, a parameter! Not a functional argument? :-)

I'm not even sure where to draw the line. A definition I've heared
at university is this: The const char *string is the parameter,
and ls -la is the argument... or was it vice versa? One describes
the abstract form (in the function prototype), and the other one
describes the actual content...



 It just says, execute that command ls -al in the existing execution
 environment.

Nothing wrong here.



 The reason I go so by the book about it is that words have meaning and
 definitions :-)

Depending on _what_ book you read, things may change. :-)

For example, consider an IBM mainframe manual for standard programs.
They acquire a control file, typically inside the job stream, and
it contains _what_? Commands! It's not that those commands cause
any program to launch; instead, they instruct a versatile program
in what to do (e. g. IEHDASDR if it should DUMP or RESTORE, because
it can do both and more; still only _one_ program is called).





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

Re: portsnap

2012-11-21 Thread jb
Polytropon freebsd at edvax.de writes:

 ... 
  Yes, it is a keyword, a keyword parameter that tells CLI command what to do
  (yes, a keyword that may be taken verbatim or translated into an internal
  command parameter(s), a keyword that represents an action).
  But, it is not a command, or parameter of type command.
 
 I think Robert is right (which implies that you are wrong), at
 least in acknowledging the _possibility_ to interpret _certain_
 command line arguments as commands to the program (where a
 program can do various actions), in opposite to a modifier
 (which changes the way the one action a program performs
 in a certain way).
 ...

Putting aside the linguistics about executable command, entry, function, 
parameter, and argument - let's reduce the case to one common ground, so we
can compare them.

The are two entities, each having in their description as receiving a command
as a parameter, namely: 
- portsnap ... command ...
  e.g. portsnap fetch  
- system(command);
  e.g. system(ls -al); 
 
The former is passed an action keyword as an argument (I like the word
keyword; we could use command keyword as perhaps even a better fit and
the closest to describe the nature of it).
The latter is passed a command as an argument.

So, the manual for portsnap(8) is imprecise, actually unfortunate because
misleading.
 
jb
 


___
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


Bind99 stopped resolving for external queries

2012-11-21 Thread Unga
Hi all

I'm running a FreeBSD 9.0-RELEASE based server. It used to work fine. But 
suddenly about 2 days ago stopped resolving DNS for external queries.

From my laptop if I ping the server:
ping www.mydoamin.com
ping: cannot resolve www.mydoamin.com: Host name lookup failure

But if I log in to the server and do the same ping, it works fine.

As a fix, I have upgraded the Bind99 to the latest bind99-base-9.9.2, but it 
did not fix the issue.

I don't see anything changed in my DNS server setup.

Appreciate very much if any help could be extended in this regard to understand 
what went wrong in the server.

Many thanks in advance.

Best regards
Unga
___
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: Bind99 stopped resolving for external queries

2012-11-21 Thread Ilya Kazakevich
Hello,


 From my laptop if I ping the server:
 ping www.mydoamin.com
 ping: cannot resolve www.mydoamin.com: Host name lookup failure

 But if I log in to the server and do the same ping, it works fine.


1) check your laptop is configured to work with this DNS server (cat
/etc/resolv.conf on laptop or ipconfig /all | findstr DNS in case of
windows )
2) check server is accessible (ping YOUR_SERVER_IP from laptop)
3) check server is accessible via TCP/53 (telnet YOUR_SERVER_IP 53 from
your laptop)
4) check firewall on server and/or devices between server and laptop, it
may block requests
5) check your server is configured to use the same DNS: cat
/etc/resolv.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


Drill Pipes offer dated 21st Nov 2012!

2012-11-21 Thread LC Pipes Group
Dear  Manager,
Thank you very much for your attention.we are  pipeline speicalist .The main 
business of which is supply various kinds of pipeline products .
Our main products as follows:
1. Petroleum Drilling Tool: Drill pipes, Drill collars, Stabilizer etc
2.Steel pipes and fittings:
3. Ductile Iron Pipe and fittings:
4. Stainless steel pipe and fittings:
5. Steel Pipe/tube and Fitting: 5. Pumps and Valves: Used to Oil, Chemical, 
Industrial, Water treatment, Flow control etc.
6. Plastic pipe and fittings: (PVC, PPR, HDPE)
For more information please check our website.
If there is anything you need,please feel free to inform us.We will try our 
best to support you and become your long time partner.
Thank you very much for your cooperation.
Best Regards
Mike
General Manager
E-MAIL:lcpi...@vip.126.com
TEL:+852 36191563
FAX:+852 81616092
MSN:lcpi...@vip.163.com
Skype:lcpipes
Website:www.lcpipes.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

PAM auto Login

2012-11-21 Thread takCoder
hi everyone,

hope it to be a simple question..

is there a way to let one of PAM modules to just escape its authentication
phase and have something like template_user so it uses that user's home
configs and don't ask for user passwords or so?

i tried pam_permit.so in sufficient mode but don't know why it does not
work as required... and i don't know which entry to put after that  line,
so the sufficient entry won't become the last chain entry.. (cause in
manuals, they said, if a sufficient entry becomes the last line, it will
show abnormal behaviour when not matched or so!..)
besides, it still asks for a username..

how can i just define such , somehow, default user for a pam module, like
telnetd for example?

need to mention that i don't want to disable other phases, if possible.

Really really appriciate any ideas or suggestions :)

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


filesystem size does not equal free space

2012-11-21 Thread Rick Miller
Hi All,

I install FreeBSD 8.3-R on a DL360 G8 with two disk volumes, the 2nd
of which is 3TB.  The fdisk partition editor shows the disk geometry
as 812160 cyl/255 heads/32 sectors = 6627225600 sectors (3235950MB).
sysinstall creates a slice on the 3TB volume that uses the entire
disk.  However, when the filesystem is labelled and mounted, it is
slightly over 1TB in size.  Am I correct in assuming that it's only
1TB because the disk geometry is greater than what is supported by
sysinstall and/or bsdlabel?

-- 
Take care
Rick Miller
___
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: filesystem size does not equal free space

2012-11-21 Thread Warren Block

On Wed, 21 Nov 2012, Rick Miller wrote:


I install FreeBSD 8.3-R on a DL360 G8 with two disk volumes, the 2nd
of which is 3TB.  The fdisk partition editor shows the disk geometry
as 812160 cyl/255 heads/32 sectors = 6627225600 sectors (3235950MB).
sysinstall creates a slice on the 3TB volume that uses the entire
disk.  However, when the filesystem is labelled and mounted, it is
slightly over 1TB in size.  Am I correct in assuming that it's only
1TB because the disk geometry is greater than what is supported by
sysinstall and/or bsdlabel?


It's an MBR limitation, I think.  Use GPT, which will also make 
alignment to 4K blocks easier.

___
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: Bind99 stopped resolving for external queries

2012-11-21 Thread Unga
Hi IIya

Thank you for your reply. 

Hello, 




From my laptop if I ping the server:
ping www.mydoamin.com
ping: cannot resolve www.mydoamin.com: Host name lookup failure

But if I log in to the server and do the same ping, it works fine.




1) check your laptop is configured to work with this DNS server (cat 
/etc/resolv.conf on laptop or ipconfig /all | findstr DNS in case of windows 
)

My laptop and the server are in two different countries. Btw, laptop also run 
FreeBSD.



2) check server is accessible (ping YOUR_SERVER_IP from laptop)

Yes, the server is accessible (ping YOUR_SERVER_IP from the laptop.


3) check server is accessible via TCP/53 (telnet YOUR_SERVER_IP 53 from 
your laptop) 

No, there was a reverse DNS error here. It was pointing to the Reverse DNS 
server of the data centre.

Now its been corrected:

telnet YOUR_SERVER_IP 53
Trying YOUR_SERVER_IP...
Connected to ns1.mydomain.com.
Escape character is '^]'.

4) check firewall on server and/or devices between server and laptop, it may 
block requests

No firewall on the server yet. 


5) check your server is configured to use the same DNS: cat /etc/resolv.conf 

nameserver 127.0.0.1
nameserver other_ip1
nameserver other_ip2


Although the Reverse DNS is now been corrected, still cannot ping as from the 
laptop:
ping www.mydomain.com
ping: cannot resolve www.mydomain.com: Host name lookup failure

Any ideas?

Regards
Unga
___
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


csup to svn

2012-11-21 Thread Fbsd8

I use packages for all my ports.
But some times I have to use ports make files because I need to change 
the default configuration.


I use a custom csup script to just download the desired single port.

Since the CVSup/Csup service is being phased out as of February 28, 
2013, How can I duplicate this function using svn?


Following is a sample csup script I use to download a single port.


 #! /bin/sh
 # This script is used to download make files for ytree port.

 # Load script symbolic field with path  file name
 cvsupfile=/root/temp.work.file

 # Check to see if file exists  delete it if it does
 [ -e $cvsupfile ]  rm -f $cvsupfile

 # Load instream data to file
 cat  $cvsupfile EOD
 *default  base=/usr# create CVSup tree off /usr directory
 *default  release=cvs
 *default  delete use-rel-suffix# no compression, for DSL or t1 lines
 *default  host=cvsup11.FreeBSD.org #  Virginia
 *default tag=.  # set tag value to nulls to get most current version
 ports-misc
 EOD

 # Exec csup to download just the selected port make files
 cd /usr/ports/
 csup -g -L 2 -i ports/misc/ytree $cvsupfile

 # Delete file we are done with it
 rm -f $cvsupfile

 echo  Ytree port download completed.



___
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: csup to svn

2012-11-21 Thread Anton Shterenlikht
Date: Wed, 21 Nov 2012 11:10:28 -0500
From: Fbsd8 fb...@a1poweruser.com

I use packages for all my ports.
But some times I have to use ports make files because I need to change 
the default configuration.

I use a custom csup script to just download the desired single port.

Since the CVSup/Csup service is being phased out as of February 28, 
2013, How can I duplicate this function using svn?

Following is a sample csup script I use to download a single port.


  #! /bin/sh
  # This script is used to download make files for ytree port.

  # Load script symbolic field with path  file name
  cvsupfile=/root/temp.work.file

  # Check to see if file exists  delete it if it does
  [ -e $cvsupfile ]  rm -f $cvsupfile

  # Load instream data to file
  cat  $cvsupfile EOD
  *default  base=/usr# create CVSup tree off /usr 
directory
  *default  release=cvs
  *default  delete use-rel-suffix# no compression, for DSL or t1 
lines
  *default  host=cvsup11.FreeBSD.org #  Virginia
  *default tag=.  # set tag value to nulls to get most current 
version
  ports-misc
  EOD

  # Exec csup to download just the selected port make files
  cd /usr/ports/
  csup -g -L 2 -i ports/misc/ytree $cvsupfile

  # Delete file we are done with it
  rm -f $cvsupfile

  echo  Ytree port download completed.

I would do:

# cd /usr/ports
# svn co svn://svn0.us-east.freebsd.org/ports/head/ .

This will populate your ports tree.
Then, you can update anything and everything,
e.g. the whole ports tree:

# svn up /usr/ports

or just a single port:

# svn up /usr/ports/misc/ytree

I think it's way simpler than your current method.
In my opinion, svn is way better (at least in this regard)
than csup.

Other useful thing that is easy with svn is reverting
port updates, e.g. when new ports don't build or give
other problems. For example, right now the latest sudo
doesn't work for me on ia64. So I do

# svn up /usr/ports
# svn up -r302692 /usr/ports/security/sudo

to build an older working version of sudo.

Anton

___
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


Home Server

2012-11-21 Thread Nicholas MIller
Hi all,

I am looking to re purpose an old system for use as a home server. My
intentions for the server are as follows:

Central backup of other systems.
Storage for Media files(movies/music)
Occasionally transcoding DVDs/blurays
As well as being able to access the backed up files(at least part of them)
over http(s).

My question(s) regard storage.  Depending on which case I end up using or
if i purchase a new one, will have access to either 4(four) or 6(six) hard
drive bays.  The only things I really *need* redundancy for would be the
centralized backups. Which has me leaning towards zfs.  However since I'll
probably want to use some of the space from the drives in that pool, but
won't need redundancy I'm not quite sure how to proceed.


I'm sorry if any of this message is unclear.

Thanks for any assistence


Nick
___
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: Home Server

2012-11-21 Thread Steve O'Hara-Smith
On Wed, 21 Nov 2012 10:52:12 -0600
Nicholas MIller nick.k...@gmail.com wrote:

 My question(s) regard storage.  Depending on which case I end up using or
 if i purchase a new one, will have access to either 4(four) or 6(six) hard
 drive bays.  The only things I really *need* redundancy for would be the
 centralized backups. Which has me leaning towards zfs.  However since I'll
 probably want to use some of the space from the drives in that pool, but
 won't need redundancy I'm not quite sure how to proceed.

With that many drive bays, and the low cost of disc space I'd go
for a big ZFS mirror for storage and put just about everything on it. You
might have some data that doesn't need to be mirrored but I'll bet there's
not much that wouldn't be a PITA to lose.

-- 
Steve O'Hara-Smith at...@sohara.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: Home Server

2012-11-21 Thread Matthew Seaman
On 21/11/2012 17:02, Steve O'Hara-Smith wrote:
 On Wed, 21 Nov 2012 10:52:12 -0600
 Nicholas MIller nick.k...@gmail.com wrote:
 
 My question(s) regard storage.  Depending on which case I end up using or
 if i purchase a new one, will have access to either 4(four) or 6(six) hard
 drive bays.  The only things I really *need* redundancy for would be the
 centralized backups. Which has me leaning towards zfs.  However since I'll
 probably want to use some of the space from the drives in that pool, but
 won't need redundancy I'm not quite sure how to proceed.
 
   With that many drive bays, and the low cost of disc space I'd go
 for a big ZFS mirror for storage and put just about everything on it. You
 might have some data that doesn't need to be mirrored but I'll bet there's
 not much that wouldn't be a PITA to lose.
 

Consider using a RAIDZ rather than a Mirror VDev -- you trade off
essentially low-latency access for small IOs against more available disk
space.  4 drives is OK, but kinda small for a RAIDZ; 6 drives is pretty
much right in the sweet spot.

I'd also counsel against trying to use traditional filesystems and ZFS
in different partitions of the same drive.  ZFS is happiest when it has
complete control of the drive.  You can take a chunk of the drive for
boot code no problem, and using a chunk for swap seems to work pretty
well too.

In fact, if you're going to use ZFS at all, I'd suggest using it for all
your filesystems on that machine.

Cheers,

Matthew




___
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: csup to svn

2012-11-21 Thread Fbsd8

Anton Shterenlikht wrote:

Date: Wed, 21 Nov 2012 11:10:28 -0500
From: Fbsd8 fb...@a1poweruser.com

I use packages for all my ports.
	But some times I have to use ports make files because I need to change 
	the default configuration.


I use a custom csup script to just download the desired single port.

	Since the CVSup/Csup service is being phased out as of February 28, 
	2013, How can I duplicate this function using svn?


Following is a sample csup script I use to download a single port.


  #! /bin/sh
  # This script is used to download make files for ytree port.

  # Load script symbolic field with path  file name
  cvsupfile=/root/temp.work.file

  # Check to see if file exists  delete it if it does
  [ -e $cvsupfile ]  rm -f $cvsupfile

  # Load instream data to file
  cat  $cvsupfile EOD
  *default  base=/usr# create CVSup tree off /usr 
directory
  *default  release=cvs
  *default  delete use-rel-suffix# no compression, for DSL or t1 
lines
  *default  host=cvsup11.FreeBSD.org #  Virginia
  *default tag=.  # set tag value to nulls to get most current 
version
  ports-misc
  EOD

  # Exec csup to download just the selected port make files
  cd /usr/ports/
  csup -g -L 2 -i ports/misc/ytree $cvsupfile

  # Delete file we are done with it
  rm -f $cvsupfile

  echo  Ytree port download completed.

I would do:

# cd /usr/ports
# svn co svn://svn0.us-east.freebsd.org/ports/head/ .

This will populate your ports tree.
Then, you can update anything and everything,
e.g. the whole ports tree:

# svn up /usr/ports

or just a single port:

# svn up /usr/ports/misc/ytree

I think it's way simpler than your current method.
In my opinion, svn is way better (at least in this regard)
than csup.

Other useful thing that is easy with svn is reverting
port updates, e.g. when new ports don't build or give
other problems. For example, right now the latest sudo
doesn't work for me on ia64. So I do

# svn up /usr/ports
# svn up -r302692 /usr/ports/security/sudo

to build an older working version of sudo.

Anton




You missed to whole point of my question.
I don't want to maintain the WHOLE ports tree.
I only want to download selected single port.
My current ports tree only has 2 ports, apache22 and php5.
So your reply did not answer my question.
Thanks any how.


___
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: csup to svn

2012-11-21 Thread Paul Schmehl
--On November 21, 2012 11:10:28 AM -0500 Fbsd8 fb...@a1poweruser.com 
wrote:



I use packages for all my ports.
But some times I have to use ports make files because I need to change
the default configuration.

I use a custom csup script to just download the desired single port.

Since the CVSup/Csup service is being phased out as of February 28, 2013,
How can I duplicate this function using svn?



cd /usr/ports/category
svn co svn://svn.freebsd.org/ports/head/category/port

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson
There are some ideas so wrong that only a very
intelligent person could believe in them. George Orwell

___
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: csup to svn

2012-11-21 Thread Anton Shterenlikht
From fb...@a1poweruser.com Wed Nov 21 17:57:51 2012

Anton Shterenlikht wrote:
   Date: Wed, 21 Nov 2012 11:10:28 -0500
   From: Fbsd8 fb...@a1poweruser.com
 
   I use packages for all my ports.
   But some times I have to use ports make files because I need to 
change 
   the default configuration.
 
   I use a custom csup script to just download the desired single 
port.
 
   Since the CVSup/Csup service is being phased out as of February 
28, 
   2013, How can I duplicate this function using svn?
 
   Following is a sample csup script I use to download a single 
port.
 
 
 #! /bin/sh
 # This script is used to download make files for ytree port.
 
 # Load script symbolic field with path  file name
 cvsupfile=/root/temp.work.file
 
 # Check to see if file exists  delete it if it does
 [ -e $cvsupfile ]  rm -f $cvsupfile
 
 # Load instream data to file
 cat  $cvsupfile EOD
 *default  base=/usr# create CVSup tree off 
/usr directory
 *default  release=cvs
 *default  delete use-rel-suffix# no compression, for DSL 
or t1 lines
 *default  host=cvsup11.FreeBSD.org #  Virginia
 *default tag=.  # set tag value to nulls to get most 
current version
 ports-misc
 EOD
 
 # Exec csup to download just the selected port make files
 cd /usr/ports/
 csup -g -L 2 -i ports/misc/ytree $cvsupfile
 
 # Delete file we are done with it
 rm -f $cvsupfile
 
 echo  Ytree port download completed.
 
 I would do:
 
 # cd /usr/ports
 # svn co svn://svn0.us-east.freebsd.org/ports/head/ .
 
 This will populate your ports tree.
 Then, you can update anything and everything,
 e.g. the whole ports tree:
 
 # svn up /usr/ports
 
 or just a single port:
 
 # svn up /usr/ports/misc/ytree
 
 I think it's way simpler than your current method.
 In my opinion, svn is way better (at least in this regard)
 than csup.
 
 Other useful thing that is easy with svn is reverting
 port updates, e.g. when new ports don't build or give
 other problems. For example, right now the latest sudo
 doesn't work for me on ia64. So I do
 
 # svn up /usr/ports
 # svn up -r302692 /usr/ports/security/sudo
 
 to build an older working version of sudo.
 
 Anton
 
 

You missed to whole point of my question.
I don't want to maintain the WHOLE ports tree.
I only want to download selected single port.
My current ports tree only has 2 ports, apache22 and php5.
So your reply did not answer my question.
Thanks any how.

# mkdir apache22
# cd apache22/
# svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 .
Adistinfo
Apkg-descr
AMakefile.doc
Afiles
Afiles/patch-Makefile.in
Afiles/patch-support__apachectl.in
Afiles/mpm-itk-20110321-01
Afiles/patch-configure.in
Afiles/patch-docs__conf__httpd.conf.in
Afiles/patch-docs__conf__extra__httpd-ssl.conf.in
Afiles/apache22.in
Afiles/no-accf.conf
Afiles/patch-support__ab.c
Afiles/patch-server__core.c
Afiles/patch-modules__proxy__mod_proxy_connect.c
Afiles/patch-docs__conf__extra__httpd-userdir.conf.in
Afiles/extra-patch-suexec_rsrclimit
Afiles/patch-support__log_server_status.in
Afiles/extra-patch-suexec_userdir
Afiles/htcacheclean.in
Afiles/patch-server__config.c
Afiles/patch-support__apxs.in
Afiles/mpm-itk-perdir-regex
Afiles/patch-support__envvars-std.in
Afiles/patch-support__Makefile.in
Afiles/mpm-itk-limits
Afiles/patch-config.layout
Apkg-message
AMakefile.modules
AMakefile.options
Apkg-plist
AMakefile
Checked out revision 307619.
# ls
.svnMakefile.modulesfiles   
pkg-plist
MakefileMakefile.optionspkg-descr
Makefile.docdistinfopkg-message
#

Anton

___
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: csup to svn

2012-11-21 Thread Steve O'Hara-Smith
On Wed, 21 Nov 2012 12:52:14 -0500
Fbsd8 fb...@a1poweruser.com wrote:

 You missed to whole point of my question.
 I don't want to maintain the WHOLE ports tree.
 I only want to download selected single port.
 My current ports tree only has 2 ports, apache22 and php5.
 So your reply did not answer my question.
 Thanks any how.

This works

svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 .

If you do it in /usr/ports/www/apache22 then the port winds up in a
sane place. Once you have it you can do svn up in /usr/ports/www/apache22 to
update it.

This will probably become intolerably clumsy for more than a
handful of ports.

-- 
Steve O'Hara-Smith at...@sohara.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: Bind99 stopped resolving for external queries [SOLVED]

2012-11-21 Thread Unga
 From: Unga unga...@yahoo.com
 To: Ilya Kazakevich kazakevichi...@gmail.com
 Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org
 Sent: Wednesday, November 21, 2012 3:36 PM
 Subject: Re: Bind99 stopped resolving for external queries
 
 Hi IIya
 
 Thank you for your reply. 
 
 Hello, 
 
 
 
 
 From my laptop if I ping the server:
 ping www.mydoamin.com
 ping: cannot resolve www.mydoamin.com: Host name lookup failure
 
 But if I log in to the server and do the same ping, it works fine.
 
 
 
 
 1) check your laptop is configured to work with this DNS server (cat 
 /etc/resolv.conf on laptop or ipconfig /all | findstr DNS in case of 
 windows )
 
 My laptop and the server are in two different countries. Btw, laptop also run 
 FreeBSD.
 
 
 
 2) check server is accessible (ping YOUR_SERVER_IP from laptop)
 
 Yes, the server is accessible (ping YOUR_SERVER_IP from the laptop.
 
 
 3) check server is accessible via TCP/53 
 (telnet YOUR_SERVER_IP 53 from your laptop) 
 
 No, there was a reverse DNS error here. It was pointing to the Reverse DNS 
 server of the data centre.
 
 Now its been corrected:
 
 telnet YOUR_SERVER_IP 53
 Trying YOUR_SERVER_IP...
 Connected to ns1.mydomain.com.
 Escape character is '^]'.
 
 4) check firewall on server and/or devices between server and laptop, it may 
 block requests
 
 No firewall on the server yet. 
 
 
 5) check your server is configured to use the same DNS: cat 
 /etc/resolv.conf 
 
 nameserver 127.0.0.1
 nameserver other_ip1
 nameserver other_ip2
 
 
 Although the Reverse DNS is now been corrected, still cannot ping as from the 
 laptop:
 ping www.mydomain.com
 ping: cannot resolve www.mydomain.com: Host name lookup failure
 
 Any ideas?
 
 Regards
 Unga
 

Hi all

Found the problem. The domain name was expired 2 days ago. That was the last 
thing I expected :)

Best regards
Unga
___
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: csup to svn

2012-11-21 Thread Paul Schmehl
--On November 21, 2012 6:04:00 PM + Steve O'Hara-Smith 
at...@sohara.org wrote:



On Wed, 21 Nov 2012 12:52:14 -0500
Fbsd8 fb...@a1poweruser.com wrote:


You missed to whole point of my question.
I don't want to maintain the WHOLE ports tree.
I only want to download selected single port.
My current ports tree only has 2 ports, apache22 and php5.
So your reply did not answer my question.
Thanks any how.


This works

svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 .

If you do it in /usr/ports/www/apache22 then the port winds up in a
sane place.


No!  This will create an apache22 port in /usr/ports/www/apache22/apache22!

You want to checkout the port while you're in the category directory.

IOW, cd /usr/ports/www  svn co blah blah blah

If you want to do a category, cd /usr/ports/  svn co 
svn://svn.freebsd.org/ports/head/www



Once you have it you can do svn up in /usr/ports/www/apache22

to update it.

This will probably become intolerably clumsy for more than a
handful of ports.




--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson
There are some ideas so wrong that only a very
intelligent person could believe in them. George Orwell

___
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: gpt booting (Was: Re: boot problem after freebsd-update from 9.1-RC2 to 9.1-RC3)

2012-11-21 Thread Warren Block

On Wed, 21 Nov 2012, Arthur Chance wrote:


On 11/21/12 05:11, Warren Block wrote:

gptboot looks for the first UFS partition.  Maybe /boot/boot can be
modified to do that also.


It's a little more complicated than that Warren.

AIUI gptboot first looks (in partition order) for partitions with both the 
bootme and bootonce attributes set. If it doesn't find any, or if they all 
failed to boot it then tries booting partitions with just the bootme 
attribute. It only boots the first UFS partition if no partitions have the 
bootme attribute set, and IIRC that is for compatibility with the 8.x gptboot 
which didn't know the boot* attributes.


Confusingly, there's no manual page for gptboot to document this. It's sort 
of implicit in the gpart manual page, in the section on ATTRIBUTES for GPT, 
but the best way to understand it is to read the code for gptfind in


/usr/src/sys/boot/common/gpt.c


Well, yes.  The point is that gptboot doesn't just assume that p2, say, 
is where the bootable UFS partition must be.


I've also noted the lack of a gptboot man page, and it's on my long list 
of Things That Should Be Done.  There was a thread on -doc:

http://lists.freebsd.org/pipermail/freebsd-doc/2012-June/020060.html

Help would be greatly appreciated.
___
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: portsnap

2012-11-21 Thread Robert Bonomi

 From: jb jb.1234a...@gmail.com
 Subject: Re: portsnap
 Date: Wed, 21 Nov 2012 10:43:30 + (UTC)

 So, the manual for portsnap(8) is imprecise, actually unfortunate because 
 misleading.

The manual/ manpage for portsnap(8) and its use of 'command' is precise
*and* entirely consistant with roughly 40(!!) years of Unix documentation
history.  (see, for instance, the 'mt' manpage, which existed before
6th Edition Unix.)

And, of course, if one follows/accepts jb's reasoning, that which follows
the '-c' parameter on a shell invocation is not a command.
nor is that which follows '-exec' on a 'find' invocation.
nor is that which follows the 'exec' command.
`
*snicker*


___
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


valgrind on pure amd64 (64 bit system _only_)

2012-11-21 Thread Jakub Lach
What's state of valgrind port on pure amd64 system?

Here, it core dumps upon linking both with clang and gcc47, 
with complaint that looks suspicious (expected i386 not X86_64
or something to that effect).



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/valgrind-on-pure-amd64-64-bit-system-only-tp5762993.html
Sent from the freebsd-questions mailing list archive at Nabble.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: portsnap

2012-11-21 Thread jb
Robert Bonomi bonomi at mail.r-bonomi.com writes:

 
 
  From: jb jb.1234abcd at gmail.com
  Subject: Re: portsnap
  Date: Wed, 21 Nov 2012 10:43:30 + (UTC)
 
  So, the manual for portsnap(8) is imprecise, actually unfortunate because 
  misleading.
 
 The manual/ manpage for portsnap(8) and its use of 'command' is precise
 *and* entirely consistant with roughly 40(!!) years of Unix documentation
 history.  (see, for instance, the 'mt' manpage, which existed before
 6th Edition Unix.)
 
 And, of course, if one follows/accepts jb's reasoning, that which follows
 the '-c' parameter on a shell invocation is not a command.
 nor is that which follows '-exec' on a 'find' invocation.
 nor is that which follows the 'exec' command.
 `
 *snicker*

How come ?

According to sh(1):
sh ... -c string ...
The -c option causes the commands to be read from the string operand.
Example:
- non-executable string argument
  $ sh -c test1
  test1: not found
- executable string argument, thus a command
  $ sh -c echo test1
  test1

According to find(1):
find ... expression ...
The expression is composed of primaries and operands:
 -exec utility [argument ...] ;
 True if the program named utility returns a zero value as its
 exit status.  Optional arguments may be passed to the utility.
 -exec utility [argument ...] {} +
Well, that utility represents a program, thus a command.
Example:
- non-executable utility
  $ find . -type f -exec fakeutility {} \;
  find: fakeutility: No such file or directory
  ...
OMG ! CAN YOU SEE THIS ?! 
- executable utility 
  $ find . -type f -exec echo {} \;
  ./.cshrc
  ...

According to bash(1):
$ type exec
exec is a shell builtin
$ help exec
exec: exec ... command [arguments ...] ...
Replace the shell with the given command.
Example:
- non-executable string (non-command)
  $ exec fakecommand
  bash: exec: fakecommand: not found
- executable string (command)
  $ exec touch test-exec.file
  $ ls -al test*
  -rw-r--r--  1 jb  jb  0 Nov 21 22:37 test-exec.file

The examples you gave are about executable commands by themselves, and that's
what their documentations (man pages) truthfully state.
No Mickey Mouse here.

This is not the same what portsnap(8) does:
portsnap ... command ...
This command word is non-executable by itself; it has a meaning only as
a special word passed to portsnap command to tell it what to do internally,
just a kind of special indicator to be used for conditional processing:
if arg=fetch then do-fetch-routine
else if arg=update then do-update-routine
else 

Well, being a liar is an honorable trait :-)
jb







___
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: csup to svn

2012-11-21 Thread Fbsd8

Paul Schmehl wrote:
--On November 21, 2012 6:04:00 PM + Steve O'Hara-Smith 
at...@sohara.org wrote:



On Wed, 21 Nov 2012 12:52:14 -0500
Fbsd8 fb...@a1poweruser.com wrote:


You missed to whole point of my question.
I don't want to maintain the WHOLE ports tree.
I only want to download selected single port.
My current ports tree only has 2 ports, apache22 and php5.
So your reply did not answer my question.
Thanks any how.


This works

svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 .

If you do it in /usr/ports/www/apache22 then the port winds up in a
sane place.


No!  This will create an apache22 port in /usr/ports/www/apache22/apache22!

You want to checkout the port while you're in the category directory.

IOW, cd /usr/ports/www  svn co blah blah blah

If you want to do a category, cd /usr/ports/  svn co 
svn://svn.freebsd.org/ports/head/www



Once you have it you can do svn up in /usr/ports/www/apache22

to update it.

This will probably become intolerably clumsy for more than a
handful of ports.






Yeap thats the ticket. I tested this and it works also

svn co svn://svn.freebsd.org/ports/head/misc/ytree /usr/ports/misc/ytree

Don't have to change into target directory.


Another question

csup has category called base that checkouts all the pieces parts 
making up the ports make environment.


svn has no category called base

What is base called in svn category?




___
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: csup to svn

2012-11-21 Thread Paul Schmehl

--On November 21, 2012 5:49:07 PM -0500 Fbsd8 fb...@a1poweruser.com wrote:


Paul Schmehl wrote:

--On November 21, 2012 6:04:00 PM + Steve O'Hara-Smith
at...@sohara.org wrote:


On Wed, 21 Nov 2012 12:52:14 -0500
Fbsd8 fb...@a1poweruser.com wrote:


You missed to whole point of my question.
I don't want to maintain the WHOLE ports tree.
I only want to download selected single port.
My current ports tree only has 2 ports, apache22 and php5.
So your reply did not answer my question.
Thanks any how.


This works

svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 .

If you do it in /usr/ports/www/apache22 then the port winds up in a
sane place.


No!  This will create an apache22 port in
/usr/ports/www/apache22/apache22!

You want to checkout the port while you're in the category directory.

IOW, cd /usr/ports/www  svn co blah blah blah

If you want to do a category, cd /usr/ports/  svn co
svn://svn.freebsd.org/ports/head/www


Once you have it you can do svn up in /usr/ports/www/apache22

to update it.

This will probably become intolerably clumsy for more than a
handful of ports.






Yeap thats the ticket. I tested this and it works also

svn co svn://svn.freebsd.org/ports/head/misc/ytree /usr/ports/misc/ytree

Don't have to change into target directory.


Another question

csup has category called base that checkouts all the pieces parts
making up the ports make environment.

svn has no category called base

What is base called in svn category?




svn co svn://svn.freebsd.org/base/release/8.3.0 /usr/src

for example.

To see the various branches, go to the svnweb site. 
http://svnweb.freebsd.org/


In general, the checkout command will pull whatever you ask for and put it 
where you tell it to and save date in a .svn directory which then allows 
you to run svn up from then on (unless you delete the .svn directory 
structure) to upgrade your sources.













--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson
There are some ideas so wrong that only a very
intelligent person could believe in them. George Orwell

___
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


any gtk folk on list?

2012-11-21 Thread Gary Kline

guys,

it helps to have g_get_home_dir() rather than g_get_homedir();
I *finally* triple-checked.  yep, that was why my voice-by-
computer GUI program wouldn't compile.  ...Anyhow, I hope there 
are some listmembers on -questions who can help me with a final
un-implemented feature.  

my program will help people with a small laptop or tablet that 
runs Unix  who CAN type but whose speech is impaired.  or 
perhaps they cannot talk at all.

one of my last features is a window that will display something
the speech-impaired may have typed several minutes before.  by
hitting the display prev button, a window opens with the title,
say talk.17.text  that was the 17th entry typed and spoken by the
computer.  it may be several paragraphs.  I already have (at the
button of this window), the buttons [Play], [Last window], 
[Next window], [Close window].

I am not skilled enough yet to know how to reach the Last or
Next --if these exist.  wondering if any FBSD folk can help me
with this.  if so, let's take it offline to avoid anybody who may
not think that -questions is the right mailinglist.

ithink I have exhausted all good-will among the gtk* lists and
forums.  right now I'm working on the built-in documentation.  
--this Will include a brief tutorial on vim/gvim.

TIA, people... .

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
  Twenty-six years of service to the Unix community.

___
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


Can I migrate from ataraid to graid ?

2012-11-21 Thread Jason Usher
We created a few 8.3-RELEASE systems with boot mirrors using onboard Intel 
ICH10R.  The system picks up the mirror with ataraid and I see it in dmesg 
like this:

ar0: 114312MB DDF RAID1 status: READY

But it seems that graid is a much better option, and ataraid has problems (I am 
seeing chatter on freebsd-fs and other places about problems).

Is it possible for us to migrate this boot mirror to graid ?  Can we just leave 
the mirror as-is (since it was bios formatted) and just start using graid ?

Has anyone done this switch on a live system, or is it impossible (and we need 
to reformat and start over) ?

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: csup to svn

2012-11-21 Thread Fbsd8

snip


csup has category called base that checkouts all the pieces parts
making up the ports make environment. IE Files in /usr/ports directory

svn has no category called base

What is base called in svn category?




svn co svn://svn.freebsd.org/base/release/8.3.0 /usr/src

for example.

To see the various branches, go to the svnweb site. 
http://svnweb.freebsd.org/


In general, the checkout command will pull whatever you ask for and put 
it where you tell it to and save date in a .svn directory which then 
allows you to run svn up from then on (unless you delete the .svn 
directory structure) to upgrade your sources.




The base you have referenced in svn means kernel source.
The ports cvup has category named base.

There is no category named base in the svn ports category list.

Doing a cvup for category base builds the following
# /usr/ports ls
.cvsignore  GIDsLEGAL   Mk  Tools
CHANGES KNOBS   MOVED   README  UIDs
COPYRIGHT   LASTCOMMIT.txt  MakefileTemplates   UPDATING

How do I do same thing using svn?


___
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: csup to svn

2012-11-21 Thread Paul Schmehl

--On November 21, 2012 8:11:05 PM -0500 Fbsd8 fb...@a1poweruser.com wrote:


snip


csup has category called base that checkouts all the pieces parts
making up the ports make environment. IE Files in /usr/ports directory

svn has no category called base

What is base called in svn category?




svn co svn://svn.freebsd.org/base/release/8.3.0 /usr/src

for example.

To see the various branches, go to the svnweb site.
http://svnweb.freebsd.org/

In general, the checkout command will pull whatever you ask for and put
it where you tell it to and save date in a .svn directory which then
allows you to run svn up from then on (unless you delete the .svn
directory structure) to upgrade your sources.



The base you have referenced in svn means kernel source.
The ports cvup has category named base.

There is no category named base in the svn ports category list.

Doing a cvup for category base builds the following
# /usr/ports ls
.cvsignore  GIDsLEGAL   Mk  Tools
CHANGES KNOBS   MOVED   README  UIDs
COPYRIGHT   LASTCOMMIT.txt  MakefileTemplates   UPDATING

How do I do same thing using svn?



What was base is now head.  To tell it to download only the files in head 
use:


svn co svn://svn.freebsd.org/ports/head /usr/ports svn_depth_files = 1








Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson
There are some ideas so wrong that only a very
intelligent person could believe in them. George Orwell

___
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 on SSD on ASUS P5KPL-C

2012-11-21 Thread Warren Block

On Tue, 20 Nov 2012, Snow Mountains wrote:


2012/11/20 Warren Block wbl...@wonkity.com:

On Tue, 20 Nov 2012, Snow Mountains wrote:


Just one small problem. Here I got this:

# gpart create -s bsd ada2s1
gpart: geom 'ada2s1': File exists
# gpart set -a active -i 1 ada2s1
gpart: index '1': No such file or directory

Expected? Anyway, is it any way to but FreeBSD on something like s2?



Sorry, typo.  FreeBSD does not have to be the first slice.

# gpart create -s bsd ada2s2
# gpart set -a active -i 1 ada2s2


Hm, still doesn't work. Look:

# gpart destroy -F ada2
ada2 destroyed
# gpart create -s mbr ada2
ada2 created
# gpart bootcode -b /boot/mbr ada2
bootcode written to ada2
# gpart add -t ntfs -b 2048 -s 30g ada2
ada2s1 added
# gpart create -s bsd ada2s2
gpart: arg0 'ada2s2': Invalid argument


Got a chance to set up a scratch drive and check this.  Turns out I left 
out the step of creating a slice (MBR partition) to hold the FreeBSD 
partitions.  Also, GPT labels cannot be used in an MBR.  Fixed below.  I 
will probably add this to my disk setup article because it has come up 
more than once.




Create the MBR partitioning scheme:

# gpart create -s mbr ada2

Add MBR bootcode:

# gpart bootcode -b /boot/mbr ada2

Add the Windows 7 partition, forcing it to start at block 2048 because 
-a is not going to do what is expected for slices because of 
decades-old CHS stuff:


# gpart add -t ntfs -b 2048 -s 30g ada2

Create the FreeBSD slice:

# gpart add -t freebsd ada2
# gpart create -s bsd ada2s2

Set this MBR slice active and add FreeBSD bootcode:

# gpart set -a active -i 2 ada2
# gpart bootcode -b /boot/boot ada2s2

Add the FreeBSD partitions.  -a will work here, aligning the partitions.

# gpart add -t freebsd-ufs -a 4k -s 3g ada2s2
# gpart add -t freebsd-ufs -a 4k -s 1g ada2s2
# gpart add -t freebsd-ufs -a 4k   ada2s2

Note: can't use GPT labels... since this is MBR.
___
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


Newsletter - new product for temperature alarm and monitoring

2012-11-21 Thread PingBrother

 
 
  
 
 
  
 
 
 
 
 
 
  
 New product - EPIW104F
  
  Primed for temperature remote monitoring and alarm 
   
  With its two temperature sensors, PingBrother EPIW104F can efficiently 
monitor temperature and intervene automatically to changes in temperature or 
voltage. It also watches the operability of attached network devices and can 
give a user defined response. It can control any connected device by its relay 
contact, and/or send an email, making it usable as a remotely adjustable 
thermostat that can send you a warning e-mail if need be.
   
  It has retained all the other useful features the product series are known 
for. The major ones are:
  - 4 port ethernet switch
 - Ping/HTTP watchdog function
  - managable POE outputs
  - Client software for monitoring multiple devices
  - Automatic or remote controlled monitoring of devices through trigger output
   
  
   
 
 
  
 
 
 
 
  
  APP.  EXAMPLES
PingBrother is a multi functional device. Eth. switch, POE injector, remote 
management device, and so on. Read More -

VIDEO PRESENTATION
Watch our video presentation showing you PinBrother in action. Read More -

  
   
   
   
   
   subscribeunsubscribe
 
 
 
 
 
  
 PingBrother 
Mikroweb Internet Ltd, Hungary, Phone: +36 1 5999000
 Email: sa...@pingbrother.com  //  Website: http://www.pingbrother.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: FreeBSD on SSD on ASUS P5KPL-C

2012-11-21 Thread Warren Block

On Wed, 21 Nov 2012, Warren Block wrote:

Got a chance to set up a scratch drive and check this.  Turns out I 
left out the step of creating a slice (MBR partition) to hold the 
FreeBSD partitions.  Also, GPT labels cannot be used in an MBR. 
Fixed below.  I will probably add this to my disk setup article 
because it has come up more than once.


The fdisk/bsdlabel section of my disk setup article has been rewritten 
to use gpart.  Feedback welcome.


http://www.wonkity.com/~wblock/docs/html/disksetup.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Newsletter - new product for temperature alarm and monitoring

2012-11-21 Thread PingBrother

 
 
  
 
 
  
 
 
 
 
 
 
  
 New product - EPIW104F
  
  Primed for temperature remote monitoring and alarm 
   
  With its two temperature sensors, PingBrother EPIW104F can efficiently 
monitor temperature and intervene automatically to changes in temperature or 
voltage. It also watches the operability of attached network devices and can 
give a user defined response. It can control any connected device by its relay 
contact, and/or send an email, making it usable as a remotely adjustable 
thermostat that can send you a warning e-mail if need be.
   
  It has retained all the other useful features the product series are known 
for. The major ones are:
  - 4 port ethernet switch
 - Ping/HTTP watchdog function
  - managable POE outputs
  - Client software for monitoring multiple devices
  - Automatic or remote controlled monitoring of devices through trigger output
   
  
   
 
 
  
 
 
 
 
  
  APP.  EXAMPLES
PingBrother is a multi functional device. Eth. switch, POE injector, remote 
management device, and so on. Read More -

VIDEO PRESENTATION
Watch our video presentation showing you PinBrother in action. Read More -

  
   
   
   
   
   subscribeunsubscribe
 
 
 
 
 
  
 PingBrother 
Mikroweb Internet Ltd, Hungary, Phone: +36 1 5999000
 Email: sa...@pingbrother.com  //  Website: http://www.pingbrother.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