| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-0.7 required=5.0 tests=AWL,BAYES_50,FH_HAS_XID,RCVD_IN_DNSWL_NONE,TW_MK,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4BF809B5.5070501@t-online.de> |
| Date: | Sat, 22 May 2010 18:43:33 +0200 |
| From: | Christian Franke <Christian DOT Franke AT t-online DOT de> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 SeaMonkey/2.0.4 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: GRUB2 Port installation |
| References: | <4BF7DEB4 DOT 3090607 AT dell DOT com> |
| In-Reply-To: | <4BF7DEB4.3090607@dell.com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
Mario Limonciello wrote: > I was looking to use /usr/sbin/grub-install from the Cygwin GRUB2 port > to install to a partition. I can't seem to determine however what to > use as the install_device argument. There aren't any device nodes w/ > cygwin, and grub-probe insists that it has error finding a device for > /boot/grub (since /dev isn't mounted). > The INSTALL_DEVICE argument should be the Cygwin device name of the boot disk (not the boot partition), typically "/dev/sda". This device node is provided by Cygwin even if it does not appear in /dev directory. The grub-probe tool can be used to detect the device name of a specific partition: # /usr/sbin/grub-probe -t device /cygdrive/c /dev/sda2 Here some recommended steps to install grub2 on a new machine: - Create a grub rescue image which includes osdetect.lua script: $ grub-mkrescue --output=rescue.iso /usr/share/grub/osdetect.lua - Burn rescue.iso to a CD (or 'dd' it to floppy or USB stick). - Boot the rescue disk. - Detect installed operating systems and run created boot menu: grub> lua /osdetect.lua grub> normal - Boot Windows through boot menu. If the above works GRUB is compatible with the machine and you have a working rescue disk in case grub-install fails. - Install grub: # /usr/sbin/grub-install --no-floppy /dev/sda - Create grub config file: # /usr/sbin/grub-mkconfig /boot/grub/grub.cfg -- Regards, Christian Franke -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |