Re: CVSUP

2003-07-31 Thread oremanj
On Thu, Jul 31, 2003 at 03:00:55PM -0400 or thereabouts, [EMAIL PROTECTED] wrote:
> I have a question about cvsup.  I read the manual and can update my ports with no 
> problem.  Here is my question though...what if I was to change the Makefile for a 
> port? 
>  Is there a way I can still use CVSup to update my ports and merge the changes I 
> made 
> in the old Makefile with the new Makefile instead of having cvsup just delete the 
> old 
> one.

"It's a feature, not a bug." :-)

If you have lots of disk space, you can try using CVSup to mirror the CVS repository
and let CVS merge your changes:

* Omit the `tag' in your cvsupfile. Just don't put one in.
* Change the `prefix' to a place where you have a lot of space, such
  as /usr/local/portcvs. (Do NOT use /usr!)
* Cvsup as normal.
* You should find a lot of files in /usr/local/portcvs/ports/* with
  names ending in ",v". These are the CVS files.
* Back up your ports tree (mv /usr/ports /usr/ports.old).
* cd /usr && cvs -d /usr/local/portcvs checkout ports
* If all went well, you have a ports tree.

Now, always cvsup this way. To update your main ports tree, do
`cd /usr/ports && cvs -d /usr/local/portcvs update'. This will
try and merge your changes.

This may have been a bit difficult to understand. I'm sure someone else can
explain it better than I :-)

-- Josh

> 
> Thanks
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Quick file allocation

2003-07-24 Thread oremanj
On Thu, Jul 24, 2003 at 01:11:14PM -0700 or thereabouts, Rus Foster wrote:
> Hi All,
> Just wondered on FreeBSD is there a way that I can quickly create a file.
> When I mean quick I basically mean that the system just says that ok this
> file is allocataed inodes foo-bar rather than having to use mkfile 1G
> filename. Something like XFS's holey file support

open file
seek 1G in
write one zero byte
close file

Presto... sparse (AKA "holey", not "holy" :-) file.

-- Josh

> 
> Rgds
> 
> Rus
> 
> 
> -- 
> www: http://jvds.com   | Virtual Servers from just $15/mo
> MSNM: [EMAIL PROTECTED] | Totally Customizable Technology
> e: [EMAIL PROTECTED]   | FreeBSD & Linux
>10% donation to FreeBSD.org on each purchase
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Any way to stop a remote box gone crazy?

2003-07-23 Thread oremanj
On Wed, Jul 23, 2003 at 03:28:38PM -0600 or thereabouts, [EMAIL PROTECTED] wrote:
>  
> I get the same Segmentation fault when I try to run dmesg.  I'm using the 
> bash shell.  Oddly enough I can run sh though.  Another odd thing if I try 
> to use cat with bash I get: 
>  
> -bash: cat: command not found 
>  
> but I get this if I run cat from sh: 
>  
> cat: no such device or address 

Wild guess: do you have LD_PRELOAD set? Quick test:
unset LD_PRELOAD
cat /dev/null

-- Josh

>  
> Thanks 
>   -Scott 
>  
>  
> Quoting Rus Foster <[EMAIL PROTECTED]>: 
>  
> > On Wed, 23 Jul 2003 [EMAIL PROTECTED] wrote: 
> >  
> > > 
> > > Hello I have a remote machine running FreeBSD 4.8 that runs my 
> > internet 
> > > radio station (http://www.itsallgoodradio.com) and it has gone wacky.  
> > It 
> > > will be several hours before anyone can get to it to reboot it.  I 
> have 
> > a 
> > > ssh login prompt that is still live, but anytime I try to execute a 
> > > command I get either a Segmentation Fault or if I try to "su" I get an 
> > > Abort trap.  If I try to ssh into it now I get: 
> > > 
> > > ssh_exchange_identification: Connection closed by remote host 
> > > 
> >  
> > Hi, 
> > OK can you run dmesg at all? I guess you can. Which shell are you 
> > running 
> > as you might be able to use some of the builtin commands 
> >  
> >  
> > Cheers 
> >  
> > Rus 
> >  
> > ___ 
> > [EMAIL PROTECTED] mailing list 
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions 
> > To unsubscribe, send any mail to 
> > "[EMAIL PROTECTED]" 
> >  
>  
>  
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: search & replace on multiple files

2003-07-23 Thread oremanj
On Wed, Jul 23, 2003 at 01:20:40PM -0700 or thereabouts, [EMAIL PROTECTED] wrote:
> On Wed, Jul 23, 2003 at 10:56:19AM -0400 or thereabouts, Scott I. Remick wrote:
> > Hello... I'm trying to figure out a way to pull off the following:
> > 
> > I have a subdir with many different sorts of text files (some nested in
> > additional subdirs, so recursion would be necessary) that need to have a
> > search & replace done on them. What's a quick way to script a global search
> > & replace on many/all text files in nested subirs? 
> 
> Hard way (tested):
> 
> #!/usr/bin/env perl
> 
> use File::Find;
> 
> find sub {
> -f $_ or return;
> my $file = $_;
> my $filebak = "${file}~";
> rename $file, $filebak or die "Can't rename $file to $filebak: $!\n";
> open FILEBAK, $filebak or die "Can't open $filebak: $!\n";
> open FILE, ">$file" or die "Can't write to $file: $!\n";
> while () {
> 
> # Replace OLD with the "search for" -- a regexp
> # Replace NEW with the "replace with"
> s/OLD/NEW/g;
> 
> print FILE $_;
> }
> }, ".";
> 
> # end replace.pl
> 
> Easy way (not tested):
> 
> find . -type f |   perl -pi~ -e 's/OLD/NEW/g;'
   ^ OOPS, sorry, there should be an `xargs' here

-- Josh

> 
> -- Josh
> 
> > 
> > Thanks!
> > 
> > ___
> > [EMAIL PROTECTED] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: search & replace on multiple files

2003-07-23 Thread oremanj
On Wed, Jul 23, 2003 at 10:56:19AM -0400 or thereabouts, Scott I. Remick wrote:
> Hello... I'm trying to figure out a way to pull off the following:
> 
> I have a subdir with many different sorts of text files (some nested in
> additional subdirs, so recursion would be necessary) that need to have a
> search & replace done on them. What's a quick way to script a global search
> & replace on many/all text files in nested subirs? 

Hard way (tested):

#!/usr/bin/env perl

use File::Find;

find sub {
-f $_ or return;
my $file = $_;
my $filebak = "${file}~";
rename $file, $filebak or die "Can't rename $file to $filebak: $!\n";
open FILEBAK, $filebak or die "Can't open $filebak: $!\n";
open FILE, ">$file" or die "Can't write to $file: $!\n";
while () {

# Replace OLD with the "search for" -- a regexp
# Replace NEW with the "replace with"
s/OLD/NEW/g;

print FILE $_;
}
}, ".";

# end replace.pl

Easy way (not tested):

find . -type f | perl -pi~ -e 's/OLD/NEW/g;'

-- Josh

> 
> Thanks!
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installing FreeBSD onto Vinum-volumes?

2003-07-23 Thread oremanj
On Wed, Jul 23, 2003 at 03:51:28PM +0200 or thereabouts, Eivind Olsen wrote:
> Hello.
> 
> I'm about to install a new machine which will have 2 IDE-disks. I'd like to 
> mirror some volumes between those disks while other volumes should be 
> striped.
> I'd like to do this with FreeBSD 5.1.
> 
> There's no data on the disks that I want/have to keep. Is it at all 
> possible to configure Vinum and then install FreeBSD or will I have to 
> install FreeBSD first and then "convert" to Vinum-volumes by manually 
> editing the disklabel (with bsdlabel), calculating offsets etc.?
> 
> In other words, is there an easy way to do this? :)

Maybe. Either you get to do it the hard way, or you get to use beta
software for it :-)

> 
> (I already tried installing FreeBSD and then "converting" to Vinum but 
> failed miserably and am now looking for an easy way out.)

I think Mondo  might do the job
here. Yeah, I'm biased (I ported the thing to BSD :-), but it
seriously might work.  Note that the FreeBSD port is beta, and the
links on the downloads page for it are BROKEN. [*don't use them --
use CVS*]

Install system to one HD. Make sure you have the ports collection,
CVS, and the devtools. Install these ports:
+ devel/gmake
+ devel/newt
+ lang/perl
+ shells/bash
+ sysutils/afio
+ sysutils/cdrtools

$ export CVSROOT=:pserver:[EMAIL PROTECTED]:/mondorescue
$ cvs login
Password: 
$ cvs checkout mindi-fbsd
[snip]
$ cvs checkout mondo-devel
[snip]
$ unset CVSROOT

$ su
Password:
# cd mindi-fbsd && bash install.sh && cd ..
# cd mondo-fbsd && ./configure && make && make install && cd ..
# mondoarchive && : follow prompts && reboot && : insert CD && : interactive mode
[yes, you CAN type that command :-]

If it asks you whether to backup the MBR raw, say yes.

Make sure you set up some Vinum partitions in the mountlist
editor. Add some partitions type + mountpoint "raid", put in
/dev/vinum/something as the device (replace "something" with the
volume name you want, of course), press OK, edit that entry, select
mountpoint, press RAID.., follow prompts. Delete all non-RAID
partitions, except maybe a /boot partition or /.

Note that the RAID editor is a bit suboptimal (only uses one subdisk
per partition). Still, it works. 

Do you want to partition your disks? Yes.
Do you want to format your disks? Yes.
Do you want to restore everything? Yes.

If it doesn't work, and you feel like it, email me the problem, along
with /var/log/mondo-archive.log.

HTH,
-- Josh

> 
> -- 
> Eivind Olsen
> [EMAIL PROTECTED]
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make world aborts with Operation not permitted

2003-07-23 Thread oremanj
On Wed, Jul 23, 2003 at 10:36:56AM -0700 or thereabouts, David Benfell wrote:
> Hello all,
> 
> I've been playing with the bleeding edge stuff.  And so, of course,
> I'm bleeding.
> 
> System is FREEBSD 5.1-CURRENT.  make world aborts at:
> 
> install -s -o root -g wheel -m 444   -fschg  libcrypt.so.2 /usr/lib
> install: /usr/lib/libcrypt.so.2: Operation not permitted
> *** Error code 71
> 
> Stop in /usr/src/lib/libcrypt.
> *** Error code 1
> 
> Stop in /usr/src/lib.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> 
> (apologies if I mistyped something.)
> 
> This is off of updates from last night and this morning.

Your securelevel is set higher than 0. Please reboot into single-user mode for the
installworld. (You won't have to rebuild anything. Hopefully. As long as you make
installworld not just world.)

-- Josh

> 
> -- 
> David Benfell, LCP
> [EMAIL PROTECTED]
> ---
> Resume available at http://www.parts-unknown.org/resume.html


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mozilla and long time in resolving Hostnames

2003-07-22 Thread oremanj
On Wed, Jul 23, 2003 at 12:06:22AM +0200 or thereabouts, Mica Telodico wrote:
> Ehi, u were right!!
> 
> I've disablited INET6 support in the kernel and now
> Mozilla works perfectly!!!
> 
> But, what are the disadvantages? What I have
> lost?FreeBSD 5.1 have this problem too , and this
> is a problem or whatever else?
> Thanks

You won't be able to use IPv6. Unless you know what this is,
you don't need it.

(If you do know what it is, and you want a /64, one good site
is ipv6.he.net).

-- Josh

> 
> Marcello
> 
> __
> Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il 
> filtro Anti-spam
> http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: RELENG_5 ?

2003-07-21 Thread oremanj
On Tue, Jul 22, 2003 at 12:41:55AM +0200, David Rio wrote:
> On Mon, Jul 21, 2003 at 03:27:21PM -0700, [EMAIL PROTECTED] wrote:
> > On Tue, Jul 22, 2003 at 12:18:40AM +0200, David Rio wrote:
> > > Hi all:
> > > 
> > > I have been using FreeBSD in production enviroments so I used FreeBSD 4.7 and 
> > > 4.8.
> > > Now, I have installed FreeBSD 5.1 on my laptop. 
> > > So I decided to keep track of the -RELEASE_5 (STABLE). But It seems that there 
> > > is 
> > > not such a branch on the repository.
> > > Reading diferent links at freebsd.org. It seems that there is only to branchs 
> > > for 
> > > 5.1:
> > > 
> > >   -CURRENT
> > >   -RELENG_5_1
> > > 
> > > The first one, I think can be a very agresive for my intentions. The second one,
> > > instead, will not modify my sources to improve the performace because it is a 
> > > patch branch.
> > > 
> > > If I am not wrong with this, what will be the reason to install 5.1 instead 4.8?
> > > I mean, 5.1 has more features but a worst performace that 4.8. On the other hand,
> > > there is no -STABLE branch of 5.1 so the only way to keep you system up to date
> > > is follow the -CURRENT branch which is a little agresive in my case.
> > 
> > Right now, -CURRENT is pretty "stable", since there is no 5-STABLE yet. That branch
> > will probably be branched around 5.2-RELEASE.
> > 
> > So track -CURRENT until -STABLE is branched.
> > 
> > -- Josh
> > 
> 
> 
> Is there any reason why -CURRENT 5.1 is more stable than -CURRENT 4.8?

There is no such thing as -CURRENT 4.8. Read the link someone posted earlier, please.

-- Josh
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: no sound with 4.8 & KDE

2003-07-19 Thread oremanj
On Sat, Jul 19, 2003 at 08:44:03PM -0500, Walter wrote:
> Matthew Graybosch wrote:
> >Did you open up a mixer program like kmix and making sure that the CD, 
> >PCM, and Master channels aren't muted? I'd had that happen to me a 
> >few times with Linux when installing ALSA.
> 
> I DL'd aumix.  It showed me that the volumes were
> not set to zero except for the mic. I changed them
> up a bit, tried xmms, muted off then on, tried xmms.
> Still no sound.  Thanks though.

Try setting both "vol" and "pcm" to 100:100 using the mixer(8) utility.
For me at least, my soundcard is *extremely* soft unless I use 100%
volume. Sample commands:
# mixer vol 100:100
# mixer pcm 100:100
$ xmms &

-- Josh

> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Telnet (was Thanks)

2003-07-19 Thread oremanj
On Sat, Jul 19, 2003 at 06:06:48PM +, Axl Rose wrote:
> thanks
> 
> what bout to telnet freebsd from windows box on same network
> 
>  [telnet]
> 10.0.0.1 fbsd <> 10.0.0.2 windows
> 
> never connects (could not open connection)

Telnet uses port 23.
SSH uses port 22.
The protocols are not compatible -- that's why they use different ports.
Get PuTTY -- it's a great Windows SSH client. (Google for PuTTY -- it's
the first match :-)

-- Josh

> 
> thanks
> R
> 
> _
> The new MSN 8: advanced junk mail protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Advise needed to write a script

2003-07-19 Thread oremanj
On Sun, Jul 20, 2003 at 12:50:25AM +0800, Jimmy wrote:
> Hi
> Good day to you. I need your advice to wrte a script 
> 1) stores the sum of A plus B in variable C 
> 2)Stores the difference of B minus A in variable C 
> 
> If A is 5 and B is 10. Please advice me on this issue pls .
> Hope to hear from you soon.

Smells like a homework assignment to me. I'm not going to tell you the
answer, but I will tell you how to find out :P

Check out the "Advanced Bash-Scripting Guide" on tldp.org.

-- Josh

> 
> Cheers
> 
> Jimmy Chan
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Weird ./configure errors

2003-07-14 Thread oremanj
On Mon, Jul 14, 2003 at 04:56:58PM -0700, Brad wrote:
> I'm having a rather odd issue thought I would try this list. It's not a
> critical issue but should probably be fixed up. It's when some of my users
> do a ./configure on the same eggdrop tarball, they get these errors:
> 
> checking for TclpFinalizeThreadData in -ltcl84... no
> configure: creating ./config.status
> config.status: creating Makefile
> mv: Makefile: set owner/group (was: 1021/0): Operation not permitted
> config.status: creating doc/Makefile
> mv: doc/Makefile: set owner/group (was: 1021/0): Operation not permitted
> config.status: creating scripts/Makefile
> mv: scripts/Makefile: set owner/group (was: 1021/0): Operation not permitted
> config.status: creating src/Makefile
> mv: src/Makefile: set owner/group (was: 1021/0): Operation not permitted
> config.status: creating src/md5/Makefile
> mv: src/md5/Makefile: set owner/group (was: 1021/0): Operation not permitted
> config.status: creating src/compat/Makefile
> mv: src/compat/Makefile: set owner/group (was: 1021/0): Operation not permitted
> config.status: creating src/mod/Makefile
> mv: src/mod/Makefile: set owner/group (was: 1021/0): Operation not permitted
> config.status: creating config.h
> mv: config.h: set owner/group (was: 1021/0): Operation not permitted
> config.status: executing default-1 commands
> creating lush.h
> config.status: executing default-2 commands
> 
> Configure is done.

I get this too.

> 
> 
> 
> Now, I have tried compiling on the pre-made groups by fbsd such as wheel and
> staff and they compile with no problems. I have created groups for the package
> that each user purchased, silver, gold, platinum etc. and it would appear as
> though users in these groups are the only one's getting these errors. Again,
> while this does not seem to be causing any "noticeable" errors, it's probably
> not a good thing that mv is failing to set ownership. It also does not appear
> to be a permissions thing as I did testing such as chmod -R 777 on the home
> dir and still nothing.
> 
> Any ideas?

Yes, ignore it. The error comes from the fact that users are not allowed
to chmod in FreeBSD. Therefore root will not get this. Linux fails
silently (same problem, no error). The error causes no harm. (If it was
fatal, configure would say so). Compile away :-)

-- Josh 

> 
> Thanks
> 
> -Brad.
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Color shell prompts (was Re: FreeBSD 4.8-RELEASE mutt & color(color))

2003-07-14 Thread oremanj
On Mon, Jul 14, 2003 at 06:41:48PM -0400, Kevin Berrien wrote:
> I was thinking of something a bit more practical, like the color changes 
> for file types (dirs, etc..).

Oh, that :-)
man ls
basically: export CLICOLOR=y

-- Josh

> 
> Joshua Oremzn wrote:
> 
> >On Mon, Jul 14, 2003 at 12:51:43PM -0400 or thereabouts, Kevin Berrien 
> >wrote:
> > 
> >
> >>Speaking of color.  Does anyone have a good tutorial/script to add color 
> >>in bash as one finds in the newer linux distributions?
> >>
> >>   
> >>
> >
> >"The Bash-Prompt HOWTO" @ tldp.org
> >is a good one. Just to give you an idea about how crazy this all can
> >get, take a look at this prompt (for zsh). Note that ^[ means the
> >real ESC character, not caret + left bracket. Sorry about the long lines:
> >



> >
> >-- Josh
> >
> >P.S. Of course I don't use that prompt!
> >
> > 
> >
> >>___
> >>[EMAIL PROTECTED] mailing list
> >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >>To unsubscribe, send any mail to 
> >>"[EMAIL PROTECTED]"
> >>   
> >>
> >
> > 
> >

> 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: DVD burner suggestions

2003-03-03 Thread oremanj
[Sorry - forgot to CC the list...]



> For some backups at work, I'm thinking of getting a DVD burner.  I was
> looking at the Sony dru500a, since its compatible with all the various
> dvd media out there.  Has anyone had any luck/experience with this drive
> (or any dvd burner)?

I have the Sony DRU500a drive (internal IDE version).  It works well:
$ mkisofs -r -o dvd.iso /some/large/tree/no/bigger/than/4.4g
[snip]
## You might not need to do the next command more than once
## per DVD. Substitute dvd-rw for dvd+rw if you're using that.
$ burncd -F -f /dev/acd0 format dvd+rw
$ burncd -f /dev/acd0 dvdrw dvd.iso
You might need to be root for those burncd commands; I'm not sure.
I think there's a cdrecord look-alike called dvdrecord, but I have no
experience with it. I'm not sure what the commands look like if you're
using DVD-R or DVD+R, but I assume something like `burncd -f /dev/acd0
data dvd.iso fixate' would work.

DVD+RW and DVD-RW work great for backups. For example, `dump 0uf
/path/with/big/space/dump_of_root.dump /' and burn it like an ISO. To
restore, `cd / && restore rf /dev/acd0' -- man restore for details.

I also had good experience just making an ISO of a directory (/usr/local
for example). To fit more than one of these on a DVD, you can do `mkisofs
-graft-points etc=etc var=var usr/local=usr_local usr/home=home' from the
root directory (this example makes an ISO of /etc, /var, /usr/local, and
/home and puts each one in a separate directory on the ISO.) Then `burncd
... dvdrw backup.iso'.

Here's a good backup command to get you started:
# cd / &&
> mkisofs -graft-points usr/local=usr-local usr/home=usr-home \
> var=var etc=etc -o usr/backup/DVD.current.iso &&
> burncd -F -f /dev/acd0 format dvd+rw &&
> burncd -s max -f /dev/acd0 usr/backup/DVD.current.iso &&
> mv usr/backup/DVD.current.iso \
> usr/backup/DVD.`date +%m-%d-%y`.iso &&
> echo "*** Backup Done! ***"
This assumes that you have a DVD+RW in the drive, that the drive is
/dev/acd0, and that you want to back up /usr/local, /usr/home, /var, and
/etc. Depending on your setup, this may not all fit on one DVD.
As always, YMMV.

> I found only a few hints on the net, including:
> http://www.whiterose.net/~mrpink/freebsd/dvdr.php
>
> but it seems like its a bit of a hack.
>
> I'm running 5.0 release on a box with both scsi and ide capability.

I would get the IDE one: that's the only one I have experience with. I
don't know about SCSI. 5.0-release has the capability right out of the
box. (Note that with IDE you can emulate SCSI, if you have a program that
wants it.)

/usr/ports/sysutils/mkisofs is the only port you'll need.

> thanks in advance,
> Brian

Hope this helps,
Josh


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message