grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting - write to HD support?


From: Markus Laire
Subject: Re: Scripting - write to HD support?
Date: Sat, 7 Oct 2006 12:48:15 +0300

On 10/6/06, Marco Gerards <address@hidden> wrote:
> 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.

Maybe you misunderstood me a bit.
I didn't mean that grub would need to know which partition has this
"special" status. Instead grub would give a general read/write access
to any partition as a single block of data, and user would then use
the partition he wants.

e.g.
   # Read 1024 bytes from partition (hd0,3) starting at position 0
   data = read (hd0,3), 0, 1024;
   # Write new data to that same position
   write (hd0,3), 0, newdata;

--
Markus Laire




reply via email to

[Prev in Thread] Current Thread [Next in Thread]