Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: [SOLVED] How to mount encrypted, LVM volumes?

  1. #11
    Join Date
    Oct 2009
    Beans
    7

    Re: [SOLVED] How to mount encrypted, LVM volumes?

    Hi there, thanks for posting the solution to your boggle.

    I had a Fedora install with LVM and couldn't access the files until I used your instructions on my Jaunty 9.04 desktop with the LVM drive attached via usb.

    Two things; firstly I couldn't depmod dm_mod - I got a module not found error although this did not impact my success.

    Code:
    FATAL: Module dm_mod not found.
    Secondly to unmount the drive I had to use the -l switch on the umount command:

    Code:
    sudo umount -l /media/root
    otherwise the unmount failed due to a process or user accessing it.

    Thanks again!

  2. #12
    Join Date
    Dec 2007
    Location
    Idaho
    Beans
    4,976
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: [SOLVED] How to mount encrypted, LVM volumes?

    It's been awhile since I wrote this thread but

    dm_mod is for encryption, so if you were just using lvm and not encryption and didn't install luks then that's why dm_mod wasn't found. Since you weren't using luks encryption it worked anyways.

    Happy lvm'ing!
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  3. #13
    Join Date
    Jul 2007
    Beans
    18

    Re: [SOLVED] How to mount encrypted, LVM volumes?

    Sorry to drag up old threads from the dead but I'm having a similar problem unmounting the drive;

    [root@jaguar mapper]# ls -al /dev
    brw-rw----. 1 root disk 8, 0 Aug 7 21:34 sda
    brw-rw----. 1 root disk 8, 1 Aug 7 21:34 sda1
    brw-rw----. 1 root disk 8, 2 Aug 7 22:19 sda2
    brw-rw----. 1 root disk 8, 16 Aug 7 21:34 sdb
    brw-rw----. 1 root disk 8, 17 Aug 7 21:34 sdb1
    brw-rw----. 1 root disk 8, 18 Aug 7 21:34 sdb2
    [root@jaguar mapper]# umount -f /dev/sda2
    umount: /dev/sda2: not mounted

    [root@jaguar mapper]# umount -f /dev/sda1
    umount: /dev/sda1: not mounted

    [root@jaguar mapper]# umount -f /dev/sda
    umount: /dev/sda: not mounted

    [root@jaguar mapper]# cryptsetup luksOpen /dev/sda2 oldsystem
    Enter passphrase for /dev/sda2:
    Cannot use device /dev/sda2 which is in use (already mapped or mounted).
    [root@jaguar mapper]#

    whats all that about is there something using the drive that I can kill off?

  4. #14
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,807
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: [SOLVED] How to mount encrypted, LVM volumes?

    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.

Page 2 of 2 FirstFirst 12

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
  •