From owner-freebsd-fs@freebsd.org Fri Mar 30 20:53:41 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E30CF682E5 for ; Fri, 30 Mar 2018 20:53:41 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: from mail-lf0-x234.google.com (mail-lf0-x234.google.com [IPv6:2a00:1450:4010:c07::234]) (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 CFD247F610 for ; Fri, 30 Mar 2018 20:53:40 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: by mail-lf0-x234.google.com with SMTP id z143-v6so13862237lff.3 for ; Fri, 30 Mar 2018 13:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Jd7nOz9f553rC/UX156ppV4nPmSeNrDj8Q7vrJzH8PQ=; b=jylrcweyHfQ6/MZTuwjoDVqmV4Mq6McSHlmuUhZSF7z2mNYcxFqwmryK9lRQtgcGp4 A8N3fIMEw4dqcn4JoK+o5pui867CRxA48Vu4S4XdoX7R50nFmJvQnb9rgKRhhNTkYya4 JTeAWaw6bL5P9r201IMtX9grAVeD0X8YnFMm1/rDScNn9WjmTJkA9ZH2r1i/zHFGjZqo nRZ1zxpsMIm0UU96AJXJnTrck/SfxG+uNLsnnJmZ1O/kz42U66VGqyaJUiFBt0nt5MQG zX9EM44ibVbr5osOoGn5RujXzrQ+9cqi4v4rIOLxiLo+ev/GNRtTL+a4gMUpplR3keMN jxEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Jd7nOz9f553rC/UX156ppV4nPmSeNrDj8Q7vrJzH8PQ=; b=qrYsd1q4AjA2TenO8/czKDoywgWMk9kT8Z0r8ChnGKkHWhvmIOcKKYimiUvoGsGcVa 4NcrAj/a8VActfIOJqm37QA3JwLz3Cjz+YyZ9PJVvujN+rL1pdN2G3ag+CaqGumdKxVB RzLXYUiqvFZt2WGBgmVebdFUGu8SA/S5Llv7vysdEWkpSwBOE9UfKE1fSxnCCWO5qq1p zFv4/Nile1FrSY8AlhF9jM7NiSWJLnWoPDAtDvQfmPmshafRPbcu6ahiPcZiD4f/Jl3c 1ZmS+59ysK17U6iKdu5ZG7alVnu8fqLJs9Ey43SIejb95tY5he+fS246GdVge53yAdOV FYdw== X-Gm-Message-State: ALQs6tCSW48owj786OBI6AopPzT5VLTckNR/sEjmP2ExGgJVa9QP/juV oeWWExWVcQsvisK1XoAe5fodQA== X-Google-Smtp-Source: AIpwx48un57TFBI74QDQGMbDGweIPa0whDeyEnDy9SXWNhNG0sT41SDgbpmE50wBhbo02XFL+3qJpg== X-Received: by 10.46.91.21 with SMTP id p21mr279648ljb.38.1522443218895; Fri, 30 Mar 2018 13:53:38 -0700 (PDT) Received: from alex.super (stone.g-service.ru. [84.22.141.217]) by smtp.googlemail.com with ESMTPSA id q18sm1612556ljg.35.2018.03.30.13.53.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Mar 2018 13:53:37 -0700 (PDT) Subject: Re: Need help for stupid: restotre efi boot To: Harry Schmalzbauer Cc: freebsd-fs@freebsd.org References: <5ABE7ECC.9070109@omnilan.de> From: "Alex V. Petrov" Openpgp: preference=signencrypt Message-ID: Date: Sat, 31 Mar 2018 03:53:35 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <5ABE7ECC.9070109@omnilan.de> Content-Type: text/plain; charset=UTF-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Mar 2018 20:53:41 -0000 31.03.2018 01:15, Harry Schmalzbauer пишет: > Bezüglich Alex V. Petrov's Nachricht vom 29.03.2018 22:26 (localtime): >> How restore efi boot, after command: >> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 > > Hmm, I'm not sure I understand your problem, but I guess ada0p1 might > have been your "efi" partition before you corrupted it with the command > you quoted. > If so, just do: > newfs_msdos /dev/ada0p1 > mount_msdosfs /dev/ada0p1 /mnt > mkdir -p /mnt/EFI/BOOT > cp /boot/boot1.efi /mnt/EFI/BOOT/BOOTx64.efi > echo "BOOTx64.efi" > /mnt/EFI/BOOT/startup.nsh > > The latter is optinal for most UEFI implementations, likewise is the > partition type (which should be "!c12a7328-f81f-11d2-ba4b-00a0c93ec93b" > – gpart knows it under the alias "efi"). > I'd suggest you check with "gaprt show ada0" and "gpart modify -t efi -i > 1 ada0" before the newfs! > > Hope this helps, > > -harry Thanks for the answer. For me, the solution was: dd if=/boot/boot1.efifat of=/dev/ada0p1 -- ----- Alex.