From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LtW87-0004U0-4P for mharc-grub-devel@gnu.org; Mon, 13 Apr 2009 20:03:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtW85-0004TN-Qh for grub-devel@gnu.org; Mon, 13 Apr 2009 20:03:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtW81-0004RH-BC for grub-devel@gnu.org; Mon, 13 Apr 2009 20:03:57 -0400 Received: from [199.232.76.173] (port=53116 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtW80-0004R3-T0 for grub-devel@gnu.org; Mon, 13 Apr 2009 20:03:52 -0400 Received: from smtp101.vzn.mail.re1.yahoo.com ([69.147.103.188]:36906) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LtW80-0006yg-Bt for grub-devel@gnu.org; Mon, 13 Apr 2009 20:03:52 -0400 Received: (qmail 4482 invoked from network); 14 Apr 2009 00:03:52 -0000 Received: from unknown (HELO ?192.168.2.5?) (jpsinthemix@68.239.115.78 with plain) by smtp101.vzn.mail.re1.yahoo.com with SMTP; 14 Apr 2009 00:03:51 -0000 X-YMail-OSG: PMuveqUVM1lwP1vPKNZHvCnX4jKkJ7uUiWdAbNLKYVhWfNkjoB3_CJDCGHyyIYaTlfZm9zfWF2mszDrrh_oI2rbpjQCcAMWgZT9sd2WpsaTc0FktcQAnqB42unOrZ57Iqy7mWh4LR3o0MNmsrmkd6kquZiRl8ERUhywKRkmAsmC8rPrdy1DC.emFoT_YhMX9GnI72tgDQiQpeRDnek6oJW9zaGVQpWksLAa8rD41OPyHGILB9D2spy1LN9mG_PalHubqCitto5ke2PU- X-Yahoo-Newman-Property: ymail-3 Message-ID: <49E3E0FB.1070907@verizon.net> Date: Mon, 13 Apr 2009 21:03:55 -0400 From: John Stanley User-Agent: Thunderbird 2.0.0.21 (X11/20090302) MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) Subject: status grub2 port of grub-legasy map command X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Apr 2009 00:03:58 -0000 Hi all, I was wondering what the current status of a grub2 port of the grub-0.97 "map" and "rootnoverify" commands is? I have found some work done to this end in the "drivemap.patch" work, but I find nothing more recent than drivemap.patch.8 dated around Aug 2008. I have taken drivemap.patch.8 and made a few updates so that it builds and works, at least partially, in grub2-r2101. I build "homebrew" linux systems for my laptops (thinkpads) and desktops and on several of them I have a 2nd hd installed in the cd-bay with Windows XP. For dual booting, I've been using grub legasy w/o problems using: title Windows XP rootnoverify (hd1,0) map (hd1) (hd0) map (hd0) (hd1) chainloader +1 For grub2-r2101, I use: ### BEGIN /etc/grub.d/40_custom ### # This file is an example on how to add custom entries menuentry "Microsoft Windows XP" { drivemap (hd0) (hd1) set root=(hd1,1) chainloader --force +1 } When I use drivemap as above, on booting Windows I get the message: unaligned pointer 0x76697264 Aborted. Press any key to exit I then simply hit "enter," and Windows begins to boot. So, the mapping works, I do have dual-booting with Windows not on the (bios) first drive, but mm.c complains about an unaligned pointer. Could anyone give me any pointers/direction on what might be happening here? Could it be that the "norootverify"-functionality of grub-legasy is lacking here? Or, perhaps, that the "--force" option is not being honored ? Any help/suggestions/related-info would be greatly appreciated. Thus far, I have not been able to get a Windows boot using the "-s" switch of drivemap , e.g., "drivemap -s (hd0) (hd1)" as this results in a grub Abort, followed by a reboot. John