Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Nq8Zd-0003Wr-KV for mharc-grub-devel@gnu.org; Fri, 12 Mar 2010 12:22:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nq8Zb-0003VJ-7w for grub-devel@gnu.org; Fri, 12 Mar 2010 12:22:55 -0500 Received: from [140.186.70.92] (port=37593 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nq8ZZ-0003UN-Oy for grub-devel@gnu.org; Fri, 12 Mar 2010 12:22:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nq8ZY-0000OY-EQ for grub-devel@gnu.org; Fri, 12 Mar 2010 12:22:53 -0500 Received: from mail-gw0-f41.google.com ([74.125.83.41]:36935) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nq8ZY-0000ON-Ad for grub-devel@gnu.org; Fri, 12 Mar 2010 12:22:52 -0500 Received: by gwb17 with SMTP id 17so1207195gwb.0 for ; Fri, 12 Mar 2010 09:22:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=BblS2RZEt+tIUDz34n3yvKnJADm/ZRY4osWT7NLJKq4=; b=EhgTj8Bsu/QxTrNSg90OojTNLOyw8zJtpoBuGgsQ+awk8zalmoYkyALQOoeys33I+3 3bcsjgmT9gzhbS4OOmV5OGg1vcVabHrw5FkA/eCsrj4cXgvfHGA65jhmBU7C0MV8sdxq WT5rUT2nAm5VRx075LTdo+fVRhMvMpCx7+dBM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ncu5lbA+H2deIj5HNi4NfKyVaUM1lqIvzIRtcHGhKUTjRhO8hYREGzhvPlDojYesjq M6NTejptnqmblEpQbsimlPm1uOkr8YMT6o9tZb+erxoBAgpP1H+Gy/AvrfmPZKzZj5QR E1IAoTJsGXY/re/4zI2AHacUrXRDbulGIDXR0= MIME-Version: 1.0 Received: by 10.101.36.7 with SMTP id o7mr1407482anj.101.1268414568058; Fri, 12 Mar 2010 09:22:48 -0800 (PST) Date: Fri, 12 Mar 2010 10:22:47 -0700 Message-ID: From: Aaron Brice To: grub-devel@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Using grub2 on a USB stick 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: Fri, 12 Mar 2010 17:22:55 -0000 I am trying to use grub2 on a USB stick. My situation is: - I'm using RHEL4 which has grub 0.95 installed on the system, and creating another OS in a directory to install onto a USB stick, and I want to use grub2 on that USB stick (but not on the host system). - I compile grub 1.98 with --prefix=~/grub - The root of my target system is ~/fsimage. I added a ~/fsimage/boot/grub/grub.cfg and ~/fsimage/boot/grub/device.map which contains "(hd0) /dev/sdc" where /dev/sdc is my USB stick. - I use genext2fs to create an ext2 image from ~/fsimage, and cat that to /dev/sdc1 - Run ~/grub/sbin/grub-install --no-floppy --root-directory=~/fsimage /dev/sdc Based on this use case: http://grub.enbug.org/UseCases/Ubuntu But I get an error: ~/grub/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. Auto-detection of a filesystem module failed. Please specify the module with the option '--modules' explicitly. Is there a way to get this to work? We had this working with grub 0.95 by using: echo -e "root (hd0,0)\\nsetup (hd0)\\nquit" | /sbin/grub --no-config-file --batch --no-floppy --device-map=<(echo "(hd0) /dev/sdc") But I'd like to switch it to grub2 if possible.. Thanks, Aaron