[clug] Accessing partitions on loop devices

Andrew Pollock andrew-clug at andrew.net.au
Thu Dec 16 00:51:23 GMT 2004


Hi,

I'm dicking around with a file, which is actually a Sun disk image. I've
used losetup to associate loop0 with this file, and if I use fdisk on it, I
can see a couple of partitions inside. 

So how do I mount these partitions? 

apollock at debian:~$ sudo fdisk -l /dev/loop0

Disk /dev/loop0 (Sun disk label): 1 heads, 640 sectors, 2048 cylinders
Units = cylinders of 640 * 512 bytes

     Device Flag    Start       End    Blocks   Id  System
/dev/loop0p1   r         0         1       320    4  SunOS usr
/dev/loop0p2   r         1      1768    565440    2  SunOS root
/dev/loop0p3          1768      1776      2560    0  Empty
/dev/loop0p4          1776      1784      2560    0  Empty
/dev/loop0p5          1784      1792      2560    0  Empty
/dev/loop0p6          1792      1800      2560    0  Empty

It sounds like I need some more loop devices or something.

regards

Andrew

-- 
linux.conf.au 2005   -  http://lca2005.linux.org.au/  -  Birthplace of Tux
April 18th to 23rd   -  http://lca2005.linux.org.au/  -       LINUX
Canberra, Australia  -  http://lca2005.linux.org.au/  -    Get bitten!


More information about the linux mailing list