From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PhbzE-0001Fe-BV for mharc-grub-devel@gnu.org; Tue, 25 Jan 2011 01:02:40 -0500 Received: from [140.186.70.92] (port=57963 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Phbz8-0001CW-Su for grub-devel@gnu.org; Tue, 25 Jan 2011 01:02:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Phbz4-00024W-US for grub-devel@gnu.org; Tue, 25 Jan 2011 01:02:34 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:52717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Phbz4-00024P-P3 for grub-devel@gnu.org; Tue, 25 Jan 2011 01:02:30 -0500 Received: by iwn40 with SMTP id 40so5836106iwn.0 for ; Mon, 24 Jan 2011 22:02:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=YZJiaGjYwuCX3JnM7XWZ7FdF99vVkxAFtU3iTHMlJsM=; b=icPd8RHTdLV6zx55uXWI20FtILDk/4FeTziNbKhOrGZqwaVll8+pK2DAls8Qkhvyyi 9CxwX+9M0EjF8SLi7EvCX7rh7sXs97FdVbct0UgJ8r4stbIYJ5KwMOLlK3Qa6TqoAzK3 y09spnHDq7nNyVHXSYjvvCDpv15ulVKTmsXtA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=wkklNpOJABdtuanqs9TUJq5WfDK3eEDud91Dj/V0VP//TxsKUOFlc3yXByqxYulrip +eHd4X4LxkbncQnfbK/0l8P8V4o9WPd7+VmPgb6XdtHNMB4ECJW/wnlPBcPCk1FV1tgU hPlqmnlOaauW3p1MbgiyRul1T2DHkANh5Fq8M= Received: by 10.42.174.129 with SMTP id v1mr6042506icz.54.1295935350052; Mon, 24 Jan 2011 22:02:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.180.135 with HTTP; Mon, 24 Jan 2011 22:02:09 -0800 (PST) In-Reply-To: <4D3D9345.7000204@gmail.com> References: <4D3D9345.7000204@gmail.com> From: Gnanasekar Loganathan Date: Tue, 25 Jan 2011 11:32:09 +0530 Message-ID: To: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Regarding writing into raw file X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2011 06:02:37 -0000 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 '=CF=86-coder/phcoder' Serbinenko : > 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 GRU= B. >> >> 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 '=CF=86-coder/phcoder' Serbinenko > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > >