*BSD News Article 43320


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!news.ysu.edu!usenet.ins.cwru.edu!howland.reston.ans.net!news.sprintlink.net!nwnexus!nwnexus!deanstoy!dean
From: dean@deanstoy.wa.com (Dean M. Phillips)
Subject: Re: Mounting Dos Hard Drive under BSD
Organization: None whatsoever!
Message-ID: <D538D2.KH@deanstoy.wa.com>
References: <3jgjo0$h36@kahu.mrtc.maui.com>
Date: Tue, 7 Mar 1995 20:46:13 GMT
Lines: 40

In article <3jgjo0$h36@kahu.mrtc.maui.com> Richard Puga <puga@maui.com> writes:
>I have an Intel p-90 with 4 ide Hard drives.. I am running BSD on wd2 and use
>wd3 for storage.. I want to be able to mount my dos drives (wd0 wd1) under bsd
>but I am halving a  problem with disklabel.. can anyone help me??

You need to put a disklabel on the drive (after the MBR) so that FreeBSD
can find the partition.

Probably the easiest way to do this is to first create a protofile from
your BSD drive and then hack it up for your dos drives:

disklabel -r wd2 > protofile
emacs protofile
  Adjust cylinders, etc.  Create a single "a" partition (type MSDOS)
  which starts one track from the begining of the disk and covers
  the rest of it.  Also create a "d" partition (type unused) which
  covers the entire disk.

disklabel -R -r wd0 protofile
emacs protofile [adjust for wd1]
disklabel -R -r wd1 protofile

then you should be able to say:
mount -r -t msdos /dev/wd0a /dos0
mount -r -t msdos /dev/wd1a /dos1
(or whatever mount points you have created.)

I mount my dos partion read only because writing a dos partion with
FreeBSD is still flakey.

>I need to know how do use disklabel and how to use mount.... 

Say "man disklabel" and "man mount" for starters.  To automatically mount my
MSDOS partition I have the following entry in my /etc/fstab file:
/dev/wd0h       /dos    msdos ro 1 1
_________________________________________________________________________
Dean M. Phillips           PGP mail encouraged       dean@deanstoy.wa.com
Office: 206-294-1024        Lab: 206-662-0286          Home: 206-488-8282
8 years experience with hardware & software design of real-time, embedded
and simulation systems.  Available soon for contract/permanent work!