From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1atKmU-0005VB-Ka for mharc-grub-devel@gnu.org; Thu, 21 Apr 2016 16:00:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atKmR-0005Re-Ju for grub-devel@gnu.org; Thu, 21 Apr 2016 16:00:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1atKmO-00024n-Dv for grub-devel@gnu.org; Thu, 21 Apr 2016 16:00:51 -0400 Received: from mx.unixadm.org ([176.9.96.198]:56358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1atKmO-00024c-7p for grub-devel@gnu.org; Thu, 21 Apr 2016 16:00:48 -0400 Received: from pkueck-wired.lls.de-cix.net (pkueck-wired.intranet.unixadm.org [192.168.1.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "phil", Issuer "Unixadm CA" (verified OK)) by mx.unixadm.org (Postfix) with ESMTPS id 7F92424218 for ; Thu, 21 Apr 2016 22:00:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mx.unixadm.org 7F92424218 Subject: Re: hdparm --security-unlock with password prompt To: grub-devel@gnu.org References: <5718EA09.700@quarantine.de> <57191ACD.8080002@gmail.com> From: Philippe Kueck Message-ID: <5719316B.9050908@quarantine.de> Date: Thu, 21 Apr 2016 22:00:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <57191ACD.8080002@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 176.9.96.198 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2016 20:00:52 -0000 Hi, On 21.04.2016 20:24, Andrei Borzenkov wrote: > Unfortunately I do not think we can have optional value, so your exampl= e > on this page likely won't work. I.e. how can we distinguish between > missing option value and missing argument? This will need to be two > options - --security-unlock and --security-passphrase (pick your name). On my page's first example the user password was missing by mistake. The user password (or passphrase) is not optional but required, so the syntax is, depending on ahci or ide mode: hdparm --security-unlock USERPASSWORD (hd0) or hdparm --security-unlock USERPASSWORD (ahci0) Sorry for the confusion. Kind regards Philippe