how to set kernel parameter 'fsck.mode=force'
#3
(05-09-2018, 05:20 AM)pfeerick Wrote:
(05-09-2018, 02:57 AM)marcelser Wrote: PS: Why is it so complicated on the PineA64 when on Raspberry I can just modify cmdline.txt and I'm done?

Because it's not the Raspberry Pi!  Tongue

I'm pretty sure what you're after is '/boot/efi/extlinux/extlinux.conf' where you'll see the list of parameters that are passed to the kernel.

If you can force a fsck may be a different thing... let us know how you go!  Wink

(btw, initrd and the kernel stuff shouldn't be that much different to a normal PC, etc... it's the SPL and uboot that is different... and building and making changes there really is rocket science  Angel )

Thanks for trying to help, but there's no such thing as an 'efi' directory in boot partition, here's what "ls -l" actually shows:
Code:
total 2142
-rwxr-xr-x 1 root root    3129 Oct 24  2017 first-boot.log
-rwxr-xr-x 1 root root    3485 Jun 16  2017 first-boot.sh
-rwxr-xr-x 1 root root      28 Mar 11  2017 Image.version
-rwxr-xr-x 1 root root 1094464 Mar 11  2017 initrd.img
-rwxr-xr-x 1 root root 1076339 Nov 15 00:10 initrd_wait.img
-rwxr-xr-x 1 root root     571 Oct 24  2017 openhabian.conf
drwxr-xr-x 2 root root    2048 Mar 11  2017 pine64
drwxr-xr-x 2 root root    2048 Oct 24  2017 System Volume Information
-rwxr-xr-x 1 root root     218 May  9 11:04 uEnv.txt
-rwxr-xr-x 1 root root     214 Nov 15 00:35 uEnv.txt.working
[13:43:28] openhabian@openHABian:/boot$

Any ideas?

I finally did it. It was in the end uEnv.txt (but you have to add it to the first line not as separate line) but in the end in syslog it seems it did not repair it, what I see is this:

May 9 13:51:43 openHABian kernel: [ 0.000000] Kernel command line: console=tty0 console=ttyS0,115200n8 no_console_suspend mac_addr=b2:11:d4:e2:6d:c2 fsck.mode=force earlycon=uart,mmio32,0x01c28000 mac_addr= root=UUID=4ee1919c-77a3-4222-88cb-388c56afef93 ro rootwait
May 9 13:51:43 openHABian systemd-fsck[379]: fsck.fat 3.0.28 (2015-05-16)
May 9 13:51:43 openHABian systemd-fsck[379]: /dev/mmcblk0p1: 18 files, 6956/25541 clusters
May 9 13:51:43 openHABian kernel: [ 10.333694] EXT4-fs (sda1): warning: mounting fs with errors, running e2fsck is recommended
  Reply


Messages In This Thread
RE: how to set kernel parameter 'fsck.mode=force' - by marcelser - 05-09-2018, 05:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  (ARCHIVED) Debian Jessie Images (3.10.102 BSP Kernel) New Release lenny.raposo-pine64.pro 259 459,883 05-21-2018, 06:30 AM
Last Post: Luke
Question Debian Jessie with 4.x.y kernel and complete hardware support? Spark 2 5,730 04-24-2017, 09:56 PM
Last Post: Spark
  Adding a missing kernel module spz2k 8 11,357 01-10-2017, 06:22 AM
Last Post: xalius
  NIC not visible after kernel update xleon 1 3,120 11-15-2016, 05:23 PM
Last Post: xleon
  Portrait mode {-DesT-} 7 8,482 08-22-2016, 09:11 PM
Last Post: MarkHaysHarris777
  [OUTDATED] Debian Jessie (4.7.0-rc1 Kernel) Images fire219 4 17,078 07-20-2016, 02:36 PM
Last Post: umiddelb
  i2c-bus kernel modules robertvaldimarsson 15 16,237 06-07-2016, 01:48 PM
Last Post: robertvaldimarsson
  Debian kernel upgrade question jl_678 2 4,561 04-18-2016, 05:54 PM
Last Post: jl_678

Forum Jump:


Users browsing this thread: 1 Guest(s)