Guest User

Untitled

a guest
Jul 6th, 2015
341
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # parted /dev/sda
  2. (parted) mklabel msdos
  3. (parted) mkpart primary ext2 2MiB 2GiB
  4. (parted) mkpart primary ext4 2GiB 100%
  5. (parted) set 1 boot on
  6. (parted) q
  7.  
  8. # mkfs.ext2 /dev/sda1
  9. # cryptsetup --key-size 512 --hash sha512 --iter-time 5000 --use-random luksFormat /dev/sda2
  10.  
  11. # cryptsetup open --type luks /dev/sda2 r00t
  12.  
  13. # pvcreate /dev/mapper/lvm
  14. # vgcreate MyStorage /dev/mapper/r00t
  15.  
  16. # lvcreate -L 2GiB MyStorage -n swapvol
  17. # lvcreate -L 3GiB MyStorage -n tmpvol
  18. # lvcreate -L 30GiB MyStorage -n rootvol
  19. # lvcreate -l +100%FREE MyStorage -n homevol
  20.  
  21. # mkswap /dev/mapper/MyStorage-swapvol
  22. # mkfs.ext4 /dev/mapper/MyStorage-homevol
  23. # mkfs.ext4 /dev/mapper/MyStorage-rootvol
  24. # mkfs.ext4 /dev/mapper/MyStorage-tmpvol
  25.  
  26. # mount /dev/MyStorage/rootvol /mnt
  27. # mkdir /mnt/home
  28. # mount /dev/MyStorage/homevol /mnt/home
  29. # mkdir /mnt/tmp
  30. # mount /dev/MyStorage/tmpvol /mnt/tmp
  31. # swapon /dev/MyStorage/swapvol
  32.  
  33. # mkdir /mnt/boot
  34. # mount /dev/sda1 /mnt/boot
  35.  
  36. # nano mkinitcpio.conf
  37. added "encrypt lvm2" to /etc/mkinitcpio.conf hooks: HOOKS="base udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck"
  38.  
  39. # nano /etc/resolv.conf
  40. replaced DNS with 8.8.8.8
  41.  
  42. # pacstrap /mnt base base-devel
  43.  
  44. # genfstab -U -p /mnt >> /mnt/etc/fstab
  45.  
  46. # arch-chroot /mnt /bin/bash
  47.  
  48. uncommened e_us.UTF-8 UTF-8 in /etc/locale.gen
  49. # locale-gen
  50. # echo LANG=en_US.UTF-8 > /etc/locale.conf
  51. # export LANG=en_US.UTF-8
  52.  
  53. # ln -sf /usr/share/zoneinfo/Europe/Sofia /etc/localtime
  54.  
  55. # hwclock --systohc --utc
  56.  
  57. # echo myhstnm > /etc/hostname
  58. added "myhstnm" to /etc/hosts
  59.  
  60. # systemctl enable dhcpcd@enp4s4.service
  61.  
  62. # nano mkinitcpio.conf
  63. added "encrypt lvm2" to /etc/mkinitcpio.conf hooks: HOOKS="base udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck"
  64. # mkinitcpio -p linux
  65.  
  66. # pacman -S networkmanager
  67. # systemctl enable NetworkManager.service
  68.  
  69. # passwd
  70.  
  71. # pacman -S grub os-prober
  72.  
  73. # grub-install --recheck /dev/sda
  74. # grub-mkconfig -o /boot/grub/grub.cfg
  75. Generating grub configuration file ...
  76. /run/lvm/lvmetad.socket: connect failed: No such file or directory
  77. WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
  78. # nano /etc/lvm/lvm.conf
  79. changed "use_lvmetad = 1" to "use_lvmetad= 0"
  80. # grub-mkconfig -o /boot/grub/grub.cfg
  81.  
  82. # exit
  83.  
  84. # reboot
  85.  
  86.  
  87. same errors as before
  88.  
  89.  
  90. # cryptsetup open --type luks /dev/sda2 r00t
  91.  
  92. # mount /dev/MyStorage/rootvol /mnt
  93. # mount /dev/MyStorage/homevol /mnt/home
  94. # mount /dev/MyStorage/tmpvol /mnt/tmp
  95. # swapon /dev/MyStorage/swapvol
  96. # mount /dev/sda1 /mnt/boot
  97.  
  98. # nano mkinitcpio.conf
  99. added "encrypt lvm2" to /etc/mkinitcpio.conf hooks: HOOKS="base udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck"
  100.  
  101. # nano /etc/resolv.conf
  102. replaced DNS with 8.8.8.8
  103.  
  104. # arch-chroot /mnt /bin/bash
  105.  
  106. # nano /etc/default/grub
  107. changed: GRUB_CMDLINE_LINUX="cryptdevice=UUID=11c8d724-7ae8-4ca3-a1e8-658d6aaee6ab:MyStorage root=/dev/mapper/MyStorage-rootvol"
  108.  
  109. # grub-mkconfig -o /boot/grub/grub.cfg
  110.  
  111. # mkinitcpio -p linux
  112.  
  113. # grub-mkconfig -o /boot/grub/grub.cfg
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×