copy file to cd-rw
Michael C. Shultz
reso3w83 at verizon.net
Sun Jan 9 11:13:04 PST 2005
On Sunday 09 January 2005 10:45 am, Michael C. Shultz wrote:
> On Sunday 09 January 2005 08:28 am, mess-mate wrote:
> > I've readed .
> > But sorry if i insist, the file to save is very-very important for
> > me. This file contains the openoffice data of my work.
> > So, i can't do any mistake and have no experience with 'cat',
> > 'split' or 'mkisofs'.
> >
> > His name is 'home.tar.bz2' !! and is 2.4GB long.
> > I've to find a way to save that file anywhere and must be accessed
> > by my FBSD 5.3 as by another linux disk.
> > To do that i've created a second partition /dev/hda4 with a ext3 fs
> > can be accessed by my FBSD as by the linux disk.
> >
> > I can cp this file from that ext3 partition to FBSD but after
> > changed and retarred/bzip2 My FBSD won't cp it to that partition "
> > File too large".
> >
> > I can of course split that file, in this case it must be possible
> > to join the resulting files from FBSD as by linux.
> >
> > I don't know if linux can join these files, splitted by FBSD, with
> > a 'cat'.
> >
> > Anybody can help me with this issue ?
> >
> > Thanks in advance for your time.
> > mess-mate
>
> Here is my advice:
> install archivers/rar
> and archivers/par2cmdline
> The following script will split your file into 25meg chunks,
> build a cd_9660 iso of them and provide a way to recover damaged
> files just in case, later on.
>
> assuming you file name is:
> home.tar.bz2
> then run the following script as:
>
> ./backup.sh home.tar {don't add the .bz2}
>
> #!/bin/sh
> if test $1
> then
> echo "mkdir $1; cd $1; rar a -s -m5 -v25m $1.rar ../$1.bz2"
> mkdir $1; cd $1; rar a -s -m5 -v25m $1.rar ../$1.bz2"
>
> echo "cd $1;par2 c -r15 -u $1 $1.part*.rar"
> cd $1;par2 c -r15 -u $1 $1.part*.rar
>
> echo "verifing archive"
> par2verify $1/$1.par2
>
> echo "mkisofs -JR -o $1.iso"
> mkisofs -JR -o $1.iso $1
> else
> echo "command line syntax is \"backup.sh {bz2 file name to back
> up}\"" fi
>
> Note: this script is not tested so it may need a little tweaking, it
> would also be improved if it could abort if the "par2verify
> $1/$1.par2" step fails but I don't know enough about scripting to do
> that, does anyone else?
>
> -Mike
You probably should get rid of the "mkisofs -JR -o $1.iso $1" line
because it will be too big. If you will be burning to CD-Rs then make
(2400/700=4) 4 sperate directories and divide all of the files in
/home.tar equally amongst them then run something like:
mkisofs -JR -o home.tar.1.iso home.tar-1
mkisofs -JR -o home.tar.2.iso home.tar-2
mkisofs -JR -o home.tar.3.iso home.tar-3
mkisofs -JR -o home.tar.4.iso home.tar-4
on each directory.
-Mike
More information about the freebsd-questions
mailing list