You are not logged in.

#1 2017-08-06 18:44:22

philipW
Member
Registered: 2017-03-21
Posts: 145

[SOLVED] arch cant find my root partition and wont boot

So i got a new nvme ssd and cloned my old ssd to it.
First i grub didnt show up so i booted from an usb with arch iso and did:

mount /dev/nvme0n1p5 /mnt
arch-chroot /mnt
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/nvme0n1p5

Now grub works fine it seems but when i boot arch i see this:
(no idea how to get those logs widout / mounted so i took a picture)
http://imgur.com/a/xoAQi

I booted a ubuntu bootable usb to check if the UUIDS in my fstab are right but it seems they are.

this is my fdisk -l:

kubuntu@kubuntu:~$ sudo fdisk -l
Disk /dev/loop0: 1.6 GiB, 1732902912 bytes, 3384576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x06008704

Device       Boot   Start     End Sectors  Size Id Type
/dev/loop0p1 *          0 3384575 3384576  1.6G  0 Empty
/dev/loop0p2      3362880 3367487    4608  2.3M ef EFI (FAT-12/16/32)


Disk /dev/loop1: 1.6 GiB, 1678491648 bytes, 3278304 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D101075A-02B8-43E6-B5C0-4B302EB6A0C4

Device             Start       End   Sectors   Size Type
/dev/nvme0n1p1        34    262177    262144   128M Microsoft reserved                                          
/dev/nvme0n1p2    264192    796671    532480   260M EFI System                                                        
/dev/nvme0n1p3    796672 331552767 330756096 157.7G Microsoft basic data                                                             
/dev/nvme0n1p4 331552768 365107199  33554432    16G Linux swap                                                                       
/dev/nvme0n1p5 365107200 499324927 134217728    64G Linux filesystem                                                                 
/dev/nvme0n1p6 499324928 500346879   1021952   499M Windows recovery environment                                                     
                                                                                                                                     
                                                                                                                                     
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors                                                                    
Units: sectors of 1 * 512 = 512 bytes                                                                                                
Sector size (logical/physical): 512 bytes / 4096 bytes                                                                               
I/O size (minimum/optimal): 4096 bytes / 4096 bytes                                                                                  
Disklabel type: gpt                                                                                                                  
Disk identifier: 28413E6A-D33B-472D-813A-E4A6B956BFFE                                                                                
                                                                                                                                     
Device          Start        End    Sectors   Size Type                                                                              
/dev/sda1        2048 1114662911 1114660864 531.5G Microsoft basic data                                                              
/dev/sda2  1324378112 1953525134  629147023   300G Linux filesystem
/dev/sda3  1114662912 1324378111  209715200   100G Microsoft basic data

Partition table entries are not in disk order.


Disk /dev/sdb: 14.5 GiB, 15524167680 bytes, 30320640 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x88cf0dff

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *     2048 30320639 30318592 14.5G  c W95 FAT32 (LBA)

/dev/nvme0n1p5 is my /
This is my blkid:

kubuntu@kubuntu:~$ sudo blkid
/dev/nvme0n1p2: LABEL="SYSTEM" UUID="9C75-6EA4" TYPE="vfat" PARTUUID="05c16629-be53-473f-b0a4-10ad2220e198"                          
/dev/nvme0n1p3: LABEL="SSD" UUID="4EEE7977EE7957E3" TYPE="ntfs" PARTUUID="0f21010f-8717-4e84-acc4-573cee7840d2"                      
/dev/nvme0n1p6: LABEL="RECOVERY" UUID="2064786C64784716" TYPE="ntfs" PARTUUID="3d1fa597-cd30-45d7-83a8-99248b6e1f23"                 
/dev/sda1: LABEL="HDD" UUID="467A4FEF7A4FDA77" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="50068f0b-7be4-42f8-9d57-0cadd6da6b38"                                                                                                                               
/dev/sda3: LABEL="SHARE" UUID="6C85B34F1D4D6C77" TYPE="ntfs" PTTYPE="dos" PARTUUID="f1631b70-785e-4cd1-b048-479978c919cc"            
/dev/sdb1: LABEL="MULTIBOOT" UUID="0805-2C0F" TYPE="vfat" PARTUUID="88cf0dff-01"                                                     
/dev/loop0: UUID="2017-04-12-03-45-08-00" LABEL="Kubuntu 17.04 amd64" TYPE="iso9660" PTUUID="06008704" PTTYPE="dos"                  
/dev/loop1: TYPE="squashfs"                                                                                                          
/dev/nvme0n1: PTUUID="d101075a-02b8-43e6-b5c0-4b302eb6a0c4" PTTYPE="gpt"                                                             
/dev/nvme0n1p1: PARTUUID="a1de2cd1-3d84-4949-8cec-2ebb1095bd29"                                                                      
/dev/nvme0n1p4: UUID="bfa0fff3-2b92-4cdb-8f8c-9098814e500d" TYPE="swap" PARTUUID="335fa97d-ef6d-4b08-b2f0-5a396558aef9"              
/dev/nvme0n1p5: UUID="482cf21a-99a7-4a0a-9ad4-9049a19896b7" TYPE="ext4" PARTUUID="0f2c2849-671f-432f-9c9c-00b695b2c6ff"              
/dev/sda2: UUID="b46017d2-5532-4840-b964-a23ae09e5869" TYPE="ext4" PARTUUID="fe94746f-0a8e-4c29-a863-c1c17fd18514"  

And here is my fstab:

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/nvme0n1p5 /
UUID=482cf21a-99a7-4a0a-9ad4-9049a19896b7       /               ext4            rw,relatime,data=ordered        0 1

# /dev/sdb2 home
UUID=b46017d2-5532-4840-b964-a23ae09e5869       /home           ext4            rw,relatime,data=ordered        0 2

# /dev/nvme0n1p4 swap
UUID=bfa0fff3-2b92-4cdb-8f8c-9098814e500d       none            swap            defaults        0 0

#/dev/sdb3                                /home/philip/vmwware   ntfs-3g        rw,permissions,auto                0 0
#share map
UUID=6C85B34F1D4D6C77                     /home/philip/vmwware   ntfs-3g        rw,permissions,auto                0 0

#flipnet1 muziek
//192.168.1.3/Music                       /home/philip/flipnet1/music  cifs  credentials=/etc/samba/user,noexec    0 0

UUID=9C75-6EA4                            /boot/efi                    vfat  defaults                              0 1

I also read on the wiki that i need to add the nvme module in the modules array in /etcmkinitcpio.conf i did that but it didnt help.

mkinitcpio.conf:

# 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="nvme"

# 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 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" 

Last edited by philipW (2017-08-09 08:52:00)

Offline

#2 2017-08-06 19:27:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,877

Re: [SOLVED] arch cant find my root partition and wont boot

Did you create the fstab using the ubuntu information or using genfstab from the arch installation medium?

Offline

#3 2017-08-06 19:40:39

philipW
Member
Registered: 2017-03-21
Posts: 145

Re: [SOLVED] arch cant find my root partition and wont boot

I only changed the UUID of the swap and / with the info ubuntu provided.
I did use genfstab when i installed arch a few months back.
I added

#/dev/sdb3                                /home/philip/vmwware   ntfs-3g        rw,permissions,auto                0 0
#share map
UUID=6C85B34F1D4D6C77                     /home/philip/vmwware   ntfs-3g        rw,permissions,auto                0 0

#flipnet1 muziek
//192.168.1.3/Music                       /home/philip/flipnet1/music  cifs  credentials=/etc/samba/user,noexec    0 0

UUID=9C75-6EA4                            /boot/efi                    vfat  defaults                              0 1

myself later.

Offline

#4 2017-08-06 19:44:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,877

Re: [SOLVED] arch cant find my root partition and wont boot

check that against the UUIDs genfstab creates (or just look them up from the installation medium)

Offline

#5 2017-08-06 19:56:31

philipW
Member
Registered: 2017-03-21
Posts: 145

Re: [SOLVED] arch cant find my root partition and wont boot

seth wrote:

check that against the UUIDs genfstab creates (or just look them up from the installation medium)

should i chroot into arch and then do genfstab?

Offline

#6 2017-08-06 19:59:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,877

Re: [SOLVED] arch cant find my root partition and wont boot

Yes, or just blkid.

Offline

#7 2017-08-06 21:01:07

philipW
Member
Registered: 2017-03-21
Posts: 145

Re: [SOLVED] arch cant find my root partition and wont boot

genfstab provided me with the same uuid that ubuntu did

Offline

#8 2017-08-06 21:05:02

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [SOLVED] arch cant find my root partition and wont boot

When you are dropped to a rescue shell does /dev/nvme0n1p5 exist and can you run blkid then?

Offline

#9 2017-08-06 21:10:37

philipW
Member
Registered: 2017-03-21
Posts: 145

Re: [SOLVED] arch cant find my root partition and wont boot

loqs wrote:

When you are dropped to a rescue shell does /dev/nvme0n1p5 exist and can you run blkid then?


Yes but i cant see the nvmessd partitions only my hdd partitions.

Offline

#10 2017-08-06 21:12:13

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] arch cant find my root partition and wont boot

Usually I prefer to use 'lsblk -o +uuid', I find it easier to see the info I need but blkid is fine too, just make sure you run it as root and maybe use 'blkid -c /dev/null' to make sure blkid is not reading from some stale cache file.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#11 2017-08-06 21:15:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,877

Re: [SOLVED] arch cant find my root partition and wont boot

Try the failsafe image, also compare the outputs of "lsmod" on working and non-working systems.

Offline

#12 2017-08-06 21:41:05

philipW
Member
Registered: 2017-03-21
Posts: 145

Re: [SOLVED] arch cant find my root partition and wont boot

seth wrote:

Try the failsafe image, also compare the outputs of "lsmod" on working and non-working systems.

Whats a failsafe image?

Should i  chroot into my not working arch and do lsmod and then compare it to for examble the lsmod of my ubuntu usb?

Offline

#13 2017-08-06 21:51:19

philipW
Member
Registered: 2017-03-21
Posts: 145

Re: [SOLVED] arch cant find my root partition and wont boot

if you mean with failsafe the one under advanced options with (fallback initramfs) that one works.

Offline

#14 2017-08-06 22:12:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,877

Re: [SOLVED] arch cant find my root partition and wont boot

That's what I meant and this means you lack a module in the "normal" image.
You need to compare the lsmod of the rescue shell with a functional boot to understand which module makes the difference (and notably whether nvme is available)

Offline

#15 2017-08-07 10:00:59

philipW
Member
Registered: 2017-03-21
Posts: 145

Re: [SOLVED] arch cant find my root partition and wont boot

https://imgur.com/a/wEWO6
Here is the lsmod from my not working arch.
I will be posting the lsmod from the working fallback initramfs in a minute.

Offline

#16 2017-08-07 10:04:46

philipW
Member
Registered: 2017-03-21
Posts: 145

Re: [SOLVED] arch cant find my root partition and wont boot

philip@FlipArch ~ $ lsmod
Module                  Size  Used by
rfcomm                 69632  2
nls_utf8               16384  0
cifs                  393216  0
dns_resolver           16384  1 cifs
fscache                53248  1 cifs
ctr                    16384  4
ccm                    20480  2
vmnet                  53248  13
ppdev                  20480  0
parport_pc             28672  0
parport                40960  2 parport_pc,ppdev
vmw_vsock_vmci_transport    28672  0
vsock                  32768  1 vmw_vsock_vmci_transport
vmw_vmci               61440  1 vmw_vsock_vmci_transport
bnep                   20480  2
vmmon                  81920  0
fuse                   98304  5
hid_multitouch         20480  0
arc4                   16384  2
nvidia_drm             45056  1
nvidia_modeset        798720  4 nvidia_drm
nvidia              11476992  68 nvidia_modeset
nls_iso8859_1          16384  1
nls_cp437              20480  1
vfat                   20480  1
fat                    65536  1 vfat
iTCO_wdt               16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
i2c_designware_platform    16384  0
iwlmvm                278528  0
i2c_designware_core    20480  1 i2c_designware_platform
mac80211              675840  1 iwlmvm
asus_nb_wmi            28672  0
asus_wmi               24576  1 asus_nb_wmi
sparse_keymap          16384  1 asus_wmi
mxm_wmi                16384  0
intel_rapl             20480  0
iwlwifi               192512  1 iwlmvm
x86_pkg_temp_thermal    16384  0
drm_kms_helper        126976  1 nvidia_drm
intel_powerclamp       16384  0
coretemp               16384  0
drm                   294912  4 nvidia_drm,drm_kms_helper
cfg80211              507904  3 iwlmvm,iwlwifi,mac80211
snd_hda_codec_realtek    73728  1
snd_hda_codec_generic    69632  1 snd_hda_codec_realtek
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
kvm_intel             188416  0
kvm                   520192  1 kvm_intel
snd_hda_intel          32768  2
ip6t_REJECT            16384  1
nf_reject_ipv6         16384  1 ip6t_REJECT
r8169                  77824  0
snd_hda_codec         106496  3 snd_hda_intel,snd_hda_codec_generic,snd_hda_codec_realtek
irqbypass              16384  1 kvm
nf_log_ipv6            16384  5
uvcvideo               86016  0
crct10dif_pclmul       16384  0
mii                    16384  1 r8169
ghash_clmulni_intel    16384  0
snd_hda_core           65536  4 snd_hda_intel,snd_hda_codec,snd_hda_codec_generic,snd_hda_codec_realtek
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
snd_hwdep              16384  1 snd_hda_codec
videobuf2_v4l2         20480  1 uvcvideo
aesni_intel           167936  4
snd_pcm                90112  3 snd_hda_intel,snd_hda_codec,snd_hda_core
videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
aes_x86_64             20480  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
glue_helper            16384  1 aesni_intel
ablk_helper            16384  1 aesni_intel
idma64                 20480  0
cryptd                 20480  3 ablk_helper,ghash_clmulni_intel,aesni_intel
mousedev               20480  0
videodev              151552  3 uvcvideo,videobuf2_core,videobuf2_v4l2
snd_timer              28672  1 snd_pcm
xt_hl                  16384  22
mei_me                 36864  0
btusb                  40960  0
snd                    69632  11 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm
evdev                  24576  20
joydev                 20480  0
i2c_i801               24576  0
media                  32768  2 uvcvideo,videodev
btrtl                  16384  1 btusb
input_leds             16384  0
ip6t_rt                16384  3
mei                    86016  1 mei_me
soundcore              16384  1 snd
processor_thermal_device    16384  0
shpchp                 32768  0
mac_hid                16384  0
pcspkr                 16384  0
i2c_smbus              16384  1 i2c_i801
intel_lpss_pci         16384  0
intel_soc_dts_iosf     16384  1 processor_thermal_device
thermal                20480  0
nf_conntrack_ipv6      20480  8
nf_defrag_ipv6         36864  1 nf_conntrack_ipv6
i2c_hid                20480  0
ipt_REJECT             16384  1
nf_reject_ipv4         16384  1 ipt_REJECT
hci_uart               86016  0
nf_log_ipv4            16384  5
nf_log_common          16384  2 nf_log_ipv6,nf_log_ipv4
btbcm                  16384  2 hci_uart,btusb
xt_LOG                 16384  10
btqca                  16384  1 hci_uart
battery                20480  0
btintel                16384  2 hci_uart,btusb
bluetooth             495616  33 btrtl,hci_uart,btintel,btqca,bnep,btbcm,rfcomm,btusb
ac                     16384  0
int3403_thermal        16384  0
int340x_thermal_zone    16384  2 int3403_thermal,processor_thermal_device
xt_limit               16384  13
rfkill                 20480  7 asus_wmi,bluetooth,cfg80211
xt_tcpudp              16384  18
wmi                    16384  2 asus_wmi,mxm_wmi
video                  36864  1 asus_wmi
xt_addrtype            16384  4
tpm_crb                16384  0
intel_lpss_acpi        16384  0
asus_wireless          16384  0
intel_lpss             16384  2 intel_lpss_pci,intel_lpss_acpi
int3400_thermal        16384  0
acpi_thermal_rel       16384  1 int3400_thermal
led_class              16384  4 iwlmvm,asus_wmi,input_leds,asus_wireless
acpi_pad               20480  0
acpi_als               16384  0
button                 16384  0
kfifo_buf              16384  1 acpi_als
tpm_tis                16384  0
fjes                   28672  0
industrialio           53248  2 acpi_als,kfifo_buf
tpm_tis_core           20480  1 tpm_tis
tpm                    36864  3 tpm_tis,tpm_crb,tpm_tis_core
nf_conntrack_ipv4      16384  8
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
xt_conntrack           16384  16
ip6table_filter        16384  1
ip6_tables             28672  1 ip6table_filter
nf_conntrack_netbios_ns    16384  0
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nf_nat_ftp             16384  0
nf_nat                 24576  1 nf_nat_ftp
nf_conntrack_ftp       20480  1 nf_nat_ftp
nf_conntrack           94208  8 nf_conntrack_ipv6,nf_conntrack_ftp,nf_conntrack_ipv4,nf_conntrack_broadcast,nf_nat_ftp,nf_conntrack_netbios_ns,xt_conntrack,nf_nat
iptable_filter         16384  1
sch_fq_codel           20480  8
ip_tables              24576  1 iptable_filter
x_tables               28672  13 xt_LOG,ipt_REJECT,ip_tables,iptable_filter,xt_tcpudp,xt_limit,ip6t_REJECT,ip6table_filter,xt_addrtype,ip6t_rt,xt_conntrack,ip6_tables,xt_hl
ext4                  524288  2
crc16                  16384  2 bluetooth,ext4
jbd2                   90112  1 ext4
fscrypto               24576  1 ext4
mbcache                16384  3 ext4
hid_generic            16384  0
usbhid                 49152  0
hid                   114688  4 i2c_hid,hid_generic,usbhid,hid_multitouch
sd_mod                 36864  3
serio_raw              16384  0
atkbd                  24576  0
libps2                 16384  1 atkbd
crc32_pclmul           16384  0
crc32c_intel           24576  0
ahci                   36864  2
nvme                   28672  3
libahci                28672  1 ahci
nvme_core              28672  5 nvme
xhci_pci               16384  0
libata                212992  2 ahci,libahci
xhci_hcd              172032  1 xhci_pci
scsi_mod              155648  2 sd_mod,libata
usbcore               208896  5 uvcvideo,usbhid,xhci_pci,btusb,xhci_hcd
usb_common             16384  1 usbcore
i8042                  28672  1 asus_nb_wmi
serio                  20480  4 serio_raw,atkbd,i8042

What  i noticed is that the normal arch image doesnt load ''nvme'' and ''nvme_core''
On the wiki i read that you somethimes need to put a module in  /etc/mkinitcpio.conf i already did that.
So i put nvme_core also in it like this:

# 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="nvme nvme_core"

# 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 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" 

It doesnt work.

Last edited by philipW (2017-08-07 10:14:39)

Offline

#17 2017-08-07 10:16:43

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [SOLVED] arch cant find my root partition and wont boot

Did you rebuild the initrd after changing /etc/mkinitcpio.conf?

Offline

#18 2017-08-08 10:47:19

philipW
Member
Registered: 2017-03-21
Posts: 145

Re: [SOLVED] arch cant find my root partition and wont boot

No i didnt.
I will try doing that when i get home.

Offline

#19 2017-08-09 08:51:21

philipW
Member
Registered: 2017-03-21
Posts: 145

Re: [SOLVED] arch cant find my root partition and wont boot

i recreated initrd with

mkinitcpio --allpresets

and now everything works smile
https://giphy.com/gifs/3oEjI6hkw6nbYNQkz6

Offline

Board footer

Powered by FluxBB