Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MPfJD-0002eB-D9 for mharc-grub-devel@gnu.org; Sat, 11 Jul 2009 12:20:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPfJA-0002aG-MV for grub-devel@gnu.org; Sat, 11 Jul 2009 12:20:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPfJ9-0002Zf-7f for grub-devel@gnu.org; Sat, 11 Jul 2009 12:20:16 -0400 Received: from [199.232.76.173] (port=48980 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPfJ9-0002Zc-2s for grub-devel@gnu.org; Sat, 11 Jul 2009 12:20:15 -0400 Received: from fg-out-1718.google.com ([72.14.220.155]:2869) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MPfJ8-00029r-PN for grub-devel@gnu.org; Sat, 11 Jul 2009 12:20:14 -0400 Received: by fg-out-1718.google.com with SMTP id l26so395278fgb.7 for ; Sat, 11 Jul 2009 09:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=4Rv+iTkEMDgzhErTSOpiMZ+zm/LIcdilm3a0ervgx9M=; b=vdI0pTiY9sybItywzm5OTEje1bW/WFAV5m5E3LU+I1Jg0jNdeEM6to+mo2lINsEVIz VUI1OQW2+kWZBn8NDhDWz0NP2SB2QyGVdOkaHI7D6ovDWKWuaw0+rA3JEg54RolF9Okj kydIWicF0625Skh6e4+lWDScftdp7DG0IpBjc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=AaGu8FqYpDRDTNcIUaqtvjvBigJ3iQTSnNh7FcUXrhNiXH3+zt2vDuOYjt08zCAj1r yV1B3Ymue8z6jBCON8OqZsQwT5Esy2eDgjDZuRw05gl3Y189FflpIHD6Bj5HNBlm5tv9 AABqjsutocTYeMRIxbZPPacHnlRefHhms8ohM= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.92.9 with SMTP id p9mr1858292fgb.64.1247329213191; Sat, 11 Jul 2009 09:20:13 -0700 (PDT) In-Reply-To: References: <20090704201846.GD27480@thorin> <20090707183933.GA14645@thorin> <1247033954.2895.9.camel@ct> <20090710171145.GB17114@thorin> <4A57B252.7080805@earthlink.net> Date: Sat, 11 Jul 2009 18:20:13 +0200 X-Google-Sender-Auth: 08a97e55dbf32f17 Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Some ideas about new features of grub 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: Sat, 11 Jul 2009 16:20:16 -0000 2009/7/11 Bean : > On Sat, Jul 11, 2009 at 5:27 AM, BandiPat wrot= e: >> Actually Zenwalk provides os-prober as well. =C2=A0The gentleman that pr= ovides >> the installer of our Grub2 uses os-prober to detect all OS's installed, = so >> they may be added to the original grub.cfg. =C2=A0Works very well, altho= ugh not >> perfect, but we are pretty pleased with the results thus far. >> >> We also do not have to run any of the Grub2 programs after installing ne= w >> kernels. =C2=A0The developer of our installer patched Grub2 for Zenwalk,= so that >> no changes were necessary after kernel updates. =C2=A0He tried to offer = this to >> you guys as well earlier, but got little response, so we use it for Zenw= alk >> exclusively at the moment. > > Hi, > > IIRC, os-prober is a collection of shell script to detect os, but grub > already have them in util/grub.d. This method is based on linux, so > you need to enter linux in order to update the menu. On the other > hand, lua script generate the menu inside grub, there is no need to > enter any os. > > Another problem is the drive number. It's impossible to decide bios > drive number from inside linux, so we can't insert the correct > drivemap command required to boot DOS/Windows from secondary drive. > This information must be gathered at boot time. > The other problem is that scripts like os-prober that use linux filesystem code for probing filesystems destroy your data. Linux cannot mount journalled filesystems readonly. It always modifies them. The extent of the modifications and the impact may vary depending on the state of the filesystem (clean/mounted) and the way you are going to use it in the future (resume the system/fresh boot) but until Linux people implement readonly filesystem support any Linux based os-probers cannot be recommended. Thanks Michal