From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Regarding writing into raw file
Date: Mon, 24 Jan 2011 15:57:09 +0100 [thread overview]
Message-ID: <4D3D9345.7000204@gmail.com> (raw)
In-Reply-To: <AANLkTinL5ytCsD-a112pXuXSq6DS3O5zFn9Lof2j+jaW@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1022 bytes --]
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
next prev parent reply other threads:[~2011-01-24 14:57 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 [this message]
2011-01-25 6:02 ` Gnanasekar Loganathan
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=4D3D9345.7000204@gmail.com \
--to=phcoder@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).