Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2012 07:36:08 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        Polytropon <freebsd@edvax.de>
Cc:        Fritiof Hedman <mail@fritiofhedman.se>, freebsd-questions@FreeBSD.org
Subject:   Re: Can't find kernel, finds slices but no files on them
Message-ID:  <505AB958.4060008@FreeBSD.org>
In-Reply-To: <20120920005903.5ef60f5a.freebsd@edvax.de>
References:  <CADU7ddyWdf-hvOh2URtu0zuFc=9SzQbyZpJy6iH67n6K_HDDFw@mail.gmail.com> <20120919233709.f5b56213.freebsd@edvax.de> <CADU7ddwG-784zwnHBuX0wFrMnpXc=XnYX3tYWQcqo5wjHj7HWg@mail.gmail.com> <20120920005903.5ef60f5a.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig713A87EA11FF884274F2BDD5
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 19/09/2012 23:59, Polytropon wrote:
> The terminology is simple and as follows:
>=20
> A disk is a disk, e. g. /dev/ad0.
>=20
> A slice is a "DOS primary partition" on the disk, e. g. /dev/ad0s1.
>=20
> A partition is a subdivision of a slice, e. g. /dev/ad0s1a.
>=20
> Partitions can be used without a slice that encloses them,
> e. g. /dev/ad0a; this is called "dedicated mode" (because
> some obscure operating systems may have problems accessing
> something they cannot even understand).
>=20
> Tools like dump and restore operate on partitions.
>=20
> Tools like dd operate on everything.

What Polytropon says is perfectly correct, and accurate for setups using
MBR, fdisk(8) and bsdlabel(8).  However nowadays, the move is towards
using gpart(8) and the terminology is different there.  It looks like thi=
s:

% gpart show -p da0
=3D>       34  134217661    da0  GPT  (64G)
         34        128  da0p1  freebsd-boot  (64k)
        162    4194304  da0p2  freebsd-swap  (2.0G)
    4194466  130023229  da0p3  freebsd-zfs  (62G)

'da0' is the disk -- this is from a VM emulating a SAS controller, hence
'da' as the disk device.  That's not gpart specific, and you'll also
commonly see 'ad' or 'ada' for disk devices, plus some others specific
to certain hardware RAID controllers.

The disk has three partitions: da0p1, p2 and p3 of the indicated types.
There's also a freebsd-ufs type for those that don't want ZFS.

That's really all there is to it for all practical purposes.  There's no
need for 'partitions inside slices' or 'logical partitions' or any of
that malarkey.  I believe you could create partitions inside partitions
recursively to your heart's content but never cared enough to try that
out -- I think the device names would come out like 'da0p3p1' but I
could be wrong.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



--------------enig713A87EA11FF884274F2BDD5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBauWEACgkQ8Mjk52CukIwE1gCeK7FVANDx5nlby/7LIosAd3JO
cQkAoI2CY6GaefG9q3cZQ+OX9nDeD36r
=i2Mb
-----END PGP SIGNATURE-----

--------------enig713A87EA11FF884274F2BDD5--



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