Re: Mounting a partition off a disk image

2005-08-22 Thread Peter
On Mon, 22 Aug 2005, Muli Ben-Yehuda wrote: mount -o loop,offset=xxx myfile /dev/whatever What does the offset=xxx do ? It does not exist on my version. Does it indicate the offset of the filesystem image in the file ? If so, what version of mount etc is this ? thanks, Peter

Re: Mounting a partition off a disk image

2005-08-22 Thread Muli Ben-Yehuda
On Mon, Aug 22, 2005 at 11:01:37AM +0300, Peter wrote: On Mon, 22 Aug 2005, Muli Ben-Yehuda wrote: mount -o loop,offset=xxx myfile /dev/whatever What does the offset=xxx do ? It does not exist on my version. Does it indicate the offset of the filesystem image in the file ? Yes. If

Re: Mounting a partition off a disk image

2005-08-22 Thread Peter
On Mon, 22 Aug 2005, Muli Ben-Yehuda wrote: On Mon, Aug 22, 2005 at 11:01:37AM +0300, Peter wrote: On Mon, 22 Aug 2005, Muli Ben-Yehuda wrote: mount -o loop,offset=xxx myfile /dev/whatever What does the offset=xxx do ? It does not exist on my version. Does it indicate the offset of the

Re: Mounting a partition off a disk image

2005-08-22 Thread Peter
On Mon, 22 Aug 2005, Amos Shapira wrote: On 8/22/05, Peter [EMAIL PROTECTED] wrote: On Mon, 22 Aug 2005, Muli Ben-Yehuda wrote: mount -o loop,offset=xxx myfile /dev/whatever What does the offset=xxx do ? It does not exist on my version. Does it indicate the offset of the filesystem

Re: Mounting a partition off a disk image

2005-08-22 Thread Itay Duvdevani
When specifying an offset for the partition, can it be used safely without specifying its limits (size) ? What if I have another partition at the end of the one I need - isn't there a chance it will be overwritten? What I meant by /dev/loop0p1 (look at a file in fdisk), is whether there's a way

Re: Mounting a partition off a disk image

2005-08-22 Thread Muli Ben-Yehuda
On Mon, Aug 22, 2005 at 10:29:42PM +0300, Itay Duvdevani wrote: When specifying an offset for the partition, can it be used safely without specifying its limits (size)? Interesting question. I believe so - at least for the file systems I've used this with, the file system always knows where

Re: Mounting a partition off a disk image

2005-08-22 Thread Oron Peled
On Monday 22 August 2005 22:58, Muli Ben-Yehuda wrote: In other words, mount the whole file as a disk rather than a partition. I'm not familiar with a comfortable way of doing it. Interesting scenario. If the file contains a disk image (with partition table etc.) than what is actually needed is

Re: Mounting a partition off a disk image

2005-08-22 Thread guy keren
On Mon, 22 Aug 2005, Oron Peled wrote: On Monday 22 August 2005 22:58, Muli Ben-Yehuda wrote: In other words, mount the whole file as a disk rather than a partition. I'm not familiar with a comfortable way of doing it. Interesting scenario. If the file contains a disk image (with

Re: Mounting a partition off a disk image

2005-08-22 Thread Amos Shapira
On 8/23/05, Itay Duvdevani [EMAIL PROTECTED] wrote: When specifying an offset for the partition, can it be used safely without specifying its limits (size) ? What if I have another partition at the end of the one I need - isn't there a chance it will be overwritten? Not if the filesystem

Re: Mounting a partition off a disk image

2005-08-22 Thread guy keren
On 8/23/05, Itay Duvdevani [EMAIL PROTECTED] wrote: When specifying an offset for the partition, can it be used safely without specifying its limits (size) ? What if I have another partition at the end of the one I need - isn't there a chance it will be overwritten? loopback mounting does

Mounting a partition off a disk image

2005-08-21 Thread Itay Duvdevani
Hello all, Today I encountered a situation where I had to mount a single partition off a whole hard-disk image, and I was wondering if there's a better way than that I chose. Starting from the beginning, I had an image of an entire disk (MBR, partition table, everything) that had several

Re: Mounting a partition off a disk image

2005-08-21 Thread Muli Ben-Yehuda
On Sun, Aug 21, 2005 at 11:33:14PM +0300, Itay Duvdevani wrote: In order to get a single file off a certain partition, I did the following: 1. losetup the image file to /dev/loop0 2. fdisk /dev/loop0, and displaying partition information in byte-units, thus gaining byte offsets in the image