From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Phczr-0001p5-NX for mharc-grub-devel@gnu.org; Tue, 25 Jan 2011 02:07:23 -0500 Received: from [140.186.70.92] (port=47739 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Phczo-0001nw-En for grub-devel@gnu.org; Tue, 25 Jan 2011 02:07:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Phczm-0005UF-IA for grub-devel@gnu.org; Tue, 25 Jan 2011 02:07:20 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:65494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Phczm-0005Tw-Bt for grub-devel@gnu.org; Tue, 25 Jan 2011 02:07:18 -0500 Received: by ewy27 with SMTP id 27so2295090ewy.0 for ; Mon, 24 Jan 2011 23:07:17 -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=iGEbY9YY6NHKfKRWTDrEnXx3QzyyTqyAU++O70DQrk4=; b=rmrfX1OMqr9h+Mt8tupiVZt2vf9K75+7SpokGWz73+GY3VIKACuiuSVWVE0L786sCE 9kaHno0BKpuTQfuKTdf5RRnCM+setbT9wz9nmtbnIfnSHufWDpwIe4qjRyjeVanf10nm Wnq6IeV9djCp+j6FuCGqa2kyNlwc+neS1dQSw= 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=hEd6Ws1tNeCdowrubbaaXRTg911li21oTDUpOT4Zv2rH8KxA2UdbLGJOZg+PA9oVXG GpQKUop3ZDIyuIu/eLvp76EByJVWymnbWd/dHtvkYPIeg9Q1ilx++jOlLMBKIBwz+LEQ PduJmmFrszAE6T0YZXMhB4t5wk7BWkWDBqC7Q= Received: by 10.216.82.20 with SMTP id n20mr4369215wee.107.1295939237298; Mon, 24 Jan 2011 23:07:17 -0800 (PST) Received: from debian.x201.phnet (gprs51.swisscom-mobile.ch [193.247.250.51]) by mx.google.com with ESMTPS id x3sm7013993wes.22.2011.01.24.23.07.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 Jan 2011 23:07:16 -0800 (PST) Message-ID: <4D3E766D.9050307@gmail.com> Date: Tue, 25 Jan 2011 08:06:21 +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: The development of GNU GRUB References: <4D3D9345.7000204@gmail.com> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig741158F5C277C02E927FB33B" 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 07:07:21 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig741158F5C277C02E927FB33B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01/25/2011 07:02 AM, Gnanasekar Loganathan wrote: > Hi Vladimir, > > I'm using the grub_disk_write function to write the data. > =20 This should work (as long as used right, of course). > My goal is to erase all the data in that particular partition. > > =20 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 '=CF=86-coder/phcoder' Serbinenko : > =20 >> On 01/24/2011 03:49 PM, Gnanasekar Loganathan wrote: >> =20 >>> 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) >> =20 >>> 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 referen= ce >> on the limited file overwrite possibilities. >> I would be able to help better if I knew what your end goal is. >> =20 >>> 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 >>> >>> >>> =20 >> >> -- >> Regards >> Vladimir '=CF=86-coder/phcoder' Serbinenko >> >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel >> >> >> =20 > _______________________________________________ > 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 --------------enig741158F5C277C02E927FB33B 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/ iF4EAREKAAYFAk0+dm0ACgkQNak7dOguQgmRRwD/czNVO7kc54EwJnOdvSggUG8M WTkX/hyUVJumDonTxz8A/AiwhYHfFdBJ15hVMJGQTrUipqV9ABePZhXfwTNG6axo =2K6Y -----END PGP SIGNATURE----- --------------enig741158F5C277C02E927FB33B--