Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 1999 08:54:47 +0000
From:      Mark Ovens <marko@uk.radan.com>
To:        Michael Cugley <michael.cugley@virgin.net>
Cc:        questions@freebsd.org
Subject:   Re: Accessing MSDOS partitions
Message-ID:  <36CA83D6.9B6FD39C@uk.radan.com>
References:  <3.0.5.32.19990216103911.007bde50@mail.virgin.net> <3.0.5.32.19990217080917.00800910@mail.virgin.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Cugley wrote:
> 
> At 11:14 AM 2/16/99 +0000, you wrote:
> >Michael Cugley wrote:
> >Are E: and F: primary partitions or logical drives in an extended
> >partition? If they are in an extended partition then the numbering
> >starts at 5, i.e. E: will be wd1s5 and F: wd1s6, else if they are
> >primary partitions they will be wd1s1 and wd1s2 (change ``wd'' to
> >``sd'' if it is a SCSI disk).
> 
> Um, I have no idea what either of those are.  How would I tell which I
> have?  What are the differences between them?
> 

Basically logical drives/extended partitions are a kludge. You can
only have a maximum of 4 partitions per disk on a PC and in
DOS/Windows only one partition can be active, i.e. if you split a disk
into 3 partitions (C:, D:, and E:), all primary, and boot DOS from C:
you will not be able to 'see' D: and E:. However, if you make a
primary partition (C:) and the rest of the disk an extended partition,
create D: and E: as logical drives (effectively 'virtual partitions')
in the extended partition then DOS can see them.

> I do know that when I try and mount wd1s1 and wd1s2, mount_msdos gives me
> an error along the lines of "invalid argument".

This suggests that either /dev/wd1s1 and /dev/wd1s2 don't exist and/or
the mountpoint(s) you specified don't exist.

> I didn't have a wd1s5 or
> wd1s6, so I MAKEDEV'ed them, and tried to mount them, at which point I was
> told "device not configured".
> 

This looks like D: and E: _aren't_ in an extended partition. 'Device
not configured' means that the physical device doesn't exist (this is
not the same as the device node, /dev/wdxxxx, not existing). You get
the same error if you try to mount a CD with no disk in the drive.

Try ``mount -t msdos /dev/wd1s1 /mnt'', making sure that both
/dev/wd1s1 and /mnt exist.

What is the device name of the partition that FreeBSD is installed on
(e.g. wd2s1 etc)?. This is will clarify the order that FreeBSD numbers
multiple disks as I'm not sure.


> --
>                         Mike Cugley, lunatic at large
> 
> http://freespace.virgin.net/michael.cugley/
> http://freespace.virgin.net/michael.cugley/Art/
> Mike's Doom Quake - http://www.crosswinds.net/dundee/~korvar/

-- 
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://www.users.globalnet.co.uk/~markov
_______________________________________________________________
Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK
CAD/CAM solutions for Sheetmetal Working Industry
mailto:marko@uk.radan.com                  http://www.radan.com


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?36CA83D6.9B6FD39C>