From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XW8vM-0007Rt-Mz for mharc-grub-devel@gnu.org; Mon, 22 Sep 2014 15:05:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW8vD-0007D9-JU for grub-devel@gnu.org; Mon, 22 Sep 2014 15:05:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XW8v5-000239-3h for grub-devel@gnu.org; Mon, 22 Sep 2014 15:05:15 -0400 Received: from mail-lb0-x231.google.com ([2a00:1450:4010:c04::231]:40994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW8v4-0001nk-Ij for grub-devel@gnu.org; Mon, 22 Sep 2014 15:05:07 -0400 Received: by mail-lb0-f177.google.com with SMTP id z12so7416723lbi.36 for ; Mon, 22 Sep 2014 12:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=mUiwepK3h1LfQ1uV4ZqdO6vv69K4aVVQ1EWUMRIsYbQ=; b=LhWr2yBdO72FAohjuhPDXnb4QnF+ffO4YD8R70K5/vjlLIWoLxcnUZK+9oSJ/PMlaX mGJhyvLtemeMVx9dvC50X86uNAD37mmTs07a3r7gRCUi/AREHYEuayxEZP7Hc/aHNndC SJYyWbKWZzI86ZETwoeh3m+kvl6AJhQXwU7whrINGe1zuvroeDwBWEKTwSlGZ07B71O0 Qe8Wd7OPGd/iedLcDMxUknleY1Io0HluRXVQDxTmSKz71+94jrkuc3kXTYYq8xNIZhoF n8AkACL3OJtEskaBNDdrcoGngsZp/Vk65tZfXdo2RaNlA8CnmI+ZvhTHVS8ertzMGhQ4 YqeA== X-Received: by 10.112.72.10 with SMTP id z10mr4499586lbu.87.1411412700393; Mon, 22 Sep 2014 12:05:00 -0700 (PDT) Received: from opensuse.site (ppp94-29-94-89.pppoe.spdop.ru. [94.29.94.89]) by mx.google.com with ESMTPSA id wj8sm4042439lbb.34.2014.09.22.12.04.59 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Sep 2014 12:04:59 -0700 (PDT) Date: Mon, 22 Sep 2014 23:04:58 +0400 From: Andrei Borzenkov To: The development of GNU GRUB Subject: Re: Probing misjudges ext2 partition as fat. Message-ID: <20140922230458.74b6cb5d@opensuse.site> In-Reply-To: <541FC81A.7060407@famsik.de> References: <541EB089.8020408@famsik.de> <20140921184101.07319546@opensuse.site> <541FC81A.7060407@famsik.de> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.23; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::231 Cc: gkdneu@famsik.de X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 19:05:23 -0000 =D0=92 Mon, 22 Sep 2014 08:56:26 +0200 Andreas Kr=C3=BCger =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > Unfortunately you destroyed any possibility to investigate it further. > > You should at least have saved beginning of partition. >=20 > I should have, yes. Please kindly accept my apologies! >=20 > On the other hand, I did nothing to destroy the grub source code. >=20 > So I hope it is still possible to investigate grub's fs-probing code > for weaknesses. >=20 Grub fs-probing code simply tries to "mount" partition using each filesystem until one succeeds. If partition has content that matches both filesystems, the first one to probe will win. To verify it we need image of your partition. > (My personal guess and speculation is, if legitimate grub > developers don't do this analysis, less well-intentioned people > will happily do the job.) >=20 Sure, if you find a problem, please let us know. >=20 >=20 > Am 21.09.2014 um 16:41 schrieb Andrei Borzenkov: > > =D0=92 Sun, 21 Sep 2014 13:03:37 +0200 > > Andreas Kr=C3=BCger =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > > >> Hello, grub developers, > >> > >> my problem summary (lots of details follow below): > >> > >> My /boot file system lives on partition /dev/sda1. This was an ext2 > >> or ext4 file system (not entirely sure). When doing some grub-install > >> work, this was wrongly recognized as fat. > >> > >> This resulted in a system that could no longer boot from hard drive. > >> > >> What helped in the end: Copying the files of /boot, umounting, > >> overwriting the start of /dev/sda1 with zeros, mke2fs -t ext2 > >> /dev/sda1, mounting, copying the files back to /boot and running > >> grub-install again. > >> > > Unfortunately you destroyed any possibility to investigate it further. > > You should at least have saved beginning of partition. > > > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel