*BSD News Article 35459


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!cs.ubc.ca!anvil.ugrad.cs.ubc.ca!not-for-mail
From: h5h1@ugrad.cs.ubc.ca (Markus Meister)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Mounting DOS filesystem (HOW?)
Date: 5 Sep 1994 16:20:12 -0700
Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
Lines: 133
Message-ID: <34g93cINNqvc@anvil.ugrad.cs.ubc.ca>
References: <34fmcmINNk2d@anvil.ugrad.cs.ubc.ca>
NNTP-Posting-Host: anvil.ugrad.cs.ubc.ca

In article <34fmcmINNk2d@anvil.ugrad.cs.ubc.ca>,
I wrote:
>Ok, I finally got my SCSI hard drive purring on /usr, but now I want to be
>able to access my MSDOS partitions from FreeBSD. Below is the last part of
>a 'disklabel wd1'. That drive contains only the root and a swap partition of
>my FreeBSD, most of it is MSDOS. Partition 'e' used to be the same as
>it is now, except of type 4.2BSD. First I had the MSDOS partition on 'f',
>but since that didn't work, I tried it like this. But STILL, a 
>'mount -t pcfs /dev/wd1e /mnt' gives me "Invalid argument".
>Could someone tell me what I have fouled up, and also if the original 'e'
>partition (the BSD one) is necessary (it doesn't SEEM to be). Oh, and I
>did read the pcfs man page. sigh.
>
>here's the disklabel:
>
>5 partitions:
>#        size   offset    fstype   [fsize bsize   cpg]
>  a:    30360      660    4.2BSD     1024  8192    16 	# (Cyl.    1 - 46)
>  b:    68640    31020      swap                    	# (Cyl.   47 - 150)
>  c:   665940      660    unused        0     0       	# (Cyl.    1 - 1009)
>  d:   666600        0    unused        0     0       	# (Cyl.    0 - 1009)
>  e:   566940    99660     MSDOS                    	# (Cyl.  151 - 1009)

I have been asked to include part of the following information, so here it
is:

root% fdisk /dev/wd1d
******* Working on device /dev/wd1d *******
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 81840, size 584100 (285 Meg), flag 0
        beg: cyl 124/ sector 1/ head 0;
        end: cyl 1008/ 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 660, size 81180 (39 Meg), flag 80
        beg: cyl 1/ sector 1/ head 0;
        end: cyl 123/ sector 55/ head 11
root% disklabel wd1
# /dev/rwd1d:
type: ST506
disk: mfr_model
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      660    4.2BSD     1024  8192    16   # (Cyl.    1 - 46)
  b:    68640    31020      swap                        # (Cyl.   47 - 150)
  c:   665940      660    unused        0     0         # (Cyl.    1 - 1009)
  d:   666600        0    unused        0     0         # (Cyl.    0 - 1009)
  e:   566940    99660     MSDOS                        # (Cyl.  151 - 1009)
root% fdisk /dev/sd0d
******* Working on device /dev/sd0d *******
parameters extracted from in-core disklabel are:
cylinders=3053 heads=8 sectors/track=111 (888 blks/cyl)

 Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3053 heads=8 sectors/track=111 (888 blks/cyl)

Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
<UNUSED>
The data for partition 1 is:
<UNUSED>
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
sysid 165,(386BSD)
    start 0, size 50000 (24 Meg), flag 80
        beg: cyl 0/ sector 1/ head 0;
        end: cyl 1023/ sector 63/ head 255
root% disklabel sd0
# /dev/rsd0d:
type: SCSI
disk: quantum1400s
label: bootscsi
flags:
bytes/sector: 512
sectors/track: 111
tracks/cylinder: 8
sectors/cylinder: 888
cylinders: 3053
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:    30192        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 33)
  b:    68376    30192      swap                        # (Cyl.   34 - 110)
  c:  2711064        0    unused        0     0         # (Cyl.    0 - 3052)
  d:  2711064        0    unused        0     0         # (Cyl.    0 - 3052)
  e:  2612496    98568    4.2BSD     1024  8192    16   # (Cyl.  111 - 3052)