Quantcast

Mounting image

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Mounting image

psysteme
Starting with 12.1 I am no longer able to mount the created image with

mount -oloop,offset=32256 img.war mountpoint

Any solution ?

Thanks!
Reiner
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mounting image

Freemyer
On Tue, Dec 20, 2011 at 9:56 AM, Reiner Pröls <[hidden email]> wrote:
> Starting with 12.1 I am no longer able to mount the created image with
>
> mount -oloop,offset=32256 img.war mountpoint
>
> Any solution ?

I seriously doubt that is a 12.1 bug.

I know I can mount images that way with 12.1 on my workstation.

Are you sure your filesystem starts at sector 63 (32256 bytes).
Modern versions of fdisk, etc. put the first partition at 1MB offset
(sector 2048).

Greg
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mounting image

Jordi Massaguer Pla
Am Tue 20 Dec 2011 04:06:17 PM CET schrieb Greg Freemyer  
<[hidden email]>:

> On Tue, Dec 20, 2011 at 9:56 AM, Reiner Pröls <[hidden email]> wrote:
>> Starting with 12.1 I am no longer able to mount the created image with
>>
>> mount -oloop,offset=32256 img.war mountpoint
>>
>> Any solution ?
>
> I seriously doubt that is a 12.1 bug.
>
> I know I can mount images that way with 12.1 on my workstation.
>
> Are you sure your filesystem starts at sector 63 (32256 bytes).
> Modern versions of fdisk, etc. put the first partition at 1MB offset
> (sector 2048).
>
> Greg
>
You can also try using losetup, for example:

losetup /dev/loop0 yourimage.raw
kpartx -av /dev/loop0
mount /dev/mapper/loop0p1 mnt/


Loading...