Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ewWftpSOt-tP for ; Fri, 6 Sep 2013 04:10:28 +0200 (CEST) Received: from nm14-vm1.bullet.mail.ird.yahoo.com (nm14-vm1.bullet.mail.ird.yahoo.com [77.238.189.91]) by mail.saout.de (Postfix) with SMTP for ; Fri, 6 Sep 2013 04:10:28 +0200 (CEST) Message-ID: <1378433427.65739.YahooMailNeo@web171906.mail.ir2.yahoo.com> Date: Fri, 6 Sep 2013 03:10:27 +0100 (BST) From: Ditis Nietmijnnaam MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [dm-crypt] Luks resizing error Reply-To: Ditis Nietmijnnaam List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "dm-crypt@saout.de" =0A=0AHello,=0A=0AI tried to shrink a luks partition using these instructio= ns: http://unix.stackexchange.com/questions/41091/how-can-i-shrink-a-luks-p= artition-what-does-cryptsetup-resize-do=0Abut it failed.=0A=0Ain the answer= on that page it gives the following commands:=0A# parted /dev/sda2=0A...= =0A(parted) rm 2=0A(parted) mkpart Everything 250035s 124844158s=0A=0Athis = last command failed with me:=0AInstead of a name (Everything) the mkpart co= mmand wanted (extended/primary).=0ASo I made the partition the way I rememb= ered them to be.=0Agparted now shows :=A0 http://i998.photobucket.com/album= s/af104/ditisnietmijnnaam/gparted_zps85ed6ad9.png=0A=0A=0Awhen I rebooted, = I got this error: alert /dev/mapper/vg-mint-root does not exist dropping to= shell=0A=0A(I cant the remember the exact message and names, so it might b= e off a little)=0A=0A=0AUsing an ubuntu live usb I could get some following= information.=0A=0A=0AThe luks authentication seems to be working:=0A~$ sud= o cryptsetup luksOpen /dev/sda5 partName=0AEnter passphrase for /dev/sda5: = =0A=0A~$ sudo cryptsetup status partName=0A/dev/mapper/partName is active.= =0A=A0 type:=A0=A0=A0 LUKS1=0A=A0 cipher:=A0 aes-xts-plain64=0A=A0 keysize:= 512 bits=0A=A0 device:=A0 /dev/sda5=0A=A0 offset:=A0 4096 sectors=0A=A0 si= ze:=A0=A0=A0 1743302656 sectors=0A=A0 mode:=A0=A0=A0 read/write=0A=0A=0AThe= re was a (fully updated) linux mint 15 installation on that partition.=0ACa= n any of it be recovered?=0A=0AThanks in advance and best regards,=0Adinmn= =0A=0AP.S. some extra info:=0Asda3 in the picture did not exist; the mint p= artition covered the entire hard drive.=0AI wanted to shrink it to install = windows beside my main OS.=0Asda3 now temporarily has ubunt 13.04 installed= on it.=0A