[Novalug] Error mounting /dev/dm-0 | luks usb drive

Daniel Green dgreen@techais.com
Tue Jul 9 12:59:21 EDT 2013


I'm getting this error trying to mount a luks usb drive.  I tried
goggling it, but none of the solutions are working.   


Error message on my Fedora 18 box using Nautilus. I'm trying to mount a
usb luks drive:
---
Error mounting /dev/dm-0 at /run/media/user/160backup: Command-line
`mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/dm-0"
"/run/media/user/160backup"' exited with non-zero exit status 32: mount:
wrong fs type, bad option, bad superblock
on /dev/mapper/luks-ce3a1675-bf35-446e-b439-21145d4706eb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so

----
dmesg:
[ 3940.529403] EXT4-fs (dm-0): ext4_check_descriptors: Block bitmap for
group 0 not in group (block 2266154809)!
[ 3940.529413] EXT4-fs (dm-0): group descriptors corrupted!
---

fdisk -l
/dev/sdb1            2048   312581805   156289879   83  Linux
Disk /dev/mapper/luks-ce3a1675-bf35-446e-b439-21145d4706eb: 160.0 GB,
160038738944 bytes, 312575662 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

---
I tried unlocking it from the terminal:  Doesn't work!
cryptsetup -v luksOpen /dev/sdb1 sdb1_crypt

Enter passphrase for /dev/sdb1: 

Key slot 0 unlocked.
Cannot use device /dev/sdb1 which is in use (already mapped or mounted).
Command failed with code 16: Cannot use device /dev/sdb1 which is in use
(already mapped or mounted).
-------

I try to unmount it:  Does't work!
umount: /dev/mapper/luks-ce3a1675-bf35-446e-b439-21145d4706eb: not
mounted
umount /dev/sdb1
----

I use the luksDump command: 

cryptsetup -v luksDump /dev/sdb1 
LUKS header information for /dev/sdb1

Version:       	1
Cipher name:   	aes
Cipher mode:   	cbc-essiv:sha256
Hash spec:     	sha1
Payload offset:	4096...
-----

Then I tried to repair this drive with:
fsck -y /dev/mapper/luks-ce3a1675-bf35-446e-b439-21145d4706eb

output:
Pass 3A: Optimizing directories
Signal (11) SIGSEGV si_code=SI_KERNEL fault addr=(nil)
fsck.ext4[0x426f20]
/lib64/libc.so.6[0x3043a35cd0]
fsck.ext4[0x4233b2]
/lib64/libc.so.6[0x3043a37788]
/lib64/libc.so.6(qsort_r+0x223)[0x3043a38363]
fsck.ext4(e2fsck_rehash_dir+0x281)[0x4238b1]
fsck.ext4(e2fsck_rehash_directories+0x11e)[0x42454e]
fsck.ext4(e2fsck_pass3+0x616)[0x4197e6]
fsck.ext4(e2fsck_run+0x57)[0x40dd97]
fsck.ext4(main+0xd3c)[0x40a05c]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x3043a21a05]
fsck.ext4[0x40bc6d]luks-ce3a1675-bf35-446e-b439-21145d4706eb

----

Still cannot mount the drive.  

Any suggestions?  --Thanks




More information about the Novalug mailing list