From owner-freebsd-questions@freebsd.org Sun Oct 22 14:14:43 2017 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 F3178E534FD for ; Sun, 22 Oct 2017 14:14:43 +0000 (UTC) (envelope-from mailinglist@diamondbox.dk) Received: from mailrelay2-3.pub.mailoutpod1-cph3.one.com (mailrelay2-3.pub.mailoutpod1-cph3.one.com [46.30.212.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8BF5667103 for ; Sun, 22 Oct 2017 14:14:42 +0000 (UTC) (envelope-from mailinglist@diamondbox.dk) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=diamondbox.dk; s=20140924; h=from:subject:date:message-id:to:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=fSE6z6Hua59GXA6o+2d4rYEREmohEiB8G9qMc2NcGs0=; b=k/OLcoVWNEzLu+QloHTgP/bQk5U7WHWyiavsXqVhVIPAUzJsdOHmwYLaGybub1CcLBA9GbILGq7iM p58MbiG9hPP1LxBQu0agLZcMP7S9x0eTcz2sf2WgEGuxhiR5o0DaQCsLCPjh9bFDpuqLaAPJsiNcmu 0c8Vigd1q07KrrTk= X-HalOne-Cookie: 61076655f2a2c1b4afc20d7297f828b57ed3fd52 X-HalOne-ID: 2ecadb4a-b733-11e7-a87d-b82a72d03b9b Received: from diamond.diamondbox.dk (unknown [212.237.134.88]) by smtpfilter2.public.one.com (Halon) with ESMTPSA id 2ecadb4a-b733-11e7-a87d-b82a72d03b9b; Sun, 22 Oct 2017 14:13:31 +0000 (UTC) Subject: Re: stuck duel booting win-10 and FreeBSD 10.3 To: freebsd-questions@freebsd.org References: From: Nikolaj Thygesen Organization: diamondbox.dk Message-ID: Date: Sun, 22 Oct 2017 16:13:34 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: da X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Oct 2017 14:14:44 -0000 On 10/20/2017 22:37, DTD wrote: > On Thu, 19 Oct 2017, DTD wrote: > >> I am trying to install FreeBSD 10.3 on a Lenovo Ideapad 700. I was >> following some instructions to set up duel-boot with rEFInd Boot >> Manager and EasyUEFI. For whatever reason this did not work. I have >> FreeBSD installed, but the EFI code was not put where it needs to be. >> I have tried to use the shell to mount the disk to copy the code >> where it needs to go. I can not figure out a mount command. >> >> Using windows 10 diskpart, gpart and sysctl I put constructed the >> following map of the disk: >> >>  Partition ###  Type       Size     Offset >>  -------------  ---------  -------  ------- >>  Partition 1    System      260 MB  1024 KB   ada0p1  C: Windows boot >>  Partition 2    Reserved     16 MB   261 MB   ada0p2 >>  Partition 3    Primary     446 GB   277 MB   ada0p3   Windows NTFS >>  Partition 8    Unknown    4096 MB   446 GB   ada0p8 freebsd-swap >>  Partition 9    Unknown     512 KB   450 GB   ada0p9 freebsd-boot >>  Partition 10   Unknown     438 GB   450 GB   ada0p10  FreeBSD >> freebsd-ufs >>  Partition 4    Primary      25 GB   889 GB   ada0p4 >>  Partition 5    Recovery   1000 MB   914 GB   ada0p5 >>  Partition 6    Recovery     14 GB   915 GB   ada0p6 >>  Partition 7    OEM        1000 MB   930 GB   ada0p7 > [cut] > >> The installer can mount and write the disk just file. I have >> installed this 3 different ways to try and coax the install into >> writing boot code somewhere. >> >> So ... what's the magic command to mount the BSD partition? I am also >> not sure if the EFI boot code just gets added to ada0p1. ada0p9 is a >> boot partition added by the current install. Is FBSD 11 more likely >> to work? > > I (think I)have narrowed this down to a more specific question. Will > it work if I use gpart to wite the boot code? I can do this because I > can take the code from a working system. That only leaves which boot > code and where? An example of a working command would seem to be: > >    gpart bootcode  -p /tmp/gptboot -i [1|9] ada0 > > where I copy gptboot from another 10.3 system. Who get it. I though 1 > or 9 not 10. > > > _____ > Douglas Denault > http://www.safeport.com > doug@safeport.com > Voice: 301-217-9220 >   Fax: 301-217-9277 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > I successfully did the same a year or two ago. I did most of my fiddling in Win10 as per some youtube video. This *might* be the one; I'm not sure:     https://www.youtube.com/watch?v=oGPvt3pQfaw Two of my main obstacles were disabling secure boot in BIOS and making sure to assign some UID to partitions for the boot manager.     N :o)