*BSD News Article 37220


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!caen!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!cs.ubc.ca!bowen.ugrad.cs.ubc.ca!not-for-mail
From: h5h1@ugrad.cs.ubc.ca (Markus Meister)
Newsgroups: comp.os.386bsd.questions
Subject: Need help with pcfs..
Date: 27 Oct 1994 18:36:28 -0700
Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
Lines: 89
Message-ID: <38pkisINN6li@bowen.ugrad.cs.ubc.ca>
NNTP-Posting-Host: bowen.ugrad.cs.ubc.ca

Hi everyone. First the problem: I want to use a DOS filesystem under my
FreeBSD 1.5.1.1. I have two IDE drives, the first of which has just DOS,
while the second has mostly DOS and my FreeBSD root partition and a swap
partition. I also have a SCSI drive that has another swap partition and
/usr. I hope that (and the below) is sufficient information. I tried to
change the disklabel on the second IDE drive so I can mount it as a 
pcfs filesystem and access the DOS partition. I plan to do the same with
my first IDE drive once I get it working with the second. Below is the
appropriate entry from /etc/disktab. the output from 'disklabel' and the
output from 'fdisk'. It looks fine to me but it can't be since when I
try to mount it with:
mount -t pcfs /dev/wd1e /mnt
then FreeBSD crashes. It tells me something about an integer divide fault
I believe, and then proceeds to dump to 'device 9' at such-and-such a
location (I don't even know what exactly it does when it does that). And then
it reboots. I would appreciate it if someone could take a look at the
stuff below and let me know where I'm screwing up..

- Markus

root% tail /etc/disktab

caviar_340_meg|FreeBSD installation generated:\
        :dt=ST506:ty=winchester:\
        :nc#1010:ns#55:nt#12:\
        :se#512:\
        :pa#30360:oa#543840:ta=4.2BSD:ba#8192:fa#1024:\
        :pb#92400:ob#574200:tb=swap:\
        :pc#122760:oc#543840:\
        :pd#666600:od#0:\
        :pe#543180:oe#660:te=MSDOS:
root% disklabel wd1
# /dev/rwd1d:
type: ST506
disk: caviar_340_meg
label: 
flags:
bytes/sector: 512
sectors/track: 55
tracks/cylinder: 12
sectors/cylinder: 660
cylinders: 1010
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

5 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    30360   543840    4.2BSD     1024  8192    16   # (Cyl.  824 - 869)
  b:    92400   574200      swap                        # (Cyl.  870 - 1009)
  c:   122760   543840    unused        0     0         # (Cyl.  824 - 1009)
  d:   666600        0    unused        0     0         # (Cyl.    0 - 1009)
  e:   543180      660     MSDOS                        # (Cyl.    1 - 823)
root% fdisk /dev/rwd1d
******* Working on device /dev/rwd1d *******
parameters extracted from in-core disklabel are:
cylinders=1010 heads=12 sectors/track=55 (660 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=1010 heads=12 sectors/track=55 (660 blks/cyl)

Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
sysid 5,(Extended DOS)
    start 660, size 543180 (265 Meg), flag 0
        beg: cyl 1/ sector 1/ head 0;
        end: cyl 823/ sector 55/ head 11
The data for partition 1 is:
sysid 0,(unused)
    start 0, size 0 (0 Meg), flag 0
        beg: cyl 0/ sector 1/ head 0;
        end: cyl 0/ sector 0/ head 0
The data for partition 2 is:
sysid 0,(unused)
    start 0, size 0 (0 Meg), flag 0
        beg: cyl 0/ sector 1/ head 0;
        end: cyl 0/ sector 0/ head 0
The data for partition 3 is:
sysid 165,(386BSD)
    start 543840, size 122760 (59 Meg), flag 80
        beg: cyl 824/ sector 1/ head 0;
        end: cyl 1009/ sector 55/ head 11