[SOLVED] Oops! Crypto fail

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Oops! Crypto fail

Postby mark9117 » Aug 17th, '13, 06:57

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.
Let's just reboot everything all the time.
User avatar
mark9117
 
Posts: 395
Joined: Sep 12th, '11, 20:32
Location: Eastern New Mexico -- Not Hell, but you can see it from here.

Re: [SOLVED] Oops! Crypto fail

Postby mark9117 » Aug 21st, '13, 05:53

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.
Let's just reboot everything all the time.
User avatar
mark9117
 
Posts: 395
Joined: Sep 12th, '11, 20:32
Location: Eastern New Mexico -- Not Hell, but you can see it from here.

Re: [SOLVED] Oops! Crypto fail

Postby morgano » Aug 22nd, '13, 22:06

Thank you for the head up.
IMHO diskdrake should fail more gracefully. Post bug?
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1494
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest