From: "Nikolay A. Fetisov" <naf@naf.net.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Примонтировать образ диска
Date: Tue, 23 Dec 2008 00:12:22 +0300
Message-ID: <20081223001222.608c2489@v3405.naf.net.ru> (raw)
In-Reply-To: <200812230211.49480.vip0@seversk.ru>
On Tue, 23 Dec 2008 02:11:49 +0600
Vyatcheslav Perevalov wrote:
> Есть образ диска, создан методом dd if=/dev/hdb of=/path/to/file/hdb.img .
> На /dev/hdb один раздел. Есть необходимость примонтировать этот образ и
> порыться в нём. Кто-нить сможет подсказать, как это осуществить?
Установить multipath-tools.
Подключить образ:
# losetup /dev/loop0 hdb.img
Создать файлы устройств для разделов в /dev/mapper:
# kpartx -v -a /dev/loop0
Смонтировать раздел
# mount /dev/mapper/loop0p1 /mnt/hdb0
Порыться в нём.
Отмонтировать раздел:
# umount /mnt/hdb0
Удалить устройства из /dev/mapper:
# kpartx -v -d /dev/loop0
Отключить loop-устройство:
# losetup -d /dev/loop0
--
С уважением,
Николай Фетисов
next prev parent reply other threads:[~2008-12-22 21:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-22 20:11 Vyatcheslav Perevalov
2008-12-22 20:18 ` Aleksander Gorohovski
2008-12-22 20:19 ` Pavlov Konstantin
2008-12-22 20:27 ` Vyatcheslav Perevalov
2008-12-23 8:23 ` Константин Михайленко
2008-12-23 8:28 ` Vyatcheslav Perevalov
2008-12-23 9:04 ` Константин Михайленко
2008-12-23 9:46 ` Nikolay A. Fetisov
2008-12-23 11:53 ` Константин Михайленко
2008-12-22 21:12 ` Nikolay A. Fetisov [this message]
2008-12-22 21:17 ` Vyatcheslav Perevalov
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=20081223001222.608c2489@v3405.naf.net.ru \
--to=naf@naf.net.ru \
--cc=community@lists.altlinux.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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git