Luke Kenneth Casson Leighton wrote: > such that it is possible to then subsequently do this: > > fdisk /dev/loopblocka and > mkfs.ext2 /dev/loopblocka1 > mount /dev/loopblocka1 -t ext2 /mnt/somewhere Using attached image-mount script that is possible. Like this: ln -s image-mount image-losetup fdisk filename (remember to set correct cyl/head/sect before creating partitions) ./image-losetup /dev/loop7 filename 2 mkfs.ext2 /dev/loop7 mount /dev/loop7 -t ext2 /mnt/somewhere umount /mnt/somewhere losetup -d /dev/loop7 or ./image-mount filename 2 /mnt/somewhere umount /mnt/somewhere Good news is that image-mount and image-losetup scripts get both size and offset of the partition right, so mkfs creates correct size file system. Bad news is that it only works with losetup and mount programs from loop-AES package. Google for "loop-AES" if you can't find it. -- Jari Ruusu 1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9 DB 1D EB E3 24 0E A9 DD
Attachment:
image-mount.bz2
Description: Binary data
- Follow-Ups:
- Re: accessing loopback filesystem+partitions on a file
- From: Luke Kenneth Casson Leighton <[email protected]>
- Re: accessing loopback filesystem+partitions on a file
- References:
- accessing loopback filesystem+partitions on a file
- From: Luke Kenneth Casson Leighton <[email protected]>
- Re: accessing loopback filesystem+partitions on a file
- From: Grzegorz Kulewski <[email protected]>
- Re: accessing loopback filesystem+partitions on a file
- From: Luke Kenneth Casson Leighton <[email protected]>
- accessing loopback filesystem+partitions on a file
- Prev by Date: 2.6.13-rc1-kj [was 2.6.13-rc1]
- Next by Date: Re: kmalloc without GFP_xxx?
- Previous by thread: Re: accessing loopback filesystem+partitions on a file
- Next by thread: Re: accessing loopback filesystem+partitions on a file
- Index(es):