Results 1 to 6 of 6

Thread: Cryptsetup - can not access device

  1. #1
    Join Date
    Mar 2007
    Location
    UK, Staffordshire
    Beans
    348
    Distro
    Ubuntu 11.04 Natty Narwhal

    Cryptsetup - can not access device [SOLVED]

    For some reason I cannot access my encryted usb key anymore, this was working fine up to last week but now I get the following error when mounting manually. Gnome will no longer mount, I enter the passphrase but no mapping occurs.

    Code:
    sudo cryptsetup -v luksOpen /dev/sdf sdf
    Command failed: Can not access device
    luksDump

    Code:
     sudo cryptsetup luksDump /dev/sdf 
    LUKS header information for /dev/sdf
    
    Version:       	1
    Cipher name:   	aes
    Cipher mode:   	cbc-essiv:sha256
    Hash spec:     	sha1
    Payload offset:	1032
    MK bits:       	128
    MK digest:     	07 24 c4 81 c4 89 4f 85 3d d4 27 98 fc 36 79 ad d8 18 9b 81 
    MK salt:       	a8 49 21 c1 5e d2 56 f4 98 b5 cb 36 6c 10 1a 84 
                   	10 ea ea cf fd 0f bf b2 de 65 2e f7 ab a0 1b 7b 
    MK iterations: 	10
    UUID:          	00ec49c7-cd73-48da-b2e4-fe4ac1442d7e
    
    Key Slot 0: ENABLED
    	Iterations:         	167199
    	Salt:               	a1 12 a9 78 1c 5b e0 59 1c 98 07 49 68 66 05 d4 
    	                      	93 83 62 9e a9 c1 7f 21 99 8e ff 73 8d f3 60 2e 
    	Key material offset:	8
    	AF stripes:            	4000
    Key Slot 1: ENABLED
    	Iterations:         	139990
    	Salt:               	44 5e 4e 1e c7 4a 33 f3 66 f1 25 80 37 df 6a 73 
    	                      	9b 74 a6 03 56 d0 72 fd f1 ca ec d5 06 55 f8 6f 
    	Key material offset:	136
    	AF stripes:            	4000
    Key Slot 2: DISABLED
    Key Slot 3: DISABLED
    Key Slot 4: DISABLED
    Key Slot 5: DISABLED
    Key Slot 6: DISABLED
    Key Slot 7: DISABLED
    Fdisk of drive, think it has always said this as raw drive is unformatted.

    Code:
    sudo fdisk -l /dev/sdf
    
    Disk /dev/sdf: 8029 MB, 8029470208 bytes
    248 heads, 62 sectors/track, 1019 cylinders
    Units = cylinders of 15376 * 512 = 7872512 bytes
    Disk identifier: 0x08020000
    
    Disk /dev/sdf doesn't contain a valid partition table
    Last edited by ushills; April 15th, 2009 at 12:20 PM.
    Box 1 | Xubuntu 12.10 64 bit | Gigabyte GA-MA78GM-S3H rev2 / AMD 5900+ | 250Gb Hitachi SATA / 4Gb RAM
    Ubuntu User #14507[/U] | GPG Key 0xBE7E87FD

  2. #2
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: Cryptsetup - can not access device

    please provide the following info:

    Code:
    sudo fdisk -l

  3. #3
    Join Date
    Mar 2007
    Location
    UK, Staffordshire
    Beans
    348
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Cryptsetup - can not access device

    the drive mounts as /dev/sdf and the fdisk -l is given in post #1. Only other drive is sda which has my ubuntu partition.
    Box 1 | Xubuntu 12.10 64 bit | Gigabyte GA-MA78GM-S3H rev2 / AMD 5900+ | 250Gb Hitachi SATA / 4Gb RAM
    Ubuntu User #14507[/U] | GPG Key 0xBE7E87FD

  4. #4
    Join Date
    Mar 2007
    Location
    UK, Staffordshire
    Beans
    348
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Cryptsetup - can not access device

    Output of fdisk for information

    Code:
     sudo fdisk -l
    
    Disk /dev/sda: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000b4ef0
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        3187    25599546   83  Linux
    /dev/sda2           30270       30401     1060290    5  Extended
    /dev/sda3            3188       30269   217536165   83  Linux
    /dev/sda5           30270       30401     1060258+  82  Linux swap / Solaris
    
    Partition table entries are not in disk order
    
    Disk /dev/sdf: 8029 MB, 8029470208 bytes
    248 heads, 62 sectors/track, 1019 cylinders
    Units = cylinders of 15376 * 512 = 7872512 bytes
    Disk identifier: 0x08020000
    
    Disk /dev/sdf doesn't contain a valid partition table
    Box 1 | Xubuntu 12.10 64 bit | Gigabyte GA-MA78GM-S3H rev2 / AMD 5900+ | 250Gb Hitachi SATA / 4Gb RAM
    Ubuntu User #14507[/U] | GPG Key 0xBE7E87FD

  5. #5
    Join Date
    Mar 2007
    Location
    UK, Staffordshire
    Beans
    348
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Cryptsetup - can not access device

    it appears that this is a long standing bug with gnome-mount. It appears that gnome unlocks the encrypted usb partition as i end up with a device in /dev/mapper/ called luks_crypto and a series of numbers. However, gnome will not mount this device.
    Box 1 | Xubuntu 12.10 64 bit | Gigabyte GA-MA78GM-S3H rev2 / AMD 5900+ | 250Gb Hitachi SATA / 4Gb RAM
    Ubuntu User #14507[/U] | GPG Key 0xBE7E87FD

  6. #6
    Join Date
    Mar 2007
    Location
    UK, Staffordshire
    Beans
    348
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Cryptsetup - can not access device [SOLVED]

    Though I would help if anyone else had this issue, solved by reformatting usb drive to create a primary partition in my case sdf1 then creating luksformat on this primary partition. Now it auto-mounts.
    Box 1 | Xubuntu 12.10 64 bit | Gigabyte GA-MA78GM-S3H rev2 / AMD 5900+ | 250Gb Hitachi SATA / 4Gb RAM
    Ubuntu User #14507[/U] | GPG Key 0xBE7E87FD

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •