*BSD News Article 34719


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:12573 comp.os.386bsd.misc:3353
Newsgroups: comp.os.386bsd.questions,comp.os.386bsd.misc
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!ihnp4.ucsd.edu!news.cerf.net!mvb.saic.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!agate!tfs.com!julian
From: julian@tfs.com (Julian Elischer)
Subject: Re: FreeBSD 1.1.5.1: Can't mount PCFS filesystem
Message-ID: <Cup4Hn.10o@tfs.com>
Keywords: pcfs mount dos filesystem
Organization: TRW Financial Systems, Oakland, CA
References: <32s973$d6k@mercury.mcs.com>
Date: Wed, 17 Aug 1994 20:20:11 GMT
Lines: 83

In article <32s973$d6k@mercury.mcs.com>,
Michael Borowiec <mikebo@MCS.COM> wrote:
>I have a 486DX50 running FreeBSD 1.1.5.1. The system is configured with
>an AHA1542B and two SCSI disk drives. When I want to run UNIX, I change
>the internal (DOS) drive to SCSI ID 1, power up the external (UNIX) disk
>as SCSI ID 0, and boot UNIX. When I want to run MS-DOS, I change the
>internal drive to SCSI ID 0, power off the UNIX disk and boot up DOS.
>Works GREAT! Now...

boy do YOU do things the hard way...

>
>When I'm running FreeBSD, I want to mount the DOS partition from SCSI
>ID 1 (/dev/sd1?) but this doesn't work. The man page on mount-pcfs seems
>to imply that this will not work unless there is a FreeBSD label on the
>disk and the DOS partition is SHARING the same disk with UNIX! Why not?!

You can make your system boot from the OS of your choice, and
fix this problem, both at the same time..


DOS will have left the first 31 sectors after the MBR (2-32) unused.
this is easily enough room for a dummy FreeBSD partition..
install it using FreeBSD's fdisk.

throw one on there and disklabel it with a disklabel that 
has 1 partition, just 31 sectors long. for FreeBSD.
(actually make a and c the same..)
and one partition covering the DOS partition. (this will be what you
mount from unix)


Then install os-bs.

when you select unix, you will get the unix boot prompt..
answer sd(1,a)386bsd to tell it to make dsk1 your root.
(the default is sd0, which will fail.)

alternatively install booteasy or OSBS 2.0
which allow you to select dsk1 as an initial boot option.

when you get tired of typing sd(1,a)386bsd, recompile the bootblocks
to use a default of 1 (test your code reading skills) rather than 0.



alter the bootblocks in /usr/mdec to boot by default from disk 1 rather than 0,

>
>Note that trying to mount /dev/sd1d yields a different error message
>than /dev/sd1[abc].  Perhaps 'd' indicates DOS partition's position
>in the DOS partition table?
no, d is a special partition that indicates teh whole drive..
as there is no disklabel defining partitions, 'd' is the
only partition that 'exists'.

>
>I think using seperate disks for DOS and UNIX is a MUCH better solution
>than sharing, and is wonderfully easy using SCSI. Above all, I want to
>avoid trashing my DOS partition (which I have done many times playing
>with various PC UNICES). This scenario seems to have been ignored.
>
>Now that I have loaded up my DOS disk, is there a work around or a fix
>available? I don't believe I can re-label my DOS disk without trashing
>the DOS partition.

yes you can.. as explained above, DOS isn't using sectors 1,2,3,4,5....31

>
>I believe BSD386 from Berkeley Software Design got this right...

we're working on a differnt solution but it's not real high priority.

>what gives?
>- Mike
>-- 
>--------------------------------------------------------------------------
>Michael Borowiec			All tied to their things,
>mikebo@MCS.COM				they are netted by the strings...
>					Free to flutter, in memory of
>					their wasted wings...  P.Gabriel