From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Regarding writing into raw file
Date: Tue, 25 Jan 2011 08:06:21 +0100 [thread overview]
Message-ID: <4D3E766D.9050307@gmail.com> (raw)
In-Reply-To: <AANLkTi=QLe3LTZD+aWb7ZscscknmwTsCYF93Z1xOKO2D@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2084 bytes --]
On 01/25/2011 07:02 AM, Gnanasekar Loganathan wrote:
> Hi Vladimir,
>
> I'm using the grub_disk_write function to write the data.
>
This should work (as long as used right, of course).
> My goal is to erase all the data in that particular partition.
>
>
GRUB isn't the right place to write so much data. I recommend having a
small kernel with ramdisk.
> 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
>>
>>
>>
> _______________________________________________
> 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-25 7:07 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
2011-01-25 7:06 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
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=4D3E766D.9050307@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.