Skip to main content
Topic: F2FS installation fails (Read 2718 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

F2FS installation fails

Hey guys, so I decided to try re-installing Artix on my main PC with F2FS, but I've run into an error.
Its failed & given the same error twice now, so I decided I'd try to enable netinstall=yes to see whether that'll make it work or not.
Still waiting for results from the netinstall=yes way, netinstall=no gives me this error every time:

Edit: Yep, at 88% it fails when doing the netinstall=yes too, same error....... I thought F2FS was fixed???? :/

Code: [Select]
Boost.Python error in job "bootloader".
<class 'subprocess.CalledProcessError'>
Command 'grub-install --target=x86_64-efi --efi-directory=/boot/efi
--bootloader-id=Artix --force' returned non-zero exit status 1.
Traceback:
  File "/usr/lib/calamares/modules/bootloader/main.py", line 348, in run
    prepare_bootloader(fw_type)

  File "/usr/lib/calamares/modules/bootloader/main.py", line 319, in
prepare_bootloader
    install_grub(efi_directory, fw_type)

  File "/usr/lib/calamares/modules/bootloader/main.py", line 244, in install_grub
    "--force"])

  File "<string>", line 2, in <module>

Not sure if this is relevant or not but figured I would include it anyways...

Code: [Select]
14:58:32 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "pacman-key", "--init") 
14:58:33 [0]: Finished. Exit code: 0
14:58:33 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "pacman-key", "--populate", "archlinux", "artix")
14:58:38 [0]: Finished. Exit code: 0
14:58:38 [0]: Starting job "networkcfg"
14:58:38 [1]: Job file "/usr/lib/calamares/modules/networkcfg/main.py"
14:58:38 [1]: Job "networkcfg" (doc) -> "Setup network configuration"
14:58:38 [0]: Starting job "machineid"
14:58:38 [1]: Standard paths ("/home/artix", "/usr/bin", "/usr/share/locale")
14:58:38 [1]: Checking "en_US.UTF-8" in "/home/artix"
14:58:38 [1]: Checking "en_US.UTF-8" in "/usr/bin"
14:58:38 [1]: Checking "en_US.UTF-8" in "/usr/share/locale"
14:58:38 [1]: Checking "en_US" in "/home/artix"
14:58:38 [1]: Checking "en_US" in "/usr/bin"
14:58:38 [1]: Checking "en_US" in "/usr/share/locale"
14:58:38 [1]: Job file "/usr/lib/calamares/modules/machineid/main.py"
14:58:38 [1]: Job "machineid" (func) -> "Generate machine-id."
14:58:38 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "dbus-uuidgen", "--ensure")
14:58:38 [0]: Finished. Exit code: 0
14:58:38 [0]: Starting job "fstab"
14:58:38 [1]: Job file "/usr/lib/calamares/modules/fstab/main.py"
14:58:38 [1]: Job "fstab" (doc) -> "Configures fstab."
14:58:38 [0]: Starting job "Set timezone to America/Toronto"
14:58:38 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "rm", "-f", "/etc/localtime")
14:58:38 [0]: Finished. Exit code: 0
14:58:38 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "ln", "-s", "/usr/share/zoneinfo/America/Toronto", "/etc/localtime")
14:58:38 [0]: Finished. Exit code: 0
14:58:38 [0]: Starting job "Set keyboard model to pc105, layout to us-"
14:58:38 [1]: Executing SetKeyboardLayoutJob
14:58:38 [1]: Found legacy keymap "us" with score 11
14:58:38 [1]: Found legacy keymap "us-acentos" with score 11
14:58:38 [1]: Found legacy keymap "dvorak" with score 11
14:58:38 [1]: Found legacy keymap "dvorak" with score 11
14:58:38 [1]: Written KEYMAP= "us" to vconsole.conf
14:58:38 [1]: Written XkbLayout "us" ; XkbModel "pc105" ; XkbVariant "" to X.org file "/tmp/calamares-root-bknfmako/etc/X11/xorg.conf.d/00-keyboard.conf"
14:58:38 [1]: Written XKBMODEL "pc105" ; XKBLAYOUT "us" ; XKBVARIANT "" to /etc/default/keyboard file "/tmp/calamares-root-bknfmako/etc/default/keyboard"
14:58:38 [0]: Starting job "localecfg"
14:58:38 [1]: Job file "/usr/lib/calamares/modules/localecfg/main.py"
14:58:38 [1]: Job "localecfg" (doc) -> "Create locale"
14:58:38 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "locale-gen")
14:58:39 [0]: Finished. Exit code: 0
locale.gen done
14:58:39 [0]: Starting job "luksopenswaphookcfg"
14:58:39 [1]: Job file "/usr/lib/calamares/modules/luksopenswaphookcfg/main.py"
14:58:39 [1]: Job "luksopenswaphookcfg" (doc) -> "This module sets up the openswap hook for a resumable encrypted swap."
14:58:39 [0]: Starting job "luksbootkeyfile"
14:58:39 [1]: Job file "/usr/lib/calamares/modules/luksbootkeyfile/main.py"
14:58:39 [1]: Job "luksbootkeyfile" (doc) -> "This module sets up a file crypto_keyfile.bin on the rootfs, assuming the"
14:58:39 [0]: Starting job "initcpiocfg"
14:58:40 [1]: Job file "/usr/lib/calamares/modules/initcpiocfg/main.py"
14:58:40 [1]: Job "initcpiocfg" (doc) -> "Calls routine with given parameters to modify '/etc/mkinitcpio.conf'."
14:58:40 [0]: Starting job "initcpio"
14:58:40 [1]: Job file "/usr/lib/calamares/modules/initcpio/main.py"
14:58:40 [1]: Job "initcpio" (doc) -> "Calls routine to create kernel initramfs image."
14:58:40 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "mkinitcpio", "-p", "linux")
14:58:57 [0]: Finished. Exit code: 0
14:58:57 [0]: Starting job "Create user kz"
14:58:57 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "groupadd", "autologin")
14:58:57 [0]: Finished. Exit code: 0
14:58:57 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "useradd", "-m", "-s", "/bin/bash", "-U", "-c", "kz", "kz")
14:58:57 [0]: Finished. Exit code: 0
14:58:57 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "usermod", "-aG", "video,power,storage,optical,network,lp,scanner,wheel,users,audio,autologin", "kz")
14:58:57 [0]: Finished. Exit code: 0
14:58:57 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "chown", "-R", "kz:kz", "/home/kz")
14:58:57 [0]: Finished. Exit code: 0
14:58:57 [0]: Starting job "Set password for user kz"
14:58:57 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "usermod", "-p", "$6$V3b.F02HauTtjSWe$TxPntP0b7QZ13SgQd0H3lVeU9I8TORw9Rt230edJNlMb6O6PmGN5JCTt64gHF.GLTbNLlFr9jO2XcCf1wzdrE0", "kz")
14:58:57 [0]: Finished. Exit code: 0
14:58:57 [0]: Starting job "Set password for user root"
14:58:57 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "usermod", "-p", "$6$LLDzVkaWS/BCLTyI$HqUx2Yqnc.stX9imF6M6S9eHAaAyeLBG9fenQtN9lDh/Sna6QPsq1K1xz4O7jaqD3VMJZ72rzKiYSM4eI5psQ.", "root")
14:58:57 [0]: Finished. Exit code: 0
14:58:57 [0]: Starting job "Set hostname kz-desktop"
14:58:57 [0]: Starting job "displaymanager"
14:58:57 [1]: Job file "/usr/lib/calamares/modules/displaymanager/main.py"
14:58:57 [1]: Job "displaymanager" (doc) -> "Configure display managers."
14:58:57 [1]: [PYTHON JOB]:  "slim selected but not installed"
14:58:57 [1]: [PYTHON JOB]:  "lightdm selected but not installed"
14:58:57 [1]: [PYTHON JOB]:  "gdm selected but not installed"
14:58:57 [1]: [PYTHON JOB]:  "mdm selected but not installed"
14:58:57 [1]: [PYTHON JOB]:  "lxdm selected but not installed"
14:58:57 [1]: [PYTHON JOB]:  "Setting up autologin for user kz."
14:58:57 [0]: Starting job "hwclock"
14:58:57 [1]: Job file "/usr/lib/calamares/modules/hwclock/main.py"
14:58:57 [1]: Job "hwclock" (doc) -> "Set hardware clock."
14:58:57 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "hwclock", "--systohc", "--utc")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [1]: [PYTHON JOB]:  "Hwclock set using RTC method."
14:58:58 [0]: Starting job "servicescfg"
14:58:58 [1]: Job file "/usr/lib/calamares/modules/servicescfg/main.py"
14:58:58 [1]: Job "servicescfg" (doc) -> "Setup openrc services"
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "sed", "-e", "s|^.*rc_shell=.*|rc_shell=\"/usr/bin/sulogin\"|", "-i", "/etc/rc.conf")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "sed", "-e", "s|^.*rc_controller_cgroups=.*|rc_controller_cgroups=\"YES\"|", "-i", "/etc/rc.conf")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "sed", "-e", "s|^.*keymap=.*|keymap=\"us\"|", "-i", "/etc/conf.d/keymaps")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "sed", "-e", "s|^.*DISPLAYMANAGER=.*|DISPLAYMANAGER=\"sddm\"|", "-i", "/etc/conf.d/xdm")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "rc-update", "add", "elogind", "boot")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "rc-update", "add", "acpid", "default")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "rc-update", "add", "bluetooth", "default")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "rc-update", "add", "cronie", "default")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "rc-update", "add", "cupsd", "default")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "rc-update", "add", "dbus", "default")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "rc-update", "add", "syslog-ng", "default")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "rc-update", "add", "NetworkManager", "default")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "rc-update", "add", "xdm", "default")
14:58:58 [0]: Finished. Exit code: 0
14:58:58 [0]: Starting job "grubcfg"
14:58:58 [1]: Job file "/usr/lib/calamares/modules/grubcfg/main.py"
14:58:58 [1]: Job "grubcfg" (doc) -> "Calls routine with given parameters to modify '/etc/default/grub'."
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "sh", "-c", "which dracut")
14:58:58 [0]: Finished. Exit code: 1
14:58:58 [0]: Target cmd ("sh", "-c", "which dracut")
14:58:58 [0]: Target out "which: no dracut in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)"
14:58:58 [0]: Starting job "bootloader"
14:58:58 [1]: Job file "/usr/lib/calamares/modules/bootloader/main.py"
14:58:58 [1]: Job "bootloader" (doc) -> "Starts procedure and passes 'fw_type' to other routine."
Bootloader: grub (efi)
14:58:58 [0]: Running "chroot" ("/tmp/calamares-root-bknfmako", "grub-install", "--target=x86_64-efi", "--efi-directory=/boot/efi", "--bootloader-id=Artix", "--force")
14:58:59 [0]: Finished. Exit code: 1
14:58:59 [0]: Target cmd ("grub-install", "--target=x86_64-efi", "--efi-directory=/boot/efi", "--bootloader-id=Artix", "--force")
14:58:59 [0]: Target out "Installing for x86_64-efi platform.\ngrub-install: error: unknown filesystem."
14:58:59 [1]: tbMsg "  File &quot;/usr/lib/calamares/modules/bootloader/main.py&quot;, line 348, in run\n    prepare_bootloader(fw_type)\n\n  File &quot;/usr/lib/calamares/modules/bootloader/main.py&quot;, line 319, in prepare_bootloader\n    install_grub(efi_directory, fw_type)\n\n  File &quot;/usr/lib/calamares/modules/bootloader/main.py&quot;, line 244, in install_grub\n    &quot;--force&quot;])\n\n  File &quot;&lt;string&gt;&quot;, line 2, in &lt;module&gt;\n"
14:58:59 [0]: Installation failed:
14:58:59 [0]: - message: "Boost.Python error in job \"bootloader\"."
14:58:59 [0]: - details: "<div><strong>&lt;class 'subprocess.CalledProcessError'&gt;</strong></div><div>Command 'grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Artix --force' returned non-zero exit status 1.</div><div>Traceback:</div><div><pre>  File &quot;/usr/lib/calamares/modules/bootloader/main.py&quot;, line 348, in run\n    prepare_bootloader(fw_type)\n\n  File &quot;/usr/lib/calamares/modules/bootloader/main.py&quot;, line 319, in prepare_bootloader\n    install_grub(efi_directory, fw_type)\n\n  File &quot;/usr/lib/calamares/modules/bootloader/main.py&quot;, line 244, in install_grub\n    &quot;--force&quot;])\n\n  File &quot;&lt;string&gt;&quot;, line 2, in &lt;module&gt;\n</pre></div>"
14:58:59 [0]: Calamares will quit when the dialog closes.
14:58:59 [1]: FinishedPage::setUpRestart()

Re: F2FS installation fails

Reply #1
I also running artix on f2fs, but installed it via chroot and booted directly via efistub,
if you installed artix using calamares installer, it will automatically install grub bootloader,
in that case, you might need to chroot and manually edit grub.cfg, just follow this Arch wiki manual,

https://wiki.archlinux.org/index.php/F2FS#GRUB_with_root_on_F2FS

Re: F2FS installation fails

Reply #2
I also running artix on f2fs, but installed it via chroot and booted directly via efistub,
if you installed artix using calamares installer, it will automatically install grub bootloader,
in that case, you might need to chroot and manually edit grub.cfg, just follow this Arch wiki manual,

https://wiki.archlinux.org/index.php/F2FS#GRUB_with_root_on_F2FS

Hey mate, I'm having some trouble with figuring this out, I know how to install Arch Linux on non-UEFI systems, how do I do it without formatting my FAT32 EFI drive? I'm kinda confused... where do I mount the /boot/efi drive to?? I've searched up like 3 or 4 different guides but I'm still confused... one guide said to mount the EFI partition at /mnt/esp but idk if that's right or not... 

Do I just mount the EFI drive to /mnt/boot ? Is that correct? I'm afraid of messing up my EFI drive because I have Windows installed on this PC for gaming.


Code: [Select]
genfstab -U /mnt >> /mnt/etc/fstab
bash: /mnt/etc/fstab: Permission denied
[artix@artix ~]$ sudo !!
sudo  genfstab -U /mnt >> /mnt/etc/fstab
bash: /mnt/etc/fstab: Permission denied

and I'm also getting, once chrooted,

Code: [Select]
pacman -S grub
resolving dependencies...
looking for conflicting packages...

Packages (1) grub-2:2.02-4

Total Download Size:    6.01 MiB
Total Installed Size:  30.38 MiB

:: Proceed with installation? [Y/n] y
error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Re: F2FS installation fails

Reply #3
Well, that was the reason why im booting my artix via efistub and write boot entry directly using efibootmgr,
im not really know how grub work(i dont use it), but on efistub, all my kernel image and initramfs are on /mnt/boot.

After installing via chroot (basestrap /mnt base efibootmgr +(any other package you need)

Chroot into your /mnt and configure all the other thing, hostname, locale, etc..,

lastly type this in terminal in chroot

efibootmgr --disk /dev/sda --part 1 --create --label "Artix Linux" --loader \vmlinuz-linux --unicode "root=/dev/sda2 rw initrd=/initramfs-linux.img"

U need to adjust your disk name and partition, for me, my /boot(kernel+initramfs) are on /dev/sda and partition 1, so efibootmgr --disk /dev/sda --part 1 blablaba,

and make sure you specify your root(/) path correctly for me its /dev/sda2, so root=/dev/sda2

You might need to read this if you are using windows8/10 and enabled "Secure Boot", on windows 7, no need to do this
https://wiki.archlinux.org/index.php/Secure_Boot#Booting_archiso

Re: F2FS installation fails

Reply #4
ok but I'm still confused, where do I mount the EFI drive when I do this????

It STILL won't let me install grub :( I don't understand what I'm doing wrong

K I guess I can't do this, I guess I can't use F2FS...... -.-

I expected F2FS to work. but it doesn't..... so.... there goes my morning, totally wasted.

 

Re: F2FS installation fails

Reply #5
I only know how to make efi drive using parted, so here my method,
in terminal and as root user,

assuming you using partition 1
1. parted -a optimal /dev/sda
2. unit mib
3. mkpart ESP (starting point) (end point), for example, mkpart ESP 1 512, this will create new partition with 512 mib size
4. name 1 boot
5. set 1 boot on
6. quit

then you make fat32 partition for it,
mkfs.fat -F32 /dev/sda1
and mount your /mnt/boot to it (example, mount /dev/sda1 /mnt/boot)

when installing via chroot (basestrap /mnt base), it will automatically put all kernel and its related file to your newly mounted /boot

Re: F2FS installation fails

Reply #6
I only know how to make efi drive using parted, so here my method,
in terminal and as root user,

assuming you using partition 1
1. parted -a optimal /dev/sda
2. unit mib
3. mkpart ESP (starting point) (end point), for example, mkpart ESP 1 512, this will create new partition with 512 mib size
4. name 1 boot
5. set 1 boot on
6. quit

then you make fat32 partition for it,
mkfs.fat -F32 /dev/sda1
and mount your /mnt/boot to it (example, mount /dev/sda1 /mnt/boot)

when installing via chroot (basestrap /mnt base), it will automatically put all kernel and its related file to your newly mounted /boot


Then I make FAT32 partition for it???????????? and overwrite the FAT32 partition I already have, making me lose Windows??? No.....

Forget it. I can't do this. Sorry.

Re: F2FS installation fails

Reply #7
Yaa, sorry bout that just realised just now,
well try skipping making boot partition all togerther and just use windows boot folder,
from reading arch wiki they mentioned that windows install their .efi at /EFI/Microsoft/Boot/

So why dont you try mount your boot to there and install it via basestrap?

Re: F2FS installation fails

Reply #8
Hope you find a way to somehow make it, sorry cant help.

Re: F2FS installation fails

Reply #9
Why isn't F2FS already fixed? I reported that it wasn't working MONTHS ago. Is the Artix developer team really that far behind????? -.-

My entire morning was wasted by stupid errors that should've been solved long ago, great way to start the day......