Skip to main content

Thread: Installing LILO on an encrypted system


the scenario: clean , single hard disk installed alternate cd (ubuntu 9.10) , partitioned manually with:
  • primary partition /boot
  • primary partition encryption
    • single volume lvm
      • logical volume swap
      • logical volume root (/)
      • logical volume /home

some reason there must installed lilo instead of grub. describe here steps done, once installed system, steps done live-cd install lilo:

(supposing sda1 /boot , sda2 crypt area)

code:
# sure have lvm amb crypt software installed , running  sudo apt-get install lvm2 cryptsetup  sudo modprobe dm-crypt  sudo cryptsetup luksopen /dev/sda2 sda2  sudo vgscan --mknodes  sudo vgchange -ay  sudo pvs # see list of lvm groups  sudo lvdisplay /dev/mygroup # see list of logical volumes in group called "mygroup"  sudo mkdir /tmp/theroot  sudo mount /dev/mygroup/myrootvolume /tmp/theroot  sudo mount --bind /dev /tmp/theroot/dev  sudo mount --bind /proc /tmp/theroot/proc  sudo cp /etc/resolv.conf /tmp/theroot/etc/resolv.conf #(may or may not necessary establish internet connection)  sudo chroot /tmp/theroot  #then run whatever commands needed - no sudo needed (maybe run "df- h" , "cat /etc/issue" mounted correct partition).  mount /dev/sda1 /boot  apt-get update  apt-get remove grub-pc grub-common  apt-get install lilo  # @ point, edit file /etc/fstab change uuid references traditional references: /dev/sda1 , /dev/sda2 , /dev/mapper/mygroup-myrootvolume ,...  # reason there isn't /etc/lilo.conf , need use super-simple sample:  cp /usr/share/doc/lilo/examples/conf.sample /etc/lilo.conf  # edit new file /etc/lilo.conf set "boot" , "root" parameters according /etc/fstab  liloconfig # options yes.  lilo  #when done:  exit  sudo umount /tmp/theroot/dev  sudo umount /tmp/theroot/proc  sudo umount /tmp/theroot  sudo cryptsetup luksclose sda2
...but "liloconfig" , "lilo" commands shows lot of warnings , bootloader doesn't install in mbr. don't know reason, , i've left lvm & crypt idea, i've written here wants complete recipe.



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [all variants] Installing LILO on an encrypted system


Ubuntu

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???