"You must specify a volume path" Trying to create an ISO file

"You must specify a volume path" Trying to create an ISO file

I'm trying to create an ISO file of Mojave, in my Mac with Catalina with these commands (I already have the installer of Mojave in Applications)

hdiutil create -o /tmp/mojave -size 7900m -volname mojave -layout SPUD -fs HFS+J

hdiutil attach /tmp/mojave.dmg -noverify -mountpoint /Volumes/mojave

sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia – volume /Volumes/mojave –nointeraction hdiutil detach /volumes/Install\ macOS\ Mojave

hdiutil convert /tmp/mojave.dmg -format UDTO -o ~/Desktop/mojave.cdr

mv ~/Desktop/mojave.cdr ~/Desktop/mojave.iso

But with this command, I have the problem

https://preview.redd.it/5eqv0nix9hz41.png?width=1220&format=png&auto=webp&s=76b69a9775552df34ca06fed0822e0f262bcd398

What I'm doing wrong?

https://preview.redd.it/0wt86fu5chz41.png?width=1220&format=png&auto=webp&s=1d63b8cce3c38cc3140a3e20199226d2f8d06496

submitted by /u/adrialexis_124
[link] [comments]