From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lw1Vq-0005aT-Rt for mharc-grub-devel@gnu.org; Mon, 20 Apr 2009 17:58:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lw1Vo-0005aF-Nq for grub-devel@gnu.org; Mon, 20 Apr 2009 17:58:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lw1Vk-0005Ze-6P for grub-devel@gnu.org; Mon, 20 Apr 2009 17:58:48 -0400 Received: from [199.232.76.173] (port=44354 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lw1Vj-0005Zb-Vp for grub-devel@gnu.org; Mon, 20 Apr 2009 17:58:44 -0400 Received: from cicero2.cybercity.dk ([212.242.40.53]:58087) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lw1Vj-0004v6-GC for grub-devel@gnu.org; Mon, 20 Apr 2009 17:58:43 -0400 Received: from asklandd.dk (port572.ds1-arc.adsl.cybercity.dk [212.242.235.139]) by cicero2.cybercity.dk (Postfix) with ESMTP id B774119E086 for ; Mon, 20 Apr 2009 23:58:40 +0200 (CEST) Received: from giana.sputnik.lan ([10.0.0.10]) by asklandd.dk with esmtpa (Exim 4.62) (envelope-from ) id 1Lw1Z3-0004yc-3K for grub-devel@gnu.org; Tue, 21 Apr 2009 00:02:09 +0200 Message-ID: <49ECF00D.4040000@asklandd.dk> Date: Mon, 20 Apr 2009 23:58:37 +0200 From: Stephan Henningsen Organization: Asklandd User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) Subject: Trouble booting CF card in PCMCIA port from GRUB2 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: Mon, 20 Apr 2009 21:58:49 -0000 Hi, My goal is to make my old laptop boot a live Linux dist from the CF card inserted into an adapter in the PCMCIA port. After booting a GRUB2 image, the laptop's hard disk drive can be put to sleep and I'll have a silent netbook. I'm experimenting with this rather simple problem, but on a somewhat strange setup. Please don't bother suggesting a different setup, unless it is absolutely necessary and conforms to my requirements mentioned below Surely this experiment can be reproduced with just one laptop, but I'm using two. My normal (host) laptop runs Ubuntu 8.10 and is used for everyday usage, including compiling. My old (target) laptop has no cdrom drive, no floppy drive, no working USB flash or PCMCIA CF boot support from BIOS, is running an old and obsolete Ubuntu. Still, both laptops work, and while experimenting I don't want to replace their existing legacy GRUB replaced by GRUB2 or otherwise contaminate them with experimental files. On the host laptop I've built a svn checkout of GRUB2 and installed it into an isolated directory under /opt: mkdir -p /opt/grub2 cd /opt/grub2 svn co svn://svn.sv.gnu.org/grub/trunk/grub2 ./src cd src ./autogen.sh ./configure --prefix=/opt/grub make && make install This is not important for this issue, but included for completeness: I have this weird/magic opt-setup that automatically sets up the proper paths it /opt to something like this: export PATH=$PATH:/opt/grub2/sbin:/opt/grub2/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/grub2/lib export MANPATH=$MANPATH:/opt/grub2/share/man I've build a GRUB2 image on the host for the target. Keeping things in one single image file helps to keep things simple and reduces the number of files to manage to a minimum: /opt/grub2/bin/grub-mkimage -o grub2.img \ pc ata ext2 linux \ normal help minicmd ls cat search tar memdisk Then I copied the grub2.imb to the target laptop's /boot/ dir. I added this entry in the /boot/grub/menu.lst of the legacy GRUB: title GRUB2 Image root (hd0,0) kernel /boot/grub2.img When I boot the target laptop, it first hits legacy GRUB. Here I select to boot the "GRUB2 Image", and now I have the "grub>" prompt of GRUB2. grub> ls (ata0) (ata0,1) (ata0,2) (ata0,3) As you see, only ata0 is shown, which is the target laptop's harddrive. The PCMCIA slot or the card in it isn't shown! Am I doing something wrong? Is this a known issue? What now? I'd like to help if I can =) -- Stephan