From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262661AbVAVEpN (ORCPT ); Fri, 21 Jan 2005 23:45:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262663AbVAVEpN (ORCPT ); Fri, 21 Jan 2005 23:45:13 -0500 Received: from host.atlantavirtual.com ([209.239.35.47]:21965 "EHLO host.atlantavirtual.com") by vger.kernel.org with ESMTP id S262661AbVAVEpI (ORCPT ); Fri, 21 Jan 2005 23:45:08 -0500 Subject: Re: Loopback mounting from a file with a partition table? From: kernel Reply-To: kernel@crazytrain.com To: linux-kernel@vger.kernel.org In-Reply-To: References: Content-Type: text/plain Message-Id: <1106368961.3832.9.camel@crazytrain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 21 Jan 2005 23:42:42 -0500 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2005-01-21 at 20:45, Dan Stromberg wrote: > Has anyone tried loopback mounting individual partitions from within a > file that contains a partition table? > Yes, lots of folks. > 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