*BSD News Article 35503


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!tfs.com!julian
From: julian@tfs.com (Julian Elischer)
Subject: Re: Mounting DOS filesystem (HOW?)
Message-ID: <CvoMHn.EBs@tfs.com>
Organization: TRW Financial Systems, Oakland, CA
References: <34fmcmINNk2d@anvil.ugrad.cs.ubc.ca> <34g93cINNqvc@anvil.ugrad.cs.ubc.ca>
Date: Tue, 6 Sep 1994 00:24:59 GMT
Lines: 187

In article <34g93cINNqvc@anvil.ugrad.cs.ubc.ca>,
Markus Meister <h5h1@ugrad.cs.ubc.ca> wrote:
>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)
>
>
>

Newsgroups: comp.os.386bsd.questions
Subject: Re: Mounting DOS filesystem (HOW?)
Summary: 
Expires: 
References: <34fmcmINNk2d@anvil.ugrad.cs.ubc.ca> <34g93cINNqvc@anvil.ugrad.cs.ubc.ca>
Sender: 
Followup-To: 
Distribution: 
Organization: TRW Financial Systems, Oakland, CA
Keywords: 
Cc: 

In article <34g93cINNqvc@anvil.ugrad.cs.ubc.ca>,
Markus Meister <h5h1@ugrad.cs.ubc.ca> wrote:
>In article <34fmcmINNk2d@anvil.ugrad.cs.ubc.ca>,
>I wrote:
>>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)
                  ^^^^^^ exhibit A
>
>I have been asked to include part of the following information, so here it
>is:
[and now we see the reason]
>
>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
           ^^^^^ Exhibit B
>        beg: cyl 124/ sector 1/ head 0;
>        end: cyl 1008/ sector 55/ head 11

you will notice that teh BSD label and the BIOS table disagree as to where
the DOS partition is..

they need to agree.....
(change which ever wrong..(if you change the BIOS (fdisk) entry
you will need to re-create the DOS partition) if you simply move the BSD
version,