Results 1 to 8 of 8

Thread: reinstall on encrypted fs

  1. #1
    Join Date
    Nov 2006
    Location
    Michigan, US
    Beans
    77
    Distro
    Ubuntu 9.10 Karmic Koala

    Question reinstall on encrypted fs

    I would like to reinstall Jaunty from the cd on an LUKS encrypted fs, created with the Intrepid installer. How to do this?

    I have one encrypted lvm with all my partitions on top of it (I think).

    I've been googling and checking the forums for the whole two hours I had planned on watching Superbad, so your help is quite appreciated.
    PC: AMD64 X2 2.2 GHz, 2 GB RAM, 80+120+320+500 GB HDD, Jaunty 9.04/Win 6.0.0.1
    Laptop: Turion X2 1.60 GHz, 2 GB RAM, 160 GB HDD, Jaunty 9.04/Win 7.0
    Server: P4 2.0 GHz, 512 MB RAM, 80 GB HDD, Fedora 7 -- temporarily decommissioned

  2. #2
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: reinstall on encrypted fs

    Here are instructions on how to setup a whole-disk encrypted system: http://users.piuha.net/martti/comp/u...cryptolvm.html

    Although it is called whole-disk encryption, the /boot partition must be left unencrypted so GRUB can boot the system.

    The link above refers to Hardy, but it works the same in Intrepid. I assume it also works with the Jaunty Alternate Install CD.

  3. #3
    Join Date
    Nov 2006
    Location
    Michigan, US
    Beans
    77
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: reinstall on encrypted fs

    Thanks for the link, good information. Will this allow me to install Jaunty on an already encrypted fs, while giving me access to my other three already encrypted partitions as well?
    PC: AMD64 X2 2.2 GHz, 2 GB RAM, 80+120+320+500 GB HDD, Jaunty 9.04/Win 6.0.0.1
    Laptop: Turion X2 1.60 GHz, 2 GB RAM, 160 GB HDD, Jaunty 9.04/Win 7.0
    Server: P4 2.0 GHz, 512 MB RAM, 80 GB HDD, Fedora 7 -- temporarily decommissioned

  4. #4
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: reinstall on encrypted fs

    The Alternate Install CD has the dm-crypt module loaded into the kernel by default, so
    when you run the alternate installer, it should be able to recognize the LUKS-encrypted partitions that you have already made.

  5. #5
    Join Date
    Nov 2006
    Location
    Michigan, US
    Beans
    77
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: reinstall on encrypted fs

    first run with the Jaunty alternate CD: I get to the partitioning screen, select 'manual', and then get scared. It shows the desired hdd with options to set it as an 'lvm' or 'encrypted lvm' (among all the usual suspects), but I don't want to commit the changes to disk and risk not being able to get into my system.

    If someone could give me a step by step of exactly how to use the Alternate CD to install (reformat) Jaunty over the existing Intrepid installation on the LUKS lvm, that would ease my fears.

    Particularly, I think once I get to the partitioner I should select the appropriate hdd and set it to 'use as encrypted lvm'. However, I just don't know what will happen once the changes are written to the table, and I don't want to mess it up and be locked out of my drives AND lose all the data.

    Thoughts?
    PC: AMD64 X2 2.2 GHz, 2 GB RAM, 80+120+320+500 GB HDD, Jaunty 9.04/Win 6.0.0.1
    Laptop: Turion X2 1.60 GHz, 2 GB RAM, 160 GB HDD, Jaunty 9.04/Win 7.0
    Server: P4 2.0 GHz, 512 MB RAM, 80 GB HDD, Fedora 7 -- temporarily decommissioned

  6. #6
    Join Date
    Jun 2009
    Beans
    27

    Thumbs down Re: reinstall on encrypted fs

    this http://sunoano.name/ws/public_xhtml/dm-crypt_luks.html is quite a good site about on-disk encryption as well

    hth

  7. #7
    Join Date
    Nov 2006
    Location
    Michigan, US
    Beans
    77
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: reinstall on encrypted fs

    Thx ducksun. I gave that a read and wow, a bit over my head for sure. However, if I do run into a situation where my installation of Jaunty messes up my existing LUKS volume I at least have a starting point.
    PC: AMD64 X2 2.2 GHz, 2 GB RAM, 80+120+320+500 GB HDD, Jaunty 9.04/Win 6.0.0.1
    Laptop: Turion X2 1.60 GHz, 2 GB RAM, 160 GB HDD, Jaunty 9.04/Win 7.0
    Server: P4 2.0 GHz, 512 MB RAM, 80 GB HDD, Fedora 7 -- temporarily decommissioned

  8. #8
    Join Date
    Nov 2006
    Location
    Michigan, US
    Beans
    77
    Distro
    Ubuntu 9.10 Karmic Koala

    Exclamation Re: reinstall on encrypted fs

    Well, I hosed my partition/volume in quite the unprecedented manner.

    For those who come to this thread after me, please note:
    a) it appears a google search of this domain is more accurate and fruitful than utilizing the forum's own search tools; after hosing my system, I retroactively found the answer to my initial question in post 1 by googling it.
    b) you must boot the alternate cd in RECOVERY MODE. There are instructions somewhere that I will link later.

    My last question before I sadly reformat the entire drive is a volume manager one. How can I get my volumes back? I rewrote the partition table with identically sized partitions, but did NOT format any partitions. So, the data is still there and intact, I just need to make the volume manager 'see' the volumes.

    In chronological order, this is what happened:
    1. I booted alternate cd
    2. not knowing that I had to go to RECOVERY MODE, i proceeded with the installation of Jaunty
    3. I went through the partition creation, making sure i did NOT format the partitions
    4. then it asked about volumes, so I attempted to create them
    5. after realizing this might hose my system, i canceled the whole operation
    6. I booted into the LiveCD, verified that my hdd appeared unformatted and empty
    7. tried to resurrect my volumes via volume manager, but no dice


    Not to belabor the pt, but to be clear: I created a new, identically sized (LUKS encrypted, same passphrase) partition via the Jaunty installer, and now my volumes are gone. Can I get them back?
    PC: AMD64 X2 2.2 GHz, 2 GB RAM, 80+120+320+500 GB HDD, Jaunty 9.04/Win 6.0.0.1
    Laptop: Turion X2 1.60 GHz, 2 GB RAM, 160 GB HDD, Jaunty 9.04/Win 7.0
    Server: P4 2.0 GHz, 512 MB RAM, 80 GB HDD, Fedora 7 -- temporarily decommissioned

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
  •