From: Jari Ruusu <jariruusu@users.sourceforge.net>
To: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: accessing loopback filesystem+partitions on a file
Date: Wed, 29 Jun 2005 16:27:49 +0300 [thread overview]
Message-ID: <42C2A1D5.D586E874@users.sourceforge.net> (raw)
In-Reply-To: 20050629015030.GG9566@lkcl.net
[-- Attachment #1: Type: text/plain, Size: 973 bytes --]
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 #2: image-mount.bz2 --]
[-- Type: application/octet-stream, Size: 572 bytes --]
next prev parent reply other threads:[~2005-06-29 13:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-28 23:33 accessing loopback filesystem+partitions on a file Luke Kenneth Casson Leighton
2005-06-29 0:30 ` Jason Lunz
2005-06-29 0:35 ` Grzegorz Kulewski
2005-06-29 1:37 ` Luke Kenneth Casson Leighton
2005-06-29 1:48 ` Peter Chubb
2005-06-29 10:00 ` Luke Kenneth Casson Leighton
2005-06-29 1:50 ` Luke Kenneth Casson Leighton
2005-06-29 13:27 ` Jari Ruusu [this message]
2005-06-30 0:38 ` Luke Kenneth Casson Leighton
2005-06-29 10:52 ` P
-- strict thread matches above, loose matches on Subject: below --
2005-06-29 7:12 Ian Pratt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42C2A1D5.D586E874@users.sourceforge.net \
--to=jariruusu@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=lkcl@lkcl.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox