Newbie - CD Burning Question

2003-09-03 Thread Tony Pagliocco


I have a cd writer on my FreeBSD 4.4 Machine.
I'm new to FreeBSD and have tried using the burncd command
that is in the documentation. However, I do not think the
CD Burner is located on /dec/acd0c because it says no such file
or directory is located.

The command I am using is 

# burncd -f /dec/acd0c data /home/www/directory fixate

What I want to do is copy a whole directory and burn it
to my cd-rom

Can someone just give me a nudge to show me what I may 
be doing wrong, command or location wise. 

Thanks in advance

-Original Message-
From: Vincent Poy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 2:10 PM
To: Mark
Cc: [EMAIL PROTECTED]; Joshua Oreman
Subject: Re: Ghost for FreeBSD


On Wed, 3 Sep 2003, Mark wrote:

 - Original Message -
 From: Joshua Oreman [EMAIL PROTECTED]
 To: Mark [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Wednesday, September 03, 2003 4:08 PM
 Subject: Re: Ghost for FreeBSD


cd /mnt/root
/sbin/dump -L -f- /|restore -rf-
cd /mnt/var
/sbin/dump -L -f- /var|restore -rf-
cd /mnt/usr
/sbin/dump -L -f- /usr|restore -rf-
  
   I have heard this before, but I never understand this part. :) How
   does creating a /mnt/root directory, and restoring in that directory
   get my / slice back? Then the restored data will just sit
   in /mnt/root! What good does it there?
  
   Or should I create /mnt/root as partition, about equal in size to the
 root

  To mirror the root partition to another:
  # mkdir /mnt/root
  # mount /dev/ROOT-MIRROR-DEV /mnt/root
  # cd /mnt/root
  # /sbin/dump -f- / | restore -rf-
 
  You will not *need* to umount the root partition.

 Ok; what you have done is made a dump on the root mirror device; great!
But
 how do I now tell FreeBSD to use that restored partition as /? Edit
 /etc/fstab to effect the change for the next boot? I have a nagging
 suspicion it will then still boot off the old / slice.

 - Mark

Editing /mnt/root/etc/fstab and updating it with the new entries.
Perhaps you can make a script so that after the dump/restore.. it'll copy
/etc/fstab.new to /mnt/root/etc/fstab - the fstab.new file is basically
the device names of the new device.  The next boot thing is easy.  If
you've ever had more than one HD on the machine with OSes on both the
first and second HD's and used FreeBSD's Boot Manager... The first thing
FreeBSD will show is the BootManager which goes something like this:

F1 FreeBSD
F5 FreeBSD

If you don't do anything, it will always boot with F1 which is the first
drive.  F5 is the second drive, I don't remember the exact name as it
varies.   So if you hit F5, it will use the /etc/fstab on the second drive
as it will use that drive to boot up.


Cheers,
Vince - [EMAIL PROTECTED] - Vice President    __ 
Unix Networking Operations - FreeBSD-Real Unix for Free / / / / |  / |[__  ]
WurldLink Corporation  / / / /  | /  | __] ]
San Francisco - Honolulu - Hong Kong  / / / / / |/ / | __] ]
HongKong Stars/Gravis UltraSound Mailing Lists Admin /_/_/_/_/|___/|_|[]
[EMAIL PROTECTED] - oahu.DAL.NET Hawaii's DALnet IRC Network Server Admin




___
[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: Newbie - CD Burning Question

2003-09-03 Thread Kent Stewart
On Wednesday 03 September 2003 02:20 pm, Tony Pagliocco wrote:
 I have a cd writer on my FreeBSD 4.4 Machine.
 I'm new to FreeBSD and have tried using the burncd command
 that is in the documentation. However, I do not think the
 CD Burner is located on /dec/acd0c because it says no such file
 or directory is located.

 The command I am using is

 # burncd -f /dec/acd0c data /home/www/directory fixate

 What I want to do is copy a whole directory and burn it
 to my cd-rom

 Can someone just give me a nudge to show me what I may
 be doing wrong, command or location wise.

I think they you really want to us mkisofs to create the image that you 
burn onto the CD-R. You don't see an fs on the CD that you can browse 
otherwise.

Kent


 Thanks in advance

 -Original Message-
 From: Vincent Poy [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 03, 2003 2:10 PM
 To: Mark
 Cc: [EMAIL PROTECTED]; Joshua Oreman
 Subject: Re: Ghost for FreeBSD

 On Wed, 3 Sep 2003, Mark wrote:
  - Original Message -
  From: Joshua Oreman [EMAIL PROTECTED]
  To: Mark [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Wednesday, September 03, 2003 4:08 PM
  Subject: Re: Ghost for FreeBSD
 
 cd /mnt/root
 /sbin/dump -L -f- /|restore -rf-
 cd /mnt/var
 /sbin/dump -L -f- /var|restore -rf-
 cd /mnt/usr
 /sbin/dump -L -f- /usr|restore -rf-
   
I have heard this before, but I never understand this part. :)
How does creating a /mnt/root directory, and restoring in that
directory get my / slice back? Then the restored data will just
sit in /mnt/root! What good does it there?
   
Or should I create /mnt/root as partition, about equal in size
to the
 
  root
 
   To mirror the root partition to another:
   # mkdir /mnt/root
   # mount /dev/ROOT-MIRROR-DEV /mnt/root
   # cd /mnt/root
   # /sbin/dump -f- / | restore -rf-
  
   You will not *need* to umount the root partition.
 
  Ok; what you have done is made a dump on the root mirror device;
  great!

 But

  how do I now tell FreeBSD to use that restored partition as /?
  Edit /etc/fstab to effect the change for the next boot? I have a
  nagging suspicion it will then still boot off the old / slice.
 
  - Mark

   Editing /mnt/root/etc/fstab and updating it with the new entries.
 Perhaps you can make a script so that after the dump/restore.. it'll
 copy /etc/fstab.new to /mnt/root/etc/fstab - the fstab.new file is
 basically the device names of the new device.  The next boot thing is
 easy.  If you've ever had more than one HD on the machine with OSes
 on both the first and second HD's and used FreeBSD's Boot Manager...
 The first thing FreeBSD will show is the BootManager which goes
 something like this:

 F1 FreeBSD
 F5 FreeBSD

 If you don't do anything, it will always boot with F1 which is the
 first drive.  F5 is the second drive, I don't remember the exact name
 as it varies.   So if you hit F5, it will use the /etc/fstab on the
 second drive as it will use that drive to boot up.


 Cheers,
 Vince - [EMAIL PROTECTED] - Vice President   
 __  Unix Networking Operations - FreeBSD-Real Unix for Free / / /
 / |  / |[__  ] WurldLink Corporation 
 / / / /  | /  | __] ] San Francisco - Honolulu - Hong Kong   
   / / / / / |/ / | __] ] HongKong Stars/Gravis UltraSound Mailing
 Lists Admin /_/_/_/_/|___/|_|[] [EMAIL PROTECTED] - oahu.DAL.NET
 Hawaii's DALnet IRC Network Server Admin




 ___
 [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]

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html

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


Re: Newbie - CD Burning Question

2003-09-03 Thread Matthew Hunt
On Wed, Sep 03, 2003 at 02:20:51PM -0700, Tony Pagliocco wrote:

 The command I am using is 
 
 # burncd -f /dec/acd0c data /home/www/directory fixate

Should be dev, not dec.  Is this just a typo in your email, or were
you really typing dec?  If you were, maybe that explains the error.

 What I want to do is copy a whole directory and burn it
 to my cd-rom

You can't do that directly.  You need to make an image of the CD-ROM
before you burn it; you can use mkisofs from the Ports Collection to
do this.

Basically, you can say:

# mkisofs -o image.iso /home/www/directory
# burncd -f /dev/acd0c data image.iso fixate

Note that image.iso will be approximately as large as the sum of all
the files are going onto the CD.

-- 
Matthew Hunt [EMAIL PROTECTED] * UNIX is a lever for the
http://www.pobox.com/~mph/   * intellect. -J.R. Mashey
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie - CD Burning Question

2003-09-03 Thread Todd Stephens
On Wednesday 03 September 2003 05:20 pm, Tony Pagliocco wrote:
 CD Burner is located on /dec/acd0c because it says no such file
 or directory is located.

 The command I am using is

 # burncd -f /dec/acd0c data /home/www/directory fixate

Are you typing /dev or /dec?  It should be /dev.  Also, according to
'man burncd', the files burned to data CD-Rs are assumed to be ISO9660
file systems, so I think you need to take whatever file(s) you want to
put on the cd, and use mkisofs to create a ISO image.  I've never used
burncd though, so I can't be sure on that.

--
Todd Stephens

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


Re: Newbie - CD Burning Question

2003-09-03 Thread Lowell Gilbert
Matthew Hunt [EMAIL PROTECTED] writes:

 # mkisofs -o image.iso /home/www/directory
 # burncd -f /dev/acd0c data image.iso fixate

or 
# mkisofs /home/www/directory | burncd -f /dev/acd0c data - fixate
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]