[Solved] -ash: mkfs.ext4: not found

root@turris:~# ls -lisa /usr
510 0 drwxr-xr-x 1 root root 44 Aug 20 21:17 .
256 0 drwxrwxr-x 1 root root 272 Sep 8 23:40 … <<< here is not the same
511 0 drwxr-xr-x 1 root root 2968 Sep 2 18:49 bin
855 0 drwxr-xr-x 1 root root 8704 Sep 8 20:23 lib
853 0 drwxr-xr-x 1 root root 30 Sep 2 16:45 libexec
701 0 drwxr-xr-x 1 root root 1494 Sep 7 21:27 sbin
5567 0 drwxr-xr-x 1 root root 370 Sep 2 16:51 share

Can you do a

chmod 755 /usr

Then again post the ls -lisa /usr

Done:

root@turris:~# chmod 755 /usr
root@turris:~# ls -lisa /usr
510 0 drwxr-xr-x 1 root root 44 Aug 20 21:17 .
256 0 drwxrwxr-x 1 root root 272 Sep 8 23:40 …
511 0 drwxr-xr-x 1 root root 2968 Sep 2 18:49 bin
855 0 drwxr-xr-x 1 root root 8704 Sep 8 20:23 lib
853 0 drwxr-xr-x 1 root root 30 Sep 2 16:45 libexec
701 0 drwxr-xr-x 1 root root 1494 Sep 7 21:27 sbin
5567 0 drwxr-xr-x 1 root root 370 Sep 2 16:51 share

Oke, you have to do the next commands. The first 2 commands, is to show you that i got the same permissions as you and the later command chmod 755 .. puts it back to.

Follow through

root@K-Router:/# chmod 775 ..
root@K-Router:/# ls -lisa /usr
   2044      0 drwxr-xr-x    1 root     root            44 May  3 06:58 .
    256      0 drwxrwxr-x    1 root     root           134 Sep  9 12:09 ..
   7618      0 drwxr-xr-x    1 root     root          4252 Aug 22 22:40 bin
   2519      0 drwxr-xr-x    1 root     root         11656 Aug 22 22:40 lib
   7614      0 drwxr-xr-x    1 root     root           148 Aug 22 22:40 libexec
   2045      0 drwxr-xr-x    1 root     root          2618 Aug 22 22:40 sbin
   2191      0 drwxr-xr-x    1 root     root           522 Jun 27 11:03 share
root@K-Router:/# chmod 755 ..
root@K-Router:/# ls -lisa /usr
   2044      0 drwxr-xr-x    1 root     root            44 May  3 06:58 .
    256      0 drwxr-xr-x    1 root     root           134 Sep  9 12:09 ..
   7618      0 drwxr-xr-x    1 root     root          4252 Aug 22 22:40 bin
   2519      0 drwxr-xr-x    1 root     root         11656 Aug 22 22:40 lib
   7614      0 drwxr-xr-x    1 root     root           148 Aug 22 22:40 libexec
   2045      0 drwxr-xr-x    1 root     root          2618 Aug 22 22:40 sbin
   2191      0 drwxr-xr-x    1 root     root           522 Jun 27 11:03 share

Ready:

root@turris:~# chmod 775 ..
root@turris:~# ls -lisa /usr
    510      0 drwxr-xr-x    1 root     root            44 Aug 20 21:17 .
    256      0 drwxrwxr-x    1 root     root           272 Sep  8 23:40 ..
    511      0 drwxr-xr-x    1 root     root          2968 Sep  2 18:49 bin
    855      0 drwxr-xr-x    1 root     root          8704 Sep  8 20:23 lib
    853      0 drwxr-xr-x    1 root     root            30 Sep  2 16:45 libexec
    701      0 drwxr-xr-x    1 root     root          1494 Sep  7 21:27 sbin
   5567      0 drwxr-xr-x    1 root     root           370 Sep  2 16:51 share
root@turris:~# chmod 755 ..
root@turris:~# ls -lisa /usr
    510      0 drwxr-xr-x    1 root     root            44 Aug 20 21:17 .
    256      0 drwxr-xr-x    1 root     root           272 Sep  8 23:40 ..
    511      0 drwxr-xr-x    1 root     root          2968 Sep  2 18:49 bin
    855      0 drwxr-xr-x    1 root     root          8704 Sep  8 20:23 lib
    853      0 drwxr-xr-x    1 root     root            30 Sep  2 16:45 libexec
    701      0 drwxr-xr-x    1 root     root          1494 Sep  7 21:27 sbin
   5567      0 drwxr-xr-x    1 root     root           370 Sep  2 16:51 share

Oke, nou try again with

opkg remove kmod-fs-ext4

Then

opkg install kmod-fs-ext4
root@turris:~# opkg remove kmod-fs-ext4
Removing package kmod-fs-ext4 from root...
Removing package kmod-fs-ext4_4.4.150+1-1-0a333a8e606ab056173befac424900d2-1

root@turris:~# opkg install kmod-fs-ext4
Installing kmod-fs-ext4 (4.4.150+1-1-0a333a8e606ab056173befac424900d2-1) to root...
Downloading https://repo.turris.cz/omnia/packages//base/kmod-fs-ext4_4.4.150+1-1-0a333a8e606ab056173befac424900d2-1_mvebu.ipk
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1231  100  1231    0     0   4789      0 --:--:-- --:--:-- --:--:--  4789
Configuring kmod-fs-ext4.
root@turris:~# mkf
mkfifo      mkfs.btrfs

can you do a ls -lisa /

root@K-Router:/# ls -lisa /
    256      0 drwxr-xr-x    1 root     root           134 Sep  9 12:09 .
    256      0 drwxr-xr-x    1 root     root           134 Sep  9 12:09 ..
   7879      4 -rw-------    1 root     root          1024 Feb 27  2018 .rnd
    257      0 drwxr-xr-x    1 root     root           654 Aug 19 04:16 bin
    328      0 drwxr-xr-x    1 root     root           120 Aug 22 22:43 boot
  82471     68 -rw-------    1 root     root        208896 Aug 19 16:41 core
   1488      0 drwxr-xr-x    8 root     root          1840 Sep  9 00:12 dev
    333      0 drwxr-xr-x    1 root     root          1920 Sep  9 00:33 etc
  74648      4 -rwxr-xr-x    1 root     root            78 Sep 14  2017 init
   1480      0 drwxr-xr-x    1 root     root           624 May  2 02:58 lib
   1927      0 drwxr-xr-x    1 root     root            44 Feb 27  2018 mnt
      1      0 dr-xr-xr-x  269 root     root             0 Jan  1  1970 proc
   1929      0 drwxr-xr-x    1 root     root             8 Aug 19 04:16 rom
   1931      0 drwxr-xr-x    1 root     root           240 Jul 14 20:54 root
  13541      0 drwxr-xr-x    1 root     root            50 Feb 27  2018 run
   1932      0 drwxr-xr-x    1 root     root          1650 Aug 19 04:16 sbin
  12921      0 drwxr-xr-x    1 root     root            32 May 10 14:18 srv
      1      0 dr-xr-xr-x   11 root     root             0 Aug 30 20:56 sys
   1464      0 drwxrwxrwt   32 root     root          1400 Sep  9 12:33 tmp
   2044      0 drwxr-xr-x    1 root     root            44 May  3 06:58 usr
   7799      4 lrwxrwxrwx    1 root     root             3 Feb 27  2018 var -> tmp
   7800      0 drwxr-xr-x    1 root     root            48 Feb 27  2018 www
root@turris:~# ls -lisa /
    256      0 drwxr-xr-x    1 root     root           272 Sep  8 23:40 .
    256      0 drwxr-xr-x    1 root     root           272 Sep  8 23:40 ..
   7416      4 -rw-------    1 root     root          1024 Sep  2 16:45 .rnd
    264      0 drwxr-xr-x    1 root     root           654 Sep  2 16:52 bin
    260      0 drwxr-xr-x    1 root     root           120 Sep  2 16:51 boot
     41      0 drwxr-xr-x    7 root     root          1800 Sep  8 20:20 dev
   6263      0 drwxr-xr-x    1 root     root          1612 Aug 20 20:22 etc
   8851      4 -rwxr-xr-x    1 root     root            78 Sep 14  2017 init
  21906      4 -rw-r--r--    1 root     root          1231 Sep  8 23:40 kmod-fs-ext4_4.4.150+1-1-0a333a8e606ab056173befac424900d2-1_mvebu.ipk
   5838      0 drwxr-xr-x    1 root     root           582 Aug 20 20:23 lib
   6261      0 drwxr-xr-x    1 root     root            20 Sep  2 16:46 mnt
    259      0 drwxr-xr-x    1 root     root             0 Oct  5  2016 overlay
      1      0 dr-xr-xr-x  147 root     root             0 Jan  1  1970 proc
    398      0 drwxrwxr-x    1 root     root             8 Sep  2 16:43 rom
   6262      0 drwxr-xr-x    1 root     root            52 Sep  2 19:46 root
    400      0 drwxr-xr-x    1 root     root           806 Sep  2 16:51 sbin
    328      0 drwxr-xr-x    1 root     root             6 Jan  1  1970 srv
      1      0 dr-xr-xr-x   11 root     root             0 Sep  8 20:20 sys
   1466      0 drwxrwxrwt   24 root     root           840 Sep  9 13:34 tmp
    510      0 drwxr-xr-x    1 root     root            44 Aug 20 21:17 usr
    257      4 lrwxrwxrwx    1 root     root             4 Jan  1  1970 var -> /tmp
    330      0 drwxr-xr-x    1 root     root            48 Jan  1  1970 www

Oke, do a

rm kmod-fs-ext4_4.4.150+1-1-0a333a8e606ab056173befac424900d2-1_mvebu.ipk

Then

chmod 755 /rom

and try again with remove and install.

@Bazarov you have check the NAS option in the updater tab ? http://192.168.1.1/foris/config/main/updater/

No
http://take.ms/Ugduh

=_=!,

i thought you already had done the basics and it did not work, but you haven’t even done the basics.

https://doc.turris.cz/doc/en/howto/nas

root@turris:~# rm kmod-fs-ext4_4.4.150+1-1-0a333a8e606ab056173befac424900d2-1_mvebu.ipk
rm: can't remove 'kmod-fs-ext4_4.4.150+1-1-0a333a8e606ab056173befac424900d2-1_mvebu.ipk': No such file or directory

How its possible? It`s here:

  21906      4 -rw-r--r--    1 root     root          1231 Sep  8 23:40 kmod-fs-ext4_4.4.150+1-1-0a333a8e606ab056173befac424900d2-1_mvebu.ipk

@Bazarov Check it and wait for update.

Because you did a opkg download command of that file, so it downloaded to the root, which that is the root.

But please go and first install the NAS utilities. If you have done that, then reply.

Yeah!
With that checkbox i got what i need.
Such a fail, that`s my fault.
Sorry guys.
Thanks a lot, Big_Boss.

Oke, because you are a failure, donate $100.000 to @czlada and @Big_boss charity foundation.

have fun :P.

Do mark this topic as solved, choose the comment that solved, so others can also look for the solution.

3 Likes

@Big_boss Simple possibility is always right. Thank you for your hard work :smile:

1 Like