From: "Herbert Pötzl" <herbert@13thfloor.at>
To: Josh Litherland <josh@emperorlinux.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Partitioned loop device..
Date: Tue, 15 Jul 2003 18:05:58 +0200 [thread overview]
Message-ID: <20030715160558.GA22548@www.13thfloor.at> (raw)
In-Reply-To: <20030715155317.317B461FDE@sade.emperorlinux.com>
On Tue, Jul 15, 2003 at 11:53:17AM -0400, Josh Litherland wrote:
> In article <200307151001.44218.kevcorry@us.ibm.com> you wrote:
>
> > so there's not much of a reason to add partitioning support to the loop
> > driver itself.
>
> Working with sector images of hard drives? I use Linux for data
> recovery jobs and it would be very helpful to me to be able to look at
> DOS partitions inside a loopback device. As it is I must chunk it up
> into seperate files by hand.
you could also setup more than one loopback
device with different offsets into the partitions ...
for my purposes, I use the folowing script (part)
YMMV,
Herbert
---------------------
losetup /dev/loop/0 $file
sfdisk --dump /dev/loop/0 | gawk '
/^\/dev\/loop/ {
if ($6+0 > 0) {
part=substr($1,13)+0;
dev=sprintf("/dev/loop/%d", part);
printf "losetup %s -o %d /dev/loop/0\n", dev, $4*512;
printf "fsck -p -f %s\n", dev;
printf "mkdir -p /mnt/disk/part%d\n", part;
printf "mount %s /mnt/disk/part%d\n", dev, part;
}
}
' | sh
>
> --
> Josh Litherland (josh@emperorlinux.com)
> -
> 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/
next prev parent reply other threads:[~2003-07-15 15:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-15 8:46 Partitioned loop device Dimitry V. Ketov
2003-07-15 15:01 ` Kevin Corry
2003-07-15 15:53 ` Josh Litherland
2003-07-15 16:04 ` Kevin Corry
2003-07-15 16:05 ` Herbert Pötzl [this message]
2003-07-17 2:44 ` kernel
-- strict thread matches above, loose matches on Subject: below --
2003-07-16 8:59 Dimitry V. Ketov
2003-07-16 13:51 ` Kevin Corry
2003-07-15 18:32 Dimitry V. Ketov
2003-07-15 21:15 ` Lars Marowsky-Bree
2003-07-18 14:20 ` Christophe Saout
2003-07-18 19:10 ` Mr. James W. Laferriere
2003-07-18 23:57 ` Christophe Saout
2003-07-15 7:10 Dimitry V. Ketov
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=20030715160558.GA22548@www.13thfloor.at \
--to=herbert@13thfloor.at \
--cc=josh@emperorlinux.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.