(how to) install antiX 17 in LVM

Forum Forums General Tips and Tricks (how to) install antiX 17 in LVM

  • This topic has 4 replies, 4 voices, and was last updated May 5-8:15 am by Brian Masinick.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1749
    Member
    wean_irdeh

      The official antiX installer doesn’t support LVM yet, but no problem! This article got you covered on install antiX on LVM!
      But sorry, since this is not official method, I won’t be responsible for any damage you have caused
      assumption: a. you already know how to partition, b. you are using antiX 17 full version

      1. install LVM

      sudo apt-get update && sudo apt-get install lvm2

      2. partition your LVM using gparted

      gparted can be found from menu on right click -> system tools
      don’t forget to add LVM flags after creating the partition
      At least 6GB for partition size is recommended

      3. create physical volume

      sudo pvcreate /dev/sdXY
      where X is letter of your disk and Y is number of your partition
      example: /dev/sda1

      4. create volume group

      sudo vgcreate vg0 /dev/sdXY

      5. create logical volume, for root partition and swap

      sudo lvcreate -n /dev/mapper/vg0-antix.rootfs -L 5G vg0
      sudo lvcreate -n /dev/mapper/vg0-swap -L 1G vg0

      6. activate the new logical volume

      vgchange -ay

      7. format the new logical volume and activate swap

      sudo mkfs.ext4 /dev/mapper/vg0-antix.rootfs
      sudo mkswap /dev/mapper/vg0-swap

      8. mount the partition for installation

      mkdir /mnt/antiX
      sudo mount /dev/mapper/vg0-antix.rootfs /mnt/antiX

      9. create some directories

      sudo mkdir /mnt/antiX/opt -m 0755
      sudo mkdir /mnt/antiX/dev -m 0755
      sudo mkdir /mnt/antiX/proc -m 0755
      sudo mkdir /mnt/antiX/sys -m 0755
      sudo mkdir /mnt/antiX/run -m 0755

      10. copy files

      sudo /bin/cp -a /live/aufs/bin /live/aufs/boot /live/aufs/dev /live/aufs/etc /live/aufs/lib /live/aufs/lib64 /live/aufs/media /live/aufs/mnt /live/aufs/opt /live/aufs/root /live/aufs/sbin /live/aufs/selinux /live/aufs/usr /live/aufs/var /live/aufs/home /mnt/antiX

      11. mount for chroot

      sudo mount -o bind /dev /mnt/antiX/dev
      sudo mount -o bind /sys /mnt/antiX/sys
      sudo mount -o bind /proc /mnt/antiX/proc

      12. for UEFI installation: mount EFI system partition

      mkdir /mnt/antiX/boot/efi
      sudo mount -t vfat /dev/sdXY /mnt/antiX/boot/efi

      where X: letter of your disk, and Y: number of your EFI system partition
      you can check gparted to see your EFI system partition, usually it’s /dev/sda1

      13. chroot into your new installation

      sudo chroot /mnt/antiX

      14. install grub

      grub-mkdevicemap

      on BIOS system: grub-install --target=i386-pc --recheck --no-floppy --force --boot-directory=/boot /dev/sdX
      where X: letter of your disk

      on UEFI system grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=antiX16 --recheck

      15. update grub so configfile will be generated

      update-grub

      16. Voila! installation finished, now reboot your system to start using antiX from LVM!!

      thanks skidoo for your help on LVM and thanks anticapitalista for the source code of gui installer found on github

      #9740
      Forum Admin
      Dave
        Helpful
        Up
        0
        ::

        Note:
        I did not read the entire post at this moment

        Question:
        Was it not possible to setup lvm partitioning and then specify the lvm partition in the cli-installer?

        I know the current gui installer would be limited for this but I would guess that the cli-installer was still general enough to do the install.

        Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown

        #9897
        Member
        wean_irdeh
          Helpful
          Up
          0
          ::

          @Dave

          No.

          See this post for more details: https://www.antixforum.com/forums/topic/cant-install/#post-3412

          #9915
          Member
          sleekmason
            Helpful
            Up
            0
            ::

            Just saw this thread. I have no idea why my kernel list is posted here. I did not do this. Please remove from wean_irdeh ‘s thread.

            #9916
            Moderator
            Brian Masinick
              Helpful
              Up
              0
              ::

              Just saw this thread. I have no idea why my kernel list is posted here. I did not do this. Please remove from wean_irdeh ‘s thread.

              I removed the misplaced post – looks like the same message moved to a separate topic.

              --
              Brian Masinick

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.