From: Gnanasekar Loganathan <l.gnanasekar@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Regarding writing into raw file
Date: Tue, 25 Jan 2011 11:32:09 +0530 [thread overview]
Message-ID: <AANLkTi=QLe3LTZD+aWb7ZscscknmwTsCYF93Z1xOKO2D@mail.gmail.com> (raw)
In-Reply-To: <4D3D9345.7000204@gmail.com>
Hi Vladimir,
I'm using the grub_disk_write function to write the data.
My goal is to erase all the data in that particular partition.
Booted os will do read and write operation on that partition.
-Gnana
2011/1/24 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
> On 01/24/2011 03:49 PM, Gnanasekar Loganathan wrote:
>> Hi All,
>>
>> I try to opening a file called "(hd0,2,a)+10" from GRUB.
>>
> This is old syntax. New one is (hd0,netbsd1)
>> For me open got success and able read some of the data.
>> But i'm not able to write some data into the file, getting "out of
>> partition" error.
>>
> GRUB has no file writing functions whatsoever, only disk writing
> (grub_disk_write)
> You can look into save_env in grub-core/commands/loadenv.c for reference
> on the limited file overwrite possibilities.
> I would be able to help better if I knew what your end goal is.
>> Kindly help me, how to open, read and write into a raw file from the GRUB.
>>
>> FYI: Partition type is NetBSD one.
>>
>> If you need any info, kindly revert back.
>>
>> Thanks,
>> Gnana
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>>
>
>
> --
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>
next prev parent reply other threads:[~2011-01-25 6:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 14:49 Regarding writing into raw file Gnanasekar Loganathan
2011-01-24 14:57 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-25 6:02 ` Gnanasekar Loganathan [this message]
2011-01-25 7:06 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-25 10:34 ` Gnanasekar Loganathan
2011-01-25 11:42 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-25 13:01 ` Gnanasekar Loganathan
2011-01-25 13:15 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=QLe3LTZD+aWb7ZscscknmwTsCYF93Z1xOKO2D@mail.gmail.com' \
--to=l.gnanasekar@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).