Received: from list by lists.gnu.org with archive (Exim 4.71) id 1gtZNF-0007Oh-Rd for mharc-grub-devel@gnu.org; Tue, 12 Feb 2019 09:49:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtZNE-0007ND-4V for grub-devel@gnu.org; Tue, 12 Feb 2019 09:49:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtZN5-0003cK-Kh for grub-devel@gnu.org; Tue, 12 Feb 2019 09:49:20 -0500 Received: from sonic306-20.consmr.mail.ir2.yahoo.com ([77.238.176.206]:42735) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtZN4-0003Yt-KJ for grub-devel@gnu.org; Tue, 12 Feb 2019 09:49:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1549982952; bh=hGgCXQoEGi0IiwIuHNpO/0ZZ7lnFQa3jAsNPtndUt7I=; h=Date:From:To:Subject:References:From:Subject; b=VkzMVZQV+2JWSliI+q15PPSMIeDVchcJDMFl9xj5k/gRae+a6giDjMwJ+8j8Zx/r8VOfEyk2KsoijZE+tk8KN9n5ydrWaFFuk/C47whmQmJaa/cO6f4lXpnlQXRLWOqG7Bl6CNsb7cdaBa6BvpTEcASgyHd2e4hIhRM/iTAVvdX1cqJkLwYyPABR38BzEdFnAY8oNpA3XD4arEaTSVuEeCM2WbAnT5QrpnOV4FQ9x58UnilyH8BdD+H3FP+cdHXSMf/NUyOfEtEp79PITaThaw62Akov9f6lUhspgnV1ezbP+oiVBb+aZqWi7OAAbM357dq7Su8IxzxKl96adBNCJQ== X-YMail-OSG: Z2rgb8EVM1kWwdbAlMNvkTwOjIm5gXyRc7QfJcBGELo4Wc0HIFljvNNuJSuTLsE aUsH6CDnbJ8cMhoDVwVyvJBHhSJpVBanBFC1WxG12ZQayrh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:49:12 +0000 Date: Tue, 12 Feb 2019 14:48:59 +0000 (UTC) From: moo can To: grub-devel@gnu.org Message-ID: <1155552533.3804905.1549982939368@mail.yahoo.com> Subject: Boot from RAW disk image MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3804904_483909402.1549982939366" References: <1155552533.3804905.1549982939368.ref@mail.yahoo.com> X-Mailer: WebService/1.1.13041 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 77.238.176.206 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2019 14:49:25 -0000 ------=_Part_3804904_483909402.1549982939366 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Dear developers, To update many old production servers never updated I need to use an old CentOS 5.6 live CD (CentOS-5.6-i386-LiveCD.iso) which does not support loopback method. Impossible to get it to work, impossible to boot it always cannot find root file system! dd'ing this iso to an USB key does not work too. LiveCD does not boot. So I have using severals method and created a HDD which is booting and working. This HDD has the following settings:Disk /dev/sdb: 775,2 MiB, 812851200 bytes, 1587600 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x8a965d8b Device Boot Start End Sectors Size Id Type /dev/sdb1 * 128 1583231 1583104 773M c W95 FAT32 (LBA) I made a raw image of this disk using dd. Here is the settings of the disk image:Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x8a965d8b Device CentOS-5.6-i386-LiveHDD-Working.img Boot Start End Sectors Size Id Type * 128 1583231 1583104 773M c W95 FAT32 (LBA) if I try to boot directly from GRUB the physical HDD it is working. grub ls return: (hdd) (hdd,msdos1) set root=(hdd) chainloader +1 But if I try to boot from the raw disk imageinsmod part_msdos insmod fat loopback hdd /boot/img/CentOS-5.6-i386-LiveHDD-Working.img grub ls return : (hdd) (hdd,msdos1) set root=(hdd) chainloader +1This does not boot and I have an empty screen with a blinking cursor. I tried to export MBR from the physical disk using dddd if=/dev/sdb of=~/CentOS-5.6-i386-LiveHDD-Working.mbr bs=512 count=1 and boot from itinsmod part_msdos insmod fat loopback hdd /boot/img/CentOS-5.6-i386-LiveHDD-Working.img set root=(hdd) chainloader (hd0,gpt1)/boot/img/CentOS-5.6-i386-LiveHDD-Working.mbr This does not boot too and I have an empty screen with a blinking cursor. Is it possible to boot from a RAW disk image ? Kind RegardsFabien ------=_Part_3804904_483909402.1549982939366 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear developers,

To up= date many old production servers never updated I need to use an old CentOS 5.6 live CD (CentOS-5.6-i386-LiveCD.iso) which does not support loo= pback method. Impossible to get it to=20 work, impossible to boot it always cannot find root file system!

dd'ing this iso to an USB key does not work too. LiveCD does not b= oot.
<= br>
So= I have using severals method and created a HDD which is booting and workin= g.
This= HDD has the following settings:
Disk /dev/sdb: 775,2 MiB, 81285=
1200 bytes, 1587600 sectors=20
Units: sectors of 1 * 512 =3D 512 bytes=20
Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/opt=
imal): 512 bytes / 512 bytes
Disklabel type: dos=20
Disk identifier: 0x8a965d8b

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1  * 128 1583231 1583104  773M  c W95 FAT32 (LBA)

I made a raw image of this disk using dd.

Here is the settings of the disk image:
Units: sectors of 1 * 512 =3D 512 bytes=20
Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/opt=
imal): 512 bytes / 512 bytes=20
Disklabel type: dos Disk identifier: 0x8a965d8b

Device                                                               =20
CentOS-5.6-i386-LiveHDD-Working.img
Boot Start     End Sectors  Size Id Type
*      128 1583231 1583104  773M c W95 FAT32 (LBA)

if I try to boot directly from GRUB the = physical HDD it is working.

grub ls return: (hdd) (hdd,msdos1)

set root=3D(hdd)
chainloader +1
But if I try to boot from the ra= w disk image
insmod part_msdos
insmod fat
loopback hdd /boot/img/CentOS-5.6-i386-LiveHDD-Working.img

grub ls return : (hdd) (hdd,msdos1)

set root=3D(hdd)
chainloader +1
This does not boot and I have an emp= ty screen with a blinking cursor.

I tried to expor= t MBR from the physical disk using dd
dd if=3D/dev/sdb of=
=3D~/CentOS-5.6-i386-LiveHDD-Working.mbr bs=3D512 count=3D1
=
and boot from it
ins=
mod part_msdos
insmod fat
loopback hdd /boot/img/CentOS-5.6-i386-LiveHDD-Working.img
<= pre>set root=3D(hdd) chainloader (hd0,gpt1)/boot/img/CentOS-5.6-i386-LiveHDD-Working.mbr<= code>

This does not boot too and I have an empty screen with a = blinking cursor.

Is it possible to boot from a RAW disk image ?

Kind Regards
Fabien<= br>



------=_Part_3804904_483909402.1549982939366--