From owner-freebsd-questions@FreeBSD.ORG Sun Jan 9 18:48:42 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51D7016A4CE for ; Sun, 9 Jan 2005 18:48:42 +0000 (GMT) Received: from out014.verizon.net (out014pub.verizon.net [206.46.170.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8EEB43D4C for ; Sun, 9 Jan 2005 18:48:41 +0000 (GMT) (envelope-from reso3w83@verizon.net) Received: from ringworm.mechee.com ([4.26.84.7]) by out014.verizon.net ESMTP <20050109184841.FMBB28388.out014.verizon.net@ringworm.mechee.com>; Sun, 9 Jan 2005 12:48:41 -0600 Received: by ringworm.mechee.com (Postfix, from userid 1001) id A850B2CE742; Sun, 9 Jan 2005 10:45:25 -0800 (PST) From: "Michael C. Shultz" To: freebsd-questions@freebsd.org Date: Sun, 9 Jan 2005 10:45:23 -0800 User-Agent: KMail/1.7.2 References: <20050109164501.0b0d4a3d@eric.placeverte.home> <8cb27cbf0501090909634fdabe@mail.gmail.com> <20050109172826.52b93228@eric.placeverte.home> In-Reply-To: <20050109172826.52b93228@eric.placeverte.home> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501091045.24843.reso3w83@verizon.net> X-Authentication-Info: Submitted using SMTP AUTH at out014.verizon.net from [4.26.84.7] at Sun, 9 Jan 2005 12:48:41 -0600 cc: mess-mate Subject: Re: copy file to cd-rw X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 18:48:42 -0000 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