[aklug] loop devices with partitions...?

From: Christopher Howard <choward@indicium.us>
Date: Wed Sep 08 2010 - 21:14:32 AKDT

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey, I recently learned you could represent an image file with a loop
device, which is pretty cool. So, you can create, say, /dev/loop0, and
then turn it into a file system with mkfs.xfs /dev/loop0 (or whatever
happens to be your poison).

I noticed I can, instead of turning it into just a file system, run
fdisk on it to turn it into a disk image with several partitions.
However, what I'm not sure about yet is, if /dev/loop0 represents the
disk.img file with several partitions on it, how do "bring out" each of
those partitions to be its own loop file? (Like, /dev/loop0-part1 or
something...?)

- --
Christopher Howard
frigidcode.com
theologia.indicium.us
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyIbTgACgkQQ5FLNdi0BcU+NgCeKSBFO7tRA7Amu9r9KypYOvPF
gg8AoITBJHRnWUivPEuYuv8jrnq5gT6x
=cbFK
-----END PGP SIGNATURE-----
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Sep 8 21:16:21 2010

This archive was generated by hypermail 2.1.8 : Wed Sep 08 2010 - 21:16:21 AKDT