Results 1 to 3 of 3

Thread: Encrypted Hard Drive Installation - Renaming the LVM Volume

  1. #1

    Encrypted Hard Drive Installation - Renaming the LVM Volume

    Hello everyone,

    I recently did an encryptic hard drive installation of Kali Linux on my Laptop and made a boneheaded mistake. I named the volume the same as the password I used. My question is simple, is There a way to rename the encrypted drive or change the password for the drive so that they are not the same? Or Do I have to start again to encrypt the hard drive with a new name/password.

    This is my first post on the site and I apologize if I have put this in the wrong spot.

    regards,

    gatherercryptic

  2. #2
    I think that if you encrypt you hdd with luks, sure you can change it,
    Maybe you can use cryptsetup luksChangeKey -y /dev/xxx, I never have used it..
    also can add new key.... cryptsetup luksAddKey -y /dev/xxx and then delete your old key cryptsetup luksRemoveKey /dev/xxx and type your old password

    you could rename the LVM, but I've never used either
    lvrename /dev/vg02/lvold /dev/vg02/lvne
    lvrename vg02 lvold lvnew
    Source:https://access.redhat.com/documentat...LV_rename.html

    Greetings!

  3. #3
    I ended up doing the following (not sure if this was even correct)

    1. vgrename /dev/vg02 /dev/my_volume_group
    2. vgrename vg02 my_volume_group

    This renamed the volume, and when I rebooted, the bootloader couldn't find the new drive, resulting in me boot either into a safe mode or a liveUSB, I forget which I had to do. but in the end I edited the /boot/grub/grub.cfg file. I did a search and found the 2 instances of my old volume name and replaced with my new volume name.

    at this point the machine is working and displays the new volume name while waiting for the password. I'm just not sure if I have covered all bases.

Similar Threads

  1. Virtualbox and external hard drive installation
    By hassan91 in forum Installing Archive
    Replies: 3
    Last Post: 2020-11-29, 13:08
  2. Dual boot Kali with Linux Mint on LUKS encrypted Hard Drive
    By Zepher in forum Installing Archive
    Replies: 0
    Last Post: 2016-04-04, 18:25
  3. Is my Kali Linux installation drive encrypted?
    By thexer in forum Installing Archive
    Replies: 1
    Last Post: 2014-05-22, 11:56
  4. Encrypted installation on hard disk easy to crack?
    By pamamolf in forum General Archive
    Replies: 3
    Last Post: 2013-09-19, 16:55
  5. Replies: 0
    Last Post: 2013-05-01, 12:27

Posting Permissions

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