Page 1 of 1

[SOLVED] Oops! Crypto fail

PostPosted: Aug 17th, '13, 06:57
by mark9117
I am messing around with disc encryption and created a small encrypted partition on my laptop. I didn't like the way it worked (just created a partitoin accessible only by root), so I dleeted the partition. Now, I can't get into diskdrake:

Code: Select all
# diskdrake
device-mapper: table ioctl on crypt_sda12 failed: No such device or address
Command failed
INTERNAL ERROR: unknown device mapper/crypt_sda12
MDK::Common::Various::internal_error() called from /usr/lib/libDrakX/devices.pm:186
devices::entry() called from /usr/lib/libDrakX/devices.pm:201
devices::make() called from /usr/lib/libDrakX/fs/type.pm:276
fs::type::call_blkid() called from /usr/lib/libDrakX/fs/type.pm:284
fs::type::type_subpart_from_magic() called from /usr/lib/libDrakX/fs/dmcrypt.pm:144
fs::dmcrypt::_get_existing_one() called from /usr/lib/libDrakX/fs/dmcrypt.pm:103
fs::dmcrypt::_get_existing_one_with_state() called from /usr/lib/libDrakX/fs/dmcrypt.pm:43
fs::dmcrypt::read_crypttab_() called from /usr/lib/libDrakX/fs/dmcrypt.pm:49
fs::dmcrypt::read_crypttab() called from /usr/lib/libDrakX/fsedit.pm:86
fsedit::dmcrypts() called from /usr/lib/libDrakX/fsedit.pm:296
fsedit::get_hds() called from /usr/sbin/diskdrake:74


Trying to open up Manage Disk Partitions in the MCC, it just exits abnormally.

I can see an sda12 partiton in fdisk:

Code: Select all
fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes, 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7b62be6b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     3039119     1518536   83  Linux
/dev/sda2         3041262   212027759   104493249    5  Extended
/dev/sda5         3041280    11219039     4088880   82  Linux swap / Solaris
/dev/sda6        11223040    13532399     1154680   83  Linux
/dev/sda7        13535232    29907359     8186064   83  Linux
/dev/sda8        29911040    71774639    20931800   83  Linux
/dev/sda9        71778304    88210079     8215888   83  Linux
/dev/sda10       88213504    98446319     5116408   83  Linux
/dev/sda11       98449408   190738799    46144696   83  Linux
/dev/sda12      190742528   212027759    10642616   83  Linux


But I'm not sure what to do about this. Anybody out there have any suggestions?

Thanks.

Mark

Edit: Never mind. I removed the sda12 partition with parted. It looked a little like this:

Code: Select all
# parted
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) rm 12                                                           
(parted) quit
Information: You may need to update /etc/fstab.


Pretty cool.

Re: [SOLVED] Oops! Crypto fail

PostPosted: Aug 21st, '13, 05:53
by mark9117
Quick addendum - you also have to clear out the /etc/crypttab file. Otherwise, it tries to mount the encrypted volume that no longer exists.

I'm just saying.

Re: [SOLVED] Oops! Crypto fail

PostPosted: Aug 22nd, '13, 22:06
by morgano
Thank you for the head up.
IMHO diskdrake should fail more gracefully. Post bug?