From: Andries Brouwer <aebr@win.tue.nl>
To: "Filipau, Ihar" <ifilipau@sussdd.de>
Cc: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: useless image of hdd: how to make it useful?
Date: Mon, 18 Nov 2002 22:51:58 +0100 [thread overview]
Message-ID: <20021118215158.GA2183@win.tue.nl> (raw)
In-Reply-To: <7A5D4FEED80CD61192F2001083FC1CF906505A@CHARLY>
On Mon, Nov 18, 2002 at 11:08:10AM +0100, Filipau, Ihar wrote:
> # dd if=/dev/hdc of=/root/hdc_img
>
> I do not know the way to mount partition table!
> it's possible with loop device to mount partition - but how
> to mount whole hddd (with its own partition table) to have
> access to single partition inside???
loop knows about an offset:
First find where your partitions are:
% sfdisk -l -uS hdc_img
Warning: hdc_img is not a block device
Disk hdc_img: cannot get size
Disk hdc_img: cannot get geometry
Disk hdc_img: 0 cylinders, 0 heads, 0 sectors/track
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
hdc_img1 63 112454 112392 83 Linux
hdc_img2 112455 401624 289170 82 Linux swap
hdc_img3 401625 33736499 33334875 5 Extended
...
OK, let us mount this first one, at an offset of 63 sectors.
% bc
63*512
32256
# mount hdc_img /mnt -o loop,offset=32256
#
next prev parent reply other threads:[~2002-11-18 21:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-18 10:08 useless image of hdd: how to make it useful? Filipau, Ihar
2002-11-18 20:51 ` Bill Davidsen
2002-11-18 21:51 ` Andries Brouwer [this message]
2002-11-21 20:40 ` Bill Davidsen
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=20021118215158.GA2183@win.tue.nl \
--to=aebr@win.tue.nl \
--cc=ifilipau@sussdd.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox