From owner-freebsd-questions Thu Feb 19 11:41:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA10693 for freebsd-questions-outgoing; Thu, 19 Feb 1998 11:41:52 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from arl-img-1.compuserve.com (arl-img-1.compuserve.com [149.174.217.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA10685 for ; Thu, 19 Feb 1998 11:41:45 -0800 (PST) (envelope-from Malcolm_Boff@compuserve.com) Received: (from mailgate@localhost) by arl-img-1.compuserve.com (8.8.6/8.8.6/2.10) id OAA28621; Thu, 19 Feb 1998 14:40:37 -0500 (EST) Date: Thu, 19 Feb 1998 14:39:15 -0500 From: MALCOLM BOFF Subject: RE : Copying DOS files to UNIX To: freebsd-questions Cc: mlt Message-ID: <199802191439_MC2-33F2-A6A6@compuserve.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id LAA10686 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Date: Tue, 17 Feb 1998 20:22:56 -0800 (PST) > From: Mark Turrin > Subject: Re: Copying UNIX files from a dos partition > On Tue, 17 Feb 1998, Cary Marshall wrote: >> How can I copy UNIX files from a dos partition to a UNIX partition? >> >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-questions" in the body of the message > Unless there is a trick I don't know about this is not possible. You > either boot up in dos or FreeBSD but you can't read across partitions. Well it depends upon whether or not the dos partition is a primary partition or an extended partition. For a primary partition (ie C:) just mount it as an msdos file system then you can quite merrily use 'cp' to copy either way of course the file naming conventions for MSDOS apply if you go from UNIX to MSDOS. To mount the DOS partition you need a mountpoint (I created a directory /dos) then issue the following command :- mount -t msdos /dev/sd0s1 /dos The above is s SCSI drive so change the device to whatever yours is. If you need the facility on a fairly regular basis then add the following to the file '/etc/fstab' and it will be done automatically when you boot up. #Device Mountpoint FStype Options Dump Pass# /dev/sd0s1 /dos msdos rw 0 0 Malcolm G. Boff Sylmex Ltd. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message