Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing mkfs #145

Open
unlucio opened this issue Jul 22, 2024 · 1 comment
Open

missing mkfs #145

unlucio opened this issue Jul 22, 2024 · 1 comment

Comments

@unlucio
Copy link

unlucio commented Jul 22, 2024

I'm installing this on macOS Sonoma 14.5 (23F79) via the provided script
I stumbled on the bug described here, and happily passed the block by applying the provided patch.
make and sudo make install ran fine after patching the source, but when I tried to test my install as suggested I got:

➜  tempfuse /opt/gnu/sbin/mkfs.ext4 /tmp/test-fs.ext4
zsh: no such file or directory: /opt/gnu/sbin/mkfs.ext4

Looking for mkfs.ext4 on my drive is nowhere to be found, tho fsck.* are present:

~ find / -name "mkfs*" 2>/dev/null
➜  ~ ll /opt/gnu/sbin
total 6232
-rwxr-xr-x@ 1 root  wheel   522K 22 Lug 12:23 debugfs
-rwxr-xr-x@ 4 root  wheel   647K 22 Lug 12:23 e2fsck
-rwxr-xr-x@ 4 root  wheel   647K 22 Lug 12:23 fsck.ext2
-rwxr-xr-x@ 4 root  wheel   647K 22 Lug 12:23 fsck.ext3
-rwxr-xr-x@ 4 root  wheel   647K 22 Lug 12:23 fsck.ext4
➜  ~ ll /opt/gnu/bin
total 3064
-rwxr-xr-x@ 2 root  wheel    36K 22 Lug 12:18 aclocal
-rwxr-xr-x@ 2 root  wheel    36K 22 Lug 12:18 aclocal-1.15
-rwxr-xr-x@ 1 root  wheel    14K 22 Lug 12:18 autoconf
-rwxr-xr-x@ 1 root  wheel   8,3K 22 Lug 12:18 autoheader
-rwxr-xr-x@ 1 root  wheel    31K 22 Lug 12:18 autom4te
-rwxr-xr-x@ 2 root  wheel   247K 22 Lug 12:18 automake
-rwxr-xr-x@ 2 root  wheel   247K 22 Lug 12:18 automake-1.15
-rwxr-xr-x@ 1 root  wheel    21K 22 Lug 12:18 autoreconf
-rwxr-xr-x@ 1 root  wheel    17K 22 Lug 12:18 autoscan
-rwxr-xr-x@ 1 root  wheel    33K 22 Lug 12:18 autoupdate
-rwxr-xr-x@ 1 root  wheel   1,3K 22 Lug 12:23 compile_et
-rwxr-xr-x@ 1 root  wheel   4,0K 22 Lug 12:18 ifnames
-rwxr-xr-x@ 1 root  wheel   357K 22 Lug 12:19 libtool
-rwxr-xr-x@ 1 root  wheel   126K 22 Lug 12:19 libtoolize
-rwxr-xr-x@ 1 root  wheel   319K 22 Lug 12:18 m4
-rwxr-xr-x@ 1 root  wheel   1,1K 22 Lug 12:23 mk_cmds

can someone suggest what i did wrong, or perhaps point me in the right direction?

@SaraCPickett
Copy link

I had a similar problem and solved it, and while it's not exactly the same as your issue, I hope this will point you in the right direction. (Differences: I did not install using the install script, but rather used homebrew to get the prerequisites, and that I'm on Monterey.)

mkfs.ext4 comes from e2fsprogs, so check your compilation and installation of that software. (Your find command should have found it in the e2fsprogs source directory from the install script, but maybe you cleaned up those files before running it.) That's probably where the issue is.

[In my case, the issue was that brew install e2fsprogs installs the file into /opt/homebrew/opt/e2fsprogs/sbin/, which are not in the default $PATH. Homebrew warns you about it when you install, but that was a while ago. As part of debugging I forced it to reinstall, and so had a chance to see the warning. Between your find command and the fact that you used the install script, I don't think this is your issue, but I'm mentioning it in case it helps someone else.]

Another thought is that you can use mke2fs -t ext4 instead of mkfs.ext4. According to a Linux man page that I found, they're supposed to be the same thing. So if you can find mke2fs, that should be close enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants