* [Comm] Монтирование образа HDD @ 2004-04-25 11:31 Alexander Mayorov 2004-04-25 12:04 ` Sergey Vlasov ` (3 more replies) 0 siblings, 4 replies; 9+ messages in thread From: Alexander Mayorov @ 2004-04-25 11:31 UTC (permalink / raw) To: community Приветствую! Кто нибудь пробовал монтировать (через loop) образ hdd с несколькими разделами? Что для этого необходимо, т.к. mount -o loop harddisk /mnt/point не прокатывает... Alex ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Comm] Монтирование образа HDD 2004-04-25 11:31 [Comm] Монтирование образа HDD Alexander Mayorov @ 2004-04-25 12:04 ` Sergey Vlasov 2004-04-25 12:55 ` Alexander Kuprin ` (2 subsequent siblings) 3 siblings, 0 replies; 9+ messages in thread From: Sergey Vlasov @ 2004-04-25 12:04 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 442 bytes --] On Sun, Apr 25, 2004 at 05:31:56PM +0600, Alexander Mayorov wrote: > Кто нибудь пробовал монтировать (через loop) образ hdd с несколькими > разделами? Что для этого необходимо, т.к. mount -o loop harddisk /mnt/point > не прокатывает... sfdisk -d image, далее пересчитать номер начального сектора нужного раздела в смещение в байтах (*512) и монтировать с -o loop,offset=N. Не знаю, пройдёт ли такой фокус при смещении больше 2 Гб. [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Comm] Монтирование образа HDD 2004-04-25 11:31 [Comm] Монтирование образа HDD 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 18:24 ` Alexander Mayorov 2004-04-25 18:27 ` QEMU . plus " Alexander Mayorov 3 siblings, 1 reply; 9+ messages in thread From: Alexander Kuprin @ 2004-04-25 12:55 UTC (permalink / raw) To: community On Sunday 25 April 2004 14:31, Alexander Mayorov wrote: > Кто нибудь пробовал монтировать (через loop) образ hdd с несколькими > разделами? Что для этого необходимо, т.к. mount -o loop harddisk /mnt/point > не прокатывает... А mount -o loop /dev/hda1 /mnt/point прокатывает. По крайней мере сегодня. ;) -- WBR, Alexadner Kuprin ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Comm] Монтирование образа HDD 2004-04-25 12:55 ` Alexander Kuprin @ 2004-04-25 13:38 ` Vitaly Lipatov 2004-04-25 17:04 ` Alexander Kuprin 0 siblings, 1 reply; 9+ messages in thread From: Vitaly Lipatov @ 2004-04-25 13:38 UTC (permalink / raw) To: community On Sunday 25 April 2004 16:55, Alexander Kuprin wrote: > On Sunday 25 April 2004 14:31, Alexander Mayorov wrote: > > Кто нибудь пробовал монтировать (через loop) образ hdd с > > несколькими разделами? Что для этого необходимо, т.к. mount > > -o loop harddisk /mnt/point не прокатывает... > > А mount -o loop /dev/hda1 /mnt/point прокатывает. По крайней > мере сегодня. ;) Да, только суть в том, что образ диска-то полный сделан, а вот как разделы из него вынимать... Через vmWare :) -- Lav Виталий Липатов Санкт-Петербург GNU! ALT Linux Team! LaTeX! LyX! ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Comm] Монтирование образа HDD 2004-04-25 13:38 ` Vitaly Lipatov @ 2004-04-25 17:04 ` Alexander Kuprin 2004-04-25 17:26 ` Vitaly Lipatov 0 siblings, 1 reply; 9+ messages in thread From: Alexander Kuprin @ 2004-04-25 17:04 UTC (permalink / raw) To: community On Sunday 25 April 2004 16:38, Vitaly Lipatov wrote: > > > Кто нибудь пробовал монтировать (через loop) образ hdd с > > > несколькими разделами? Что для этого необходимо, т.к. mount > > > -o loop harddisk /mnt/point не прокатывает... > > > > А mount -o loop /dev/hda1 /mnt/point прокатывает. По крайней > > мере сегодня. ;) > > Да, только суть в том, что образ диска-то полный сделан, а вот > как разделы из него вынимать... Через vmWare :) /me хлопает себя по лбу... слышен медный звон.. Балда! Невнимательно прочитал. :) Ваиталий, а Вы уверены, что VMware тут поможет? Судя по структуре виртуальных дисков, там всё иначе устроено. -- WBR, Alexadner Kuprin ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Comm] Монтирование образа HDD 2004-04-25 17:04 ` Alexander Kuprin @ 2004-04-25 17:26 ` Vitaly Lipatov 0 siblings, 0 replies; 9+ messages in thread From: Vitaly Lipatov @ 2004-04-25 17:26 UTC (permalink / raw) To: community On Sunday 25 April 2004 21:04, Alexander Kuprin wrote: > On Sunday 25 April 2004 16:38, Vitaly Lipatov wrote: > > > > Кто нибудь пробовал монтировать (через loop) образ hdd с > > > > несколькими разделами? Что для этого необходимо, т.к. > > > > mount -o loop harddisk /mnt/point не прокатывает... > > > > > > А mount -o loop /dev/hda1 /mnt/point прокатывает. По > > > крайней мере сегодня. ;) > > > > Да, только суть в том, что образ диска-то полный сделан, а > > вот как разделы из него вынимать... Через vmWare :) > > /me хлопает себя по лбу... слышен медный звон.. Балда! > Невнимательно прочитал. :) > > Ваиталий, а Вы уверены, что VMware тут поможет? Судя по > структуре виртуальных дисков, там всё иначе устроено. Их виртуальные диски иначе устроены, но надеюсь, они не захотят отличать /dev/hda от любого другого файла, в который скинут образ диска. Ой, проверил в vmWare 4.5, оказывается, не хотят они файл воспринимать как образ диска. Но можно скопировать на физический диск и всё будет. Кстати, можно написать простой скриптик, который будет образ на разделы разбивать для таких целей... -- Lav Виталий Липатов Санкт-Петербург GNU! ALT Linux Team! LaTeX! LyX! ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Comm] Монтирование образа HDD 2004-04-25 11:31 [Comm] Монтирование образа HDD Alexander Mayorov 2004-04-25 12:04 ` Sergey Vlasov 2004-04-25 12:55 ` Alexander Kuprin @ 2004-04-25 18:24 ` Alexander Mayorov 2004-04-25 18:38 ` Sergey Vlasov 2004-04-25 18:27 ` QEMU . plus " Alexander Mayorov 3 siblings, 1 reply; 9+ messages in thread From: Alexander Mayorov @ 2004-04-25 18:24 UTC (permalink / raw) To: community В сообщении от Воскресенье 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-интерфейс, ничего не получилось. Александр ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Comm] Монтирование образа HDD 2004-04-25 18:24 ` Alexander Mayorov @ 2004-04-25 18:38 ` Sergey Vlasov 0 siblings, 0 replies; 9+ messages in thread From: Sergey Vlasov @ 2004-04-25 18:38 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 1159 bytes --] On Mon, Apr 26, 2004 at 12:24:41AM +0600, Alexander Mayorov wrote: [skip] > [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-интерфейс, > ничего не получилось. Тут лучше было смотреть вывод fdisk с добавлением опции -u - в секторах. Обычно первый раздел начинается с сектора 63, поэтому можно попробовать mount -t vfat -o loop,offset=32256 /hdimage /mnt/disk (32256 = 63*512) [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* QEMU . plus [Comm] Монтирование образа HDD 2004-04-25 11:31 [Comm] Монтирование образа HDD Alexander Mayorov ` (2 preceding siblings ...) 2004-04-25 18:24 ` Alexander Mayorov @ 2004-04-25 18:27 ` Alexander Mayorov 3 siblings, 0 replies; 9+ messages in thread From: Alexander Mayorov @ 2004-04-25 18:27 UTC (permalink / raw) To: community В дополнение к вопросу: Кто нибудь запускал win (любой 32битной версии) под QEMU? Какие есть грабли и как их обойти? Александр PS. Вот приперло так приперло эту дурную винду использовать. ;-((( ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-04-25 18:38 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-04-25 11:31 [Comm] Монтирование образа HDD 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 2004-04-25 18:38 ` Sergey Vlasov 2004-04-25 18:27 ` QEMU . plus " Alexander Mayorov
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