Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GVv8G-0007d4-C4 for mharc-grub-devel@gnu.org; Fri, 06 Oct 2006 15:13:16 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GVv8E-0007ck-C9 for grub-devel@gnu.org; Fri, 06 Oct 2006 15:13:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GVv8D-0007cY-Tg for grub-devel@gnu.org; Fri, 06 Oct 2006 15:13:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVv8D-0007cS-Nw for grub-devel@gnu.org; Fri, 06 Oct 2006 15:13:13 -0400 Received: from [66.111.4.25] (helo=out1.smtp.messagingengine.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GVvFA-0005nT-2o for grub-devel@gnu.org; Fri, 06 Oct 2006 15:20:24 -0400 Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id F28FBDB022C for ; Fri, 6 Oct 2006 15:13:10 -0400 (EDT) Received: from heartbeat1.internal ([10.202.2.160]) by frontend3.internal (MEProxy); Fri, 06 Oct 2006 15:13:13 -0400 X-Sasl-enc: e/KQ9DXQysHkZUQoljVagXY/5aRMFEPXz+jA6Y6iYNIn 1160161993 Received: from basalt.austin.ibm.com (pixpat.austin.ibm.com [192.35.232.241]) by mail.messagingengine.com (Postfix) with ESMTP id 414F316008 for ; Fri, 6 Oct 2006 15:13:12 -0400 (EDT) From: Hollis Blanchard To: The development of GRUB 2 In-Reply-To: <87fye11dzy.fsf@xs4all.nl> References: <67d53e40610061018k71d83bcw5f45f770e36aac87@mail.gmail.com> <87fye11dzy.fsf@xs4all.nl> Content-Type: text/plain Date: Fri, 06 Oct 2006 14:13:05 -0500 Message-Id: <1160161986.23837.31.camel@basalt.austin.ibm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit Subject: Re: Scripting - write to HD support? 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: Fri, 06 Oct 2006 19:13:14 -0000 On Fri, 2006-10-06 at 20:43 +0200, Marco Gerards wrote: > "Markus Laire" writes: > > > On 10/5/06, Marco Gerards wrote: > >> I'm looking forwards to your ideas, questions, suggestions, criticism > >> and bug reports. :-) > > > > Will there be any support for writing data to HD? Even a simple > > support for writing some data to HD would allow quite a lot of ideas > > to be implemented in grub which would be impossible with read-only > > access. I agree this would be a great feature. > The disk support in GRUB 2 supports writing to disk. However, it is > not used. > > > Full support for writing to filesystems is likely far too much to ask. > > Right. > > > But what about a possibility to create a certain file in advance (e.g. > > /boot/grub/mydata filled with e.g. 1MB of zeroes) and then an ability > > to write to that file without changing the size of the file. > > Writing zero's reliable. For example, filesystem implementations > might change this into a sparse file. Another problem could be > reiserfs, which stores metadata and data in the same sectors, IIRC. > > So instead of using zero's, we could of course use ones. For reiserfs > we would have to look how big the file has to be to make sure metadata > won't share this sector. > > But still, it is something we have to be extremely careful with. And > a more important question is: Why do you want this, do you have > specific uses for such feature in mind? I can think of things like > fallback, etc. Yeah, we should focus on enabling some specific features. > > Alternative idea would be to create a partition (without any > > filesystem) specifically for saving some data from grub, and then grub > > would just give a read/write access to that partition as a single > > block of data. > > I don't like this, it will make it hard or impossible to install GRUB > on certain systems. I like this; it's nice and simple. It's also similar to the situation with Open Firmware and NVRAM. This approach could extend to NVRAM on other systems as well... Systems without a free partition just wouldn't be able to take advantage of the feature. -Hollis