grub-devel
[Top][All Lists]
Advanced

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

Re: Regarding writing into raw file


From: Gnanasekar Loganathan
Subject: Re: Regarding writing into raw file
Date: Tue, 25 Jan 2011 11:32:09 +0530

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 <address@hidden>:
> 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
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>>
>
>
> --
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>



reply via email to

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