[TriLUG] Using Loop Device

Kevin Hunter hunteke at earlham.edu
Mon Jan 28 15:27:16 EST 2008


At 2:08p -0500 on 28 Jan 2008, Alan Porter wrote:
>    Disk image.usb: 0 MB, 0 bytes
>    64 heads, 32 sectors/track, 0 cylinders, total 0 sectors
>    Units = sectors of 1 * 512 = 512 bytes
> 
>    Device          Boot  Start   End      Blocks   Id  System
>    imagefile.img1  *     32      1079295  539632   83  Linux
> 
> Make a note of the sector size ("Units") and the starting sector ("Start").
> 
> [aporter at sti]$ mount -t ext3 -o loop,offset=$((32*512)) imagefile.img /mnt/image

Och!  Thank you!  That was the clearest explanation I've seen of this. 
I keep having to Google when I do this (only rarely), but now I think I 
finally actually understand where the numbers (32 and 512 here) come from.

Thanks Andrew!

Kevin



More information about the TriLUG mailing list