Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 1998 21:15:38 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Insane1330@aol.com, freebsd-questions@FreeBSD.ORG
Subject:   Re: Help with FreeBSD!
Message-ID:  <19980910211538.A3198@scientia.demon.co.uk>
In-Reply-To: <1e629068.35f72279@aol.com>
References:  <1e629068.35f72279@aol.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980910211538.A3198>