From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1PhNr2-0000Rh-6Z for mharc-grub-devel@gnu.org; Mon, 24 Jan 2011 09:57:16 -0500 Received: from [140.186.70.92] (port=45305 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhNqz-0000Pa-Ea for grub-devel@gnu.org; Mon, 24 Jan 2011 09:57:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhNqy-00084l-7c for grub-devel@gnu.org; Mon, 24 Jan 2011 09:57:13 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:34757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhNqx-00084c-Vh for grub-devel@gnu.org; Mon, 24 Jan 2011 09:57:12 -0500 Received: by wwb17 with SMTP id 17so4503544wwb.30 for ; Mon, 24 Jan 2011 06:57:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type; bh=WqR8JIELwfuNRBap+nF9wOZFDDbGUgznS5FaIDElvhE=; b=Sa4/gi1yCQRYc7ssgS2i3/fjK1Vr74zXKO+2GpB/NREM7eV+xz0nLbzSIEDGsXNVKi zkWZQOHt8CeTyPF3wbeF3aXDh0NL0j0Vhy8Z7Y4kofr/BGfv77Ye5FManpnZ/yGH/Nku cdNdIyPcgY7Bia4DUjHBfpyBCW2s+hqJjBAbA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=vTJ865zZ2W84FODaIUxpNPiqp2DHtqs/MUEGJC0X7s/UI0GkbYEG8Qxy89jgkxTehA hZn6+lKaOwxS5EbIvDH2qf+PUm3C7//0UX/3bGZhLILEaZiTX02n6/QfUQmemF1mkqCI gVxlBruOm7lLuRVL/jKP1KdIDhnZ6Pv8WuVm4= Received: by 10.216.205.213 with SMTP id j63mr2362820weo.60.1295881029854; Mon, 24 Jan 2011 06:57:09 -0800 (PST) Received: from debian.x201.phnet (gprs09.swisscom-mobile.ch [193.247.250.9]) by mx.google.com with ESMTPS id j49sm6606809wer.38.2011.01.24.06.57.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 Jan 2011 06:57:08 -0800 (PST) Message-ID: <4D3D9345.7000204@gmail.com> Date: Mon, 24 Jan 2011 15:57:09 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 MIME-Version: 1.0 To: grub-devel@gnu.org References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig2B35002A141A78376495CF49" 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: Mon, 24 Jan 2011 14:57:14 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2B35002A141A78376495CF49 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. > =20 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. > =20 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 GR= UB. > > 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 > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig2B35002A141A78376495CF49 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk09k0UACgkQNak7dOguQgmKAwEAiZ74pw1JSGC+GVedFmnvc7ZJ W0GLycmXFNhO9UUioEAA/2N17wAPg+lYS59Bv7xldkCjObj3LTK/UBvmhSlxIVP+ =2ZEG -----END PGP SIGNATURE----- --------------enig2B35002A141A78376495CF49--