简体   繁体   中英

zsh: command not found: mkfs on macOS

Hi i entered it in terminal macOS

dd if=/dev/zero of=img.1440 bs=1k count=1440
mkfs img.1440

And got this error

zsh: command not found: mkfs

mkfs is a Linux command, but if you have Homebrew installed, you can install e2fsprogs :

brew install e2fsprogs

Then run mkfs.ext3 :

$(brew --prefix e2fsprogs)/sbin/mkfs.ext3 img.1440

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM