Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MWBeb-0006F5-I7 for mharc-grub-devel@gnu.org; Wed, 29 Jul 2009 12:05:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWBeZ-0006Ct-QD for grub-devel@gnu.org; Wed, 29 Jul 2009 12:05:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWBeU-00066O-Km for grub-devel@gnu.org; Wed, 29 Jul 2009 12:05:19 -0400 Received: from [199.232.76.173] (port=36928 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWBeU-000662-79 for grub-devel@gnu.org; Wed, 29 Jul 2009 12:05:14 -0400 Received: from mx20.gnu.org ([199.232.41.8]:26848) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWBeT-0001u8-Jo for grub-devel@gnu.org; Wed, 29 Jul 2009 12:05:13 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWBby-0006Ir-Mk for grub-devel@gnu.org; Wed, 29 Jul 2009 12:02:38 -0400 Received: by bwz22 with SMTP id 22so65345bwz.42 for ; Wed, 29 Jul 2009 09:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=X6IFfdkpF5v83cqAF82EKgmH42KEAERX8/OSgyuDd3Y=; b=M8T+OxPkyR6udcfSrfgXEtoKHb86oDBlBo4S9Fl7IH1gNpVeDYixuwGd+DDTCGxm08 yuN3yCVCaRfpZ4X56MSsAu7EYsEH8QFlc1JGCD3jc4e83hHXuVF23JRTTOPbg1ajDVgR NfJACp6DJXEgtqvIIGnCOeBdpcrBnC4PiU1p4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=RtmEGI/UZTZgYSKyh+1z9PL1H4U6GEiRkps6eLyzuCt354oG0qMJB/IhjTWZktdyOv 9Yg6P4jzYDABjgIPisHrn4GL8TZ6Et80kfBDvYVpCX/JdH2dkyd+EZuH0GQYtfweBx0c VIBRUCXPffIqcws3kBU+gbDiAB7Zj0ueSAaoM= MIME-Version: 1.0 Received: by 10.204.66.17 with SMTP id l17mr5745385bki.51.1248883357261; Wed, 29 Jul 2009 09:02:37 -0700 (PDT) In-Reply-To: <4A70519F.20906@gmail.com> References: <4A6FB303.8020504@gmail.com> <4A70519F.20906@gmail.com> Date: Wed, 29 Jul 2009 18:02:37 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Fwd: GRUB overwriting partition tables 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: Wed, 29 Jul 2009 16:05:20 -0000 ---------- Forwarded message ---------- From: Ren=E9 Herman Date: Wed, Jul 29, 2009 at 3:41 PM Subject: Re: GRUB overwriting partition tables To: Vladimir 'phcoder' Serbinenko On 07/29/2009 12:30 PM, Vladimir 'phcoder' Serbinenko wrote: >> =A0Device Boot =A0 =A0Start =A0 =A0 =A0 End =A0 #sectors =A0Id =A0System >> /dev/sda1 =A0 =A0 =A0 =A0 =A0 =A0 1 692272486 =A0692272486 =A085 =A0Linu= x extended >> /dev/sda2 =A0 =A0 692272487 976773167 =A0284500681 =A0 7 =A0HPFS/NTFS >> /dev/sda3 =A0 =A0 =A0 =A0 =A0 =A0 0 =A0 =A0 =A0 =A0 - =A0 =A0 =A0 =A0 = =A00 =A0 0 =A0Empty >> /dev/sda4 =A0 =A0 =A0 =A0 =A0 =A0 0 =A0 =A0 =A0 =A0 - =A0 =A0 =A0 =A0 = =A00 =A0 0 =A0Empty >> /dev/sda5 =A0 =A0 =A0 =A0 =A0 =A0 2 =A016777217 =A0 16777216 =A082 =A0Li= nux swap >> /dev/sda6 =A0 =A0 =A016777219 =A033554434 =A0 16777216 =A083 =A0Linux >> /dev/sda7 =A0 =A0 =A033554436 =A050331651 =A0 16777216 =A083 =A0Linux >> /dev/sda8 =A0 =A0 =A050331653 =A067108868 =A0 16777216 =A083 =A0Linux >> /dev/sda9 =A0 =A0 =A067108870 379690677 =A0312581808 =A083 =A0Linux >> /dev/sda10 =A0 =A0379690679 692272486 =A0312581808 =A083 =A0Linux >> > In this configuration there is simply no way where to put GRUB2 - > there is no MBR gap. While GRUB shouldn't have destroyed your > partition table this configuration will never be supported. I've > looked into the code and now know where the bug is and thinking about > the way to make grub safely abort in such configuration Thanks for the answer, and good to know that you see the problem. But, well. Both LILO and old GRUB support this configuration and it's a valid configuration as far as the tables themselves are concerned. If GRUB2 cannot support this, I consider that a regression. I know LILO a bit, but not old GRUB. Cannot GRUB2 handle this in whatever way GRUB does/did? Regards, Rene --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git