ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexander Mayorov <fedex@bashnet.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Монтирование образа HDD
Date: Mon, 26 Apr 2004 00:24:41 +0600
Message-ID: <200404260024.41514.fedex@bashnet.ru> (raw)
In-Reply-To: <200404251731.56998.fedex@bashnet.ru>

В сообщении от Воскресенье 25 Апрель 2004 17:31 Alexander Mayorov написал(a):
> Приветствую!
> Кто нибудь пробовал монтировать (через loop) образ hdd с несколькими
> разделами? Что для этого необходимо, т.к. mount -o loop harddisk /mnt/point
> не прокатывает...
Боюсь, что несовсем корректно задал вопрос ;-)
Итак, задача:
Имеется эмулятор QEMU, ему скармливается пустой фалй на диске, размером, 
например, гигабайт
Запускается инстольник 98 винды, инстольник прикольно ругеается, что диск 
(т.е. файл, изображающий физический диск) безнадежно болен вирусами и пр.
После чего средствами виндового fdisk создается ФАТ32 раздел и форматируется, 
после чего на оный раздел ставится виндоуз (точнее не ставится, а пытается и 
виснет в середине установки).
Вопрос: как средствами linux подцепить файл и раздел на нем в точку 
монтирования?
Примечание: loop прекрасно работает с образами дискет и сидиромов, однако тут 
спотыкается
Примечание (забавное):
натравливаем на этот диск (который файл) линуксовый fdisk.
Вот что видим:
[mnr@Darkstar mnr]$ /sbin/fdisk -l /hdimage
You must set cylinders.
You can do this from the extra functions menu.

Disk /win: 0 MB, 0 bytes
16 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot    Start       End    Blocks   Id  System
 /win1   *         1      1941    978232+   c  Win95 FAT32 (LBA)
Partition 1 has different physical/logical endings:
     phys=(916, 15, 63) logical=(1940, 15, 63)
[mnr@Darkstar mnr]$
win1 - это созданный в файле и отформатированный под fat32 винюковый раздел
т.е. линуксовый fdisk можно заставить считать файл физическим диском (узнал об 
этом только что, обрадован)

Так вот, КАК ПОЛУЧИТЬ ДОСТУП К РАЗДЕЛУ win1?
Я пробовал зарегистрировать с помощью hdparm этот файл как IDE-интерфейс, 
ничего не получилось.

Александр


  parent reply	other threads:[~2004-04-25 18:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-25 11:31 Alexander Mayorov
2004-04-25 12:04 ` Sergey Vlasov
2004-04-25 12:55 ` Alexander Kuprin
2004-04-25 13:38   ` Vitaly Lipatov
2004-04-25 17:04     ` Alexander Kuprin
2004-04-25 17:26       ` Vitaly Lipatov
2004-04-25 18:24 ` Alexander Mayorov [this message]
2004-04-25 18:38   ` Sergey Vlasov
2004-04-25 18:27 ` QEMU . plus " Alexander Mayorov

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=200404260024.41514.fedex@bashnet.ru \
    --to=fedex@bashnet.ru \
    --cc=community@altlinux.ru \
    /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