From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JicGw-0002f4-GY for garchives@archives.gentoo.org; Sun, 06 Apr 2008 21:19:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CB62E04D3; Sun, 6 Apr 2008 21:19:29 +0000 (UTC) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by pigeon.gentoo.org (Postfix) with ESMTP id 1AD4DE04D3 for ; Sun, 6 Apr 2008 21:19:28 +0000 (UTC) Received: by nf-out-0910.google.com with SMTP id f5so399574nfh.26 for ; Sun, 06 Apr 2008 14:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=osw7AMBDXCbx7oaAzFa82HLNkZHouqocQ5usBax8wdQ=; b=ob1beCcKWlxs6ls1SQU6ABe5Xm0wk7cvZM+zF00DDJiSW2V4TCap2iGhFvcg2QdzoVgum5XFqhcB8KfQDETZDJBfa4G038mkjZkeGZ/UWyDmbFdpS0uAZ9XhC5Zv4iDJ+pkldfwQClgIjKlz5P7kgkofHN69Xq7OXIuzDEzXQWI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=K605Jdc5xZ2ObAmGq8Sp8EnVj4ydhGcAdUZO5xxuyx6EF1UKmpojy9tWpULl6LflFnCJu3sTm55MQzYmaj6B1lj1G/83cCexKaKoFuY5m4xLCkARf3PxsYH/Lzedjl+469r24rlw0LCffGXL4jvExtQtMAON+HVTlwBxF8504zY= Received: by 10.78.48.16 with SMTP id v16mr1957998huv.99.1207516766611; Sun, 06 Apr 2008 14:19:26 -0700 (PDT) Received: from ?10.0.0.4? ( [41.243.195.237]) by mx.google.com with ESMTPS id t10sm9711495muh.13.2008.04.06.14.19.22 (version=SSLv3 cipher=OTHER); Sun, 06 Apr 2008 14:19:25 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] mounting disk image Date: Sun, 6 Apr 2008 23:16:54 +0200 User-Agent: KMail/1.9.9 References: <20080406205726.M53986@xvalheru.org> In-Reply-To: <20080406205726.M53986@xvalheru.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804062316.54834.alan.mckinnon@gmail.com> X-Archives-Salt: da1a9e6e-b3f8-4847-a056-799337f44fe1 X-Archives-Hash: 98d72245f1fbbd7b2fb33bbdb0ad0e59 On Sunday 06 April 2008, pat wrote: > Hello, > > I have a question about mounting disk image as the disk. I have disk > image which was created using: > dd if=/dev/sda of=./file.iso > and the sda contained two partitions sda1 and sda2. I know, that if I > have only image of the sda1 I can mount it using loop device like > #losetup /dev/loop0 file.iso > #mount -t ... /dev/loop0 /mnt/tmp > > But, how to do it if the file structure is: sda -> sda1, sda2? I need > to get data from sda1 and sda2 :-| losetup -o /dev/loop see man losetup -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list