From owner-freebsd-questions Thu Sep 10 13:16:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA15129 for freebsd-questions-outgoing; Thu, 10 Sep 1998 13:16:11 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA15002 for ; Thu, 10 Sep 1998 13:16:04 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.02 #1) id 0zHD7z-00016p-00; Thu, 10 Sep 1998 21:15:39 +0100 Date: Thu, 10 Sep 1998 21:15:38 +0100 From: Ben Smithurst To: Insane1330@aol.com, freebsd-questions@FreeBSD.ORG Subject: Re: Help with FreeBSD! Message-ID: <19980910211538.A3198@scientia.demon.co.uk> References: <1e629068.35f72279@aol.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1e629068.35f72279@aol.com> User-Agent: Mutt/0.94.3i (FreeBSD 3.0-CURRENT i386) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Insane1330@aol.com wrote: > Hi. My name is Justin Kibler. I need help with unzipping .tgz's! I > have downloaded the bin,cmpat1x,games, and manpages so far....for > 2.2.6. And i also downloaded ports.tgz to my DOS partition. I need > help installing the ports. First of all....i cant unzip them... tar xfzv foo.tgz > i dont know how to access my DOS partition from BSD. I was told to > mount it with "mount -t msdos /dev/wd0 /dos" but that didnt work. ``Didn't work'' isn't very helpful. Giving specific error messages you saw may help others to diagnose the problem. > I also need help formatting a disk so I can use it with FreeBSD. I > have messed around with newfs alot...but cant do anything yet. I use: $ fdformat fd0 $ disklabel -B -r -w fd0 fd1440 $ newfs -t 2 -u 18 -l 1 -i 65536 fd0 There may be other better ways, but that works. Those are taken from /etc/disktab, read that more more options when formatting a floppy. > I need to know how to Copy and Get files from a BSD formatted disk..and > how to format it! Formatting it: see above. Copying files to it, well you need to mount it first. If it's a FreeBSD formatted disk, $ mount /dev/fd0 /floppy or, for a DOS disk, $ mount -t msdos /dev/fd0 /floppy You can also place entries in /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/fd0 /floppy ufs rw,noauto 0 0 /dev/fd0 /dos/a msdos rw,noauto 0 0 So you can type ``mount /floppy'' to mount a FreeBSD floppy, and ``mount /dos/a'' to mount a DOS one. (At least I assume there's no problem having two entries for the same device in fstab? Anyone?) Once it's mounted, just copy files to it like it was a normal filesystem, which in fact, it is. eg, $ cp /usr/foo/bar /floppy/bar -- Ben Smithurst : ben@scientia.demon.co.uk : http://www.scientia.demon.co.uk/ PGP: 0x99392F7D - 3D 89 87 42 CE CA 93 4C 68 32 0E D5 36 05 3D 16 http://www.scientia.demon.co.uk/ben/pgp-key.html (or use keyservers) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message