Mounting BSD-labeled slices in Linux
Mounting BSD-labeled slices in Linux
am 20.04.2004 12:37:02 von erif
Hi,
I've got a computer multibooting Slackware 9.1 (Linux 2.4.24), FreeBSD and
DragonFly.
What I want to do is to mount one or two of my FreeBSD/DragonFly-slices in
Slackware.
/dev/hda1 corresponds to FreeBSDs /dev/ad0s1.
What does Linux call, for example, /dev/ad0s1a?
--
Fredrik Eriksson
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: Mounting BSD-labeled slices in Linux
am 20.04.2004 13:43:21 von sos22
--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
> /dev/hda1 corresponds to FreeBSDs /dev/ad0s1.
> What does Linux call, for example, /dev/ad0s1a?
Usually, Linux just shoves stuff in BSD-style slice tables on the end
of the partition table. In my case, ad0s4a is hda11, ad0s4b hda12,
and so on.
For recent 2.4 kernels, dmesg should have a line of the form:
p4:
just after the mundane partition check, which should make it fairly
obvious.
Steven Smith.
--1yeeQ81UyVL57Vl7
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAhQzZO4S8/gLNrjcRAv29AJ40EEcWThRWowOQao3F3hx80pRGjwCg k173
IaQ89BG9KbDS17IiTotBB3c=
=difY
-----END PGP SIGNATURE-----
--1yeeQ81UyVL57Vl7--
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: Mounting BSD-labeled slices in Linux
am 20.04.2004 14:13:11 von erif
On Tue, Apr 20, 2004 at 12:43:21PM +0100, Steven Smith wrote:
> > /dev/hda1 corresponds to FreeBSDs /dev/ad0s1.
> > What does Linux call, for example, /dev/ad0s1a?
>
> Usually, Linux just shoves stuff in BSD-style slice tables on the end
> of the partition table. In my case, ad0s4a is hda11, ad0s4b hda12,
> and so on.
>
> For recent 2.4 kernels, dmesg should have a line of the form:
>
> p4:
Thanks!
Yes, this is the FreeBSD-slice
hda1:
and this is the DragonFly-slice
hda2:
...strange numbering, shouldn't it look like this?
hda2:
One thing I found particularly interesting is that _both_ /dev/hda2 and
/dev/hda14 seem to represent /dev/ad0s2a, and I can even mount them both at
the same time!
=/
--
Fredrik Eriksson
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: Mounting BSD-labeled slices in Linux
am 20.04.2004 14:40:22 von sos22
--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
> > > /dev/hda1 corresponds to FreeBSDs /dev/ad0s1.
> > > What does Linux call, for example, /dev/ad0s1a?
> > For recent 2.4 kernels, dmesg should have a line of the form:
> >=20
> > p4:
> hda1:
> =20
> and this is the DragonFly-slice
>=20
> hda2:
>=20
> ..strange numbering, shouldn't it look like this?
> hda2:
Nope. The algorithm Linux uses for reading partition tables etc. is
roughly as follows (from memory):
counter =3D 0
unexamined_partitions =3D {entire_disk}
while there are unexamined partitions:
Pick a partition from the unexamined partitions set
Assign that partition the number currently in counter
Look at the partition, and, if it contains any sub-partitions,
put those in the set of unexamined partitions
increment counter
What you've seen isn't entirely inconsistent with that, if you have
five logical partitions under the primary for hda4.
> One thing I found particularly interesting is that _both_ /dev/hda2 and
> /dev/hda14 seem to represent /dev/ad0s2a, and I can even mount them both =
at
> the same time!
This strikes me as an incredibly bad idea. Definitely don't mount
hda2 read/write. :)
Steven.
--FCuugMFkClbJLl1L
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAhRo2O4S8/gLNrjcRAkaOAKCv/2ZLTcIpgopQ8HgCqBX7UJYc6gCg vw+x
qebHScqBBNedGwebCgs7cQI=
=T9QD
-----END PGP SIGNATURE-----
--FCuugMFkClbJLl1L--
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: Mounting BSD-labeled slices in Linux
am 20.04.2004 15:05:02 von erif
On Tue, Apr 20, 2004 at 01:40:22PM +0100, Steven Smith wrote:
> What you've seen isn't entirely inconsistent with that, if you have
> five logical partitions under the primary for hda4.
Ah.. Yes, I do. =)
> > One thing I found particularly interesting is that _both_ /dev/hda2 and
> > /dev/hda14 seem to represent /dev/ad0s2a, and I can even mount them both at
> > the same time!
> This strikes me as an incredibly bad idea. Definitely don't mount
> hda2 read/write. :)
Just out of curiosity, I mounted /dev/hda1 too. =)
Shouldn't something prevent me from doing this, or at least warn me?
--
Fredrik Eriksson
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: Mounting BSD-labeled slices in Linux
am 20.04.2004 20:10:21 von jtwilliams
Generally speaking, linux relies on its users to not do things unless
they know what they are doing. If you don't believe me try logging in
as root and typing "rm -rf /usr".(in case you don't know, that will
foobar your system and likely force you to re-install from the
beginning)
On Tue, 2004-04-20 at 09:05, erif wrote:
> On Tue, Apr 20, 2004 at 01:40:22PM +0100, Steven Smith wrote:
> > What you've seen isn't entirely inconsistent with that, if you have
> > five logical partitions under the primary for hda4.
>
> Ah.. Yes, I do. =)
>
>
> > > One thing I found particularly interesting is that _both_ /dev/hda2 and
> > > /dev/hda14 seem to represent /dev/ad0s2a, and I can even mount them both at
> > > the same time!
> > This strikes me as an incredibly bad idea. Definitely don't mount
> > hda2 read/write. :)
>
> Just out of curiosity, I mounted /dev/hda1 too. =)
> Shouldn't something prevent me from doing this, or at least warn me?
>
> --
> Fredrik Eriksson
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: Mounting BSD-labeled slices in Linux
am 20.04.2004 21:11:41 von erif
On Tue, Apr 20, 2004 at 02:10:21PM -0400, John T. Williams wrote:
> Generally speaking, linux relies on its users to not do things unless
> they know what they are doing. If you don't believe me try logging in
> as root and typing "rm -rf /usr".(in case you don't know, that will
> foobar your system and likely force you to re-install from the
> beginning)
I'm a linux-newbie, not a unix-newbie. =)
But I still consider it strange to be able to mount "the same device"
(practically) to two different mount points.
Even though you are an experienced user/administrator, shit still happens.
This is probably a flavour-thingy, it is not permitted i FreeBSD.
--
Fredrik Eriksson
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: Mounting BSD-labeled slices in Linux
am 20.04.2004 21:18:32 von sos22
--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
> > > One thing I found particularly interesting is that _both_ /dev/hda2 and
> > > /dev/hda14 seem to represent /dev/ad0s2a, and I can even mount them both at
> > > the same time!
> > This strikes me as an incredibly bad idea. Definitely don't mount
> > hda2 read/write. :)
> Just out of curiosity, I mounted /dev/hda1 too. =)
> Shouldn't something prevent me from doing this, or at least warn me?
You can certainly make a real argument that it's a bug, but if you
make sure that both mounts are read-only it's potentially useful when
combined with a bunch of chroots.
Only potentially, though.
Steven.
--sdtB3X0nJg68CQEu
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAhXeIO4S8/gLNrjcRAqh7AJ41RZvXZCoQdHSirIy2Hajb2i+u8gCg mc25
kQlqbY1oQPtlxnvmm3l6Dmw=
=GW5B
-----END PGP SIGNATURE-----
--sdtB3X0nJg68CQEu--
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs