Re: OT - help w configure, make, etc.

2009-06-09 Thread Jerry McAllister
On Tue, Jun 09, 2009 at 07:25:10PM +0200, Wojciech Puchar wrote:

 
 just few months and this will be general unix support list for everybody. 
 how about name
 change?
 
 
 and here we go again ...
 yes. Into general mess of everything off topic being ok because you/others 
 only want to help people

The most off-topic stuff on this list lately has been your
complaining about stuff being off-topic.  

On the other hand, using make to grow something running under FreeBSD 
is about as on-topic as one can get.

jerry


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

2009-06-08 Thread Jerry McAllister
On Mon, Jun 08, 2009 at 06:31:57PM +0400, Peter Andreev wrote:

 may be this solution will help you:
 
 * * 31 jan,mar,may,jul,aug,oct,dec *
 * * 30 apr,jun,sep,nov *
 * * 28 feb *
 
 or:
 
 * * 31 1/2 *
 * * 30 4/2 *
 * * 28 2 *

Don't forget leapyear.

jerry


 
 2009/6/8 Jos Chrispijn j...@webrz.net
 
  I would like to execute a script on every last day of the month in my
  crontab.
  Can someone tell me how I should solve that as it doesn't know which month
  day is the last day of the month?
  Solving this in the script to be executed is no option.
 
  Thanks, Jos
 
 ___
 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: What server hardware are you buying from the big companies these days?

2009-06-08 Thread Jerry McAllister
On Mon, Jun 08, 2009 at 11:56:35AM -0600, ericr wrote:

 Hi,
 
 I need to buy some new servers, and mgmt has decreed that we get them from
 someplace which will provide service contracts with on-site h/w suppport,
 which means HP, Dell, Sun, IBM, etc.

Our group has a lot of Dells from Poweredge 650-s to 2950-s and
some other groups in our department also run 46xx and some other
things.   They have been successful and reliable.  We have also
run a few HP servers with FreeBSD with no major problems, though
one came with a DOA motherboard.  But they came out and replaced
it right away.

jerry


 
 Has anyone bought servers from one of the big manufacturers lately and had
 good luck with them?  It seems hard to get them to tell you what controllers
 and chipsets they're using in servers, to compare against the supported
 hardware list.
 
 What I'm looking for isn't all that exotic:
 
 rack mountable
 RAID-5 controller
 4-6 or more disks (hot swappable would be nice, but not mandatory)
 dual power supplies (hot swappable would be nice, but not mandatory)
 CDROM
 2 ethernet ports
 some RAM
 a video card
 an Intel or AMD CPU - single, two CPU, or multicore doesn't really matter.
 
 and the all-important onsite service.
 
 These things need to be pretty reliable, both of the data centers they're
 going into are a couple  of hours from my house, so I don't want a dead
 power supply to take out the server.  We've used SuperMicro's in the past,
 and they've been wildly variable.  Some of them have run ok for years, some
 died within weeks, and kept dying no matter what parts we put in. (yes, I
 checked the power, it was clean.  My guess is just a bad run of
 motherboards).  I've got 3 servers that have never been able to stay up for
 more than a couple of days, we don't even use them.
 
 Regardless, any one have suggestions on what current models of servers are
 out there that run?
 
 Thanks!
 
 - ericr
 ___
 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: Date representation as YY/DDD or YYYY/DDD

2009-06-04 Thread Jerry McAllister
On Thu, Jun 04, 2009 at 05:20:24PM +0100, Chris Rees wrote:

 Er, yeah, i think man pages are the best solution too, and I apologise
 for appearing to look down on them. I can't *stand* info manuals,
 they're clunky and bloated.
 
 Chris
 
 PS Does _anyone_ prefer info manuals, apart from Stallman?

Well, man pages are good at formally documenting the how of use, but
they often are not so helpful on the why and wherefor of use.
Sometimes info manuals add a little for that.   But, that is more
of a content issue than a form issue.   Man pages could easily
be more forthcoming on the why and wherefor concepts.   

jerry



 -- 
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?
 A: Top-posting.
 Q: What is the most annoying thing in a mailing 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
___
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: Date representation as YY/DDD or YYYY/DDD

2009-06-04 Thread Jerry McAllister
On Thu, Jun 04, 2009 at 04:17:43PM -0400, Robert Huff wrote:

 
 Wojciech Puchar writes:
 
Well, man pages are good at formally documenting the how 
of use, but they often are not so helpful on the why and 
wherefor of use.
 
   for me it's exactly for this - to know how and why to use.
 
   It is important to understand man is a _reference_, not a
 _tutorial_.  It's great if you need to refresh your memory of the

Yes, I know.   That is why some other additional for is also useful.
I don't really propose changing man, but do often wish for some other
form.  Info does that a little, but still is often inadequate for
some comprehension of the why and wherefor of something that I 
have never mucked with.

I am not sure a 'tutorial' is it either because they tend to take a 
person through a couple of particular tasks using the item in
question, but still not discuss much of the why and wherefor.

jerry


 q flag, or check for exit codes, or check the order of parameters
 to the _fillintheblank() library call.  But if you're trying to
 figure out how to do X, or even how to do X correctly using this
 object ... many of the pages can leave you with the feeling you're
 stupider than you actually are.
   Being a tutorial may not be what man was designed for.  But
 until there's a designated and widely promoted text-only replacement
 it will be used as one.
 
 
   Robert Huff
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Date representation as YY/DDD or YYYY/DDD

2009-06-04 Thread Jerry McAllister
On Thu, Jun 04, 2009 at 11:16:05PM +0200, Polytropon wrote:

 On Thu, 4 Jun 2009 17:00:06 -0400, Jerry McAllister jerr...@msu.edu wrote:
  Yes, I know.   That is why some other additional for is also useful.
  I don't really propose changing man, but do often wish for some other
  form. 
 
 Many programs contain an EXAMPLES section in the man page.
 Further documentation often is supplied in /usr/local/share/doc
 and /usr/local/share/examples - available locally.

Something that is helpful in understanding the formal language of
the man page, and should be done more.  But it is not quite a why 
and wherefor.

jerry

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


Re: Date representation as YY/DDD or YYYY/DDD

2009-06-04 Thread Jerry McAllister
On Fri, Jun 05, 2009 at 12:06:55AM +0200, Wojciech Puchar wrote:

 I am not sure a 'tutorial' is it either because they tend to take a
 person through a couple of particular tasks using the item in
 question, but still not discuss much of the why and wherefor.
 
 What's wrong in FreeBSD handbook and many different paper books available 
 about unix? Actually not that many, but still there are available about 
 design of unix.

FreeBSD is really much more than the base OS.
Even though it is divided in to base and ports, it is really all
of them together.

jerry


 
 There is no need for FreeBSD book as long as books about unix exists, 
 and there is FreeBSD handbook.
 ___
 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: Open_Source

2009-06-02 Thread Jerry McAllister
On Tue, Jun 02, 2009 at 05:59:51PM +0200, Wojciech Puchar wrote:

 I believe people can get more experience in general with open source
 technologies than they can with closed source.  The reason is simple:
 I can look at the code.  I can study it.  I can see what
 ${APPLICATION} is doing, and how the developer designed it.  This, in
 itself, makes me better at what I do, and better at troubleshooting my
 own code.
 
 I would add - with Open Source add it's far smaller (actually close to 
 zero) probability that it doesn't do anything except it's supposed to do.
 
 I mean things like sending private data to someone else, scanning for 
 other programs i have on disk, my addressbook etc.

YES!This is the biggest of the three things I have against MS
and one of the main reasons for using FreeBSD and other Open Source
software as much as possible.

jerry

(ps. The other two are the quality of MS systems and MS business practices)

 
 If anyone would do this, soon someone else would see it because source 
 code is available for everybody.
 
 ___
 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: Open_Source

2009-06-02 Thread Jerry McAllister
On Tue, Jun 02, 2009 at 07:44:46PM +0200, Wojciech Puchar wrote:

 I mean things like sending private data to someone else, scanning for
 other programs i have on disk, my addressbook etc.
 
 YES!This is the biggest of the three things I have against MS
 and one of the main reasons for using FreeBSD and other Open Source
 software as much as possible.
 
 But i'm not agains micro-soft. If someone want to pay and be
 controlled - his problem.
 
 Today micro-soft doesn't even hide with this!! So it's clear - you pay big 
 brother and he does well the job he's paid for!

I am, -- on my machines.
What someone else does is there problem unless it spreads to
my stuff.

 (ps. The other two are the quality of MS systems and MS business practices)
 
 I didn't mean microsoft but any commercial software.

I know, but I picked that as my example.

jerry

 
 Actually i just switched from opera to firefox for similar reasons.
 
 I DO NOT say that opera doing such things, but i'm not sure it does not.
 
 Every minute or so when i use opera is starts lots of disk I/O and slows 
 down. It do so no matter if i'm loading some pages or do just nothing.
 
 It wasn't happening with older versions, but with that
 opera-9.64.20090302
 
___
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: What is this forum for?

2009-05-29 Thread Jerry McAllister
On Thu, May 28, 2009 at 11:43:29PM +0100, RW wrote:

 On Thu, 28 May 2009 23:38:46 +0200 (CEST)
 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:
 
 
  i repeated what i read recently about ICE ON ARCTIC SEA melting that
  will flood.
  
  Even knowledge from primary school physics and no single calculation
  is enough to prove that water level will not change at all.
 
 Even for you this is a new low. When you learned about Archimedes
 principle did they not teach you about thermal expansion - or did you
 just assume that as the ice melts everything remains at the same
 temperature. 

And, what about the huge amount of water that is currently sequestered 
in ice above sea level - on 'dry' land?   Where will it go?

jerry


 ___
 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: Producing Bad Dumps

2009-05-29 Thread Jerry McAllister
On Fri, May 29, 2009 at 09:52:30AM -0500, Martin McCormick wrote:

 I use the following flags to create a level 0 dump:
 
 dump 0ufaL /home/backups/backup /dev/DISKPARTITION
 
 The dump appears to run just fine. /home/backups/backup is a
 pipe to a remote system that fills a regular file from the pipe.
 
   Everything seems to run well at the time and the dump
 file has gigabytes of data in it. I can restore many files from
 it and all seems well.
 
   Today, I practiced restoring a whole system from one of
 these dumps and used the following command:
 
 restore -u -fx FILENAME
 
 It prompted for the volume number which is 1 (100% of the dump)
 and then I entered none when prompted for the next volume.
 
   That was about an hour ago and it is still spewing out
 the names of thousands of files, many of them OS-related such as
 /usr/src/xx which were not being modified or created at the time
 so if any files should be there, these should.

Probably you did not want the -x or -u, but instead wanted to do
  cd /MOUNTED_EMPTY_PARTITION
  restore -rf DUMPFILENAME

But, I am not sure because it is hard to understand why you chose -xu.

jerry

 
   Any idea as to what I did wrong?
 
   At this point, it is not certain whether the dump is bad
 or the restore is bad, but it isn't exactly confidence-en spiring
 if the system in question was to melt.
 
   No file systems filled up and the pipe isn't taken down
 until the dump has finished, at least that is what I believe to
 be the case.
 
   Any suggestions are welcome.
 
   Actually, for this test, I pretended that a directory
 on the system called scratch is / so I am just testing the
 ability to restore what should be everything under /
 before actually trying this on the real / because after that,
 you must rebuild the system from CDROM for a proper test.
   Thank you.
 ___
 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: Producing Bad Dumps

2009-05-29 Thread Jerry McAllister
On Fri, May 29, 2009 at 12:17:33PM -0500, Martin McCormick wrote:

 Jerry McAllister writes:
  Probably you did not want the -x or -u, but instead wanted to do
cd /MOUNTED_EMPTY_PARTITION
restore -rf DUMPFILENAME
 
   That would be the ideal command. Per haps there is a
 better approach so I am all ears as the saying goes.
 
   I am trying to set up a procedure so that we can take
 another server, if necessary, format the drive with FreeBSD and
 then restore the contents of a dead server to this drive and
 have it ready to run.

Yes, you would want to use restore -r for that.

 
   Of course, dd is great if both drives are the same size
 but usually, the only thing both servers have in common is they
 are both i86 systems and the goal is to try to get a platform
 with a melted hard drive or mother board back on line. The holy
 grail is a clone operation that can be documented so that a
 worker of reasonable knowledge can do it successfully.

You don't really want to use dd for that, partly for the reason
that you give and partly because it doesn't allow the [new] system
to do things such as assign inodes and space efficiently.

   So, you need all the files, but they probably will not
 occupy a disk that looks like the original one. In that respect,
 tar does well but trashes special files like /dev
 
  But, I am not sure because it is hard to understand why you chose -xu.
 
   The thought was that -u unlinks existing files so one
 could write the restore right over the minimal system that was
 there. -x was to extract / in order to get the entire root file
 system.

Well, you don't really want to create a minimal system on the device
if you don't have to.
You just want to slice (fdisk), partition(bsdlabel) and newfs it (using
either sysinstall or manually fdisk, bsdlabel and newfs from a fixit) and 
then use a fixit CD to write the dump to the device with restore -r.  That 
might be a problem if you are trying to read the dump from a remote storage.
I don't know if the fixit has enough stuff to do that - it might.

In that case, you might be better off having a spare drive you can
plug in and build that minimal system on and then use it to build 
the full system and repopulate it from the remote dump file with
 restore -r.

Actually, I think if you use restore -r it will behave OK writing over
existing files.   All the warning about it needing to be a clean file
system is mostly so you won't overwrite something you do not want to.

But, it leaves the possible problem that some vestigial stuff will be
left around from the minimal install you overwrite with files you 
really don't want to be left around - eg files it has that are not
duplicated in the dump so it ignores them and leaves them there.

Try it out that way.   Just use  restore -rf and see how it handles it.


 
   Again, the idea is to recover a FreeBSD system as
 quickly as possible and get it back to the patch level and
 general operating conditions it was originally in before the
 hardware that supported it died.

If you made your own 'spare' disk that could be plugged in, you could
script rebuilding the new disk and restoring the dump.  You might have
to tinker a bit.We used to have a complete setup that built the
disk and then restored from a backup that we distributed.   It did
the disk slicing, then asked if it was a new install or if a restore
from backup was desired and did it.   That took a lot of writing in C
and it needs to be rewritten since FreeBSD 4.   But, it is readily doable.

Have fun,

jerry

 
 Again, many 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
___
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: Sponsoring FreeBSD

2009-05-28 Thread Jerry McAllister
On Thu, May 28, 2009 at 11:12:16AM +0200, Wojciech Puchar wrote:

 
 FreeBSD developers know enough to avoid speaking 'on behalf' of anyone,
 unless they are explicitly asked to do so and it makes sense.  We usually
 just point the users gently towards an appropriate resource: a webpage, a
 mailing list, or a team of more knowledgeable folks, etc.
 
 Boris did the right thing IMO by pointing at the donations pages.  Two of
 
 Exactly. but it for sure wasn't what original sponsoring offer wanted. 
 He wanted banner/logo advert on mine webpage.
 
 a) We generally accept all donations, regardless of how small they are.
   Even donations of a single RAM chip for nearly obsolete platforms are
   welcome and we try to find someone who will make good use of it.
 
 But you don't put advert for this. As you said - there is separate webpage 
 for listing sponsors, and that's excellent.
 
 b) The donations team acts as a gateway for incoming stuff, and they have
   enough experience to discern genuine offers for a donation from spammy
   please link to my personal web site and I will make you rich scamming
   schemes.
 
 So what's wrong with my answer for such spammy offer?

I think what most persons are reacting to are two things.

  1: Many (note all) of your posts in response to questions carry what
 we might call a snippy, kind of put down attitude toward the
 questioner.   Even when you are quite correct in information and
 criticism, it is not received well if you also say something that
 appears to ridicule the OP and/or other posters.   This is where I
 wonder if it is a language issue.   Do you realize that you are
 jamming people in the manner of your posts?   Take care of people's
 sensitivities when you post.   When in doubt about how something
 might be received, then don't put in those words - just stick to the 
 plain and dull technical information.

  2: Although I have seen a number of valuable responses posted under your 
 address (eg presumably helpfully posted by you), sometimes you seem to 
 jump in to a question or thread when you really do not know the answer 
 or really do not have anything to add.  This makes the forum look 
 foolish and it also tends to discourage those who have the answer or 
 can make some meaningful contribution from getting in to the foray.  
 They do not have the time or inclination to get in to a flame war.
 We all have read a question wrong or misunderstood it and made a 
 midguided response.  I certainly have gritted my teeth when reading 
 some responses I made as they came back from the list server.  But 
 you seem to have a penchant for making posts that have a decided 
 appearance of being just for the sake of saying something rather 
 than making a positive contribution to the topic of the OP.

So, while it is true that you have the right and freedom to post on this
unmoderated list, the adult thing to do is to take responsibility for
yourself, to think about the significance and quality of your post before 
sending it off.   Ask the question, 'does it improve the situation or will 
it just annoy people and contribute nothing of technical value'.  Then make 
the choice in a manner that will improve the quality of the exchange.  
Remember that we all screw up, some of us more often than most, but none 
of us need our noses rubbed in it or to be jeered at.

Thank you,

jerry

 
 ___
 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: What is this forum for?

2009-05-28 Thread Jerry McAllister
On Thu, May 28, 2009 at 04:54:53PM -0400, Bill Moran wrote:

 On Thu, 28 May 2009 14:52:05 -0500
 Gary Gatten ggat...@waddell.com wrote:
 
  Is this forum intended to ask specific type questions and hope to get
  specific and relevant answers?  Or, is it a blog to generalize,
  theorize, banter, etc. about anything and everything?
 
 [snip]
 
 Stop whining.
 
 This list has been around of a LNG time.  The rules haven't changed
 in the 10 years since I've been subscribed, and the list works 99% of the
 time.
 
 The few days a month where the discussion goes off-topic and turns into a
 flame war _are_ annoying, but not significantly distracting in the grand
 scheme of things.

You got it.
A voice from experience.
This has also been my experience for the last about a dozen 
years I have been on.   Geez, has it been that long.  I'm getting
old -- or is that OT...  :-P

jerry

 
 -Bill
 ___
 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: What is this forum for?

2009-05-28 Thread Jerry McAllister
On Thu, May 28, 2009 at 11:01:39PM +0200, Wojciech Puchar wrote:

 
 This list has been around of a LNG time.  The rules haven't changed
 in the 10 years since I've been subscribed, and the list works 99% of the
 time.
 
 But there are more and more new users. It will not work that way another 
 10 years.

The sky is falling!   Yes, Chicken Little.
Do they have that story in Poland?
I don't remember seeing it when I was there, but then, 
I wasn't looking at children's books at the time.

jerry


 
 The few days a month where the discussion goes off-topic and turns into a
 flame war _are_ annoying, but not significantly distracting in the grand
 
 It will be 30 days/month soon. Not flamewars, but off-topic noise.
 
 Soon it will turn into KDE/CUPS/PHP/MYSQL/(add 100 other apps here) 
 support.
 ___
 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: Sponsoring FreeBSD

2009-05-28 Thread Jerry McAllister
On Thu, May 28, 2009 at 11:00:09PM +0200, Wojciech Puchar wrote:

 Wojciech Puchar wrote:
 How about it? Only STRICT RULES keep things healthy and long lived.
 
 I wonder what makes you think you have the right to decide for all?
 
 Why you think so? I don't mean myself as definer of that rules.
 
 FreeBSD owners should start moderation and define rules. What they do 
 is their decision.

Mostly, the people who have broad and deep enough knowledge of the
system are busy and don't have time to waste moderating a list.

jerry


 
 It's just my opinion, time will show if i am right if they will not do 
 this, and this list turn to 1% on topic.
 ___
 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: Flamewar ( was: Sponsoring FreeBSD)

2009-05-27 Thread Jerry McAllister
On Wed, May 27, 2009 at 09:21:19PM +0200, Wojciech Puchar wrote:

 mainstream, or because i have opinion at all, i just respond normally.
 
 Wojtek - I also think you have the capacity to help and you often do. But
 don't pretend to be speaking for the FreeBSD team because you are doing
 reread my posts. i didn't speak for them and i said that i'm not them.
 i AS USUAL tell what i think.
 
 And YOU just don't accept this because it's completely different point of 
 view than yours. You - like most people - react with fear/aggression when
 hearing/reading something completely agains the knowledge you've been put 
 to the brain for years. Who is right doesn't matter at all that cases.
 
 I understand this because is natural reaction, often not fully conscious.
 
 As you - and few other people - can not use arguments just attacks, it 
 make the list polluted.

Sorry to wade in to this, but the reality has been and is just the
oposite.   It is m. Puchar who has been making reactionary responses
and somewhat unkind ones at that.Is it a language issue?  Or is
it a lack in self awareness/examination?

jerry



 And - back to that funny sponsor - I can only do favour sending them 
 out. Can't you see it's semi-automatic posts to whatever he found, because 
 he just want to advertise yourself and his webpage improvement services?
 (improvement==adding tons of flash, javas...t etc.)
 
 He wanted his banner on FreeBSD site for 100$
 
 Or maybe i'm wrong - if so, please Core Team to put our little 
 company's link on my page and i will send 100$ today. Don't forget to give 
 me account number.
 
 Even more - i will find 10 friends to do the same. Just 10 links with 
 small letters ;) and 1000$ is yours.
 
 The trick of doing ANY business, and non-profit work is to NOT TAKE EVERY 
 CRAP, just because you see money. I'm sure you already know it in your 
 business, so why can't you see this here?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
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: Sponsoring FreeBSD

2009-05-27 Thread Jerry McAllister
On Wed, May 27, 2009 at 02:38:46PM -0500, Neal Hogan wrote:

 On Wed, May 27, 2009 at 2:22 PM, Wojciech Puchar
 woj...@wojtek.tensor.gdynia.pl wrote:
 
  Of course - ban it!
 
 
  Just my 2c... Snotty comments like this in a public forum, is exactly why
  I
  no longer use FreeBSD.  Just about everything in these mailing lists turns
 
  If you stopped using FreeBSD BECAUSE OF FORUM, congratulations ;)
 
  This means that OS functionality is not important for you at all!
 
 Well, that certainly doesn't follow.

Actually, that one does.
If you use FreeBSD because of the OS functionality/reliability, etc
then trashy noise on the questions list wouldn't make a difference
in your choice.   If you stop using it because you don't like the
noise, then functionality is not your high priority.Maybe saying
'at all' is over the top.But, anyway, the noise is getting tiresome - 
even mine.

jerry

 
 -- 
 www.nealhogan.net  www.lambdaserver.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
 
___
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: Reading warnings when installing multiple ports

2009-05-19 Thread Jerry McAllister
On Tue, May 19, 2009 at 03:05:38PM +0200, Mel Flynn wrote:

 On Saturday 16 May 2009 21:21:54 Jerry McAllister wrote:
  Sometimes I get a question in the middle of an install that I do
  not know how to answer and it is an awfully inconvenient time to
  have to start scrounging for information.Having a commannd that
  would display all those things and maybe some related information
  or pointers to information for making an intelligent response -
  before starting the make -  would be very helpful.

 Do you have specific examples? Cause I can't think of anything that
 falls under your description.
   
Hello All,
   
I had a recent experience with editors/openoffice.org-2.  Based on past
experience I know that the compile would take a few hours.  I started
make and left to do some chores.  When I returned I discovered that the
program had aborted as I did not have java installed and had to
download a patch from the Sun website.
  
   This can and will not ever be fixed, because it's a legal and not a
   technical issue.
   Once you know this, you know to install diablio-jdk first, which takes
   5-10 minutes pending download speed.
 
  Yes, I know it is a legal/license issue at Sun and I sort of know to do
  it now, having installed OO a couple of times.   But, the point was and is,
  it would help people if the information about having to do it would
  come up right at the first, so a person could have it taken care of
  instead of starting an install which one knows will take hours so
  leaves to do something else and comes back and finds the install
  stopped hours ago because of something that could have and should
  have been taken care of before actually starting the install.
 
 JDK's should really set IS_INTERACTIVE if distfiles that are not available 
 cannot be downloaded without user intervention (MAINTAINER cc'd because of 
 this). This would signal portmaster to present you with a message before 
 starting the build and letting you go about your business.
 
 If your ports management software does not recurs through all configuration 
 dialogs before starting the build, you're not using the right tool for the 
 job.
 
  Some variation of this, often involving entering a 'y' or 'n' at
  some point in the middle of an install that could have been done
  causing an environmental variable or some such to be set ahead of
  time exists in a number of ports I have installed.   It is annoying
  to come back from a bunch of tiring meetings only to see that an
  install that could be finished has several more hours to run because
  it was waiting all that time for a y or n.
 
 This is where -DBATCH comes in. It silences all those. The ones that aren't 
 silenced and aren't legal issues, should be considered bugs. Various ports 
 management tools also support automatic answer features. Without ports 
 management software you can always run yes|make -DBATCH.

That is one thing to do, but, the answer is not absolutely always 'y'.   

Advanced information is still desirable.

jerry


 
 -- 
 Mel
 ___
 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: Backing up FreeBSD and other Unix systems securely

2009-05-18 Thread Jerry McAllister
On Sun, May 17, 2009 at 09:12:57AM -0700, Kelly Jones wrote:

 I tried using Mozy for backups because they offer unlimited space, but
 1) they don't support FreeBSD, 2) they encrypt file contents, but NOT
 file names, and 3) they don't do true versioned backups. Easy
 workaround for 1): rsync to a Mac/Windows and backup from there, but
 2) and 3) are more difficult.

Is there any possibility of using your own media locally - such as
tape or a large USB attached disk?If security is such a primary 
concern, I can't see sending the data to that type of offsite thing.

Get a couple of large USB SATAs and use dump(8) to back the stuff up
on them.Write them encrypted if you need.

jerry

 
 My plan:
 
  % Use dd if=/dev/random of=mykey to create a random blowfish key
 
  % Blowfish encrypt mykey with a passphrase only I know. Backup the
  encrypted blowfish key to a remote host.
 
  % Keep track of when I last ran the backup program (touch
  /some/path/timestamp at start of run) and only backup files that've
  been modified more recently (find / -newer /some/path/timestamp).
 
  % To backup foo.txt, first bzip2 it and encrypt w/ my blowfish key.
 
  % Then, take the sha1 hash of the bzip'd/encrypted file, and backup
  foo.txt to remotehost:/some/path/{sha1 hash}.
 
  % To avoid too many files in one dir, I may backup
  b0d0a7da15d5eb94ac76ac4fd81fe6d4fa8e4593 to
  remotehost:/some/path/b0/d0/a7/b0d0a7da15d5eb94ac76ac4fd81fe6d4fa8e4593
  for example.
 
  % In an SQLite3 db, record the filename I'm backing up, its
  timestamp, and its bzip'd/encrypted hash. Store an encrypted copy of
  the db on the remote server.
 
 I like this plan because it does versioned backups, and doesn't backup
 identical files twice. I dislike it because I lose Mozy's unlimited
 disk space.
 
 Questions:
 
  % Does this plan seem secure and reasonable?
 
  % Will backing up the 0-byte file this way make it easy to guess my
  blowfish key?
 
  % Is there software that already does this?
 
  % Can this plan be improved?
 
 
  % Does anyone offer unlimited space for Unix backups?
  (safesnaps.com)
 
  % Any general thoughts/comments on this plan?
 
 -- 
 We're just a Bunch Of Regular Guys, a collective group that's trying
 to understand and assimilate technology. We feel that resistance to
 new ideas and technology is unwise and ultimately futile.
 ___
 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: Reading warnings when installing multiple ports

2009-05-16 Thread Jerry McAllister
On Sat, May 16, 2009 at 11:24:42AM +0200, Mel Flynn wrote:

 On Friday 15 May 2009 19:26:00 mfv wrote:
  On Tuesday 12 May 2009 13:53:35 Mel Flynn wrote:
   On Monday 11 May 2009 15:21:24 Jerry McAllister wrote:
But, I very often wish there was a convenient way to see some of those
messages and especially messages about things one has to do during
the install, such as manually installing something or getting some
license thing handled, before I start the port install.
   
Sometimes I get a question in the middle of an install that I do not
know how to answer and it is an awfully inconvenient time to have
to start scrounging for information.Having a commannd that
would display all those things and maybe some related information
or pointers to information for making an intelligent response - before
starting the make -  would be very helpful.
  
   Do you have specific examples? Cause I can't think of anything that falls
   under your description.
 
  Hello All,
 
  I had a recent experience with editors/openoffice.org-2.  Based on past
  experience I know that the compile would take a few hours.  I started make
  and left to do some chores.  When I returned I discovered that the program
  had aborted as I did not have java installed and had to download a patch
  from the Sun website.
 
 This can and will not ever be fixed, because it's a legal and not a technical 
 issue.
 Once you know this, you know to install diablio-jdk first, which takes 5-10 
 minutes pending download speed.

Yes, I know it is a legal/license issue at Sun and I sort of know to do 
it now, having installed OO a couple of times.   But, the point was and is,
it would help people if the information about having to do it would
come up right at the first, so a person could have it taken care of
instead of starting an install which one knows will take hours so
leaves to do something else and comes back and finds the install 
stopped hours ago because of something that could have and should
have been taken care of before actually starting the install.

Some variation of this, often involving entering a 'y' or 'n' at
some point in the middle of an install that could have been done
causing an environmental variable or some such to be set ahead of
time exists in a number of ports I have installed.   It is annoying
to come back from a bunch of tiring meetings only to see that an
install that could be finished has several more hours to run because
it was waiting all that time for a y or n.

Building that improvement into ports installs and some additional
why and wherefor information in the pkg-desc file or some other
useful and readily available place would help the ports system.
Of course, it would still be necessary to depend on the port
maintainer to provide these accurately and completely.

jerry
   
 -- 
 Mel
___
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: Welcome to the freebsd-questions mailing list

2009-05-13 Thread Jerry McAllister
On Wed, May 13, 2009 at 08:33:44PM +0530, Shakil Khan wrote:

 Hi,
 
 Can anyone let me know how can I download FreeBSD kernel source code. I am
 on Linux and am not able to download using CVS. Can someone point me exactly
 and also if some links are available where I can download tar ball of
 FreeBSD kernek source code.

My suggestion would be to download the latest ISO and install it on
a machine with full source.  Then you will have kernel and everything
to make a FreeBSD including the correct compilers and libraries.

Kernel is really dealt with differently in FreeBSD than in Linux.
Although there is a kernel, it is intimately part of the whole
operating system, not a kernel which someone grabs makes up a separate 
distribution with.   

jerry


 Regards
 ~Korikov
 ___
 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: Installing Unix

2009-05-12 Thread Jerry McAllister
On Tue, May 12, 2009 at 04:52:15PM +0100, Ese Oronsaye wrote:

 Hi
 I am a newbie to Unix with no experience in installing unix operating
 system. Have been through Download Freebsd but not quite sure what I should
 download.
 What is ISO and Distribution not quite sure which I should download.
 Can anyone help me with this.

Well, some of this is covered well in the FreeBSD Handbook and some
other documents that are all available online starting at the 
  http://www.freebsd.org/   web site.
Even after that it can be a little confusing at first about how to
find just which ISO you want to download.

First determine what is the highest level RELEASE available.  At the
beginning, do not worry about -STABLE and -CURRENT.  

At the moment, the latest RELEASE is 7.2   

Next determine the hardware you want to install on.   That will
probably be either i386 for regular 32 bit or AMD64 for 64 bit
machines, though there are other possibilities.  

The next thing to do is to familiarize yourself with the site for
downloading the ISOs.   Just do an anonymous ftp in and look around.

  ftp toftp.freebsd.org   and log in as  anonymous
Use your email address as a password.

You can do an 'ls' in each of the directories you enter to see what is there.
In that first directory you will see only one item --  the  pub directory.
So, cd to it.   Do;
  cd pub
In that directory you will see there is only the FreeBSD  directory so
cd to that.   Do:
  cd FreeBSDnote that it is case sensitive so  cd freebsd won't work.

In the FreeBSD directory, when you do an  ls  you will see lots of stuff
including files, directories and links.   You can look at these things
but you will eventually want to cd to 'releases'  and then to  'i386' or
to 'amd64'

Then cd to 'ISO-IMAGES' and finally to '7.2'

In that directory you will see the .iso files you want to download.
If your internet connection is good enough, then you only need to
download the disc1.iso  file and burn it to CD.
You may also want to download the CHECKSUM.MD5 and use that to
verify the good/clean transmission of the .iso file.

After that you are ready to move on to the installation - although
you should read and learn about it so you know what you want to do.

jerry   
 Regards

 Ese
 ___
 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: Reformatting external harddrive

2009-05-12 Thread Jerry McAllister
On Tue, May 12, 2009 at 01:41:37PM -0400, Daniel Underwood wrote:

 Thanks for all the advice. This evening, when I get home to work, I
 will try these suggestions.
 
 I have no idea why there is more than 1 partition on this disk. I must
 have inadvertently created multiple partitions when I was struggling
 to reformat this disk in linux.  Every time I tried to fdisk (or
 perhaps it was mkfs.ext3) on in linux, I got errors about a bad
 superblock (which I understand somehow relates to the journaling
 mechanism of ext3).

According to the fdisk output you include, there is only 1 slice (called
primary partition in MS land) being used on the disk.   
It has about 305242 MegaBytes which seems to be what you are looking for.

It is possible to have up to 4 slices (primary partitions) on a disk.
The fdisk output shows one being used and the other three empty and
not being used.So, you are all fine.

Ignore those bogus messages about BIOS and partitions not in cyl 1, etc.
They are not relevant.


You can now either use bsdlabel to create partitions within that slice
or just use the slice as is.   In either case, you have to newfs the
unit to create a filesystem in it so you can mount it and write/read it.

If you use it as is without creating partitions, then do:
  newfs /dev/da0s1

If you create one single partition within that slice - say a: for example
then the newfs would be:
  newfs /dev/da0s1a

If you create partitions, lets say a:, d: and e: then do:

  newfs /dev/da0s1a
  newfs /dev/da0s1d
  newfs /dev/da0s1e

In any case, to not use  partition  c:   and for sanity's sake
avoid  b: .c:  is reserved to describe the whole slice and, by 
convention, b:  is used for swap though that is not required.
Some people suggest avoiding  a:  because it is most often a 
bootable partition.   It is not required either, but it can reduce
confusion to avoid it in non-bootable slices/disks.

If your backups are small enough so more than one full dump can
fit on the disk, then I suggest slicing and partitioning so that
each full dump series can have its own partition.  It is not a
requirement.  It is just easier to keep track of on those groggy
odd hours.

jerry

 
  *** Working on device /dev/da0 ***
  parameters extracted from in-core disklabel are:
  cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl)
 
  Figures below won't work with BIOS for partitions not in cyl 1
  parameters to be used for BIOS calculations are:
  cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl)
 
  Media sector size is 512
  Warning: BIOS sector numbering starts with sector 1
  Information from DOS bootblock is:
  The data for partition 1 is:
  sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 63, size 625137282 (305242 Meg), flag 80 (active)
         beg: cyl 0/ head 1/ sector 1;
         end: cyl 0/ head 254/ sector 63
  The data for partition 2 is:
  UNUSED
  The data for partition 3 is:
  UNUSED
  The data for partition 4 is:
  UNUSED
 
___
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: Reading warnings when installing multiple ports

2009-05-11 Thread Jerry McAllister
On Sun, May 10, 2009 at 04:49:27PM -0700, Kelly Jones wrote:

 I often use make -DBATCH install to install ports.
 
 Problem: many ports spew out a warning/todo message after you install
 them (eg, you must manually create an x user or something).
 
 Since ports install recursively, I miss most of these messages.
 
 Can I tell ports to store these messages for me somewhere?
 
 Obviously, I can make -DBATCH install  /tmp/outfile, but that'll
 log all the install, test, etc commands that I don't want to see:
 I just want to see the warnings at the end of each install.

Check out   script(1)   It is not perfect, but it will put a copy
of everything in and out in to a file that you can peruse later.

There may be other ways, but this is easy.

jerry


 
 -- 
 We're just a Bunch Of Regular Guys, a collective group that's trying
 to understand and assimilate technology. We feel that resistance to
 new ideas and technology is unwise and ultimately futile.
 ___
 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: howto sidestep sysinstall during installation

2009-05-11 Thread Jerry McAllister
On Mon, May 11, 2009 at 03:45:03PM +0930, Daniel O'Connor wrote:

 On Mon, 11 May 2009, Saifi Khan wrote:
  Is there a way to sidestep the sysinstall during the
  installation process, beyond selecting the 'location' ?
 
  i'm using FreeBSD 8.0 200905 i386 snapshot DVD and looking
  for an approach to drive the entire installation from the
  Fixit# command line console.
 
  i'm a experienced Gentoo Linux user.
 
  Any suggestions, pointers or observations ?
 
 You won't be able to partition the disk from the command line because 
 the install MFS doesn't have any of the requisite tools to do so.

???   I don't understand this comment.
Recreating a disk - slice/parttion/newfs - is one of the main things
to do under a fixit.   You should have fdisk, bsdlabel and newfs there
as well as restore for sucking dumps back in.

The only thing to remember is that the running writable root file system 
under fixit is in memory.   You have to make sure that what you do is to 
the disk and that the fstab you create is on the disk.   It is easy to
lose track and make an /etc/fstab modification or a mount point in the 
MFS and then find it is no longer there when you reboot.  But, you just 
have to pay attention to where you are doing things.

jerry




 
 You could do it from a livefs disk however.
 
 As for observations.. I think you're wasting your time :)
 
 -- 
 Daniel O'Connor software and network engineer
 for Genesis Software - http://www.gsoft.com.au
 The nice thing about standards is that there
 are so many of them to choose from.
   -- Andrew Tanenbaum
 GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


___
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: Reading warnings when installing multiple ports

2009-05-11 Thread Jerry McAllister
On Mon, May 11, 2009 at 06:52:39AM +0100, Matthew Seaman wrote:

 Kelly Jones wrote:
 I often use make -DBATCH install to install ports.
 
 Problem: many ports spew out a warning/todo message after you install
 them (eg, you must manually create an x user or something).
 
 Since ports install recursively, I miss most of these messages.
 
 Can I tell ports to store these messages for me somewhere?
 
 Obviously, I can make -DBATCH install  /tmp/outfile, but that'll
 log all the install, test, etc commands that I don't want to see:
 I just want to see the warnings at the end of each install.
 
 
 portmaster will save up package messages and display them all at the
 end of the session.  I believe a similar feature is planned for portupgrade
 but as far as I know it hasn't been released yet.

 
 In any case, you can redisplay the pkg-message for any installed port
 by:
 
   % pkg_info -Dx portname
 
   Cheers,
 
   Matthew
 

This is handy and seems to work.

But, I very often wish there was a convenient way to see some of those
messages and especially messages about things one has to do during
the install, such as manually installing something or getting some
license thing handled, before I start the port install.   

Sometimes I get a question in the middle of an install that I do not
know how to answer and it is an awfully inconvenient time to have
to start scrounging for information.Having a commannd that
would display all those things and maybe some related information
or pointers to information for making an intelligent response - before
starting the make -  would be very helpful.

jerry  

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


___
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: boot0 installation not permitted in single slice config

2009-05-11 Thread Jerry McAllister
On Mon, May 11, 2009 at 09:27:34PM +, Saifi Khan wrote:

 Hi all:
 
 Trying to install the 'boot0' boot manager on the MBR, from the
 Fixit# command prompt as
 
 Fixit# boot0cfg -v -B -o noupdate /dev/ad4
 
 the response is:
 boot0cfg: write_mbr: /dev/ad4: Operation not permitted.
 
 i've configured a single slice for the entire disk as
 Fixit# fdisk -B -I /dev/ad4
 
 Is it that by default the sector 0 is taken as the start point
 if the entire disk is configured with a single slice ?

Use fdisk.fdisk -B ad4

The fdisk commane you indicate does all you need.
  eg:

  fdisk -B -I ad4

does what you want and  you do not need the boot0cfg

jerry

 
 
 thanks
 Saifi.
 ___
 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: Licensing

2009-05-08 Thread Jerry McAllister
On Fri, May 08, 2009 at 01:09:51AM -0400, Steve Bertrand wrote:

 I've got a question that is likely not suited for this list, but I know
 that there are people here who can guide me off-list.
 
 Being a network engineer, I'm far from a developer. With that said, I've
 written numerous network automation programs (mostly in Perl), and have
 developed several small patches for software written in C related to ISP
 operations (including the OS itself).
 
 I'm looking for advice on how I can take all of my code, and license it
 into the public domain. I'm sure that most people won't have any
 interest in it, but I really want to ensure that what I have done is
 freely accessible.
 
 All of my code is pretty well separated into different files that
 contain different functions, so isolating portions of my programs that
 use modules or functions that are external is not a problem.
 
 GPL seems too verbose legally for me. Can the BSD license fit into any
 code, no matter what language it is in, and if so, can I have my code
 overlooked by someone who can verify that the BSD license will fit?

The first thing to determine is if any other entity might hold
some interest (ownership/copyright interest) in any of it.  If you
were employed by someone or some institution to do the work or the
work was done during time paid by those entities, then they may
have an interest.

If that is not the case, then the next thing to determine is if
any of it should be submitted to existing OSen or Utilities as
patches - bug fixes or improvements.  These two may not be a conflict
as many businesses will have no problem with you submitting back
fixes in software you are using in their behalf.   eg, for example,
if you are using FreeBSD to run a system for the business and write
a patch for FreeBSD while on company time that helps that business
operate better, they probably will have no problem with your 
submitting the patch for permanent inclusion in FreeBSD.

As much as possible, then, submit PRs and include the diffs that
cover the fixes or improvements.

Finally, if you have complete clear ownership of some unique
utilities, then include license terms in the source with a requirement
that the license term be included in any subsequent distributions
and then submit the utilitie as a port - if it is for FreeBSD.

For a reasonable idea of how to compose license terms, check out
the license terms for FreeBSD on the web site.

I really don't know where to submit it if it is not for FreeBSD,
although there are several sites that such as SourceForge that make
themselves repositories for various usefull utilities.  You'd have
to check with them for how to go about submitting things and what
is expected in the way of support, etc.

Please include well documented source and clear statements as to
what the utilities do and how to use them.  Writing man pages
and why-to as well as how-tos is important.

You don't have to worry a whole lot
Good luck,

jerry

 
 Steve
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
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: basic

2009-05-07 Thread Jerry McAllister
On Thu, May 07, 2009 at 09:03:36AM +0200, Mel Flynn wrote:

 On Wednesday 06 May 2009 21:09:07 Jerry McAllister wrote:
  On Wed, May 06, 2009 at 06:00:32PM +0200, Polytropon wrote:
   10 GOTO 10
  
   On Wed, 6 May 2009 14:32:47 +0200, giorgio novello 
   gio@vodafone.it 
 wrote:
Do you want obtain new market share?
   
Develop e visual-basic like language, or asp vb and  your OS will be a
best seller
  
   FreeBSD isn't for beginners, it's for professionals.
 
  Everyone is a beginner sometime.   So, FreeBSD is for beginners.
  Otherwise there would be no FreeBSD --- or you.
 
 What he means is that FreeBSD does no hand holding or hide stuff because you 
 don't need access to it anyway. Also, there aren't many that started 
 computing on FreeBSD.

I know what he thinks he means.   But, what he says is that 
improvements are against the ethic of FreeBSD and that simply
is not true.

jerry


 -- 
 Mel
 ___
 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: Dump snapshot issue...

2009-05-06 Thread Jerry McAllister
On Wed, May 06, 2009 at 10:01:36AM +0100, Marc Coyles wrote:

  One thing you should try is to remove the dump_snapshot files,
  because
  they are supposed to be unlinked when the dump starts anyway, so
  they
  shouldn't be sticking around.
  
  Also, look for file flags on the directories, or ACLs, etc.
  
  And consider the permissions you're running dump with.
  
 
 Dump is running as root via cron / initiated by hand.
 ACLs not used.
 Have removed all existing dump_snapshot files, and
 have also removed and recreated all .snap directories.
 
 S'now working fine for all mountpoints, except /home...
 

Is /home really a separate file system on your system?
Or is it just a directory in another filesystem?

jerry


 mksnap_ffs: Cannot create /home/.snap/dump_snapshot: Input/output error
 dump: Cannot create /home/.snap/dump_snapshot: No such file or directory
 
 It doesn't appear to proceed as normal either... as you can see below,
 it ends the previous dump, starts the /home dump, gets an I/O error,
 then proceeds straight to the /usr dump. The /home dump never gets
 performed. If I remove the -L option, everything goes thru fine, but
 complains about lack of -L flag...
 
   DUMP: DUMP IS DONE 
 mksnap_ffs: Cannot create /home/.snap/dump_snapshot: Input/output error
 dump: Cannot create /home/.snap/dump_snapshot: No such file or directory
 
   DUMP: Date of this level 0 dump: Wed May  6 08:30:31 2009
   DUMP: Date of last level 0 dump: the epoch
   DUMP: Dumping snapshot of /dev/da0s1e (/usr) to standard output
 
 
 Fsck finds no errors on /home... point to note... mksnap_ffs CAN create
 /home/.snap/dump_snapshot as I'm sat looking at the file, however, once
 it's created it it's as tho it can't access it. The file is there, it
 wasn't before I ran the script. It's created it as root:operator, perms
 400. I can open it in pico, add content to it, and save it happily. So
 I'm baffled!
 
 M
 
 
 
 ___
 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: basic

2009-05-06 Thread Jerry McAllister
On Wed, May 06, 2009 at 06:00:32PM +0200, Polytropon wrote:

 10 GOTO 10
 
 On Wed, 6 May 2009 14:32:47 +0200, giorgio novello gio@vodafone.it 
 wrote:
  Do you want obtain new market share? 
  
  Develop e visual-basic like language, or asp vb and  your OS will be a best
  seller
 
 FreeBSD isn't for beginners, it's for professionals. 


Everyone is a beginner sometime.   So, FreeBSD is for beginners.
Otherwise there would be no FreeBSD --- or you.

jerry


There
 wouldn't be Visual BEGINNERs All-Purpose Symbolic Instruction
 Code, but isual PROFESSIONALSs All-Purpose Symbolic Instruction
 Code, Visual Pasic, VP. It already exists: The tools for making
 Qt and Gtk+ applications. Then, there are NetBeans and Eclipse
 and so on - everything already there. :-)
 
 Furthermore, FreeBSD isn't sold. So it doesn't have to care
 about market share and best seller.
 
 And for the weekend:
 10 GOTO KNEIPE
 20 INPUT BIER
 
 
 -- 
 Polytropon
 From Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
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: basic

2009-05-06 Thread Jerry McAllister
On Wed, May 06, 2009 at 01:59:41PM -0700, Charlie Kester wrote:

 On Wed 06 May 2009 at 13:15:34 PDT Fred C wrote:
 
 On May 6, 2009, at 12:48 PM, Gary Gatten wrote:
 
 LMAO!  Touché!  Seriously though, can't we all just get along? :)
 
 
 I have no problem with linux I am using it every day at work it is  
 installed on more than 2000 servers. But with all the incoherences in
 the tools and the os, I feel sometime like I am working on Windows.
 
 I suspect the OP was trolling.  The giveaway is his suggestion that
 following his advice would make FreeBSD a best seller.  This reflects
 a complete lack of awareness of what FreeBSD is all about.
 
 Setting aside the fact that FreeBSD is not a commercial product and thus
 has nothing to sell, he also presumes that our primary goal is to
 increase the size of our userbase and that we are willing to make
 whatever accommodations are necessary to achieve that goal.
 
 But unless I'm mistaken, that isn't FreeBSD's goal.
 
 FreeBSD's goal is to provide a freely-available implementation of BSD
 Unix for the most common hardware.   New users who are looking for a BSD
 Unix are welcome, but they are expected to adapt to FreeBSD's way of
 doing things and not vice versa.  The current userbase is large enough
 to suggest that many people have no problem with those terms.
 
 As for the suggestion that what FreeBSD needs is VB, there have already
 been various ports of Basic over the years.  None of them seem to have
 had much success.  BSD users seem to be content with traditional shell
 scripting, perl, or newer scripting languages like python -- all of
 which better reflect the Unix philosophy than VB does.  

The only thing I miss about basic was the ease of playing the speaker
on a pc.  I wrote a number of odd-scaled and timed loops in Basic many 
years ago - circa 1980, pre Visual Basic actually, as tests of the effects 
of tone intervals and tone spacing and wouldn't mind resurecting them and 
doing some more experimenting.   

I know there are all kinds of more sophisticated things available, but the 
simplicity of it then just suited what I was trying to do.  It would be 
easy enough to rewrite the loops in something like Perl, but is it as easy 
to make the tones and control the time intervals?   I don't remember seeing 
that other places.  

Otherwise, the only other reason for Basic nowdays, as far as I can see, 
is for nostalgia -- anyone remember PP coding on CDC 6000 and 170 series 
mainframes?  Now that's nostalgia.

jerry


 
 ___
 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: Broken Partition

2009-05-04 Thread Jerry McAllister
On Sun, May 03, 2009 at 06:26:42PM -0700, Chris Chambers wrote:

 Hi,
 
 Using partition magic, I freed some space from my msdos partition. Then 
 using sysinstall's fdisk and label, I attempted to add the space to my 
 freebsd partition. I broke the installation. The boot loader can not 
 find /boot/kernal. I tried mounting the partition under FixIt, but mount 
 says broken argument.

You cannot just slab it on the side of an existing slice with fdisk.
You have to create a brand new slice that uses up all the space.
There is something called   growfs(8)  in FreeBSD, but that works 
on FreeBSD filesystems (FreeBSD partitions) rather than slices.

So, you might be able to use the fixit to go back and restore the
slice to the way it was and get a backup of it.   I am not sure.
Do you have any information on exactly which sector it previously
started on?   

You would have to create a slice _identical_ to the old one (without
any extra added on) and then use fdisk and bsdlabel to restore the
labels _exactly_ as before.  Then you might be able to read stuff.
I am not sure what fsck would do with it because some links probably
have been wiped out.

If you can get it to where dump(8) can make a dump of the each of
the partitions in the slice (except swap and /tmp - don't back up swap
or bother with /tmp), then do that.

Then, go back to Partition Magic and delete the FreeBSD slice and then
create a completely new one that combines the space of what you shaved
off from MSdos with the previous FreeBSD slice.   Then you can go back
to sysinstall (or manually with fdisk-bsdlabel-newfs) and create the
new, larger FreeBSD slice, divide it in to partitions and make file
systems out of them with newfs.

I think you will be extremely lucky if you can pull off rescuing
the old FreeBSD slice though.  You will have to get it to start
on the same sector and have identical links.   You might have to
use backup superblocks that are built in to the filesystems if you
can get to them.

This probably stems from a misunderstanding on how slices, partitions
and filesystems work.   Although most everything is flexible, the
beginnings of each are rather fixed and cannot be arbitrarily shoved
around without being remade from scratch.

jerry


 
 Any ideas?
 
 Chris
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
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: When a System Dies; Getting back in operation again.

2009-05-04 Thread Jerry McAllister
On Mon, May 04, 2009 at 10:31:16AM +0200, Jonathan McKeown wrote:

 On Friday 01 May 2009 22:43:51 Jerry McAllister wrote:
  On Fri, May 01, 2009 at 12:07:22PM -0500, Martin McCormick wrote:
   Let's say we have a system that is backed up regularly and it
   vanishes in a puff of smoke one day. One can get FreeBSD
   installed on a new drive in maybe half an hour or so but we also
   need to get back to the right patch level and then we can say we
   are back where we started.
 
  What you want to do is use the fixit image to set up the disk.
  That means fdisk and bsdlabel and newfs it.   You can actually
  use sysinstall to do this as well.  Just let the installer come
  up and do the disk stuff, choose minimal install and then after
  it finishes making the disks, kill the rest of the install (or
  just let it finish and then overwrite it.
 
  But, I find it actually easier to do the fdisk, bsdlabel and newfs-s
  myself.  But, then I am used to it.
 
  Right after you get done making sure where your fixit is living,
  then use fdisk and bsdlabel to check for the way you have the disk
  set up currently.   Write it down or print it out and keep it
  near that installation/fixit disk.
 
 [Lots of good stuff about creating the partitions]
 
  Now all you have to do is newfs each partition.   Just take the
  defaults.   Remember that newfs wants the full device spec, not
  just the drive identifier.
 
 If you have kept the right information beforehand, you can actually restore 
 your dumps onto ``bare metal'' without doing a partial install first, and 
 with the same newfs settings for each partition as you originally had. You 
 need to use bsdlabel and dumpfs -m and keep the output for rebuilding. The 
 rest of this message is the details.

If you have a specific reason to want your new filesystems' to have
identical superblock info, you can use dumpfs -m, but you don't need
to worry about all that.   Just fdisk, bsdlabel and then let newfs
take its defaults.   You do not need an identical filesystem to
do a restore(8) on it.   Restore builds it from scratch in the correct
way - in fact in a better way than what it was before the system
was whacked.So, just build the new disk either manually or with
sysinstall and then restore the dumps within the filesystems.

Make sure you cd in to the mounted filesystem - note, since you
are running from a fixit, you are making up new mount points and
mounting the filesystems from the new disk.   Something like:

  mkdir /newroot
  mount /dev/ad0s1a /newroot
  cd /newroot
  restore -rf /dev/nsa0 
   (replace /dev/nsa0 with wherever you are reading the dump.  don't
forget to position the tape with mt fsf nn if it is a tape)

You can also skip the fdisk if you are running only FreeBSD from that
disk and don't mind using what is called a 'dangerously dedicated' disk.
It isn't really all that dangerous.  No weird creatures will climb out
and grab you by the throat at night.

If you do dangerously dedicated, the device addressing leaves out
the slice specifier (s1, s2, s3 or s4) and would look something 
like:   /dev/ad0a   instead of  /dev/ad0s1a.

jerry

 
 On your running system, create and keep two files. My system has one slice, 
 ad6s1, and the usual partitions - a for root, d for /tmp, e for /var, f 
 for /usr, and I've shown the commands you need, and the resulting file 
 contents on my current system, below:
 
 bsdlabel ad6s1 ad6s1.label
 
 ad6s1.label contains:
 
 # /dev/ad6s1:
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   a:  104857604.2BSD 2048 16384 8
   b:  8388608  1048576  swap
   c: 1562963220unused0 0 # raw part, don't 
 edit
   d: 20971520  94371844.2BSD 2048 16384 28552
   e:  1048576 304087044.2BSD 2048 16384 8
   f: 124839042 314572804.2BSD 2048 16384 28552
 
 I usually put all the spare space on a disk into /usr, so changing the first 
 field on the f: line (the size) from 124839042 to * tells bsdlabel to do 
 exactly that in case the replacement disk is a different size from the 
 original.
 
 We now need the newfs settings for all the 4.2BSD filesystems except c, so 
 (in 
 sh syntax)
 
 for i in a d e f; do dumpfs -m ad6s1$i; done newfscmds.ad6s1
 
 newfscmds.ad6s1 now contains:
 
 # newfs command for ad6s1a (/dev/ad6s1a)
 newfs -O 2 -a 8 -b 16384 -d 16384 -e 2048 -f 2048 -g 16384 -h 64 -m 8 -o 
 time -s 262144 /dev/ad6s1a
 # newfs command for ad6s1d (/dev/ad6s1d)
 newfs -O 2 -U -a 8 -b 16384 -d 16384 -e 2048 -f 2048 -g 16384 -h 64 -m 8 -o 
 time -s 5242880 /dev/ad6s1d
 # newfs command for ad6s1e (/dev/ad6s1e)
 newfs -O 2 -U -a 8 -b 16384 -d 16384 -e 2048 -f 2048 -g 16384 -h 64 -m 8 -o 
 time -s 262144 /dev/ad6s1e
 # newfs command for ad6s1f (/dev/ad6s1f)
 newfs -O 2 -U -a 8 -b 16384 -d 16384 -e 2048 -f 2048 -g 16384 -h 64 -m 8 -o 
 time -s 31209760 /dev/ad6s1f
 
 take out the -s 31209760 in the command for ad6s1f

Re: source for sysinstall

2009-05-03 Thread Jerry McAllister
On Sun, May 03, 2009 at 04:46:55AM -0400, Glen Barber wrote:

 On Sun, May 3, 2009 at 3:59 AM, Fbsd1 fb...@a1poweruser.com wrote:
  How can i just download the source for sysinstall?
 
 http://svn.freebsd.org/base/release/7.2.0/usr.sbin/sysinstall/

Wouldn't that be the binary and not the source?

jerry


 
 
 -- 
 Glen Barber
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
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 7.2 released?

2009-05-03 Thread Jerry McAllister
On Sun, May 03, 2009 at 06:20:40PM +0700, Old Crankbuster wrote:

 * Frederique Rijsdijk frederi...@isafeelin.org [2009-05-03 13:13:23 +0200]:
 
  typicaly the images are uploaded first before the announcements are made.
 
 Hmm.  I just installed 7.1 today.  Should I download the new iso and
 install fresh, or upgrade?  No real mods or extensive configuration has
 been done yet...
 
 Wait for the announcement?


If you have the time, wait for the announcement and then
download the new one and burn it and do it again.

jerry

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


Re: source for sysinstall

2009-05-03 Thread Jerry McAllister
On Sun, May 03, 2009 at 09:19:21AM -0400, Glen Barber wrote:

 On Sun, May 3, 2009 at 9:16 AM, Jerry McAllister jerr...@msu.edu wrote:
  Wouldn't that be the binary and not the source?
 
 
 It would be the binary once the source is compiled, yes.
 

Didn't even see the 'svn' at the beginning of the URL.

jerry


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


Re: When a System Dies; Getting back in operation again.

2009-05-01 Thread Jerry McAllister
On Fri, May 01, 2009 at 06:21:06PM +0100, Craig Butler wrote:

 Bacula is your friend, tried and tested
 

The guy is making nice reliable dump(8)s of his file systems.
He doesn't need to waste time and energy with yet another thing.

Dump and restore work just fine, are part of the system and
handle situations like these most reliably..

jerry


 http://www.bacula.org/en/dev-manual/Disast_Recove_Using_Bacula.html#SECTION004315
 
 /Craig
 
  
 
 On Fri, 2009-05-01 at 12:07 -0500, Martin McCormick wrote:
  Let's say we have a system that is backed up regularly and it
  vanishes in a puff of smoke one day. One can get FreeBSD
  installed on a new drive in maybe half an hour or so but we also
  need to get back to the right patch level and then we can say we
  are back where we started. If you do not have hot-swappable
  drives which we mostly do not, What is the best way to restore
  the full system?
  
  Can I use the FreeBSD installation disk in rescue mode?
  The idea would be to boot the CDROM, go in to rescue mode, mount
  the new drive which may be blank right now, and then use restore
  based on the last dump of the system we are trying to revive.
  
  Thanks.
  
  Martin McCormick WB5AGZ  Stillwater, OK 
  Systems Engineer
  OSU Information Technology Department Telecommunications Services Group
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
 ___
 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: When a System Dies; Getting back in operation again.

2009-05-01 Thread Jerry McAllister
On Fri, May 01, 2009 at 12:07:22PM -0500, Martin McCormick wrote:

 Let's say we have a system that is backed up regularly and it
 vanishes in a puff of smoke one day. One can get FreeBSD
 installed on a new drive in maybe half an hour or so but we also
 need to get back to the right patch level and then we can say we
 are back where we started. If you do not have hot-swappable
 drives which we mostly do not, What is the best way to restore
 the full system?
 
   Can I use the FreeBSD installation disk in rescue mode?
 The idea would be to boot the CDROM, go in to rescue mode, mount
 the new drive which may be blank right now, and then use restore
 based on the last dump of the system we are trying to revive.

Yes.

By the way, dump/restore are the best for backup/recovery because
they handle the odd situations best - such as you replace the old
failed disk with a newer either larger or smaller (but still big
enough to hold everything) disk.   Other utilities cannot handle
that gracefully.  Dump/restore does.   There are a few other odd
cases as well.

I think you want what is called 'fixit' mode.   You can select
that when you boot from it.   I am not absolutely sure all sets
of disks are populated identically.  Check now that your CD has
the fixit and if it is on a different image, download that one,
burn it and stash it somewhere safe.

What you want to do is use the fixit image to set up the disk.
That means fdisk and bsdlabel and newfs it.   You can actually
use sysinstall to do this as well.  Just let the installer come
up and do the disk stuff, choose minimal install and then after
it finishes making the disks, kill the rest of the install (or
just let it finish and then overwrite it.

But, I find it actually easier to do the fdisk, bsdlabel and newfs-s
myself.  But, then I am used to it.

Right after you get done making sure where your fixit is living,
then use fdisk and bsdlabel to check for the way you have the disk
set up currently.   Write it down or print it out and keep it
near that installation/fixit disk.

If you do   fdisk  ad0or  fdisk da0  (depending on IDE/SATA or SCSI/SAS
respectively) without any other parameters, it will print out what it
thinks the disk is currently like.Of course, if it is other 
than disk 0, use the correct number.

Then do a similar thing with bsdlabel.   bsdlabel -e ad0s1
or bsdlabel da0s1.If you have more than one slice and FreeBSD
is not on slice 1, then use the correct slice identifier here.
So, if it is the second SATA drive and the third slice on it
that might look like  bsdlabel -e ad1s3.   
Note that drives number from 0, but slices number from 1.

Anyway, then copy the information it shows in the table down or
print it out.   Ignore the stuff on top - anything above where
it says:   '8 partitions:'You are just interested in the
partition identifiers and the sizes and offsets, types 
and the fsize, bsize and bps/cpg.Actually, you can normally
just take whatever defaults it gives you for fsize, bsize and bps/cpg
unless you are doing something extra exotic.

Then just get out of the edit session without writing/saving.
just type ESC :q!

Those numbers don't have to be the exact same on the new disk and
probably will not be, but you will want to have the information 
handy rather than have to recalculate it at a bad time.

NOTE, I am mostly writing this presuming that you have the machine
only running FreeBSD.  If you have it dual booted, you will want
the information on the other OS slices too.   fdisk will give you
what you need to know.   The FreeBSD fdisk is smart enough to report
on all slices -(what MS calls primary partitions) even if they are
not FreeBSD slices.   It does not report on extended partitions, but
it does not need to.  You only need to know about the primaries/slices.
You let those other OSen deal with 'extended' stuff.

If you have an MS or Lunix OS on it, then those should be put back first.
Whatever you did to divide the old disk will have to be done to make
the slices on the new disk.  Maybe Partition Magic or Gparted was used.

Once you have it divided in those major divisions (slices/primary partitions)
then use fdisk to make at least the FreeBSD slice boodable.  Those
other OSen will probably take care of it for theirs.

The easy thing is if the whole disk is being used by FreeBSD.
Then just do:
  fdisk -BI da0

That will make the whole disk FreeBSD and bootable.

Then do two bsdlabels.  The first sets up the label and the
second edits it to have the partitions you want.

  bsdlabel -w -B da0s1

  bsdlabel -e da0s1

You will see an edit session about like the one you saw when you
collected the information to stash away, except it will only show
a 'c' partition.

Leave that c partition alone, but make the other ones similar
to what you had on the old disk. You only need to put in
the '0' value for the offset on the first (a) partition and then
put '*' in for the rest of the offsets.
Make the rest of the 

Re: disklabel output format ? How to see in G M ..

2009-04-30 Thread Jerry McAllister
On Thu, Apr 30, 2009 at 08:51:13PM +0300, Anonymous wrote:

 
 Using disklabel -A /dev/da0s1  I would like to see the sizes in G or M  
 format, how can I do this?
 Also, googling arround i found output showing the cylinder space occupied  
 by a partition (like :
  # cyl* X - Y ). How do I see that ?
 PS: i did man disklabel and bsdlabel but i didnt find the correct  
 arguments.
 thank you.

I don't know if it will display them that way, but you can 
enter them as 100M or 12G or whatever is appropriate when
you are creating partitions.

jerry

 ___
 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: Modern FreeBSD Installer?

2009-04-29 Thread Jerry McAllister
On Wed, Apr 29, 2009 at 09:56:00AM -0300, Sergio de Almeida Lenzi wrote:

 hello
 
 Well, after all that said, I would like to post my
 modest oppinion based in experience from the market..
 
 1) The people who use FreeBSD, or other OS, (the end user) 
 will never install the OS, the person will turn on the machine
 and expects an graphical interface appears in the secreen.
 
 2) the Interface should be as simple as possible, but powerfull
 enought to fullfill their needs, that is text, email, browsing,
 some banking, multimedia (this must be powerfulll...), chatting.
 some dvd authoriting, P2P. should access WIFI networks easy too

I don't think you understand how FreeBSD is used in most circumstances.
As a server, these things would mostly be quite undesirable and an annoyance
to have to remove - more of an annoyance than installing then from ports.

jerry  

  
 
 3) the computer  (computer is the term used by the USER) should
 NEVER break, stop working That is: the computer (and the Operating
 system) should act as the TV set... (remember those old times when the TV set
 used to break???) you turn it on, and it works...
 
 4) For those who install the OS in the computer, (some 1 in 10.000) people
 should make it fast and dirty  I make an installer that install FBSD in 
 10 minutes
 with all the gnome, office, multimedia, with only one enter of the 
 keyboard...
 using ZFS, the system never breaks, is ready to use in 20 seconds... FBSD is 
 installed
 in more than 1000 machines running in gas stations... here...
 
 5) A beautifull installer is good for the newspaper that publishes a review 
 of
 the Operating system (they must publish something to sell to ...save their 
 job..),
 Have you ever heard about a Leopard installer??? do you know someone who 
 reinstalled Leopard??
 
 6) I also think that there must be an fast and dirty  FBSD install. in the 
 distribution
 a CD (or DVD) that you put in the machine, it asks where to install and a 
 prompt choosing YES or NO...
 the installer formats the disk(partition), do a tar of the FBSD image, with 
 an login of admin prompts for 
 a password, and dumps the os image in the disk using journal or ZFS... 
 (90% of the machines I installed FBSD have 1GB of memory, 80GB of HD and HDA 
 sound,
 INTEL,ATI,VIA graphics board... only 4 brands of NIC).
 
 7) I showed FBSD to an expert windows guy, and he think it is far more easy 
 to install than
 the XP he was using besides, it is LEGAL!!!  
 
 Thanks for the Attention,
 
 Sergio
 
 ___
 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: Modern FreeBSD Installer?

2009-04-27 Thread Jerry McAllister
On Mon, Apr 27, 2009 at 02:28:53AM -0500, Gary Gatten wrote:

 I'm trying to ignore this thread, but as an infrequent installer, I think it 
 would be nice for those of us with limited experience to have a context 
 sensitive help to explain the various install options, such as: what it 
 is/does, how much disk space, how many/which dependancies, estimated install 
 time, etc. I don't care if its TUI or GUI - just something to help me make 
 the various selections at install time.  With my luck such a thing is already 
 there and I just don't know about it, but thought I'd throw it out.

I would go for this.   I have done hundreds of installations and still
find times that I want more information in the middle of things.  That
is especially true if I try to add some packages at install time.

But, I agree that we must not give up on a 'text based' installer that
is the most generally usable, even if some other options might be made
available.The text based installer could also be massaged a bit
to make it a little easier to understand as well, without losing its
functionality.

Read Jordan Hubbard's white paper whose URL was posted a few days ago.  
It clarifies things a lot.   
  http://people.freebsd.org/~jkh/package-and-install.txt

Probably even more could be said, but that gives an essential frame
of reference.

jerry



 
 - Original Message -
 From: owner-freebsd-questi...@freebsd.org 
 owner-freebsd-questi...@freebsd.org
 To: Mehmet Erol Sanliturk m.e.sanlit...@gmail.com
 Cc: Tim Judd taj...@gmail.com; FreeBSD Questions Mailing List 
 freebsd-questions@freebsd.org
 Sent: Sun Apr 26 19:00:07 2009
 Subject: Re: Modern FreeBSD Installer?
 
 On Sun, 26 Apr 2009 14:52:56 -0400, Mehmet Erol Sanliturk 
 m.e.sanlit...@gmail.com wrote:
  Last week I have installed Solaris 10 ( 2008-10 ) on a PC ( x86 )
  having an Intel main board . It did not recognize Philips 220WS LCD (
  1680 x 1050 ) monitor and selected itself a text-mode install and also
  booted in text mode.
 
  I moved its hard disk to a PC with an Asus main board having an
  attached CRT Philips 109B6 ( maximum resolution : 1920 x 1440 )
  monitor .  Since boards were different , Solaris 10 could not boot . I
  started an upgrade installation . During that time it become necessary
  to leave PC for a while assuming that installation will wait .  With
  its count down and start by itself in its GUI mode . it started to
  install automatically .
 
  At the end , the install become useless because its default detections
  were not what parts were there ( I think it used previously detected
  parts without checking the present parts except monitor and perhaps
  some others , I do not know exactly .) .
 
 That's why there should be at least the option of a text-mode install
 (and it should probably be the default, as Polytropon wrote).  I also
 hate it when an installer fails to autodetect my video adapter and ends
 up showing me a useless blank screen or, even worse, an equally useless
 'out of range' monitor message!
 
 ___
 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
 
 
 
 
 
 font size=1
 div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 
 0in 1.0pt 0in'
 /div
 This email is intended to be reviewed by only the intended recipient
  and may contain information that is privileged and/or confidential.
  If you are not the intended recipient, you are hereby notified that
  any review, use, dissemination, disclosure or copying of this email
  and its attachments, if any, is strictly prohibited.  If you have
  received this email in error, please immediately notify the sender by
  return email and delete this email from your system.
 /font
 

 ___
 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: Partitioning for multiple systems

2009-04-27 Thread Jerry McAllister
On Sun, Apr 26, 2009 at 11:45:07AM -0700, Michael David Crawford wrote:

 I have a machine I plan to use solely for testing.  I have FreeBSD 
 8.0-CURRENT on it right now, and would like to add FreeBSD 7.2-RC2 as 
 well as CentOS 5.3 Linux.
 
 Presently I have three Master Boot Record primary partitions - slices 
 in the FreeBSD parlance, if I understand correctly:
 
 - A Linux slice to be used for CentOS' /boot
 - A BSD slice subdivided into partitions that hold 8.0-CURRENT
 - A big FAT slice (so to speak) meant to be split up for 7.2 and CentOS
 
 A PC-style Master Boot Record can hold a maximum of four primary 
 partitions, or it can hold three primaries and a single extended 
 partition that is subdivided into logical partitions.
 
 The geometries of the logical partitions aren't given in the MBR, but 
 exist as a linked list.
 
 I *should* be able to split that FAT slice up into a primary for 7.2 and 
 an extended partition that will hold CentOS' other partitions; however:
 
 In Googling about this, I have read some dire warnings about FreeBSD 
 being unable to understand logical partitions; apparently installing 
 FreeBSD *before* an extended partition will result in all your logicals 
 getting trashed.  One is advised to put all the FreeBSD MBR partitions 
 *after* the extended partition.
 
 Is that the case?  Have you any advice for me?

FreeBSD is not happy with MS 'extended partitions'.   But, I don't really
see your problem.   You are not using Microsloth for anything.
Create your Lunix slice first, then one for FreeBSD 7.2 and finally one
for FreeBSD 8.0.   You still logically have one left for something but
it doesn't seem to be needed and neither does a 'logical partition'.

Note that FreeBSD will not run from the FAT slice as far as I know.

FreeBSD might be able to mount the CENTOS slice stuff if you use
the right type of mount.  I don't know about mounting Lunix from FreeBSD.
But, you can't do it the other way (eg mount a FreeBSD type filesystem 
from Lunix - though maybe, I have never tried it)

 One more thing: if it's possible, I'd like for the /home directory to be 
 shared between both of my FreeBSD installations.  In a normal 
 installation, there is a real /usr/home directory, with /home being a 
 symbolic link.
 
 If I'm running FreeBSD out of one MBR partition (or slice), can I mount 
 a directory that's in a different one?

MBR has nothing to do with the filesystem type.
MBR is just a [usually] one block/sector of code that makes a few
choices and then reads in a subsequent, OS-specific block of code
to begin the actual boot process.MS MBRs are not very friendly.
The FreeBSD MBR will boot any OS that follows the official standard
for boot code location.   Linux wants you to use some fancier, 
non-standard (but by now, pretty much usable everywhere) MBRs such
as Grub.   They all do essentially the same thing - ask you which 
block you want to boot and then go load it in and transfer over 
control to it.  Generally they don't care what is in the block
but MS still goes out of its way to pretend that the rest of the world 
does not exist so it won't play with others, though I have heard rumors
that the newest stuff takes a somewhat broader outlook.

From FreeBSD you can mount other types of filesystems such as MS
by using the correct mount types.   For example, if you want to mount 
an MS FAT or FAT32, you use an 'msdosfs' type in your fstab file or 
mount_msdosfs(8) utility to do the mount.   Do some studying to see
if you can mount any Lunxi type filesystem from FreeBSD.

When you create a new __non-root__ account, you can put the home
directory anywhere the system can reliably read and write.  DO NOT
put the home directory for a root account outside of the root (/) 
filesystem.   Since both FreeBSD 7.xx and 8.xx are going to be UFS
type file systems, you could put them both in your /etc/fstab for
each and pick a single partition for (non root) home directories.
I don't know if that is a good idea, but it should work OK.  

jerry
   
 
 Thanks for your help!
 
 Mike
 -- 
 Michael David Crawford
 m...@prgmr.com
 
prgmr.com - We Don't Assume You Are Stupid.
 
   Xen-Powered Virtual Private Servers: http://prgmr.com/xen
 ___
 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: Modern FreeBSD Installer?

2009-04-27 Thread Jerry McAllister
On Mon, Apr 27, 2009 at 08:33:46PM +0200, beni wrote:

 On Sunday 26 April 2009 20:11:36 Neo [GC] wrote:
  Just my two cents:
 
  Why a graphical installer? Shure, it looks nice, easy, modern and more
  accessable (examples: Mac OS X, Vista), but on the other hand, for me
  FreeBSD never was intended to be fancy, but to be functional.
 
 What is wrong with fancy functional ? The two can go together I think. 
 For you it may not be, but I would like it to be for me. And as to now, 
 I don't have any choice : there is no fancy, easy, nice, modern and 
 accessable installer.



You are missing the two key things that have been said.

First, that a GUI installer will not work on many systems that FreeBSD
powers and in some circumstances for which it is used.   Those in particular
are headless servers - a major use of FreeBSD - and where it is being
used by persons who need special communication tools such as the blind.
So, for those large number of cases a text based installer needs to be
retained, though if someone were able to improve it in some way, that
would be OK.

Second, that no one objects to a parallel installer being made available
as long as it is not the default and as long as it does not squeeze out
the text based installer.The only problem here is finding someone
or some group to work on it.   Most FreeBSD developers see other issues
as higher priority concerns and will be putting their effort in to those
concerns rather than in to a GUI installer.

So, don't try to make an argument that doesn't exist.   Nobody minds
if you write a fantastic GUI installer and submit it for inclusion as
long as it works well and doesn't eclipse other necessities.

jerry



___
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: Partitioning for multiple systems

2009-04-27 Thread Jerry McAllister
On Mon, Apr 27, 2009 at 10:17:47PM +0200, Polytropon wrote:

 On Mon, 27 Apr 2009 10:30:43 -0400, Jerry McAllister jerr...@msu.edu wrote:
  On Sun, Apr 26, 2009 at 11:45:07AM -0700, Michael David Crawford wrote:
  FreeBSD is not happy with MS 'extended partitions'.   But, I don't really
  see your problem.   You are not using Microsloth for anything.
 
 That's why I'm not sure why FAT has been mentioned. As far as

The FAT (more likely FAT32) can be the filesystem type that
each of the OSen can read/write.I occasionally make one
for scratch space that more than one OS on a machine can access.

 I understood, the disk should have three operating systems
 (Linux, FreeBSD 7, FreeBSD 8) and a partition where all these
 systems can have a shared mount point for /home.
 
 So my idea would be... no, my further questions would be:
 1. Can FreeBSD mount -o rw a file system that is usable
on Linux, maybe ext2? If yes, use this file system type
for the partition that is /home then.
 2. Can Linux mount -o rw a file system that is usable
on FreeBSD, maybe UFS? If yes, use this file system type
for the partition that is /home then.
 
 Because the /home partition is not intended to be booted
 from, it should be possible to add it.
  
 
  Create your Lunix slice first, then one for FreeBSD 7.2 and finally one
  for FreeBSD 8.0.   You still logically have one left for something but
  it doesn't seem to be needed and neither does a 'logical partition'.
 
 Hasn't the fact that Linux needs two primary partitions
 (one for itself, one for its boot loader) mentioned?

I thought that the fancy MBR went in the extra track space beyond that
official single sector that almost no one actually uses any more.

I haven't heard of that.The RHEL and SUSE installs I did recently
did not look like they were using two primaries.But I didn't
make a point of looking for that, so I am not sure.


jerry 


  FreeBSD might be able to mount the CENTOS slice stuff if you use
  the right type of mount.  I don't know about mounting Lunix from FreeBSD.
  But, you can't do it the other way (eg mount a FreeBSD type filesystem 
  from Lunix - though maybe, I have never tried it)
 
 That would be the idea.
 
 
 
  From FreeBSD you can mount other types of filesystems such as MS
  by using the correct mount types.   For example, if you want to mount 
  an MS FAT or FAT32, you use an 'msdosfs' type in your fstab file or 
  mount_msdosfs(8) utility to do the mount.   Do some studying to see
  if you can mount any Lunxi type filesystem from FreeBSD.
 
 Exactly. Or, if not, maybe it works vice-versa: mounting a
 FreeBSD partition (within a slice, a primary partition)
 from within this Linux.
 
 
 
 
 -- 
 Polytropon
 From Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Converting the partition type

2009-04-26 Thread Jerry McAllister
On Sat, Apr 25, 2009 at 02:14:43PM -0700, Christopher Chambers wrote:

 Hi,
 
 I have an msdos partition with a large amount of data. Is there a way to
 convert to a ufs partition without having to remove the data off the
 partition first?

Not that one.
You could use one of the commercial utilities like Partition Magic to
convert to or from NTFS, but not a UNIX type.

You will have to make it a FAT type and then mount it in FreeBSD
and then read it from FreeBSD to a place in a UFS slice.   Then that
version would not be accessible in a MS system.

jerry


 
 -- 
 Christopher Chambers ccha...@interchange.ubc.ca
 
 ___
 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: /etc/crontab won't run my script

2009-04-24 Thread Jerry McAllister
On Fri, Apr 24, 2009 at 06:14:26PM +0300, Ghirai wrote:

 On Fri, 24 Apr 2009 18:08:13 +0300
 Ghirai ghi...@ghirai.com wrote:
 
  Hi,
  
  I'm trying to get a python script to run from /etc/crontab, but it
  won't work.
  
  I've read about the most common issues being related to paths, but my
  script uses no paths at all.
  
  This is my /etc/crontab line:
  
  */5 *   *   *   *
  munin   /usr/local/bin/python /root/myscript.py
   /var/log/myscript.log
  
  I used munin user because i already have it (can i run it under
  'nobody'?).
  
  This is what /var/log/cron says:
  
  Apr 24 18:00:01 triton /usr/sbin/cron[4361]: (munin) CMD
  (/usr/local/bin/python /root/myscript.py
   /var/log/myscript.log)
  
  
  However the script doesn't seem to run at all.
  
  Obviously it works if i run it stand-alone, as any user.
  I'm running 7.1-RELEASE-p4, i386.
  
  What am i doing wrong?
  
  Thanks.
  
 
 Ok i just changed 'who' column to root and it works.
 Why won't it work as any other user?
 Permissions for myscript.py are 555.

Isn't /etc/crontab the root cron and should not be used by users?

To set up a crontab for a user, do: crontab -e
while logged in as that user.   You can also do it from root
by using the   -u user_name   option in the command, eg.  if
the user is joe crontab -u joe -e

You should never edit the tab files directly.

You may also have to set up  /var/cron/allow  and  /var/cron/deny  files.

In addition, the ownership and permissions on the files/scripts
you are trying to run from cron must be correct.

jerry


jerry

 
 -- 
 Regards,
 Ghirai.
 ___
 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: Customized Remote Install

2009-04-22 Thread Jerry McAllister
On Wed, Apr 22, 2009 at 07:47:43AM +0200, Polytropon wrote:

 On Tue, 21 Apr 2009 18:47:11 -0400, Jerry McAllister jerr...@msu.edu wrote:
  On Tue, Apr 21, 2009 at 11:51:32PM +0200, Polytropon wrote:
  
   On Tue, 21 Apr 2009 14:42:32 -0600, Scott Seekamp sseek...@risei.net 
   wrote:
My hope was that I could make an automated install CD/DVD that  
configured all the options I want AND change some base config files so  
I can actually get to the box (or install an SSH key).
[...]
I'm open to other options if someone has gone down this road before!
   
   I'd like to advertize a method that I think is very comfortable
   in such a setting. It's worth mentioning that this method
   usually requires (a) modern enough PCs or (b) you to know what
   is the hardware profile of the PC.
   
   The method works as follows:
   
   First create a FreeBSD as you want it to be on the clients.
   Install and configure everything as you intend.
   
   Then dump the created partitions onto a CD or DVD and create
   a simple script that:
 1. initializes the client's hard disk
 2. slices the disk and newfses the partitions
 3. dumps the partition images onto the disks
 4. reboots the machine into operating state.
   
   After this, you should be able to SSH into the client and
   change settings that need to be changed.
  
  This works very well. 
 
 I just realize that I missed something: Better than dd, I think
 dump  restore are the preferred tools to create the partition
 images. When you're done on your template system, umount its
 partitions (in SUM) and use dump to dump them into files. These
 files go to the installation DVD and are later on restored onto
 the (empty) partitions using the restore command. This will
 preserve any permissions and other file properties.
 
 
 
   I have done essentially the same many times.
  The one thing missing is that you need to have something to set the
  network information -- hostname, IP address, gateway, netmask
  and name-server.These will be different for each machine.
  So, your script will have to accomodate this - read console
  input for these items and plug them in to the proper places
  before rebooting.
 
 That's correct. I always used a kind of CHANGE THIS! items
 to do so, or, if none are given, they are automatically created
 so the system boots up and runs, but then again, require service
 afterwards. This can be made work this way: When the incomplete
 system is up and running, it mails the distant administrator (or
 contacts him in another way) requiring him to finish the settings.
 But I think it's the best solution to propmt for these
 specific settings at installation time (read, when the
 restore job is done, the partitions can be mounted -o rw and
 the files neccessary to be changed can be created or modified).
 
 The installation will then continue and finish.
 
 Of course, the dump  restore method lacks a lot of bling,
 blitzen, eye candy, bells and whistles, but it honours the
 abstinence to such stuff with speed and easyness of use. But
 it's still neccessary to read (and understand) and press a
 few keys on the keyboard. :-)

the dump/restore method's best and biggest bling and bell and whistle
is that it works correctly and is the most straight forward and easy.

jerry


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


Re: Disk usage analysis

2009-04-22 Thread Jerry McAllister
On Tue, Apr 21, 2009 at 08:08:18PM -0700, Christopher Chambers wrote:

 Is there an easy way to analyze disk usage to determine which files and
 folders are taking up the most space?

Check out the du(1) command.

Go in to a file system and type du -sk *   or  maybe  du -sh * 
(I prefer the former because then all numbers have the same value)

Once you determine some directory that seems out of line, go in to that
directory and do it again.

jerry


 
 -- 
 Christopher Chambers ccha...@interchange.ubc.ca
 
 ___
 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 had a tought

2009-04-22 Thread Jerry McAllister
On Wed, Apr 22, 2009 at 06:10:04PM +0200, Arjen Simon Scheer wrote:

 why there is not a lunix operatingsystem consortium, for the kernel end  
 the commercial userinterface

Good question.   
Maybe you should ask them.

Probably few people on this list will know because it is not a Lunix
Email list.   It is a group of FreeBSD users and FreeBSD is an operating
system.  It is a BSD UNIX type of operating system.Although it covers 
some similar territory as Lunix, it is not Lunix nor a flavor of it.   

So, if you can find a friendly group of Lunix developers, then you 
can ask them your question.   Probably they will know more.

As for FreeBSD, it does have a foundation - the FreeBSD foundation
and a consortium made up of committers which is lead by a core
group elected every two years.   (something like that, I may be off
on the election cycle details)

On the other hand, you can just stick with FreeBSD and not bother
with the Lunix stuff and you will get along just fine.   
   
jerry



 
 -- 
 Arjen Simon Scheer
 Konigin Wilhelminalaan 4-017
 4205ET  Gorinchem
 ___
 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 had a tought

2009-04-22 Thread Jerry McAllister
On Wed, Apr 22, 2009 at 05:10:05PM -0500, Gary Gatten wrote:

 
 
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org
 [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Jerry
 McAllister
 Sent: Wednesday, April 22, 2009 1:42 PM
 To: Arjen Simon Scheer
 Cc: freebsd-questions@freebsd.org
 Subject: Re: i had a tought
 
 On Wed, Apr 22, 2009 at 06:10:04PM +0200, Arjen Simon Scheer wrote:
 
  why there is not a lunix operatingsystem consortium, for the kernel
 end  
  the commercial userinterface
 
 Good question.   
 Maybe you should ask them.
 
 Probably few people on this list will know because it is not a Lunix
 Email list.   It is a group of FreeBSD users and FreeBSD is an operating
 system.  It is a BSD UNIX type of operating system.Although it
 covers 
 some similar territory as Lunix, it is not Lunix nor a flavor of it.   
 
 So, if you can find a friendly group of Lunix developers, then you 
 can ask them your question.   Probably they will know more.
 
 As for FreeBSD, it does have a foundation - the FreeBSD foundation
 and a consortium made up of committers which is lead by a core
 group elected every two years.   (something like that, I may be off
 on the election cycle details)
 
 On the other hand, you can just stick with FreeBSD and not bother
 with the Lunix stuff and you will get along just fine.   

 jerry
 
 
 
 LMAO!  Touche!  So, are you saying I shouldn't ask any questions here
 about Ubuntu, Suse, RedHat, et al?  Isn't Lunix better than BSD anyway?
 ;-)
 

Why would you ask about those things on a FreeBSD list.   
They are all Linux and not the superiour FreeBSD.

I suppose there is one thing - often FreeBSD people know as much
about Lunix as the Lunix people, sometimes because they have
upgraded their lives by climbing out of the Lunix morass and
in to the FreeBSD world.   So, they still remember some of that
stuff even as they are trying to forget.

jerry



jerry


 
 
 
 
 font size=1
 div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 
 0in 1.0pt 0in'
 /div
 This email is intended to be reviewed by only the intended recipient
  and may contain information that is privileged and/or confidential.
  If you are not the intended recipient, you are hereby notified that
  any review, use, dissemination, disclosure or copying of this email
  and its attachments, if any, is strictly prohibited.  If you have
  received this email in error, please immediately notify the sender by
  return email and delete this email from your system.
 /font
 
 
___
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: Modern FreeBSD Installer?

2009-04-22 Thread Jerry McAllister
On Wed, Apr 22, 2009 at 01:34:13PM -0700, Chuck Swiger wrote:

 On Apr 22, 2009, at 12:27 PM, Fritz wrote:
 Hi,
 
 As a big fan (and paying subscriber)
 
 Interesting-- I wasn't aware that the FreeBSD project had a paid  
 subscription model...?
 
 ...of FreeBSD it pains me to ask this question:  When are you going  
 to build
 a modern installer for FreeBSD?
 
 I looked at the list of projects and didn't see it there ... did
 I miss something?
 
 If you're asking for an installer which requires bitmapped graphics  
 and won't work over a serial terminal or the like, well, I hope the  
 answer is never.  Some people have tried before and/or might still be  
 working on a replacement, but thus far, nobody has written one which  
 is widely regarded as better than sysinstall.
 
 You might find this interesting to read:
 
   http://people.freebsd.org/~jkh/package-and-install.txt
 

Very good article - not surprising, considering the author.
Anyone considering working on the installer or the package
system should read it carefully as a first step.

jerry


 Regards,
 --
 -Chuck
 
 ___
 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: Customized Remote Install

2009-04-21 Thread Jerry McAllister
On Tue, Apr 21, 2009 at 11:51:32PM +0200, Polytropon wrote:

 On Tue, 21 Apr 2009 14:42:32 -0600, Scott Seekamp sseek...@risei.net wrote:
  My hope was that I could make an automated install CD/DVD that  
  configured all the options I want AND change some base config files so  
  I can actually get to the box (or install an SSH key).
  [...]
  I'm open to other options if someone has gone down this road before!
 
 I'd like to advertize a method that I think is very comfortable
 in such a setting. It's worth mentioning that this method
 usually requires (a) modern enough PCs or (b) you to know what
 is the hardware profile of the PC.
 
 The method works as follows:
 
 First create a FreeBSD as you want it to be on the clients.
 Install and configure everything as you intend.
 
 Then dump the created partitions onto a CD or DVD and create
 a simple script that:
   1. initializes the client's hard disk
   2. slices the disk and newfses the partitions
   3. dumps the partition images onto the disks
   4. reboots the machine into operating state.
 
 After this, you should be able to SSH into the client and
 change settings that need to be changed.

This works very well.   I have done essentially the same many times.
The one thing missing is that you need to have something to set the
network information -- hostname, IP address, gateway, netmask
and name-server.These will be different for each machine.
So, your script will have to accomodate this - read console
input for these items and plug them in to the proper places
before rebooting.

jerry


 
 You always have your reference machine at hand, because it's
 exactly installed and configured as the clients.
 
 Under controlled conditions, it's even possible to build the
 needed system in a virtualized environment.
 
 
 
 
 -- 
 Polytropon
 From Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
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: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Jerry McAllister
On Mon, Apr 20, 2009 at 08:58:39AM -0600, Keith Seyffarth wrote:

 
 I'm trying to print from my FreeBSD machine. I've been through a
 number of online tutorials and instructions on printing from Unix or
 FreeBSD in particular, but they all seem to start with the assumption
 that printing from the machine is possible. I'm trying to get to that
 starting point.

What kind of printing do you need to do?
To send files to some either attached or network attached printer,
you just need to:

  set up an entry in  /etc/printcap  
  for a printer named myprt,  make something like: 

lp|myprt|HP OfficeJet 4110 N:\
  :lp=:rp=myprt:rm=myprt.prt.full.hostname:\
  :sh:mx#0:\
  :sd=/var/spool/myprt:\
  :lf=/var/log/printer.log:
(Of course, change myprt.prt.full.hostname to a real address)

  create a spool directory for it in /var/spool 
(eg for a printer named myprt in printcap, 
 create a /var/spool/myprt directory 

  create an empty log file for it
 touch /var/log/printer.log

  then enable lpd in /etc/rc.conf -  lpd_enable=YES

This sets up a 'standard' printer destination (named lp)
Then you can print using lpr(1)

Some utilities want to use cups and other heavy stuff, but
just for regular printing - of a file or from firefox or openoffice, etc
you don't need that.

jerry



 
 I have installed:
 
 cups-base-1.3.9_3   Common UNIX Printing System
 cups-pdf-2.5.0  A virtual printer for CUPS to produce PDF files
 cups-pstoraster-8.15.4_2 Postscript interpreter for CUPS printing to non-PS 
 printers
 gutenprint-cups-5.1.7_3 GutenPrint Printer Driver
 libgnomecups-0.2.3_1,1 Support library for gnome cups admistration
 hplip-2.8.2_4   Drivers and utilities for HP Printers and All-in-One 
 device
 
 The printer I'm working with is a HP Officejet 4110.
 
 
 There seem to be several issues with printing. First, since this is a
 USB printer, the pinter is always owned by root:operator with read
 permissions for user, group, and world.
 
 Adding these lines to /etc/devfs.conf
 link ulpt0 printer
 own ulpt0 cups:cups
 perm ulpt0 0666
 
 will set the ownership to cups:cups and the permissions to read and
 write for user, group, and world on startup if the printer is already
 turned on and plugged in. However, if the printer is not turned on at
 startup, or if it is disconnected or turned off after system startup,
 ownership and permissions revert.
 
 Trying chown or chmod to the device at /dev/ulpt0 gives an invalid
 path error, and trying to do so following the instructions in the man
 page for devfs give 'operation not supported by device' errors.
 
 When th device is owned by root, attempting to print the test page
 generates a 'permission denied' error in CUPS. When the device is
 owned by cups, attempting to print the test page generates a failed
 error in CUPS.
 
 When the device is owned by cups, this error is reported in the error
 log in CUPS, if debug logging is enabled:
 
 [CGI] /usr/local/share/cups/drivers/pscript5.dll: No such file or directory
 
 There isn't a drivers directory in /usr/local/share/cups. I can make
 one, but where do I get the pscript5.dll, and what else is it going to
 rely on?
 
 CUPS et al were installed using portinstall, and CUPS is working well
 to produce .pdf files. I tried portupgrade last night on all the (I
 think) relevant ports, but the system thinks they are all up to date.
 
 So, questions:
 
 1. how can I get permissions on the device to stick, so that I do not
have to reboot the machine every time we want to print or have to
power cycle the printer?
 2. Am I correct that the missing .dll (that seems awfully Windows to
me) is the problem in getting a filter to print? If so, what do I
need to do to install it?
 
 
 And, actually, a third printing-related issue: How do I get cupsd to
 start on startup? I have these two lines in /etc/rc.conf:\
 
 cupsd_enable=YES # enable cups printing management
 devfs_system_ruleset=system # something else they say cups needs
 
 but CUPS has to be manually started by root after each reboot. what
 else needs to be done to get cupsd to start at startup?
 
 Keith
 ___
 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: missing xorgconfig

2009-04-16 Thread Jerry McAllister
On Thu, Apr 16, 2009 at 08:10:24PM +0200, kenneth hatteland wrote:

 Having reinstalled my laptop twice and updated to stable 7.2 prerelease 
 but each time no xorgconfig exists as I am used to. xfce4 starts ok, but 
 I get the known mouse locked problem and would love and xorg.conf to 
 edit as  I have learned but it doesn`t exist.
 
 Anyone know hos to install xorgconfig manually ??

You don't really want xorgconfig though it should exist in /usr/local/bin.

What you want is'Xorg -configure'

Note the uppercase  'X'  on Xorg  and in the  'X -config'  command below.

Then, after it makes the xorg.conf.new file in the home directory (root's -
hopefully you are doing this from root) you run  'X -config xorg.conf.new'  
to check it out.   

NOTE: that Xorg and X are also in /usr/local/bin.   That needs to be
in your path.

After that, edit the xorg.conf.new file and add in a  subsection Display
under the screen section to give the resolution for the monitor screen
under the correct depth level.   Looks something like:

SubSection Display
Viewport   0 0
Depth 16
Modes   1280x1024
EndSubSection

but with your correct depth and Modes.

Then, get rid of (comment out) all the other subsection Display blocks 
that don't apply to your machine.  You could have more than one, but 
generally not on an LCD screen.

Finally, copy that  xorg.conf.new file to  /etc/X11/xorg.conf

After that, it is a matter of playing around with your window manager
and desktop utility.

jerry

 
 kenneth
 ___
 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: No space in lost+found directory (formerly: SORRY. NO SPACE IN lost+found DIRECTORY)

2009-04-16 Thread Jerry McAllister
On Thu, Apr 16, 2009 at 08:30:40PM +0200, Polytropon wrote:

 On Thu, 16 Apr 2009 15:21:28 +0100, Chris Rees utis...@googlemail.com wrote:
  2009/4/16 Bruce Cran br...@cran.org.uk:
   Maybe we should tell FreeBSD to stop shouting too? :)
  
  Actually, we really should! Come on, we're not on teletypes any more.
 
 Did UPPERCASE LETTERS make the teletype print louder?
 I always assumed they would just consume more disk space...
 RYRYRYRYRYRYRY!!! :-)

Nah, the earliest ones only had upper case.  When they made
upper/lower models, for some reason people just left on shift-lock - 
maybe to make it look the same.

jerry


 
 
 -- 
 Polytropon
 From Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
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: Weird SSH problem... Any ideas?!?

2009-04-14 Thread Jerry McAllister
On Tue, Apr 14, 2009 at 11:46:37AM -0500, chris.a.hori...@seagate.com wrote:

 check permissions on /etc/passwd, in my case, solaris 10, /etc/passwd 
 needed to be world readable.

I don't understand your problem.
/etc/passwd is always world readable.

/etc/master.passwd is not.

jerry


 
 
 Chris Horinek
 Oklahoma City Data Center
 Seagate Technology LLC
 chori...@seagate.com
 405-324-3599
 Conf. Call# (US):  (877) 810-9442  Access# 1338666
 Conf. Call# (Int'l):  (636) 651-3190  Access# 1338666
 -
 ___
 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: Weird SSH problem... Any ideas?!?

2009-04-14 Thread Jerry McAllister
On Tue, Apr 14, 2009 at 02:33:48PM -0500, chris.a.hori...@seagate.com wrote:

 in my case, someone had inadvertantly removed world read from /etc/passwd. 
I added it back and the problem went away.

Hmmm.   Well, nothing in the system should be changing permissions
on /etc/passwd.Was anyone else working on the system who had
access to do that?   Maybe they didn't realize that passwd has to
have world read.

jerry


 Jerry McAllister jerr...@msu.edu 
 No Phone Info Available
 04/14/2009 02:20 PM
 
 To
 chris.a.hori...@seagate.com
 cc
 freebsd-questions@freebsd.org
 Subject
 Re: Weird SSH problem... Any ideas?!?
 
 On Tue, Apr 14, 2009 at 11:46:37AM -0500, chris.a.hori...@seagate.com 
 wrote:
 
  check permissions on /etc/passwd, in my case, solaris 10, /etc/passwd 
  needed to be world readable.
 
 I don't understand your problem.
 /etc/passwd is always world readable.
 
 /etc/master.passwd is not world readable.
 
 jerry
 
  ___
  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: Dump/Restore

2009-04-09 Thread Jerry McAllister
On Thu, Apr 09, 2009 at 10:50:49AM +0300, Daniels Vanags wrote:

 Please Help! After dump-restore /dev, /proc, /usr/compat/linux/proc - is
 empty, system fealure to boot. Please guide me, how to dump/restore
 devfs.
 

  You only dump(8) file systems.   /dev /procfs /dev/mirror/..., etc
are not filesystems.   They are just directories.Don't dump them.
/procfs is not even a real directory so it goes away and gets repopulated
when the system boots again.

They all need to live in the '/' filesystem and of what is dumpable, gets
dumped when you dump / (the root filesystem).   

Unless I completely misunderstand what you are asking.

jerry


  
 
  df -h
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 
 /dev/mirror/gm0s1a 52G 37G 11G78%/
 
 devfs 1.0K1.0K  0B   100%/dev
 
 procfs   4.0K4.0K  0B   100%/proc
 
 linprocfs4.0K4.0K  0B   100%
 /usr/compat/linux/proc
 
  
 
  
 
  
 
  
 
  
 
 Daniel Vanags
 
 Information Technology  Department
 
 IT infrastructure system engineer
 
 
 
 JSC SMP Bank  www.smpbank.lv
 
 Phone:+371 67019386
 
 E-mail:   daniels.van...@smpbank.lv
 mailto:daniels.van...@smpbank.lv 
 
  
 
 ___
 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: Re: Ultrium 920 Autoloader Question

2009-04-04 Thread Jerry McAllister
On Fri, Apr 03, 2009 at 09:19:37PM -0500, jh...@socket.net wrote:

 
  Depends a little on what sort of software is on the tape drive.
  But, probably you can either use dump(8)/restore(8) or tar with
  no problem.   They can dump/restore to/from remote devices/files.
  
 
 No software on the drive. 

Well, there has to be some type of software -- or firmware -- to be
able to hang on the network.

jerry


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


Re: Ultrium 920 Autoloader Question

2009-04-03 Thread Jerry McAllister
On Fri, Apr 03, 2009 at 07:11:18PM -0500, jh...@socket.net wrote:

 If this is a double post, please excuse me.  I just realized I sent my 
 initial question to the wrong address. 
 
 Today, I received my Ultrium 1/8 920 autoloader.  I just realized the tape 
 drive can be assigned an IP address so it can be backed up to over the 
 network.  And, I would like to explore this before taking the time to 
 install the SCSI card. 
 
 Is this something I can do from the command line with FreeBSD, or am I 
 better off using software such as AMANDA or Bacula? 

Depends a little on what sort of software is on the tape drive.
But, probably you can either use dump(8)/restore(8) or tar with
no problem.   They can dump/restore to/from remote devices/files.

I have done it on some systems, though it has been a while since
the last time because my hardware has changed.

Dump/restore can be rather sensitive to version and host OS.

jerry

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


Re: Can't upgrade to 7.1-RELEASE

2009-03-29 Thread Jerry McAllister
On Sun, Mar 29, 2009 at 02:41:23AM +0200, Reinis Ivanovs wrote:

 Hello,
 
 I'm trying to upgrade a 7.0 system to 7.1-RELEASE, and it isn't
 working. I switch to the superuser, do freebsd-update upgrade -r
 7.1-RELEASE, and then when I try running freebsd-update install, I
 get this:
 
  .chflags: ///.profile: Operation not supported
 
 Any hints as to what could be the problem?

Well, it looks like someone set the   'schg'   flag on the  .profile  file.

You need to do  'chgflags noscgg FILENAME'  on the file - probably from root.

jerry


 
 Best,
 R. http://dabas.untu.ms/
 ___
 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: installing freebsd on windows

2009-03-25 Thread Jerry McAllister
On Tue, Mar 24, 2009 at 09:12:39PM -0400, Harold Hartley wrote:

 I am wondering if the freebsd team has ever thought of making freebsd to 
 install on windows like ubuntu does.

I don't know what Ubuntu does.  But, you can install FreeBSD on a machine
that also runs MS-Win.   The traditional way is to 'dual-boot' the machine.
But, you can also install some virtual machine software and run both
under that.  You can also install wine and run MS-Win stuff on FreeBSD.
There are some limits to that I think, but people do it.
I run a dual (or triple) boot.  It is documented in the handbook 
and works just fine.


 I'm just a person that can't afford more than one computer cause I live 
 in a nursing home and I would like to be able to use one computer to 
 choose what I want to boot into, such as windows or unbuntu and maybe a 
 freebsd choice.
 
 I don't always want to boot into windows, except for the 3 apps I have 
 to use windows for.

Basically, that is what I do.   Mostly I boot FreeBSD and use it for
my desktop.  But, sometimes I need to use Photoshop which I have on
the MS-Win side and printing labels seems to work better with Word
than Openoffice, so I boot MS-Win for those.

jerry


 
 I do boot into ubuntu 90% of the time and enjoy it so much, but I have 
 read about freebsd and researched it fully and I wish I could be able to 
  run freebsd as with all the apps freebsd has to offer. I would love to 
 be able to install freebsd under windows so I could choose freebsd to 
 boot into when I want.
 
 I hope to hear from freebsd about my request, and by the way, I'm not a 
 linux expert so I don't know everything about linux, but I'm always 
 learning.
 
 Thanks
 Harold Hartley
 158 Russell Street
 Lewiston, Maine 04240
 wheelie...@gwi.net
 ___
 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: installing freebsd on windows

2009-03-25 Thread Jerry McAllister
On Wed, Mar 25, 2009 at 08:22:31PM +0530, Mehul Ved wrote:

 On Wed, Mar 25, 2009 at 7:44 PM, Jerry McAllister jerr...@msu.edu wrote:
  I don't know what Ubuntu does.
 
 What ubuntu does is
 1) Install ubuntu as a windows program
 2) Run the ubuntu installer as any other win32 installer
 3) Ubuntu is installed on a clean NTFS partition
 4) Use windows bootloader
 So, you install and uninstall ubuntu from within windows. But, to
 switch between windows and ubuntu you have to reboot.
 This is what I have gathered from other people. I haven't used it
 myself. Probably the wubi[1] page would have more information on this.
 
 1. http://wubi-installer.org/faq.php#internals

Thanks for the explanation.

I would rather have FreeBSD installed on a good UFS2 slice than
an NTFS partition.   I would much rather have it cleanly separate
from MS-Win - not even booting it.I don't want my FreeBSD system
dragged down by MS baggage.

jerry


 
 -- 
 
 Twenty Percent of Zero is Better than Nothing. -- Walt Kelly
___
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: updated world to CURRENT, how to update ports to CURRENT?

2009-03-24 Thread Jerry McAllister
On Tue, Mar 24, 2009 at 10:54:31AM +0100, Matthias Apitz wrote:

 
 Hello,
 
 I've updated FreeBSD in some VM from 7.0-REL to CURRENT (without any
 problem); but I'm unsure now how to bring the ports tree /usr/ports to
 CURRENT;
 
 normally in 7.0-REL I've used 'portsnap fetch update', but this will
 perhaps not bring the ports tree to CURRENT; I've read a lot the
 handbook about, but it is not clear for me; should I use CVS as well to
 bring the /usr/ports to CURRENT, or something else?

Just put the line

ports-all tag=.

in your supfile whenever you do the csup.   

Remember what the ports tree is - a skeleton for installing ports.
Doing this will just bring the tree up to date.   Then you will need
to build and install the desired ports to get the actual utilities
updated.

You might also add
 
doc-all tag=.

to the supfile to get the latest docs.

jerry


 
 Thx for a pointer
 
   matthias
 -- 
 Matthias Apitz
 Manager Technical Support - OCLC GmbH
 Gruenwalder Weg 28g - 82041 Oberhaching - Germany
 t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
 e matthias.ap...@oclc.org - w http://www.oclc.org/ http://www.UnixArea.de/
 ___
 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: Formatting a tape?

2009-03-19 Thread Jerry McAllister
On Thu, Mar 19, 2009 at 12:15:48PM -0400, Jaime wrote:

 I have a DLT tape drive in a FreeBSD system.  With one of the tapes, I
 can get tar -cvpf /dev/sa0 -C / . to work.  With all the other
 tapes, I can't.
 
 Is there some kind of formatting process that I need to do?  I tried
 mt fsf 1 from this page:
 
 http://www.freebsd.org/doc/en/books/handbook/backups-tapebackups.html
 
 This didn't seem to work, though.

Tapes do not need to be formatted, though the issue mentioned in the page
you indicate can cause problems.I have seen it a lot on DAT (DDS) tapes
and never with a DLT.   On the DAT tapes, the solutions given on that page
have usually not helped for me.   But, since I have never had any problem
with DLT tapes, I can't say if they might be helpful.

You can try writing a block or two to the drive using dd(1).  That
occasionally helped with the DAT (DDS) tapes.
   dd count=10 if=/dev/zero of=/dev/nsa0

Seems like it should have a bs=nn in there too, but I can't remember
if the default of 512 is OK or not.

jerry


 
 Any help is appreciated,
 Jaime
 
 -- 
 To affect the quality of the day, that is the highest of arts.  --
 Henry David Thoreau
 
 Tone of voice in email is misunderstood 50% of the time.
 Source:  http://www.howtoweb.com/cgi-bin/insider.pl?zone=214061
 ___
 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: First time user problems

2009-03-19 Thread Jerry McAllister
On Thu, Mar 19, 2009 at 03:30:33PM -0400, Alhaji Barrie wrote:

 I am a  new user of Free BSD. I just completed the install of Free BSD on a
 Dell  PC but I cannot get past the initial login prompt. I typed the user
 name I supplied during the installation process to no avail. In the last two
 days, I have browsed the web and used some of the suggestion provided. I
 also consulted the documentation in this web site.
 
 
 To put it simply, I am missing the syntax for the user name and password.
 Can someone help with the step by step process of getting past the original
 login screen?

Probably you will have to redo those items.
The best way is to boot in to single user, remount root (/) and
use vipw(8) to edit the passwd file.

Do the boot to single user - just select that item from the boot menu.
Then do:

  fsck -p

  mount -u /

  swapon -a

  vipw

The fsck might take some time so wait for it.

vipw works just like vi, except that it only works on the passwd file 
and it knows how to update the master.passwd file and the password
database automatically.

If the account id that you want to use is already there and looks good,
don't edit it.  Just get out and then set the password again.
Do:
   passwd id_name

where id_name is that id you want to change.

jerry


  
 
 Alhaji I Barrie
 
 Network Security Analyst
 
 ___
 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: renaming user account?

2009-03-18 Thread Jerry McAllister
On Wed, Mar 18, 2009 at 11:27:39AM -0400, Joe Chimento wrote:

 Is there an easy way to rename a user account belonging to 'www' group?
 

You could just use vipw(8) and edit the id name in the password entry.

Or, do you mean you want to change the group the user belongs to?
If it is the user's primary group, then also use vipw to edit the entry.
If it is a secondary group for that user, then edit the line in
the /etc/group file and remove that user from it.   Put it in another
group then if you want.

You might also have to change group ownership on files if you change
the GID as well.

jerry

 -- 
 Joe
 ___
 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: 7.1 64 bit

2009-03-18 Thread Jerry McAllister
On Wed, Mar 18, 2009 at 08:28:22PM +0200, Ross Cameron wrote:

 On Wed, Mar 18, 2009 at 6:22 PM, Gal Lis gal_...@yahoo.com wrote:
 
  Sorry to ask these mundane questions, but I'm a linux novice.
 
 Linux != FreeBSD

But, the OP will still probably get better information on the
FreeBSD lists than over there.

If it is a UNIX question, it might be relevant anyway.

jerry
 ___
 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: Simple Sites Make Me 137.00 Daily!

2009-03-04 Thread Jerry McAllister
On Wed, Mar 04, 2009 at 06:27:37PM +0100, Wojciech Puchar wrote:

 You Are About To See How A Simple Little Three Page Website Makes Me Over 
 $137 In PROFIT Each And Every Day... And It Only Took Me 45 Minutes To 
 Build!
 Yes... Unlike The 'Other Guys' I Am Actually Gonna Let You See It!
 My Simple Sites Have Generated Over $2,298,443 In Revenue Over The Past 4 
 Years.
 Not To Mention My Students Who Generated Over $1,000,000 Last Year Alone!
 Copy the URL into your browser for a free video http://www.advice.ne1.net/
 
 unbelievable how many people still believe money comes from heavens.
 
 couldn't the mailsystem be changed to allow posting from addresses only 
 from registered users?

That discussion has been had numerous times before.
I think that in general the conclusion is always that since the
questions list provides a primary point of support for FreeBSD users,
and that many have reasons that they cannot subscribe or that it
would be a problem for them to subscribe, that the annoyance from
these trash messages is less than the benefit of leaving the list open.
It is not hard to hit 'd' for delete or click on that box if you 
use a gui email reader.

I suspect that the choice won't change now either.

jerry


 ___
 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: rc.conf and starting scripts

2009-03-02 Thread Jerry McAllister
On Sun, Mar 01, 2009 at 07:14:17PM -0800, gahn wrote:

 
 Hi all:
 
 I have some starting scripts under some other directories other 
 than /etc/rc.d. How could I utilize the rc.conf file to start them 
 when the system boots up?
 
 The default location for rc.conf is /etc/rc.d only and the 
 knob local_startup=/usr/local/etc/rc.d doesn't seem to be working 
 for me for some reasons

The way the question is put implies some possible misunderstanding
about how rc.conf works.   /etc/rc.conf itself is not executed.  It
is read up by the various scripts in etc/rc.d and /usr/local/etc/rc.d
to get values for constants that are defined there.   Some of those
constants are things like  linux_enable=YES or lpd_enable=YES 
or  hostname=fred.cheeze.org  and many other possible things.   
the /etc/rc.conf files does nothing active.  It just sets there like
a bunch of passive data waiting to be looked at.

The rc system goes through the rc.d directories and, according to its
rules checks the script files in those directories and executes those 
scripts that merit execution in an order determined by its protocol.  
It used to be strictly alphabetical, but is more sophisticated now.  
See  man rc  and  man rcorder.

The scripts read up /etc/rc.conf and check for constants that interest
them, such as one to enable or run something.   If the file name 
ends in 'd', the convention is that it is a daemon.   But other 
things could be run to check stuff or set up some files, or whatever.
Besides telling a script to run or exit without doing anything, the 
constants also set conditions for things, such as that hostname setting.

But, it is up to the scripts - most or all in one of the rc.d directories -
to do anything about what is in /etc/rc.conf.  Just putting something in
the rc.conf file does nothing.   One or more of the scripts are what looks 
for the stuff you put in rc.conf and does/do all the work.

The scripts in the rc.d directories have to have execute permission.
There is a protocol set up for them to determine at which point in
the boot process they run (most can also be run manually after the
system is up, though doing them out of order can produce unpleasant
results in some cases). 

So, put your script in /usr/local/etc/rc.d.   Include the appropriate
protocol in the script (see man rc.d, man rc.conf and other related
man pages) and make sure it reads /etc/rc.conf if it needs constants
set or needs to decide whether or not to start something.

jerry


   
 ___
 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: bsd.rd for FreeBSD install

2009-03-02 Thread Jerry McAllister
On Mon, Mar 02, 2009 at 09:36:39AM -0800, new_guy wrote:

 
 Hi,
 
 We normally use OpenBSD, but would like to try FreeBSD on a test system.
 Usually, when updating from one OpenBSD release to another, we do so by
 downloading the latest bsd.rd and booting from that to complete the install.
 Our machines have no optical drives. Does FreeBSD have a similar method to
 installation? 

Hmmm.   Having a CD drive makes it so easy.   It might be worthwhile
to run out and get an external one you can plug in.

Installs can also be done from a pair of floppies if you have
a floppy drive.   The floppy just has the boot and sysinstall 
stuff.   Everything else downloads over the net or can be loaded
on some other media such as tape or external disk and installed
from there.

You can create almost any kind of media if you can make it bootable
and put stuff on it and boot from it and bring up sysinstall.  But,
I do not think you can put that on the slice you want to install to
and then do a complete install there.

Now, if you have FreeBSD running, you can upgrade it in place.  Update
and csup are all useful tools to learn for that.  But, an initial 
install wants to be on some media other than where it will be installed.
That is mostly because you build your disk filesystem as part of the
installation.


jerry

 
 Thanks!
 -- 
 View this message in context: 
 http://www.nabble.com/bsd.rd-for-FreeBSD-install-tp22292723p22292723.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
___
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: Root shell

2009-03-02 Thread Jerry McAllister
On Mon, Mar 02, 2009 at 09:55:39AM -0800, new_guy wrote:

 
 
 RW-15 wrote:
  
  On Sun, 1 Mar 2009 16:16:50 +
  Frank Shute fr...@shute.org.uk wrote:
  
  pdksh is statically linked and I don't know if bash is. 
  
  It's a build option.
  
  
 
 Seems root should have a static shell always... otherwise, all bets are off
 as some of the shared libs may be inaccessible or damaged. So long as bash
 is statically linked and properly located, there should not be an issue. But
 most folks (linux users) aren't aware of the implications of dynamic linking
 and such. So it's probably best to 'just say no' to the OP's question. Leave
 root's shell alone unless you know what you're doing and bash is built
 appropriately. 

Well put.

jerry

 
 -- 
 View this message in context: 
 http://www.nabble.com/Root-shell-tp22274005p22293187.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
___
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: bsd.rd for FreeBSD install'

2009-03-02 Thread Jerry McAllister
On Mon, Mar 02, 2009 at 06:19:57PM +, Ricardo Jesus wrote:

 new_guy wrote:
 You misunderstand. I want to install FreeBSD from a ramdisk image (bsd.rd).
 Is that possible? It's basically a small kernel that boots the machine,
 formats the hard drive, setups root and installs the operating system over
 ftp. 
 
 If that's what you want I definitely misunderstood. Maybe someone of the 
 list can give a hand and help you out.

Wel, that is what a fixit image is - a boot to a ramdisk image.
They call it md  (memory disk)  in FreeBSD land.  Check man pages
and some more stuff online at various sources.

The only problem is that I don't know if the fixit includes sysinstall.
You could try it. I would guess that the install image is build in 
memory too and runs from there rather than from the CD.  So, it should 
be possible with some tinkering - if you have enough memory to run a
sysinstall completely from memory.   You would then pretty much need 
to do an install over the net - which you would probably do anyway.

So, your big problem, if that works, is figuring out how to create that 
image booted in to the memory disk without some external media to
start it with.

jerry   
   
 ___
 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: bsd.rd for FreeBSD install

2009-03-02 Thread Jerry McAllister
On Mon, Mar 02, 2009 at 10:02:25AM -0800, new_guy wrote:

 
 You misunderstand. I want to install FreeBSD from a ramdisk image (bsd.rd).

That is called  md  (memory disk) in FreeBSD land.   

 Is that possible? It's basically a small kernel that boots the machine,
 formats the hard drive, setups root and installs the operating system over
 ftp. 

That is what sysinstall is, plus the boot.   It is a program that
builds the filesystems, sets up the system and loads everything on
the disk.The big problem is how to boot and bring it up without
any external media.   I think some people have done it from network
and second Hard drive boots as well as floppy and CD boots.   

jerry

 
 -- 
 View this message in context: 
 http://www.nabble.com/bsd.rd-for-FreeBSD-install-tp22292723p22293310.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
___
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: Root shell

2009-03-01 Thread Jerry McAllister
On Sun, Mar 01, 2009 at 03:50:29PM +0100, Sniper wrote:

 Hi!
 
 I heard that changing root shell to bash is not good idea, also programing
 in any C shell not applicable. So which shell is the most appropriate for
 root user ?

You can get your tail in a crack if you boot to single user or another
file system like /usr  is not available./bin/csh   (which on FreeBSD 
is the same as tcsh)  is always available and a few things are written
so they expect it.

So, leave root alone.   
If you must lower yourself to bash, make another account and set its 
shell to bash.   You can even make an alternate root and make it bash
if you really must work in root.   USe vipw  and copy the toor line
in the passwd file and change the name to something you like and the shell
to bash and the home directory to /root/whatever.
Then set the password for this account
As root do:
  passwd whatever

follow prompts.

You must put the id name on the passwd command or it will change root instead.

I am not necessarily recommending all this, but it is better tham
changing the actual root account's shell.

jerry


 
 
 Regards,
 
 Jurif
 ___
 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: Can sysinstall be run interactively to install onto a second drive?

2009-02-27 Thread Jerry McAllister
On Fri, Feb 27, 2009 at 09:43:54AM -0800, Peter Steele wrote:

 Can I run sysinstall on a live system, booted say from ad0 and use it to 
 install a new OS onto a second drive, say ad1? I'm trying to do something 
 like this: 
 
 sysinstall configFile=install.cfg loadConfig 
 
 where I have the target drive identified in the sysinstall script, but it 
 doesn't seem to like what I'm trying to do. 
 
 Basically what I need to do is given a FreeBSD distribution, I want an 
 automated procedure I can run on a system to build a new system with a 
 specific set of packages and other customizations we need. We have this setup 
 now using a PXE boot server, but I'd like something I can run interactively 
 that doesn't require a boot server. 
 

If I understand you, I think the answer is yes.
You can certainly start sysinstall on a running system.
The only thing you can't do is have it write to mounted disk space.
I don't think that is your intent, so there should be no problem.
Just be careful when you specifiy devices to write to.

jerry


 ___
 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: a strange question about OSs

2009-02-23 Thread Jerry McAllister
On Mon, Feb 23, 2009 at 03:17:44PM +0200, Reko Turja wrote:

 
 --
 From: Redd Vinylene reddvinyl...@gmail.com
 Sent: Monday, February 23, 2009 11:55 AM
 To: questions questi...@freebsd.org
 Subject: Re: a strange question about OSs
 
 On Mon, Feb 23, 2009 at 9:06 AM, Valentin Bud 
 valentin@gmail.comwrote:
 
 Hello Community,
 
  The following question may sound very ackward but was OS is 
 suitable from
 the following list
 to replace FBSD:
 
   - OpenSUSE 10.3
   - Debian 4.0
   - CentOS 5
 
 The company i work for wants to change the provider because of the
 economical crisis to
 save some money. The actual provider gave us the chance to install 
 our OS
 but the one
 they chose as a replacement doesn't give any other choice besides 
 the above
 mentioned.
 
 I work for 2 years in IT and FBSD is the only OS i have ever used 
 in
 production. I like it and
 learned it a little bit. It is going to be a steep learning curve 
 with the
 new OS which I'm not afraid
 of but i would like to chose a suitable OS and one that has some
 similarities with FBSD.
 
 thank you,
 v

This confuses me a little.
Wouldn't FreeBSD be the more economical route?

I can't imagine saving money moving from FreeBSD to
one of those listed.  FreeBSD is free and seems to 
take less administration hours than those others.
Certainly you do not gain anything in quality or 
reliability.

Oh, I see in re-reading that it is not your company, but
your potential new service provider that wants to force 
you to switch OS.   Well, there is more than one way to
gain economy.   Switching to something inferior - of poorer
service level is not a gain in economy.

So, maybe you should try suggesting FreeBSD to that provider.
All they need to do is insert the install CD in to the machine
anyway.You can do the rest.

jerry


 
 
 I doubt you'll find anything suitable after getting accustomed to 
 FreeBSD.
 
 -- 
 http://www.home.no/reddvinylene
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org
 
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: desktop app/config

2009-02-19 Thread Jerry McAllister
On Thu, Feb 19, 2009 at 10:27:30AM -0500, Jean-Paul Natola wrote:

 Hi all,
 
 I'm replacing some machines and want to setup some stations in the library
 running FreeBSD- 
 
 What is the easiest for an XP user to get accustomed to and what config do I
 need so that when the machine starts (power / boot)  it will automatically
 launch the desktop gui

The easiest way to get used to it is to just fully install the latest FreeBSD
(that is 7.1 at the moment) RELEASE, update it to RELENG_7 or RELENG_7_1
so it has the latest patches.   Install Xorg for Xwindows so you will have
graphics.  Then install a few handy ports from the /usr/ports tree.
Some you will want are Firefox and Thunderbird and Openoffice, although
you may want to install Openoffice from a binary package rather than
from ports.   Openoffice is very big and building it can be daunting
for a newbie. Some other good candidates might be Apache and Perl
and maybe a couple of games for fun.

Then, just start using it.   Learn to find things you need on the system.   
and configure the network securely.   There is lots of documentation in
the FreeBSD Handbook and other places online.   The more you do it, the
more they make sense.

One thing to learn is using the  vi(1)  text editor.   There are many
other editors, but for system management, vi is the omnipresent, ubiquitious
one.  It is sometimes the only one available in times when bad things
are happening.It feels rather clunky when you first start to use it
but it quickly becomes second nature.   The FreeBSD man page is pretty
good on it.  I have a web page that simplifies it a little at:  
  
 http://z2.cl.msu.edu/~jerrymc/project/editvi/
 
There are a number of books available that help learning FreeBSD.

FreeBSD Unleashed and Absolute BSD are a couple of them
The FreeBSD Handbook which is online at the FreeBSD web site and
is installed if you want it when FreeBSD is installed is quite good.
The FreeBSD site also has other documents and links listed.

At first, it will seem a little strange.   Generally FreeBSD is command
oriented, not pointy/clicky oriented.   That is a much more powerful way
to administer a system, but it takes more initial learning.

Ask questions.   People on the list have already heard all the common
complaints and gripes that FreeBSD is not like MS-Win dozens of times.
The usual response is Thank God or something similar.   Anyway, they
are not interested in hearing whines again.   But, if you have a real
question about 'how to do' something or even 'why is it done this way'
and not just grousing, people on the list are usually very good about
giving answers.   List people are very interested in helping people 
learn, but not interested in people complaining.   

If it is a bug, post a pr.   If it is a feature request, remember that 
FreeBSD is created and maintained by volunteers - very smart ones - but 
they have limits on time and resources so your request may take a very 
long time to get attention.   You may well learn how to do it yourself 
and then submit it as an improvement before then.

Good luck and have fun.

jerry   
   
 
 thanx
 ___
 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: About FreeBSD hardware compatibility?

2009-02-13 Thread Jerry McAllister
On Mon, Jan 19, 2009 at 10:15:37AM +0800, aaron lewis wrote:

 Hi,
 I'm  a freebsd lovers , i wonna install fbsd7.1 to my laptop (IBM
 Thinkpad R400 a18).
   There's no available informations on laptop compatibility lists. So do you
 have any solutions to make a quick check if everything will work?
 I know Solaris has a Install_check tool which will give a list  whether a
 hardware has solaris drivers ,third-part driver or not supported.
 Does Fbsd has something likely?
 Thk in advance!

Here are some web pages to look at.

   http://www.freebsd.org/doc/en_US.ISO8859-1/articles/laptop/index.html

   http://laptop.bsdgroup.de/freebsd/

   http://lists.freebsd.org/mailman/listinfo/freebsd-mobile

   http://tuxmobil.org/mobile_bsd.html

In addition, the RELEASE notes section for each release of FreeBSD
contains pages or hardware compatibility notes.   Just look for the
RELEASE and then the hardware compatibility links.

jerry  

 ___
 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: Assigning static ip address

2009-02-12 Thread Jerry McAllister
On Thu, Feb 12, 2009 at 10:38:02PM +0100, Nikolaj Thygesen wrote:

 Gonzalo Nemmi wrote:
 On Thursday 12 February 2009 6:00:04 pm Nikolaj Thygesen wrote:
   
 Could you plase configure your /etc/rc.conf file to something like this?
 
 ifconfig_ed0=inet 192.168.1.105  netmask 255.255.255.0
 defaultrouter=192.168.1.1
 
 Where defaultrouter is the IP of your dhcp server and tell me what 
 happens?
 
 Regards
   
 When I do, I get:
 
 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=19bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4
ether 00:1b:21:1b:fd:bd
inet6 fe80::21b:21ff:fe1b:fdbd%em0 prefixlen 64 scopeid 0x1
inet 192.168.1.105 netmask 0xff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseTX full-duplex)
status: active
 
 I still get no connectivity until i run dhclient em0 which gives me:
 
 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=19bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4
ether 00:1b:21:1b:fd:bd
inet6 fe80::21b:21ff:fe1b:fdbd%em0 prefixlen 64 scopeid 0x1
inet 192.168.1.105 netmask 0xff00 broadcast 192.168.1.255
inet 10.0.0.2 netmask 0xff00 broadcast 10.0.0.255
media: Ethernet autoselect (1000baseTX full-duplex)
status: active
 
 adding what I guess is called an alias 10.0.0.2 ip?!?! I'm not that much 
 of an expert in these matters, and I'm a bit puzzled why, at first 
 (before calling dhclient), it can't resolve addresses eventhough 
 /etc/resolv.conf contains all my dns's.

I think you need to turn off dhclient in /etc/rc.conf - or don't
turn it on.   Also, make sure your resolv.conf is correct and
the default router is correctly set in /etc/rc.conf to your
gateway address.It looks like your ifconfig might be correct,
but either or both of resolv.conf or default router is wrong
or dhclient is running and clobbering them.

jerry


 
br - N
 
 ___
 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: recovering from a power outage

2009-02-12 Thread Jerry McAllister
On Thu, Feb 12, 2009 at 04:06:49PM -0800, David Newman wrote:

 What's the canonical method for checking ufs file systems on a FreeBSD
 7.1/amd64 system after an unscheduled power outage?

How about fsck 

jerry


 
 thanks
 
 dn
 
 
 ___
 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: recovering from a power outage

2009-02-12 Thread Jerry McAllister
On Thu, Feb 12, 2009 at 05:16:53PM -0800, prad wrote:

 On Thu, 12 Feb 2009 16:45:18 -0800
 David Newman dnew...@networktest.com wrote:
 
  do I need to
  boot into single-user mode, what filesystem(s) do I mount and how,
  what switches if any do I use with fsck and so on.
 
 i thought it happens in the background anyway. i don't recall having to
 do anything other than listen to the drive whirring away - and we've
 had many power outages!

It does run in the background, but if you have time, it isn't a 
bad idea to run it in single user before bring the whole system
back up in the circumstance of a catastrophic failure like a power
outage.

jerry

 
 -- 
 In friendship,
 prad
 
   ... with you on your journey
 Towards Freedom
 http://www.towardsfreedom.com (website)
 Information, Inspiration, Imagination - truly a site for soaring I's
 ___
 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: please remove all search results with name Constantin Stalzer

2009-02-11 Thread Jerry McAllister
On Tue, Feb 10, 2009 at 06:31:42PM -0800, Chris Knight wrote:

 On Tue, Feb 10, 2009 at 10:52 AM, Constantin Stalzer
 constantinstal...@web.de wrote:
  Hello, can you please remove all search results with the name Constantin 
  Stalzer immediately, so that my name will not be seen on google.
   thanks in advance...pleasseee
 
  Thanks, Greeetz
 
 Dear Mr Stalzer,
 
   I am sorry to inform you that the very act of sending an email to
 this list asking for the removal of your name from search results has,
 in fact, sent the original posting to the top of the Google rankings
 when searching for Constantin Stalzer.
 
 http://www.google.com/search?q=%22Constantin+Stalzer%22hl=enclient=firefox-arls=org.mozilla:en-US:officialhs=MLkfilter=0
 
   At this point, the cat is out of the bag; as we say.  By sending an
 email to this list, your request was not only sent to thousands if
 individuals, but it was displayed on the pages of countless websites
 where the content of this mailing list is redisplayed for public
 access.  Those pages will also be indexed by Google over time, raising
 the Google-Awareness of your name to even higher levels.  It would not
 be absolutely impossible to reverse this process, but I fear it would
 take an actual act of the Gods.
 
   Alas, I can offer no useful advice on how to remove Constantin
 Stalzer from the search results, and I would be shocked if anyone
 else could help either.  It is simply too late.  I am sorry.

A useful and helpful response.

If after making this type of helpful response, then you went on to comment 
that trying to picture the process of trying to remove all references that 
included the name is kind of a funny image, it would not be a dig at the 
person and their lack of knowledge, but at the image of the impossible quest.

jerry


 
 -Chris
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
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: please remove all search results with name Constantin Stalzer

2009-02-10 Thread Jerry McAllister
On Tue, Feb 10, 2009 at 01:29:34PM -0800, Chris Knight wrote:

 Damn, that is the funniest thing I have seen in years.

You might try posting a helpful response instead of trying
to be insulting.

You might explain to the person, who apparently does not understand
the net, that it would be impossible to remove all references with
his name because within minutes of it being posted to the list
it is mirrored and archived in many many places over which the list
manager has no control - in fact does not even know about.  One example 
of those is Google.  FreeBSD has no control over what Google stores.
But, there are many other sites that input this stuff, mung it according
to their interests and make it available on the net.

jerry


 
 -Chris
 
 On Tue, Feb 10, 2009 at 10:52 AM, Constantin Stalzer
 constantinstal...@web.de wrote:
  Hello, can you please remove all search results with the name Constantin 
  Stalzer immediately, so that my name will not be seen on google.
   thanks in advance...pleasseee
 
  Thanks, Greeetz
  __
  Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!*
  http://entertainment.web.de/de/entertainment/maxdome/index.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
 
 ___
 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: please remove all search results with name Constantin Stalzer

2009-02-10 Thread Jerry McAllister
On Tue, Feb 10, 2009 at 04:33:26PM -0800, Chris Knight wrote:

 On Tue, Feb 10, 2009 at 3:36 PM, Jerry McAllister jerr...@msu.edu wrote:
  On Tue, Feb 10, 2009 at 01:29:34PM -0800, Chris Knight wrote:
 
  Damn, that is the funniest thing I have seen in years.
 
  You might try posting a helpful response instead of trying
  to be insulting.
 
 I wasn't trying to be insulting. I was trying to be funny.
 
 Apparently, you don't know the difference; which is in fact an insult
 in case you think I was trying to be funny.

To make fun of someone's ignorance is not humorous.
It is offensive and small.

jerry


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


Re: Shrink a Slice? FreeBSD 7.1

2009-02-05 Thread Jerry McAllister
On Thu, Feb 05, 2009 at 12:19:13PM -0800, perikillo wrote:

Hi people.
I have been googling without any good info about: How to shrink a slice?
 
Case: I installed a new server for mysql, is working, I already install
 all the ports I need, them I spend a lot of hours yesterday with this baby,
 now this is my current disk layout:
 
 /dev/ad0s1a on / (ufs, local, noatime, soft-updates)
 devfs on /dev (devfs, local)
 /dev/ad0s1f on /tmp (ufs, local, noatime, soft-updates)
 /dev/ad0s1d on /usr (ufs, local, noatime, soft-updates)
 /dev/ad0s1e on /var (ufs, local, noatime, soft-updates)
 /dev/ad0s1g on /backups (ufs, local, soft-updates)
 
What I want to do is to shrink the slice /dev/ad0s1g

  /dev/ad0s1g is a partition, not a slice.
  /dev/ad0s1 is the slice.

MicroSloth usage of the terms is different and confuses people sometimes.

As far as I know neither growfs(8) nor tunefs(8) can shrink the disk
allocated to a partition.

The only way is to dump each of the filesystems to some other
reliable media (maybe tape or a large USB disk) and then repartition
that slice to be the sizes you want.Use dump(8) to make the dumps
and then check the dump files out before starting the repartitioning.

First you have to build a filesystem on the USB drive.   
You should be able to use bsdlabel to create a single partition
that covers the whole drive.   

But, if your FreeBSD or BIOS is old enough it might not go that big, 
so you will need to break it down in to smaller slices and make a 
partition in each.  (I have had to do that.  But if it is 7.xx it 
should not be necessary)  To break it up, get the  gparted  utility.   
Download its boot image and use it to break up the USB disk in to 
slices that your FreeBSD will handle.  You need to have it make all 
what it calls (in the MS way) Primary Partitions, but those are what 
are called slices in FreeBSD land.

Don't get tempted to use gparted to shrink your ad0s1 slice because
it will not work right.   That will just trash the current partitions.
It is not what you are looking for.

Either if your FreeBSD will handle the whole USB or after you have it
broken up, then build a partition on each slice of the USB using bsdlabel.
Don't make it bootable or write a boot sector on it.  Then run newfs(8)
on it to make a filesystem.
This bsdlabel and newfs can be done while the system is running.

Then, take the system down and run the dumps.You can do the dumps
from single user mode or boot a fixit image from the install CD.
You will need to do the repartitioning and restore the dumps from
the fixit anyway so you could just start there.
Boot the machine from the fixit disk - create a 'holographic' image as 
they call it.   Fixit is usually on disc1.

Run the dumps.
Lets say you are doing the dumps to a USB drive that comes up
as /dev/da0 in the fixit boot and your current disk still is
comes up with the name  /dev/ad0 .

First, make up mount points for all your filesystems that you want to
dump plus for the filesystem[s] on the USB drive.
NOTE: That the fixit runs from a memory resident filesystem so whatever
  you create there will disappear on boot.

Anyway, skip dumping /tmp and /dev is a pretend filesystem.

mkdir /oldroot
mkdir /oldusr
mkdir /oldvar
mkdir /oldbkup

mkdir /usbdrive

(You can actually make the dumps from the devices rather than mounting 
 them, but I have never gotten in to that habit)

Mount those partitions

mount /dev/ad0s1a /oldroot
mount /dev/ad0s1d /oldusr
mount /dev/ad0s1e /oldvar
mount /dev/ad0s1g /oldbkup

mount /dev/da0s1 /usbdrive(This device name might be different
depending on how you make it.   Some possibilities are:
  /dev/da0s1If you just newfs the slice without making a partition in it
  /dev/da0s1a  If you make a slice with fdisk and a partition with bsdlabel
  /dev/da0aIf you make a partition with bsdlabel without making a slice

Now do the dumps

dump 0af /usbdrive/rootdump /oldroot
dump 0af /usbdrive/usrdump /oldusr
dump 0af /usbdrive/vardump /oldvar
dump 0af /usbdrive/bkupdump /oldbkup

This will take a while depending on media you use.
By the way, to tape it would go to /dev/nsa0 rather than /usbdrive/oldroot, etc

Once the dumps are done, you may want to reboot and mount that USB
drive or read the tape and look at the dumps to make sure they can
be read. Just a precaution.

At least you will need to unmount all the partitions so bsdlabel
can work on them

Anyway, once you are happy with your dumps, then get back in to
the fixit and use bsdlabel to rewrite the partitions.

Just bsdlabel -e ad0s1

(You should not need to write a new boot block as this process should
 not touch that sector)

Adjust the partitions as you see fit.   Make partition 'a' start 
at offset of 0  and use a '*' for the rest of the offsets.
bsdlabel will calculate them correctly.  You can also make the 
size of the last partition be '*' and bsdlabel will put the remainder
of the usable space in it.


Re: Using Serial Port Other Than sio0 for the Console

2009-02-04 Thread Jerry McAllister
On Wed, Feb 04, 2009 at 08:45:46AM +0100, Martin Schweizer wrote:

 Hello Tim 
 
 I did what in the handbook under article 26.6.5.2. is described but not shure 
 how I can write a new boot block to the disk. Here is what I think is correct:
 
 Output from df and bsdlabel mfid0s1:
 # df -h
 Filesystem   SizeUsed   Avail Capacity  Mounted on
 /dev/mfid0s1a989M378M532M42%/
 devfs1.0K1.0K  0B   100%/dev
 /dev/mfid0s1d989M 16K910M 0%/tmp
 /dev/mfid0s1f388G2.6G354G 1%/usr
 /dev/mfid0s1e182G 43M167G 0%/var
 
 # /dev/mfid0s1:
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   a:  209715204.2BSD 2048 16384 28528 
   b:  8388608  2097152  swap
   c: 12460816620unused0 0 # raw part, don't 
 edit
   d:  2097152 104857604.2BSD 2048 16384 28528 
   e: 394264576 125829124.2BSD 2048 16384 28528 
   f: 839234174 4068474884.2BSD 2048 16384 28528 
 
 My opinion is:
 bsdlabel -B mfid0s1

What has this all got to do with the Subject?
  Subject: Re: Using Serial Port Other Than sio0 for the Console

Please don't hijack threads.
Start a new one if you have something to ask.

jerry


 
 Is that correct?
 
 Regards,
  
 
 Am Sun, Feb 01, 2009 at 05:03:12PM +0100 Martin Schweizer schrieb:
  Probably I find the problem. I did not read care enough the article 
  26.6.5.2. 
  I will try it asap (in the next few days). I will keep you updated.
  
  Am Sat, Jan 31, 2009 at 12:09:28PM -0700 Tim Judd schrieb:
   On Fri, Jan 30, 2009 at 10:28 AM, Martin Schweizer 
   lists_free...@bluewin.ch
wrote:
   
I want to use sio1 for console access. I read chapter 26.6 in the 
handbook
and did the following:
   
/boot.config:
-P
   
/boot/device.hints:
[snip]
hint.sio.0.at=isa
hint.sio.0.port=0x3F8
### hint.sio.0.flags=0x10
hint.sio.0.irq=4
hint.sio.1.at=isa
hint.sio.1.port=0x2F8
hint.sio.1.flags=0x10
hint.sio.1.irq=3
[snip]
   
My custom kernel:
[snip]
device sio
[snip]
   
/var/run/dmesg.boot:
[snip]
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
sio1: 16550A-compatible COM port port 0x2f8-0x2ff irq 3 flags 0x10 on
acpi0
sio1: type 16550A, console
sio1: [FILTER]
[snip]
   
/etc/ttys:
[snip]
ttyd0   /usr/libexec/getty std.9600   vt100   on  secure
ttyd1   /usr/libexec/getty std.9600   vt100   on  secure
ttyd2   /usr/libexec/getty std.9600   vt100   on  secure
ttyd3   /usr/libexec/getty std.9600   vt100   on  secure
[snip]
   
The baud rate etc. are correct as well (the standard settings).
   
The problem is I get no connection. I'm sure that my terminal works 
correct
because I can connect other FreeBSD sever over the serial cable but not 
the
above.
Any ideas?
   
Kind regards,
   
--
   
Martin Schweizer
off...@pc-service.ch
   
PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc;
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;
   
   
   Surprised nobody's really responded.
   
   Enabling serial logins on ttyd1 (COM2 in Microsoft terms) is on -- it's
   defined in your ttys.  The guaranteed enabling is to restart, but I've
   heard that sigHUP init will reread ttys and enable logins (but I hadn't 
   got
   that to work yet).
   
   Enabling serial as your console output (in terms of the boot process and
   everything) should be, if available, enabled in /boot/loader.conf
   
   There doesn't seem to be a setting to enable COM2 as your console device,
   the only options (by reading through /boot/defaults/loader.conf) is to
   enable comconsole, which runs over COM1
   
   You would likely have to hack the bootloader files in source and reinstall
   to get that kind of functionality.
   
   
   Does this help?  let me know if you want more help.  I like enabling 
   serial
   console for the fact that you can get into out-of-bounds management this 
   way
   easily.
   
   --Tim
   ___
   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 Serial Port Other Than sio0 for the Console

2009-02-04 Thread Jerry McAllister
On Wed, Feb 04, 2009 at 06:01:46PM +0100, Martin Schweizer wrote:

 Hello Jerry
 
 
   don't edit
   d:  2097152 104857604.2BSD 2048 16384 28528 
   e: 394264576 125829124.2BSD 2048 16384 28528 
   f: 839234174 4068474884.2BSD 2048 16384 28528 
 
 My opinion is:
 bsdlabel -B mfid0s1
 
 What has this all got to do with the Subject?
   Subject: Re: Using Serial Port Other Than sio0 for the Console
 
 Please don't hijack threads.
 Start a new one if you have something to ask.
 
 In the article 26.6.5.2. in the handbook you will find the answer. If 
 you want to use another sio port (COM2 im my case) for serial 
 communications you need to write the boot blocks new. I do not use 
 bsdlabel often so I want to cross check that I'm on the right way.
 
 Regards,

Ah, interesting,I didn't get the connection.

jerry


 
 
 
 Is that correct?
 
 Regards,
  
 
 Am Sun, Feb 01, 2009 at 05:03:12PM +0100 Martin Schweizer schrieb:
 Probably I find the problem. I did not read care enough the article 
 26.6.5.2. I will try it asap (in the next few days). I will keep you 
 updated.
___
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: short-changed on SD card?

2009-02-03 Thread Jerry McAllister
On Tue, Feb 03, 2009 at 07:37:05AM -0500, William Bulley wrote:

 According to Mike Jeays mike.je...@rogers.com on Mon, 02/02/09 at 19:38:
  
  I think I would try dd if=/dev/zero of=/dev/da1 bs=1M
  without the count option, and see how many blocks it writes. You at least 
  start with a clean slate, and can run fdisk and newfs, if you want 
  a BSD-only 
  device. Make sure you write on the right device!
 
 So you don't think the bad card reader suggestion is relevant?

It is another thing to check.

 
 I will also try this approach.  Thanks for all the feedback.  Now,
 I've got some avenues of testing to work through.  Later...

Doing the dd has two nice possibilities.   One, it might just clear
the device up and two, it might give some information about the
honest size.This is assuming, of course, that the problem is 
not the card reader.

jerry


 
 Regards,
 
 web...
 
 --
 William Bulley Email: w...@umich.edu
 
 ___
 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: zfs root partition boot?

2009-02-03 Thread Jerry McAllister
On Mon, Feb 02, 2009 at 04:04:38PM -0700, Tim Judd wrote:

 On Mon, Feb 2, 2009 at 7:18 AM, Omer Faruk Sen omerf...@gmail.com wrote:
 
  Hi,
 
  Can I use zfs on / using FreeBSD 7.1?  I also use
  http://people.freebsd.org/~rse/mirror/http://people.freebsd.org/%7Erse/mirror/script
   to create mirror is
  there such a a tool for ZFS to use on Fbsd 7.1?
 
  Regards.
 
 
 Are you sure you want to do this?
 ZFS is still marked an experimental feature last time I checked; and if
 FreeBSD decides to kill ZFS support, you'll be stuck with a unbootable
 disk.  

That doesn't make sense.   Just because they might terminate upgrade
support for it in some future version doesn't mean the disk will
suddenly become unreadable.Just as in any upgrade that involves
a change from one file system to another, you may have to dump the
stuff on the old one and read it in to the new one if you do the
upgrade.   But the old one will not magically stop working.  You will
be able to recover your data from the old system.   

 I'd stick with the more mature, tested methods like gmirror or
 gvinum.  Nothing beats a hardware raid though.

Although ZFS is probably more mature than you are making it sound here,
it is true that gmirror is becoming very reliable and servicable.

So, either will probably work.   Your choice depends on what you want
to accomplish.

jerry
 ___
 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: short-changed on SD card?

2009-02-02 Thread Jerry McAllister
On Mon, Feb 02, 2009 at 12:56:19PM -0500, William Bulley wrote:

 According to Mel fbsd.questi...@rachie.is-a-geek.net on Mon, 02/02/09 at 
 12:46:
 
  On Monday 02 February 2009 07:52:44 William Bulley wrote:
   Recently purchased a brand new 2.0 GB secure digital (SD) card.
  
   When I plugged this into a USB dongle and plugged the USB dongle
   into an available USB socket on my FreeBSD 7.0-STABLE system the
   output from dmesg(8) reported this:
  
  da1: 960MB (1967616 512 byte sectors: 64H 32S/T 960C)
  
   This is much closer to 1.0 GB than 2.0 GB so I at once wondered
   if I had been scammed in my purchase of this brand new SD card.
  
   Once I'd mounted /dev/da1s1 on /mnt, the df(1) command also reported
   960 MB.  I then copied a 300+ megabyte file onto /mnt and then ran
   the df(1) command again.  This time it reported 1.9 GB total and
   1.6 GB available.  WHAT IS GOING ON HERE?  Am I going crazy?
  
  On a hunch, it's really 1G FAT, 1G HFS (mac). You could reformat it using 
  fdisk/newfs.
 
 That might be a good hunch, but the SD card itself just says 2.0 GB on the
 outside - no mention there or when I purchased it to have any Mac-ness.
 
 I don't recall seeing anything Mac-ish when I ran the fdisk(8) command as
 
% fdisk da1
 
 The output then seemed to correctly reflect that partition (slice) one (1)
 was 960 MB in size.  I tried later (once the system had recovered and the
 fsck(8) had finished) to use fdisk(8) to put 1920 MB into slice one.  But
 that didn't seem to work.  I marked all the other three slices as UNUSED.
 Is there any trick to using fdisk(8) that is hidden in the man page which
 I evidently missed?  I used the -i flag and it led me by the had through
 each slice - I thought I did the right thing, but I was never able to
 mount(8) the SD card after that, even though dmesg(8) reported da1 as
 being there.  I kept getting invalid parameter or the like when I tried
 mounting as I am used to:
 
# mount_msdosfs -l /dev/da1s1 /mnt
 
 I also tried:
 
# mount_msdosfs -l /dev/da1 /mnt
 
 But both versions failed.  Finally, in desperation, I formatted the SD card
 on a Windows XP laptop.  Windows put it back into FAT shape (using the low
 level - not the quick - format there) and gave it 960 MB, sigh...   :-(

I am a little lost here and haven't tried a lot on USB devices yet - 
though I haven't had these kind of problems.

But, after doing the fdisk stuff and before trying to mount, did you
do a newfs?

Another thing would be to try the old   
  dd if=/dev/zero of=/dev/da1 bs=512 count=1024
and see if it will write to it and wipe enough stuff to free it up.
Up the count if you think it makes any difference.

jerry

 
 Regards,
 
 web...
 
 --
 William Bulley Email: w...@umich.edu
 
 ___
 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: short-changed on SD card?

2009-02-02 Thread Jerry McAllister
On Mon, Feb 02, 2009 at 02:27:20PM -0500, William Bulley wrote:

 According to Jerry McAllister jerr...@msu.edu on Mon, 02/02/09 at 14:12:
  
  I am a little lost here and haven't tried a lot on USB devices yet - 
  though I haven't had these kind of problems.
  
  But, after doing the fdisk stuff and before trying to mount, did you
  do a newfs?
  
  Another thing would be to try the old   
dd if=/dev/zero of=/dev/da1 bs=512 count=1024
  and see if it will write to it and wipe enough stuff to free it up.
  Up the count if you think it makes any difference.
 
 Thanks.  According to the newfs(8) man page it is used only for BSD
 style file systems (ufs and ufs2).  I am okay with the FAT16 formatted
 SD card, I'm just upset that I paid for a 2.0 GB card and ended up with
 what seems to be a 1.0 GB card.  I would be happy if I could make the
 SD card look like this:
 
slice 1  2.0 GB (well, 1920 MB if you insist)
slice 2  UNUSED
slice 3  UNUSED
slice 4  UNUSED
 
 And I thought I had done just that using fdisk(8).  But I must have gotten
 some of the beg and end paramaters set up wrong.

OK.I thought you were trying to make a FreeBSD type slice on it, thus
the newfs thought.   It won't mount if it isn't newfsed and is FreeBSD type.

I suppose FreeBSD's fdisk will make MS types, but have never tried it.
But, if it will, then it will also do it after wiping the device with dd.
After doing that, you should be able to just tell it to turn all the space 
on the drive in to one slice of whatever type it will handle.

jerry



 
 If the card is indeed 2.0 GB in size, and following in the style of the
 originally reported parameters of this card:
 
da1: 960MB (1967616 512 byte sectors: 64H 32S/T 960C)
 
 that is, 64 heads, 32 sectors per track, and 960 cylinders,
 (this evidently from what the BIOS reports and understands) I had
 assumed that I could merely increase the cylinder count up to 1920
 and leave the head and sector information as it was.  But as I said
 earlier, this didn't seem to work.  I know I have to leave room at
 the beginning for the MBR or the like, but the tools are either too
 low level, or too high level, or my understanding of all this is not
 up to speed.  Why can't an SD card advertised (and sold) as a 2.0 GB
 card actually hold (approximately) 2.0 GB?  That is what bugs me...
 
 I believe that FAT16 is capable of addressing a 2.0 GB disk drive, yes?
 
 Regards,
 
 web...
 
 --
 William Bulley Email: w...@umich.edu
 
___
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: ISOs

2009-01-29 Thread Jerry McAllister
On Thu, Jan 29, 2009 at 02:35:25PM -0300, Mario Lobo wrote:

 
-Mensagem original-
De: IT2 Stuart Blake Tener, USNR
Enviada em: 29/01/2009 13:50:32
Para:
Assunto: ISOs
Dear Sir or Ma'am:
I have tried to search Google and that, but probably am not using t   he
right conglomerate of keywords to find what I want to know, so I am   
 resigned
to asking you.
I recently noticed that there are quite a number of DVDs and CD-ROM= s
out
for FreeBSD, and I'd like to give it a try. So I downloaded the amd   
 64-all
torrent, but I fear I likely have more ISOs than I need.
Does the dvd1 include the contents of the docs?
What are all the other ISOs?
I saw no documentation on the freebsd.org site descriptive what I a= m
asking.
7.1-RELEASE-amd64-bootonly.iso
7.1-RELEASE-amd64-disc1.iso
7.1-RELEASE-amd64-disc2.iso
7.1-RELEASE-amd64-disc3.iso
7.1-RELEASE-amd64-docs.iso
7.1-RELEASE-amd64-dvd1.iso
7.1-RELEASE-amd64-livefs.iso
Thanks in advance, and have a blessed day.

Basically, if you have a good enough internet connection (reliable, stays up)
so you can do the bulk of the install over the network, then all you
really need is the  ...disc1.iso  CD.   
If your net connection is unreliable, then you might wan disc2 and disc3.

jerry




-- 
Very Respectfully,
IT2 Stuart Blake Tener, USNR
Las Vegas, NV / Beverly Hills, CA / Philadelphia, PA / Washington,DC
Amateur Radio Call Sign: N3GWG (Extra) / Marine Radio Operator Perm   it 
 (MROP)
email: ten...@bh90210.net (also carbon copies to my Blackberry)
phone: +(1) 310.358.0202 (Beverly Hills, CA, forwards to mobile pho   ne)
phone: +(1) 215.338.6005 (Philadelphia, PA, voice mail only)
E-Fax: +(1) 928.437.4505 (Telecopier, fax to email gateway)
Military emails (checked monthly until remote NMCI access is secured)
NIPRNET: stuart.te...@navy.mil
NIPRNET: stuart.b.te...@us.army.mil
NRO: ten...@nro.mil
TS/SCI: tener...@nro.ic.gov (GWAN)
Confidentiality Notice: This e-mail message, including any
attachments,= is
for the sole use of the intended recipient(s) and may contain confi   
 dential
and/or privileged information, though strictly at the UNCLASSIFIED
 level.
Any unauthorized review, use, disclosure or distribution is prohibi   ted. 
 If
you are not the intended recipient, please contact the sender by re   ply
e-mail and destroy all copies of the originate message.
Hi there Stuart;
Here are the basic descriptions;
7.1-RELEASE-amd64-bootonly.iso
- Very small iso. Just enough to boot FBSD but no enough for repairs
on= a damaged install.
7.1-RELEASE-amd64-disc1.iso
7.1-RELEASE-amd64-disc2.iso
7.1-RELEASE-amd64-disc3.iso
7.1-RELEASE-amd64-docs.iso
All of the above are CDROM isos. #1 is the install CD and the o= thers
are the packages spreaded.
7.1-RELEASE-amd64-dvd1.iso
- all of  the 4 above in 1 DVD. No need to switch discs during the   
 install.
7.1-RELEASE-amd64-livefs.iso
- This is the CD required for a fixit session.
In my opinion, I´d grab the 7.1-RELEASE-amd64-disc1.iso. Install the
= minimum needed for network to work and the ports, then install all
the pack= ages you need from the ports.
I hope this helps.
Best wishes,   Mario Lobo
__= _
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@fre   
 ebsd.org
   
   

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


Re: Looking for a Good FreeBSD and General Unix Backup System

2009-01-28 Thread Jerry McAllister
On Wed, Jan 28, 2009 at 07:52:40PM -0500, Jaime wrote:

 On Wed, Jan 28, 2009 at 6:51 PM, Wojciech Puchar
 woj...@wojtek.tensor.gdynia.pl wrote:
  dump is perfect. period.
 
 Is it possible to pull out individual files?  A fellow sysadmin asked
 me that years ago and I didn't have an answer for him.


Very easily.Just use restore -i

Usually when I do that, I make a special direcory to receive things.
(I usually call it  'unroll')  That way I can put what I want there
and then move it to where I want to, even if it is different from
where it originally was.

jerry


 
 Thanks,
 Jaime
 ___
 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: Adding partitions to gmirror device

2009-01-27 Thread Jerry McAllister
On Mon, Jan 26, 2009 at 10:04:11PM -0500, Vladislav Sekulic wrote:

 Hi!
 
 I'm running FreeBSD 7.1-RELEASE on a couple of Sun X2100 servers, each  
 with 2X 250GB SATA drives that I've established a gmirror(8) over,  
 following the instructions in section 19.4 of the Handbook.
 
 Now, one of the machines, being transformed into a webserver, needs a  
 separate, newly created /var/www partition (its current partitions  
 only take up 27G of the total ~238G available).
 
 My dilemma is -- how do I add another partition without hosing the  
 system?  It seems to me that there is no other way than to destroy the  
 gmirror, create the new partition, then re-create the gmirror.  The  
 issue is how to proceed in a safe manner, without destroying any data  
 or causing undue hassle (time is of the essence, as always).
 
 My draft plan is as follows, with ad4 and ad6 being the component drives:
 
   $ sudo gmirror deactivate gm0 /dev/ad6
   $ sudo gmirror deactivate gm0 /dev/ad4
   $ sudo gmirror remove gm0 /dev/ad6
   $ sudo gmirror remove gm0 /dev/ad4
 
 I believe this would result in all metadata associated with the  
 gmirror to be wiped, and hence the gmirror to be destroyed, based on  
 my potentially faulty reading of the manpage.
 
 Then edit fstab to restore the ``/dev/mirror/gm0s1?'' entries to their  
 corresponding ``/dev/ad4s1?'' entries  reboot.
 
 Afterwards, would run ``bsdlabel -e ad4'', then newfs, and finally,  
 redo the gmirror sequence (following the steps in section 19.4 of the  
 handbook, as before).
 
 Am I missing any critical steps here, or have any redundant steps?  Or  
 just not getting it?

I may be confused here, but I think you are making too many steps rather
than missing some.But, partly my problem is that I do not have
the whole picture of what you have currently set up.


First of all, you say that you have allocated 27GB of 238GB available.
Is that 238GB in the existing slice - gm0s1 or is it outside of
that slice?   (NOTE, the 's' in the device name stands for slice - 
so it is slice 1 of a possible 4).

It could be helpful if you posted you  /etc/fstab  file and also
what is printed if you do:bsdlabel gm0s1   or, if it is what
they call 'dangerously dedicated'  do:  bsdlabel gm0

If it is all in that gmos1 slice, then just use bsdlabel on that 
slice to add the rest to another partition within that slice.  Just
boot from something other than that mirror, make sure nothing
in gm0 is mounted and then do:   bsdlabel -e gm0s1  and fix it
up as needed.

If you are getting the terminology mixed and it is not in that 
slice, it depends on how you want your disk built.  If there is
no slice and it is what some call 'dangerously dedicated', then
run bsdlabel on gm0  rather than  gm0s1 (eg  bsdlabel -e gm0).
From your comments above, it sounds like you have made a slice on 
it.   But, seeing fstab and the output of bsdlabel 
would help figure it out.

jerry




 
 Thank you for any pointers!
 
 Vlad
 
 P.S.  Is it possible to operate directly on the gm0 device, i.e., to  
 create a partition using it rather than destroying the entire gmirror?
 
 --
 Vladislav Sekulic
 Research Computing System Administrator
 Systems and Networks Research Group
 Dept. of Computer Science, University of Toronto
 http://www.cs.toronto.edu/~pocsys
 
 ___
 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: Adding partitions to gmirror device

2009-01-27 Thread Jerry McAllister
On Tue, Jan 27, 2009 at 01:49:36PM -0500, Vladislav Sekulic wrote:

 Thanks, Wojciech and Jerry, for your help.
 
 Quoting Jerry McAllister jerr...@msu.edu:
 
 First of all, you say that you have allocated 27GB of 238GB available.
 Is that 238GB in the existing slice - gm0s1 or is it outside of
 that slice?   (NOTE, the 's' in the device name stands for slice -
 so it is slice 1 of a possible 4).
 
 
 It's 27GB used within the existing slice; gm0s1 spans the entire disk.
 
 It could be helpful if you posted you  /etc/fstab  file and also
 what is printed if you do:bsdlabel gm0s1   or, if it is what
 they call 'dangerously dedicated'  do:  bsdlabel gm0
 
 
 $ sudo bsdlabel /dev/mirror/gm0s1
 # /dev/mirror/gm0s1:
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   a:  104857604.2BSD 2048 16384 8
   b:  8320016  1048576  swap
   c: 4883759370unused0 0 # raw  
 part, don't edit
   d:  2097152  93685924.2BSD 2048 16384 28528
   e: 10485760 114657444.2BSD 2048 16384 28528
   f: 41943040 219515044.2BSD 2048 16384 28528

OK.   Based on this you can just do thebsdlabel -e /dev/mirror/gm0s1
as root (or from the fixit)  and then, right after the definition of 
the 'f:' partition make an 'h:' partition with '*' as both size and offset.
eg.
h:   ** 4.2BSD 2048 16384 28528

Write and exit from the edit session and then newfs the new partition
and fix up your /etc/fstab - the real one, not the fixit one
so it will mount where you want it - don't forget to make the mount point.
It should work just fine.   

Note, that when you are running from the fixit, it makes a filesystem
in memory and mounts that as root (/).   Your real root from the disk
will probably be in  /dev/mirror/gm0s1a  so you will need to make
a mount point in the memory root, let's say  /tmproot and mount to
that and then edit that fstab.eg

Boot from fixit - get that holographic shell going

  bsdlabel -e /dev/mirror/gm0s1
Do the editing, write and quit
  mkdir /tmproot
  mount -w /dev/mirror/gm0s1a /tmproot
  cd /tmproot/etc
  vi fstab
fix it up, write and quit

Pull the CD, reboot and things should be just fine.

My only concern is, I have never used the fixit on a mirror.
I presume it should look just the same, but who knows, it might
have a different looking address.I hope the gmirror stuff 
works on the fixit.   If not, you will need to make a boot on
something else - another hard disk with a full system.

jerry
 
 If it is all in that gmos1 slice, then just use bsdlabel on that
 slice to add the rest to another partition within that slice.  Just
 boot from something other than that mirror, make sure nothing
 in gm0 is mounted and then do:   bsdlabel -e gm0s1  and fix it
 up as needed.
 
 
 Great, makes sense.  I'll boot from the FreeBSD livecd and do this.
 
 Thanks again!
 Vlad
 
 --
 Vladislav Sekulic
 Research Computing System Administrator
 Systems and Networks Research Group
 Dept. of Computer Science, University of Toronto
 http://www.cs.toronto.edu/~pocsys
 
 ___
 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: Backup program on FreeBSD for DLT drive

2009-01-23 Thread Jerry McAllister
On Fri, Jan 23, 2009 at 08:06:43AM +0100, bsd wrote:

 Yes,
 
 This is probably the one I'll go for?
 There is a good hack described in the O'Reilly BSD hacks to setup  
 Bacula?

I don't understand.   Why hack when dump already works just right?

jerry



 
 I'll consider this article as a starting point?
 
 
 
 Thank you very much folks.
 
 
 Le 23 janv. 09 à 04:21, Geoff Fritz a écrit :
 
 On Thu, Jan 22, 2009 at 08:30:56PM +0100, bsd wrote:
 Hello,
 
 
 I am using a FreeBSD server 7.0 as a Samba server and wanted to  
 backup
 this server using Quantum DLT tape.
 
 I would need a simple tool that could be configured rapidl at that's
 stable enough to provide high security for the data.
 Ideally any good pointer to a howto would be a must!
 
 I've had success with Bacula for a small office file server  
 (FreeBSD) and
 Windows clients clients.  It supports SSL for the data transfer (if  
 the
 client and server are not the same machine), as well as data  
 encryption:
 
 http://www.bacula.org/en/dev-manual/Data_Encryption.html
 
 I haven't used the encryption myself.  Bacula has a bit of a  
 learning curve
 to set up corretly, but I really enjoy its use once it it set up  
 correctly.
 
 -- Geoff
 
 
 Gregober --- PGP ID -- 0x1BA3C2FD
 bsd @at@ todoo.biz
 
 
 P Please consider your environmental responsibility before printing  
 this e-mail
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
___
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: Dell 2900 invalid partition table

2009-01-23 Thread Jerry McAllister
On Thu, Jan 22, 2009 at 11:50:41PM +0100, Len Conrad wrote:

  freebsd 7.1
  
  Dell 2900, perc 6/i controller with 4 SATA disks in RAID1.
  
  We get all the through the disc1 install, reboot,
  
  arrive up to 
  
  Press ctrl-E for remote access setup  within 5 secs 
  
  then die with
  
  Invalid partition table
  
  We had RAID5, same problem, switch to RAID1.
  
  suggestions?
 
 Is your BIOS set to boot from the right device - the raid and
 not the one of the disks in it???
 
 
 Boot sequence says 1. drive c:
 

Hmmm.   That could be the problem.
Do any of the other choices look interesting?

 controller disk setup shows RAID1 ready.
 
 I've looked everywhere to see if I can point the boot at RAID1.

I don't have a machine handy right now so I can look and see how
I set the BIOS (which was almost 2 years ago, so my memory of foggy).
They are a 9 hour drive away.   But, I did manage to get it.   There
was a difference.  The drives in the raid were SAS.It doesn't 
seem like that should matter, but...

jerry

 
 Thanks,
 Len
 
 
 
 
 
 ___
 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


<    1   2   3   4   5   6   7   8   9   10   >