Return-Path: Received: from mail-qy0-f199.google.com (mail-qy0-f199.google.com [209.85.221.199]) by mail.saout.de (Postfix) with ESMTP for ; Wed, 10 Feb 2010 18:00:41 +0100 (CET) Received: by qyk37 with SMTP id 37so183889qyk.15 for ; Wed, 10 Feb 2010 09:00:40 -0800 (PST) MIME-Version: 1.0 Date: Wed, 10 Feb 2010 12:00:39 -0500 Message-ID: <76df45931002100900l57607c1fmb13bcdbcb3def003@mail.gmail.com> From: M Thomas Frederiksen Content-Type: multipart/alternative; boundary=00c09fa21a09540144047f41f910 Subject: [dm-crypt] Help! Command failed: /dev/sdd1 is not a LUKS partition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de --00c09fa21a09540144047f41f910 Content-Type: text/plain; charset=ISO-8859-1 Hi Folks, I have four disks. I installed kubuntu 9.10 alt amd64, using /dev/sda, /dev/sdb, and /dev/sdc. I had long used /dev/sdd1 (single partition for the whole disk) as luks. I kept all my backups on that disk, and didn't touch it at all during the instillation. The installation program said that /dev/sdd1 was LVM, which I thot was odd, however I've used LVM in the past, so that partition was likely still marked LVM when I started using it as straight luks. I didn't use or set up LVM at all on any of the disks (hence didn't go into the settup LVM part of the install program). Post install when I run cryptsetup: thomas@Aristotle:~$ sudo cryptsetup luksOpen /dev/sdd1 backup_crypt Enter LUKS passphrase: Command failed: /dev/sdd1 is not a LUKS partition thomas@Aristotle:~$ sudo cryptsetup luksDump /dev/sdd1 Command failed: /dev/sdd1 is not a LUKS partition thomas@Aristotle:~$ shoot me now shoot: command not found There are three things I can think of: 1. The install program wrote out a new partition table, changing the partition type flag. 2. The /dev/sdXs were named differently, and I've scribbled all over what was /dev/sdd1. 3. Mandriva was unaffected by the problem, but Kubuntu is. In the first case I think I have hope, what steps should I take? In the second case, I think I'm SOL. I tried using the Mandriva Live CD, and got the same result, so the second & third cases are ruled out. =========== I have another weird, lessor problem: At boot time, my new luks partition /dev/sda3, says "command failed, bad key or options" for all three tries then boots (because it is opened and just doesn't know it). I tested this by not giving it the passphrase, in which case it won't boot, but if I type the passphrase right the first time, and blow off the other 2 tries, it boots. I thot this might be a btrfs problem, so post boot, I formatted an empty luks partition as btrfs, and tried unlocking it. No problem. To get root btrfs, I followed the instructions here: http://ubuntuforums.org/showthread.php?t=1389279 ============ Last issue: I've got more drives to add to btrfs, but how will it know it needs to unlock the other drives to open the root partition? It's only unlocking /dev/sda3 during boot, because /dev/sdb2 and /dev/sdc2 aren't being used (even tho, I've got them in the crypttab). From the fstab /dev/mapper/sda3_crypt / btrfs error=remount-ro,compress 0 1 it looks like it just needs the one. Also, they all have the same passphrase, so I'd like to unlock them all at once... which mandriva did, but kubuntu doesn't. Ideas? -- Cheers, ~Thomas Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong." --00c09fa21a09540144047f41f910 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Folks,

I have four disks.=A0 I installed kubuntu 9.10 alt a= md64, using /dev/sda, /dev/sdb, and /dev/sdc.=A0 I had long used /dev/sdd1 = (single partition for the whole disk) as luks.=A0 I kept all my backups on = that disk, and didn't touch it at all during the instillation.=A0 The i= nstallation program said that /dev/sdd1 was LVM, which I thot was odd, howe= ver I've used LVM in the past, so that partition was likely still marke= d LVM when I started using it as straight luks.=A0 I didn't use or set = up LVM at all on any of the disks (hence didn't go into the settup LVM = part of the install program).=A0


Post install when I run cryptsetup:
thomas@Aristotle:~$ sud= o cryptsetup luksOpen /dev/sdd1 backup_crypt
Enter LUKS passphrase:
Command failed: /dev/sd= d1 is not a LUKS partition
thomas@Aristotle:~$ sudo cryptsetup lu= ksDump /dev/sdd1
Command failed: /dev/sdd1 is not a LUKS partition
thomas@Aristotle:~$ shoot me now
shoot: command not found

There are three things I can think of:
  • The install progr= am wrote out a new partition table, changing the partition type flag.
  • The /dev/sd= Xs were named differently, and I've scribbled all over what was /dev/sd= d1.
  • Mandriva was unaf= fected by the problem, but Kubuntu is.
  • In the first case I think I have hop= e, what steps should I take?=A0 In the second case, I think I'm SOL.=A0= I tried using the Mandriva Live CD, and got the same result, so the second= & third cases are ruled out.

    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
    I have another weird, lessor probl= em:

    At boot time, my new luks partition /dev/sda3, says "comman= d failed, bad key or options" for all three tries then boots (because = it is opened and just doesn't know it).=A0 I tested this by not giving = it the passphrase, in which case it won't boot, but if I type the passp= hrase right the first time, and blow off the other 2 tries, it boots.=A0 I = thot this might be a btrfs problem, so post boot, I formatted an empty luks= partition as btrfs, and tried unlocking it.=A0 No problem.=A0 To get root = btrfs, I followed the instructions here: http://ubuntuforums.org/showthread.php?t=3D138= 9279

    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
    Last issue:

    I'= ;ve got more drives to add to btrfs, but how=20 will it know it needs to unlock the other drives to open the root=20 partition? It's only unlocking /dev/sda3 during boot, because /dev/sdb= 2 and /dev/sdc2 aren't being used (even tho, I've got them in the cr= ypttab). From the fstab
    /dev/mapper/sda3_crypt / btrfs error=3Dremount-ro,compress 0 1
    it looks like it just needs the one. Also, they all have the same passphrase,=20 so I'd like to unlock them all at once... which mandriva did, but=20 kubuntu doesn't. Ideas?

    --
    Cheers,
    ~Thomas


    Samuel Goldwyn =A0- "I'm willing to admit that I may not alway= s be right, but I am never wrong."
    --00c09fa21a09540144047f41f910--