From owner-freebsd-questions@freebsd.org Tue Aug 4 17:39:08 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4CC9E9B3F25 for ; Tue, 4 Aug 2015 17:39:08 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FBBA7C7 for ; Tue, 4 Aug 2015 17:39:08 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: by iggf3 with SMTP id f3so16215740igg.1 for ; Tue, 04 Aug 2015 10:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ILG3XN6jJxrlPjPxaXNNx9tt/qmm283fgx5GZ7jzmRw=; b=G9zvADDs2n1BY/lrxy6XWw6I/ET/pyc6CV1PIuvse80m9ieDPcYmX0PzpWB5dkFZtk tfP1ADZvNNHWdj7IYeeDoCqKOv6/k/xtZy/i6+T8GNALKJ/mefbzzL7cgamx9w0DaxAW siSJuq3W0RHgkKKIjCO2CXyTwDNobZZxrletGpbPChHF34Fxn0Iq4KseYtypaAs5hoqC HmpiJusImYhJo8piZHCFg+y+UG5srEBcDOZyOQDu2NXjHqmvgD6VSQW9kHPsxEh0tpM9 a7Zs9ne/TYWfc5E46KtncU4809qJoiGrLaF625GJm1ky7aXCnngXFFE9OTolJqbFIDKC N3rg== X-Received: by 10.50.147.4 with SMTP id tg4mr459403igb.53.1438709947603; Tue, 04 Aug 2015 10:39:07 -0700 (PDT) Received: from localhost.localdomain ([50.243.6.59]) by smtp.googlemail.com with ESMTPSA id h2sm1555789igy.10.2015.08.04.10.39.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Aug 2015 10:39:06 -0700 (PDT) Message-ID: <55C0F8C4.904@gmail.com> Date: Tue, 04 Aug 2015 11:39:16 -0600 From: jd1008 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: windows entry for grub2 References: <20150804034108.Horde._OTrFyjhdRQUM4x9GSp-yLG@mail.parts-unknown.org> <20150804054948.Horde.eTUxo9WEBbZWC3ekOhhgbya@mail.parts-unknown.org> <55C0F6E7.8080603@fisglobal.com> In-Reply-To: <55C0F6E7.8080603@fisglobal.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2015 17:39:08 -0000 On 08/04/2015 11:31 AM, Robison, Dave wrote: > Here is my 40_custom file. I keep it in my homedir since it often gets overwritten during PCBSD updates. > > Put it into /usr/local/etc/grub.d/ and then run > > grub-mkconfig /boot/grub/grub.cfg > > "Works for me"(tm) > > > > [lefty] ~% cat 40_custom > #!/bin/sh > exec tail -n +3 $0 > # This file provides an easy way to add custom menu entries. Simply type the > # menu entries you want to add after this comment. Be careful not to change > # the 'exec tail' line above. > menuentry "Windows 7" { > insmod ntfs > set root=(hd0,2) > chainloader +1 > } > > I checked the Linux menu entry for windows. It loads ntfs module and the module for msdos partitioning scheme. menuentry 'Microsoft Windows XP Professional (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-6FF7484D7DE32A09' { insmod part_msdos insmod ntfs set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 6FF7484D7DE32A09 else search --no-floppy --fs-uuid --set=root 6FF7484D7DE32A09 fi drivemap -s (hd0) ${root} chainloader +1 }