You are not logged in.
Pages: 1
Hi! I'm new to this forum and to Arch as well. I installed Arch on vm a couple of weeks ago and started playing with it and I found it enjoyable. Then I decided to change my current OS with it but before I do that I wanted to try installing it inside virtualbox with a similiar partition scheme like the one I will use when I reinstall. So in reality my host has a 240GB SSD with /, /boot, /var, /home partitions and my 1TB HDD has swap partition and free space that i mount to /media/somedir and then symlink a bunch of folders to /home/username/. So the setup I did on the vm was 60GB /dev/sda (/, /boot, /var, /home) and 40GB /dev/sdb (swap and free space) so it looks pretty much like my host setup. Now the problem comes with the fact I would like to encrypt both my drives (except for /boot I dont have a whole lotta knowledge on encrypting /boot but I dont think it is necessary) and use LVM. After partitioning encrypting and creating lvm my setup looks something like this:
sda
sda1 1GB /boot
sda2 60GB
lvmVolume 60GB
lvmVolume-root 20GB
lvmVolume-var 12GB
lvmVolume-home 27GB
sdb
lvmVolume2 40GB
lvmVolume-swap 6GB
lvmVolume-freespace 34GB
So after Im satisfied with my disks I format them (ext2 for /boot and ext4 for everything else) make needed directories and mount them, I mkswap then swapon And I instal base and base-devel. after generating my filesystem table I eventually install grub-bios. I also edited /etc/mkinitcpio.conf and made HOOKS= look like this:
http://paste.debian.net/988392/
the other file I did edit was /etc/default/grub and made GRUB_CMDLINE_LINUX_DEFAULT= look like this:
http://paste.debian.net/988391/
So now when I reboot my system it asks for /dev/sda2 passphrase I enter it and it never asks for /dev/sdb passphrase and throws Failed dependency for swap and so on:
https://s26.postimg.org/flvuyjo5l/failedboot.png
So im pretty sure I messed up something somewhere or missed idk.. I would appreciate any help regarding my issue. Here's my /etc/fstab:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/volume-root
UUID=4b448dbd-d240-49d5-bc57-255be24bc481 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda1
UUID=b08014a1-7f81-41fa-a011-5b34c2aa3a8d /boot ext2 rw,relatime,block_validity,barrier,user_xattr,acl 0 2
# /dev/mapper/volume-var
UUID=d324d023-ca46-4d5e-a75d-381901a4f03f /var ext4 rw,relatime,data=ordered 0 2
# /dev/mapper/volume-home
UUID=691c2a45-5161-411a-aa08-32dd6cc78d3f /home ext4 rw,relatime,data=ordered 0 2
# /dev/mapper/volume2-freee
UUID=d7d8cf02-fab1-4e6d-972f-6ab625cb7084 /media/hdd ext4 rw,relatime,data=ordered 0 2
# /dev/mapper/volume2-swap
UUID=0f4e57d9-e3cc-493d-89ac-984ea47a5837 none swap defaults 0 0
and here's my /etc/crypttab:
# crypttab: mappings for encrypted partitions
#
# Each mapped device will be created in /dev/mapper, so your /etc/fstab
# should use the /dev/mapper/<name> paths for encrypted devices.
#
# The Arch specific syntax has been deprecated, see crypttab(5) for the
# new supported syntax.
#
# NOTE: Do not list your root (/) partition here, it must be set up
# beforehand by the initramfs (/etc/mkinitcpio.conf).
# <name> <device> <password> <options>
# home UUID=b8ad5c18-f445-495d-9095-c9ec4f9d2f37 /etc/mypassword1
# data1 /dev/sda3 /etc/mypassword2
# data2 /dev/sda5 /etc/cryptfs.key
# swap /dev/sdx4 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256
# vol /dev/sdb7 none
Well thats my issue, again all help will be appreciated! (=
Cheers!
EDIT: I changed the pictures to code except the screenshot which shows the issue. Sorry for the inconvenience.
SOLUTION: I simply made another scheme. on my filesystem table I don't have any partitions that are encrypted and I have two LUKS partitions that I manually unlock and mount whenever I need to use them.
Last edited by stolichniaskitnik (2018-02-16 10:16:20)
Offline
At very first sight, It seems to be a swap problem...
Give me the time to rethink it, however...
Nice WE!
Edit: (Typo and)
I guess, if only the recognition of 1 (one) drive fails, under Virtualbox, it would bring you this message up...
Last edited by eddilein (2017-09-29 16:16:59)
Offline
Welcome to the forums, stolichniaskitnik.
Please fix the size of your images: https://wiki.archlinux.org/index.php/Co … s_and_code
Offline
Pages: 1