Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Dec 1999 21:38:15 +0100 (CET)
From:      Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: UFS on extended partition?
Message-ID:  <199912302038.VAA18132@dorifer.heim3.tu-clausthal.de>

next in thread | raw e-mail | index | archive | help
Mojahedul Hoque Abul Hasanat wrote in list.freebsd-questions:
 > Is it possible to create a UFS file system in a --- what is
 > called an "extended partition" in dos-speak?

Yes, it is possible.

 > In other words, I want to make a BSD "slice" out of a so called
 > extended partition.  Yes, I know I can take the free space out of
 > the DOS extended partition and create a slice on it, but I'm
 > curious.
 > 
 > Any hints/links/RTFMs appreciated.

The so-called ``logical drives in the extended DOS partition''
(yes, it's called that way) are numbered starting with 5 after
the primary partitions.

In other words:  da0s1 - da0s4 are your four primary partitions
(you cannot have more than four of them), and da0s5 is your
first logical drive in the extended DOS partition, da0s6 is the
second one, etc.  (Assuming that you have SCSI disks.  If you
have IDE disks, substitute ``wd'' or ``ad'' for ``da'', as
appropriate.)

Note that the extended stuff always starts at 5, even if you
have fewer than four primary partitions.  (Technically, there
are _always_ four primary partition entries, but some of them
may be empty / unused.)

So you can basically ``disklabel -w -r da0s5 auto'', then edit
the disklabel as appropriate, then newfs your partition(s).
Refer to ``man 8 disklabel'' and ``man newfs'' for details.

I think this is also in the FAQ / Handbook...

Regards
   Oliver

-- 
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)

"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
                                         (Terry Pratchett)


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?199912302038.VAA18132>