Skip to contentSkip to conversation

Loopback mounting from a file with a partition table?

DISCUSSION Dan Stromberg 3 participants 3 messages Jan 22, 2005 – Jan 24, 2005

lore
Share & tools
lore
#0 lore raw

Has anyone tried loopback mounting individual partitions from within a file that contains a partition table?

When I mount -o loop the file, I seem to get the first partition in the file, but I don't see anything in the man page for mount that indicates a way of getting any other partitions from a file with a partition table.

Any comments?

Thanks!

#1 lore raw
Quoted 3 lines · Dan Stromberg

Has anyone tried loopback mounting individual partitions from within a file that contains a partition table?

Yes, lots of folks.

Quoted 5 lines

When I mount -o loop the file, I seem to get the first partition in the file, but I don't see anything in the man page for mount that indicates a way of getting any other partitions from a file with a partition table.

Any comments?

Sure, find the starting offset for the filesystem and pass that to mount via the '-o offset=XXX' flag.

regards,

-fd

www.farmerdude.com

#2 lore raw
In reply to Dan Stromberg
Quoted 6 lines · Dan Stromberg

Has anyone tried loopback mounting individual partitions from within a file that contains a partition table?

When I mount -o loop the file, I seem to get the first partition in the file, but I don't see anything in the man page for mount that indicates a way of getting any other partitions from a file with a partition table.

http://lists.gnu.org/archive/html/grub-devel/2005-01/msg00077.html

Signature · 2 lines
Pádraig Brady - http://www.pixelbeat.org
--