From owner-freebsd-questions@FreeBSD.ORG Fri Feb 17 13:27:10 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37C57106566B for ; Fri, 17 Feb 2012 13:27:10 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id EAF2C8FC0C for ; Fri, 17 Feb 2012 13:27:09 +0000 (UTC) Received: from r56.edvax.de (port-92-195-127-244.dynamic.qsc.de [92.195.127.244]) by mx02.qsc.de (Postfix) with ESMTP id CC5D62471A; Fri, 17 Feb 2012 14:27:08 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q1HDR7OC010605; Fri, 17 Feb 2012 14:27:08 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 17 Feb 2012 14:27:07 +0100 From: Polytropon To: Gary Kline Message-Id: <20120217142707.4da1f6a2.freebsd@edvax.de> In-Reply-To: <20120213193150.GA24425@thought.org> References: <20120213193150.GA24425@thought.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: how can i offload a 600m file without graphic tools? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 13:27:10 -0000 On Mon, 13 Feb 2012 11:32:07 -0800, Gary Kline wrote: > > w can i move a file from my home filesystem to my one disc drive > without using a GUI? i don't have a graphic interface on my FBSD > system and want to save a 600MB file to my cdrom? > > thanks for tips on what i have Long forgotten! I hope I can interpret your question correctly: You need to burn a 600 MB file to a disc (typically a CD, but could be a DVD too)? That's quite easy: CDs typically use the ISO-9660 file system which mkisofs (from ports) creates, and a program like cdrecord or cdrdao can burn it to the media. For a DVD, growisofs will do that part. Step 1: % mkisofs -r -J -o bigfile.iso bigfile where "bigfile" is the file you want to store. The flags -r and -J make sure the file system will also be properly interpreted on non-standard systems; -o specifies the output file. Step 2: % cdrecord dev=0,0,0 speed=10 -v -eject -tao -data bigfile.iso In order to know _what_ device to record to, run % camcontrol devlist Make sure you have proper permissions to access the files in /dev that are needed. If not, use "sudo" prefix or do the required parts using "su". In the "camcontrol devlist" output, available drives will be listed. Bus, taget and LUN will form the "trinity" address that will then be used in the dev= parameter. After successful burning, % rm bigfile.iso as it's not needed anymore. You can also use a piping mechanism from mkisofs to cdrecord, but I didn't want to make it that complicated. :-) In case you need to burn a DVD because the file gets bigger than 650..700 MB, only one step is needed: % growisofs -dvd-compat -Z /dev/dvd -r -J bigfile In this case, /dev/dvd is a symlink to /dev/cd0 (see "camcontrol devlist" output again, but look for the associated SCSI devices). If you already have the ISO file, use % growisofs -dvd-compat -Z /dev/dvd=bigfile.iso to record it to DVD. Note that there are other ways to store data on CDs and DVDs which are intendedly less compatible by omitting the ISO 9660 file system. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...