Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GkO1k-0001gK-7t for mharc-grub-devel@gnu.org; Wed, 15 Nov 2006 11:54:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GkNy1-0007Pm-IT for grub-devel@gnu.org; Wed, 15 Nov 2006 11:50:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GkNxw-0007LR-0q for grub-devel@gnu.org; Wed, 15 Nov 2006 11:50:27 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkNxv-0007LA-Q8 for grub-devel@gnu.org; Wed, 15 Nov 2006 11:50:23 -0500 Received: from [66.249.92.175] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GkNxw-0003ir-5E for grub-devel@gnu.org; Wed, 15 Nov 2006 11:50:24 -0500 Received: by ug-out-1314.google.com with SMTP id j3so210987ugf for ; Wed, 15 Nov 2006 08:50:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=pBnLD+W/VkS2e6ZwAl3bT/awFviWv9rVvY9pkktR4wQNNOiL07FvSzFxY7u2hl00aaNEHofZPcF5T0AaX3PGpos6iBOAPIy6n+XUzR+LkZ1k98d+q2/TmvErkkdjsABURAE37eIvopjAnVJWyypOeSZ2rGhNmbb3WA9bcUovkQ8= Received: by 10.66.216.20 with SMTP id o20mr149888ugg.1163609422052; Wed, 15 Nov 2006 08:50:22 -0800 (PST) Received: by 10.67.25.5 with HTTP; Wed, 15 Nov 2006 08:50:21 -0800 (PST) Message-ID: Date: Wed, 15 Nov 2006 08:50:21 -0800 From: "Russel Hill" To: grub-devel@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Fallback for SATA and IDE drives when booting from a CD? 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: Wed, 15 Nov 2006 16:54:18 -0000 We are booting from a CD which needs to forward to a bootable hard drive (if possible). The hard drive might be SATA, might be IDE. My current menu.lst looks something like this: ######################################### timeout 10 default 0 fallback 1 2 title boot from SATA drive root (hd0,0) kernel /vmlinuz root=/dev/sda2 panic=5 boot title boot from IDE drive root (hd0,0) kernel /vmlinuz root=/dev/hda2 panic=5 boot title Boot from CD root (cd) kernel /boot/vmlinuz root=/dev/ram0 init=/linuxrc initrd /boot/initrd.img boot ######################################### The only difference between entries 0 and 1 is in the "root=/dev/?da2". If we were booting from writable media, we could use "default savedefault" and "savedefault fallback" commands to chain from one entry to the other after a kernel panic. Unfortunately, that's not the situation. As it is this menu.lst works with SATA drives but not with PATA or IDE drives. I can switch this around by reordering the entries (or modifying default and fallback) but I can't seem to get Is there a way for grub to substitute the correct /dev/* depending on whether the drive is SATA or not? Even better would be a way to make this work when booting from a CD: ######################################### timeout 10 default 0 fallback 1 title boot from hard drive rootnoverify (hd0) chainloader +1 title Boot from CD root (cd) kernel /boot/vmlinuz root=/dev/ram0 init=/linuxrc initrd /boot/initrd.img boot ######################################### Can this be made to work? If so, what am I missing? Thanks, Russel Hill