Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ERqQk-0000sg-Ep for mharc-grub-devel@gnu.org; Tue, 18 Oct 2005 08:18:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ERqQf-0000p4-O1 for grub-devel@gnu.org; Tue, 18 Oct 2005 08:18:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ERqQc-0000mK-Tl for grub-devel@gnu.org; Tue, 18 Oct 2005 08:18:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERqQc-0000ls-Cv for grub-devel@gnu.org; Tue, 18 Oct 2005 08:18:50 -0400 Received: from [193.144.10.37] (helo=relay3.udl.es) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ERqQc-0007wQ-34 for grub-devel@gnu.org; Tue, 18 Oct 2005 08:18:50 -0400 Received: from jupiter.udl.net (jupiter.udl.net [172.16.2.2]) by relay3.udl.es (8.13.4/8.13.4) with ESMTP id j9ICIRqB014713 for ; Tue, 18 Oct 2005 14:18:37 +0200 Received: from eps33-01 (eup33_01 [172.16.2.100]) by jupiter.udl.net (8.11.7p1+Sun/8.11.6) with ESMTP id j9ICAgV16604 for ; Tue, 18 Oct 2005 14:10:44 +0200 (MET DST) Date: Tue, 18 Oct 2005 14:10:42 +0200 From: "adrian15" To: grub-devel@gnu.org In-Reply-To: <200510151643.j9FGhN4S019226@dell01.dinaserver.com> References: <200510151643.j9FGhN4S019226@dell01.dinaserver.com> Message-ID: X-Mailer: JBMail 3.2 X-Virus-Scanned: ClamAV version 0.86.1, clamav-milter version 0.86 on relay3.udl.es X-Virus-Status: Clean Subject: gsd proposal : dd X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 12:18:54 -0000 Let's suppose that MBR has this structure: Boot Code: 466 bytes Partition table: 66 bytes Let's do the following with Linux: dd if=/dev/zero of=./blank.img count=1 bs=466 dd if=./blank.img of=/dev/hda I think that this two commands will make a thing similar to fdisk /mbr that's to say give a blank mbr. Supposing that this is equivalent to fdisk /mbr let's build a grub disk with the following extra file: blank.img stored int /boot/grub/ folder. My first instict, my first thought was to do: install p /boot/grub/blank.img INTO (hd0) (Sorry, I don't remember the correct syntax right now, but I suppose you get the point) The problem is that when I read install command documentation it says that Grub before embedding stage1 into the MBR ====checks==== if it's a right Grub stage1 image. So... I suppose I cannot embedd this image into the MBR. So some questions arise right now: 1) When Grub embeds an stage1 image into the MBR does it copy it into the 1st 466 bytes or not? And... why its size is 512 bytes instead of 466 bytes as in my scheme? 2) Can I make a fake blank.img which is approved as a good grub stage1 by grub itself? 3) (THIS IS THE PROPOSAL) Will Grub 2 include a dd command... so that you can dd some images as a blank mbr or a mbr backup ? Thank you for your questions in advance. Ah,... I've made a Grub Super Disk version totally translated into English... check version 0.8.9 in floppy or cdrom here: http://adrian15.raulete.net/ficheros/gsd_0.89.iso http://adrian15.raulete.net/ficheros/gsd_0.89_en.img adrian15