Re: useless image of hdd: how to make it useful?

Bill Davidsen (davidsen@tmr.com)
Thu, 21 Nov 2002 15:40:16 -0500 (EST)


On Mon, 18 Nov 2002, Andries Brouwer wrote:

> Device Boot Start End #sectors Id System
> hdc_img1 63 112454 112392 83 Linux
> hdc_img2 112455 401624 289170 82 Linux swap
> hdc_img3 401625 33736499 33334875 5 Extended
> ...
>
> OK, let us mount this first one, at an offset of 63 sectors.
>
> % bc
> 63*512
> 32256
>
> # mount hdc_img /mnt -o loop,offset=32256
> #

Being at heart a lazy fellow, and not counting on people to have bc
installed although they should...
# mount hdc_img /mnt -o loop,offset=$[63*512]

-- 
bill davidsen <davidsen@tmr.com>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/