You are not logged in.

#1 2017-07-19 02:03:22

paulopatto
Member
Registered: 2017-07-03
Posts: 5

[SOLVED] Error in installation in ASUS X450C EFI (fixed)

Hey guys, sorry if my question is very basic and my poor English.

I'm trying to install Arch 2017 in my personal notebook (ASUS X450C model).

I follow normal install, but when I try to start system, receives a message below:

mount: Unknown filesystem type 'LVM2_member'
You are now being dropped into an emergency shell

My step-by-step to install:

archiso# loadkeys br-abnt2
archiso# wifi-menu
archiso# ping -C3 archlinux.org
archiso# cfdisk

My layout: /dev/sda

  • sda1 -> EFI System (EF00) 300MB

  • sda2 -> Linux LVM (8E00) 100% Free

I create my lvm layout with

archiso# pvcreate /dev/sda2 && vgcreate archlinux-vg /dev/sda2 
archiso# lvcreate -L40G archlinux-vg -n root
archiso# lvcreate -L4G archlinux-vg -n swap
archiso# lvcreate -l 100%FREE archlinux-vg -n home

And after this I format my partitions:

archiso# mkfs.fat -F32 /dev/sda1
archiso# mkfs.ext4 /dev/mapper/archlinux-vg-root
archiso# mkfs.ext4 /dev/mapper/archlinux-vg-home
archiso# mkswap /dev/mapper/archlinux-vg-swap

I create my disk layout with:

archiso# mount /dev/mapper/archlinux-vg-root /mnt/
archiso# mkdir /mnt/boot /mnt/home
archiso# mount /dev/mapper/archlinux-vg-home /mnt/home
archiso# mount /dev/sda1 /mnt/boot
swapon /dev/mapper/archlinux-vg-swap

Install the system and config fstab

archiso# pacstrap /mnt base base-devel vim tmux lvm2
archiso# genfstab -p /mnt >> /mnt/etc/fstab
archiso# arch-chroot /mnt

I create my symbolic link to localtime and locale.gen and rename a hostname. After this I chage /etc/mkinitcpio.conf to add HOOKS lvm2 and run `mkinitcpio -p linux` (in chroot /mnt).
After ai install UEFI boot system

#arch bootctl --path=/boot install

Config /boot/loader/loader.conf

default  arch
timeout 3
editor    0

And /boot/loader/entries/arch.conf

title    Arch Linux
linux  /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=$PARTUIID_VALUE rw quiet

Last edited by paulopatto (2017-07-19 22:44:13)

Offline

#2 2017-07-19 03:49:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Error in installation in ASUS X450C EFI (fixed)

Read the BBCode link at the bottom left of every text field: backticks don't work here.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-07-19 16:34:12

paulopatto
Member
Registered: 2017-07-03
Posts: 5

Re: [SOLVED] Error in installation in ASUS X450C EFI (fixed)

Done @jasonwryan

Offline

#4 2017-07-19 16:52:41

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Error in installation in ASUS X450C EFI (fixed)

Can you post the contents of /etc/mkinitcpio.conf please.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-07-19 21:31:07

paulopatto
Member
Registered: 2017-07-03
Posts: 5

Re: [SOLVED] Error in installation in ASUS X450C EFI (fixed)

@slithery you want I post all content of

/etc/mkinitcpio.conf

?

Offline

#6 2017-07-19 21:42:51

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Error in installation in ASUS X450C EFI (fixed)

Yes, the contents of /etc/mkinitcpio.conf from your installed system - not the mkinitcpio.conf from the install media.

Last edited by Slithery (2017-07-19 21:44:51)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2017-07-19 22:01:59

paulopatto
Member
Registered: 2017-07-03
Posts: 5

Re: [SOLVED] Error in installation in ASUS X450C EFI (fixed)

Ok @slithery see below:

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES="dm-mod ext4"

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS="base udev autodetect block filesystems"
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS="base udev block filesystems"
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev block mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev block lvm2 filesystems"
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS="base udev autodetect lvm2 modconf block filesystems keyboard fsck"

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

Last edited by paulopatto (2017-07-19 22:02:36)

Offline

#8 2017-07-19 22:06:13

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Error in installation in ASUS X450C EFI (fixed)

You have your hooks in the wrong order, lvm2 needs to be after block but before filesystems.
https://wiki.archlinux.org/index.php/LV … mkinitcpio

Chroot into your installed system, correct the order of the hooks, and then run mkinitcpio -p linux to rebuild your initramfs.

Last edited by Slithery (2017-07-19 22:10:25)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2017-07-19 22:43:45

paulopatto
Member
Registered: 2017-07-03
Posts: 5

Re: [SOLVED] Error in installation in ASUS X450C EFI (fixed)

Ok @slithery, solved.

But I need two steps:

1. Add

sd-lvm2

2. Change my

/boot/loader/entries/arch.conf

in options to point to lvm /dev/mapper/archlinux-vg-root

title    Arch Linux
linux  /vmlinuz-linux
initrd /initramfs-linux.img
options root= /dev/mapper/archlinux-vg-root rw 

Thanks guys.

Offline

Board footer

Powered by FluxBB