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.
-
AuthorPosts
-
November 3, 2017 at 5:23 am #1749Member
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 version1. install LVM
sudo apt-get update && sudo apt-get install lvm22. 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 recommended3. create physical volume
sudo pvcreate /dev/sdXY
where X is letter of your disk and Y is number of your partition
example: /dev/sda14. create volume group
sudo vgcreate vg0 /dev/sdXY5. 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 vg06. activate the new logical volume
vgchange -ay7. format the new logical volume and activate swap
sudo mkfs.ext4 /dev/mapper/vg0-antix.rootfs
sudo mkswap /dev/mapper/vg0-swap8. mount the partition for installation
mkdir /mnt/antiX
sudo mount /dev/mapper/vg0-antix.rootfs /mnt/antiX9. 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 075510. 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/antiX11. 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/proc12. for UEFI installation: mount EFI system partition
mkdir /mnt/antiX/boot/efi
sudo mount -t vfat /dev/sdXY /mnt/antiX/boot/efiwhere 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/sda113. chroot into your new installation
sudo chroot /mnt/antiX14. install grub
grub-mkdevicemapon BIOS system:
grub-install --target=i386-pc --recheck --no-floppy --force --boot-directory=/boot /dev/sdX
where X: letter of your diskon UEFI system
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=antiX16 --recheck15. update grub so configfile will be generated
update-grub16. 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
April 27, 2018 at 4:46 pm #9740Forum Admin
Dave
::Note:
I did not read the entire post at this momentQuestion:
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
May 4, 2018 at 8:25 pm #9897Memberwean_irdeh
::@Dave
No.
See this post for more details: https://www.antixforum.com/forums/topic/cant-install/#post-3412
May 5, 2018 at 4:04 am #9915Member
sleekmason
::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.
May 5, 2018 at 8:15 am #9916Moderator
Brian Masinick
::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 -
AuthorPosts
- You must be logged in to reply to this topic.