Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 1996 19:44:41 -0400 (EDT)
From:      rhh@ct.picker.com (Randall Hopper)
To:        kil@access.MVC.net (Kirill Ilukhin)
Cc:        questions@freebsd.org
Subject:   Re: Extended DOS partition
Message-ID:  <199609172344.TAA12086@elmer.ct.picker.com>
In-Reply-To: <199609141900.XAA09823@mpool.MVC.net> from "Kirill Ilukhin" at Sep 14, 96 11:00:09 pm

next in thread | previous in thread | raw e-mail | index | archive | help
 |  Could you tell me how to mount extended MS-DOS partition under FreeBSD 
 |2.1.0-RELEASE.

The handbook mentions the command-line method for doing this (see:

     http://www.freebsd.org/handbook/handbook19.html

but basically extended DOS partitions are mapped starting at slice 5. So,
to mount off the first extended partition of the first drive on the first
IDE controller (wd0):

     mkdir /d
     mount -t msdos /dev/wd0s5 /d

I don't these devices exist by default with a new install, so you might
have to make them.  As root:

     cd /dev
     sh MAKEDEV wd0s5
     sh MAKEDEV wd1s5

For SCSI instead of IDE, replace wd with sd.  Here are some fstab entries
that might help:

     /dev/wd0s1      /c              msdos   rw,-m777 0 0
     /dev/wd1s1      /d              msdos   rw,-m777 0 0
     /dev/wd0s5      /e              msdos   rw,-m777 0 0
     /dev/wd1s5      /f              msdos   rw,-m777 0 0

   I've never had any trouble with writing to my DOS partitions from
FreeBSD, but I understand that some folks have.  If this is a concern,
mount with the -ro option.  For the fstab entries, replace rw with ro and
change 777 to 555.

Randall Hopper
rhh@ct.picker.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609172344.TAA12086>