Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Apr 1998 19:43:36 -0400
From:      Sergei Shayevich <serega@bigfoot.com>
To:        Doug White <dwhite@resnet.uoregon.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: DOS partition Assignments
Message-ID:  <353697A7.6881C9ED@bigfoot.com>
References:  <Pine.BSF.3.96.980416161437.7393N-100000@gdi.uoregon.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug White wrote:

> On Thu, 16 Apr 1998, Sergei Shayevich wrote:
>
> > Here's the scoop:
> > I have 3 physical hard drives + CD-Rom (all IDE) on a P-100 with 128Mb
> > of RAM.  1st physical device (850Mb in size) is partitioned in two. 50Mb
> > DOS partition (drive "C") and the rest is dedicated to FreeBSD 2.1.0 2nd
> > physical device (1.2G in size), is also partitioned in two. Drives "D"
> > and "F". Win95 (FAT 16) resides on drive "D", and as far as "F"  goes,
> > it's a 160Mb DOS partition that was created for FreeBSD install from
> > there.  3rd physical device (2G in size), drive "E" as you may have
> > guessed has WinNT4.0 on it. (FAT16)
>
> OK, I guess .... I hate using drive letters since they don't tell you
> anything about the layout of the disks.

I agree, but it's hard to break the habbit ...

>
>
> > The latter was added to the machine last, and win95 along with NT
> > chooses this strange drive letter assignments which I learned to live
> > with.  Now, here's the problem: before the 2Gig drive was added, the
> > current "F"  drive used to be "E". So in accordance with that the
> > /etc/fstab file on my machine remained unchanged and looks like this
> >
> > /dev/wd0s2b        none        swap         sw 0 0
> > /dev/wd0a          /           ufs          rw 1 1
> > /dev/wd0s1         /dos/C      msdos        rw 0 0
> > /dev/wd1s2         /dos/E      msdos        rw 0 0
> > /dev/wd0s2e        /usr        ufs          rw 1 1
> > proc               /proc       procfs       rw 0 0
>
> OK.
>
> > I would like to have the drives mounted with the consistancy to that of
> > Win95 and NT. Displaying partition "D" I am not worried about at this
> > point, but I would like to have /dos/E become /dos/F. I've learned that
> > simply changing the letter in the fstab file won't work. On boot the
> > machine panics, runs fsck or asks me to run it, and throws me into
> > single user mode.
>
> With what error?  Of course, the directory /dos/F/ must exist before this
> will work.

Dammit! That was stupid of me! I forgot to create /dos/F. Well it works now.
It sees wd1 as /dos/F.Thank you.

> > I thought that even if I were to let them be swapped but could see the
> > 2Gig drive, it would be better than  not having the 2Gig drive visible
> > at all. So I tried mounting it as "F", but doing "mount -t msdos
> > /dev/wd2s1 /dos/F" comes back with the message of device not being
> > configured.
>
> Hm, either you can't see wd2 or the first slice on wd2 doesn't have
> anything.  Run `fdisk wd2' and figure out where the dos slice you're
> trying to mount is.
>
> fdisk output from all the drives would be handy...

Ok, below are the fdisk outputs for all 3 Hard Drives.

******* Working on device /dev/rwd0 *******
parameters extracted from in-core disklabel are:
cylinders=826 heads=32 sectors/track=63 (2016 blks/cyl)
parameters to be used for BIOS calculations are:
cylinders=826 heads=32 sectors/track=63 (2016 blks/cyl)
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
sysid 4,(Primary DOS with 16 bit FAT)
    start 63, size 42273 (20 Meg), flag 80
 beg: cyl 0/ sector 1/ head 1;
 end: cyl 20/ sector 63/ head 31
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 42336, size 1622880 (792 Meg), flag 0
 beg: cyl 21/ sector 1/ head 0;
 end: cyl 825/ sector 63/ head 31
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>

******* Working on device /dev/rwd1 *******
parameters extracted from in-core disklabel are:
cylinders=621 heads=64 sectors/track=63 (4032 blks/cyl)
parameters to be used for BIOS calculations are:
cylinders=621 heads=64 sectors/track=63 (4032 blks/cyl)
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
sysid 6,(Primary 'big' DOS (> 32MB))
    start 63, size 2169153 (1059 Meg), flag 0
 beg: cyl 0/ sector 1/ head 1;
 end: cyl 537/ sector 63/ head 63
The data for partition 1 is:
sysid 6,(Primary 'big' DOS (> 32MB))
    start 2169216, size 330624 (161 Meg), flag 0
 beg: cyl 538/ sector 1/ head 0;
 end: cyl 619/ sector 63/ head 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>

And as far as the 3rd HD goes, fdisk says "Cannot open disk /dev/rwd2 (Device
not configured)
Seems like BSD is not aware of that HD at all

Sergei


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?353697A7.6881C9ED>