Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: Main Ecrypted LVM not Accessible after Deleting a Different Encrypted LVM on USB HD

  1. #11
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Main Ecrypted LVM not Accessible after Deleting a Different Encrypted LVM on USB

    I have not seen that behavior before, it either aks for a password or gives an error message if it is not a LUKS partition.

    Try changing to root:

    Code:
    sudo -i
    and run the command from there.

    You can also try proceeding with the lvm commands (vgscan ... )
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  2. #12
    Join Date
    Dec 2010
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Main Ecrypted LVM not Accessible after Deleting a Different Encrypted LVM on USB

    ubuntu@ubuntu:~$ sudo cryptsetup luksOpen /dev/sda2 crypt
    ubuntu@ubuntu:~$ sudo -i
    root@ubuntu:~# cryptsetup luksOpen /dev/sda2 crypt
    root@ubuntu:~# vgscan --mknodes
    Reading all physical volumes. This may take a while...
    root@ubuntu:~# vgchange -ay
    root@ubuntu:~#

  3. #13
    Join Date
    Dec 2010
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Main Ecrypted LVM not Accessible after Deleting a Different Encrypted LVM on USB

    Here is a screen shot of the disk utility.
    Attached Images Attached Images

  4. #14
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Main Ecrypted LVM not Accessible after Deleting a Different Encrypted LVM on USB

    Mount it =)

    Your partitions are listed in /dev/mapper

    Code:
    mount /dev/mapper/your_partition /mnt
    
    ls /mnt
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  5. #15
    Join Date
    Dec 2010
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Main Ecrypted LVM not Accessible after Deleting a Different Encrypted LVM on USB

    Here it is again.
    Attached Images Attached Images

  6. #16
    Join Date
    Dec 2010
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Main Ecrypted LVM not Accessible after Deleting a Different Encrypted LVM on USB

    ubuntu@ubuntu:~$ mount /dev/mapper/your_partition /mnt
    mount: only root can do that
    ubuntu@ubuntu:~$ sudo -i
    root@ubuntu:~# mount /dev/mapper/your_partition /mnt
    mount: special device /dev/mapper/your_partition does not exist
    root@ubuntu:~# ls /mnt
    root@ubuntu:~#

  7. #17
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Main Ecrypted LVM not Accessible after Deleting a Different Encrypted LVM on USB

    The screen shot is not helpful as I do not think the graphical tool recognizes either a crypt or LVM.

    What is listed in /dev/mapper ?

    What happens when you mount your LVM partition ?
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  8. #18
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Main Ecrypted LVM not Accessible after Deleting a Different Encrypted LVM on USB

    Quote Originally Posted by jreece View Post
    ubuntu@ubuntu:~$ mount /dev/mapper/your_partition /mnt
    mount: only root can do that
    ubuntu@ubuntu:~$ sudo -i
    root@ubuntu:~# mount /dev/mapper/your_partition /mnt
    mount: special device /dev/mapper/your_partition does not exist
    root@ubuntu:~# ls /mnt
    root@ubuntu:~#
    You have to change "your_partition" to the name of your LVM partition. If you do not know what that is, ls /dev/mapper

    Side note: If you are going to use encryption and LVM I highly advise you do some reading. The time to learn how these tools work is NOT when you are having problems.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  9. #19
    Join Date
    Dec 2010
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Main Ecrypted LVM not Accessible after Deleting a Different Encrypted LVM on USB

    ubuntu@ubuntu:~$ ls /dev/mapper
    control
    ubuntu@ubuntu:~$ sudo mount /dev/mapper/control /mnt
    mount: /dev/mapper/control is not a block device
    ubuntu@ubuntu:~$

  10. #20
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Main Ecrypted LVM not Accessible after Deleting a Different Encrypted LVM on USB

    If this is a live CD, and you installed all the packages I advised, it then appears you have lost your data.

    It is odd there were no error messages, but that leaves me with nothing to go on.

    I am not aware of any data recovery software or techniques that will recover your data.

    My only guess would be you managed your partitions with a graphical tool (such as gparted) that does not recognize crypts or lvm and that this tool somehow corrupted your crypt.

    You can try

    Code:
    mount /dev/sda2 /mnt
    ls /mnt
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

Page 2 of 3 FirstFirst 123 LastLast

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
  •