You are not logged in.

#1 2016-07-31 16:17:02

jddantes
Member
Registered: 2013-07-28
Posts: 39

[SOLVED] mount: unknown filesystem type 'ext4' on first boot

I've followed the instructions all the way to the bootloader and then restart in the Beginner's guide.

I'm dual booting Arch with a machine that already has Windows 10 installed. EFI is in /dev/sda2 and the Arch partition I'm working with is /dev/sda5.

Grub seems fine as grub.cfg entries point to root='hd0,gpt5'.
Fstab also looks good, matching the correct UUID.

I've tried adding 'ext4' to the MODULES array of mkinitcpio.conf, but it didn't help.

What else can I do? Selecting the Arch option in Grub just leads to the unknown fs error, and then drops to a rootfs shell.

Last edited by jddantes (2016-08-02 07:25:05)

Offline

#2 2016-07-31 17:16:16

frostschutz
Member
Registered: 2013-11-15
Posts: 1,471

Re: [SOLVED] mount: unknown filesystem type 'ext4' on first boot

In the rootfs shell can you mount it or not? Does lsmod show loaded modules? cat /proc/filesystems?

Offline

#3 2016-07-31 17:42:27

jddantes
Member
Registered: 2013-07-28
Posts: 39

Re: [SOLVED] mount: unknown filesystem type 'ext4' on first boot

What do I mount? I can't see the partitions, lsblk and fdisk aren't found.

Filesystems http://i.imgur.com/0F44yVd.jpg
lsmod http://i.imgur.com/bvuxptc.jpg

Mod note: Please read the CoC and only post thumbnails. https://wiki.archlinux.org/index.php/Code_of_conduct -- WorMzy

Last edited by WorMzy (2016-07-31 17:59:56)

Offline

#4 2016-07-31 21:28:38

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,269
Website

Re: [SOLVED] mount: unknown filesystem type 'ext4' on first boot

jddantes wrote:

Grub seems fine as grub.cfg entries point to root='hd0,gpt5'.
Fstab also looks good, matching the correct UUID.

Can we see the actual files please?

This link will probably be useful:
https://wiki.archlinux.org/index.php?ti … in_clients

Did you install Arch in UEFI mode?

Please provide the exact commands used to install the bootloader to your disk.

The output of these commands would also be good:

# parted -l
# efibootmgr -v

Para todos todo, para nosotros nada

Offline

#5 2016-08-01 04:48:19

jddantes
Member
Registered: 2013-07-28
Posts: 39

Re: [SOLVED] mount: unknown filesystem type 'ext4' on first boot

Parted output

Model: ATA WDC WD5000LPVX-6 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  683MB   682MB   ntfs         Basic data partition          hidden, diag
 2      683MB   955MB   273MB   fat32        EFI system partition          boot, esp
 3      955MB   1089MB  134MB                Microsoft reserved partition  msftres
 4      1089MB  254GB   253GB   ntfs         Basic data partition          msftdata
 5      254GB   478GB   224GB   ext4
 6      478GB   479GB   477MB   ntfs                                       hidden, diag
 7      479GB   500GB   21.1GB  ntfs         Basic data partition          hidden, msftdata


Model: TDK LoR TF10 (scsi)
Disk /dev/sdb: 7731MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      88.1kB  42.0MB  41.9MB  primary  fat16        esp



                                                                          

                                                                          
Model: hp DVD RAM UJ8E2 (scsi)
Disk /dev/sr0: 426kB
Sector size (logical/physical): 2048B/2048B
Partition Table: unknown
Disk Flags: 

efibootmgr:

BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 2001,0001,3001,0004,2002,2003
Boot0000* Notebook Hard Drive	BBS(HD,,0x500)................-.U.......U.A.U....................................c........A.........................
Boot0001* Windows Boot Manager	HD(2,GPT,314172c1-8a7f-46d7-a955-52d218278001,0x145800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...I................
Boot0002* USB Hard Drive - TDK LoR TF10	BBS(7,,0x500)...................................................................v........A.....................
Boot0003* USB Hard Drive (UEFI) - TDK LoR TF10	PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/HD(1,MBR,0x4294967184,0xac,0x14000)RC
Boot0004* grub	HD(2,GPT,314172c1-8a7f-46d7-a955-52d218278001,0x145800,0x82000)/File(\EFI\grub\grubx64.efi)
Boot2001* USB Drive (UEFI)	RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)	RC
Boot3000* Internal Hard Disk or Solid State Disk	RC
Boot3001* Internal Hard Disk or Solid State Disk	RC
Boot3003* Internal Hard Disk or Solid State Disk	RC

For grub, I installed grub, os-prober, and efibootmgr. Then:

mount /dev/sda2 /boot
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
grub-mkconfig -o /boot/grub/grub.cfg

grub.cfg is here ptpb.pw/g1P5

/etc/fstab

# 
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>   <dump>  <pass> 
# /dev/sda5
UUID=54368af4-6208-4d44-9c67-ebe33b56811a   /           ext4        rw,relatime,data=ordered    0 1

/proc/filesystems https://ptpb.pw/QSjQ

lsmod | grep ext4

ext4                  520192  1
crc16                  16384  1 ext4 
jbd2                   90112  1 ext4
mbcache                16384  2 ext4

Last edited by jddantes (2016-08-01 04:50:52)

Offline

#6 2016-08-01 20:09:28

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,269
Website

Re: [SOLVED] mount: unknown filesystem type 'ext4' on first boot

jddantes wrote:

For grub, I installed grub, os-prober, and efibootmgr. Then:

mount /dev/sda2 /boot

Why did you mount the ESP at this stage?

Was /dev/sda2 mounted to /boot when you ran the `pacstrap` command to install the system?

Is there a kernel image & initramfs on the ESP?

# mount /dev/sda2 /mnt
ls /mnt
# umount -R /mnt

/etc/fstab

# 
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>   <dump>  <pass> 
# /dev/sda5
UUID=54368af4-6208-4d44-9c67-ebe33b56811a   /           ext4        rw,relatime,data=ordered    0 1

This would strongly suggest that the ESP was *not* mounted to /boot when `genfstab` was run.

Is systemd mounting the ESP automatically?

grep sda2 /proc/self/mounts

Para todos todo, para nosotros nada

Offline

#7 2016-08-02 05:33:26

jddantes
Member
Registered: 2013-07-28
Posts: 39

Re: [SOLVED] mount: unknown filesystem type 'ext4' on first boot

Oh I see. I did not mount /mnt/boot when I mounted /mnt (I overlooked that part because I only used a single partition so I thought it wasn't relevant). Will try to reinstall then.

Offline

#8 2016-08-02 06:54:29

jddantes
Member
Registered: 2013-07-28
Posts: 39

Re: [SOLVED] mount: unknown filesystem type 'ext4' on first boot

Right, the fstab is different now. Will try to see how it goes from here. Thank you!
https://ptpb.pw/ih09

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/sda5
UUID=076e5498-eca9-4d6a-b528-4eafed70ed32	/         	ext4      	rw,relatime,data=ordered	0 1

# /dev/sda2
UUID=8096-F5EB      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2

Offline

#9 2016-08-02 07:24:23

jddantes
Member
Registered: 2013-07-28
Posts: 39

Re: [SOLVED] mount: unknown filesystem type 'ext4' on first boot

Okay, it did work. Thanks so much!

Offline

Board footer

Powered by FluxBB