We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mount -o loop ./disk.img ./mntが以下のように失敗します。
mount -o loop ./disk.img ./mnt
$ ./build.sh make: Entering directory '/home/user/mikanos/kernel' make: 'kernel.elf' is up to date. make: Leaving directory '/home/user/mikanos/kernel' make: Entering directory '/home/user/mikanos/apps/blocks' make: 'blocks' is up to date. make: Leaving directory '/home/user/mikanos/apps/blocks' make: Entering directory '/home/user/mikanos/apps/cp' make: 'cp' is up to date. make: Leaving directory '/home/user/mikanos/apps/cp' make: Entering directory '/home/user/mikanos/apps/cube' make: 'cube' is up to date. make: Leaving directory '/home/user/mikanos/apps/cube' make: Entering directory '/home/user/mikanos/apps/dpage' make: 'dpage' is up to date. make: Leaving directory '/home/user/mikanos/apps/dpage' make: Entering directory '/home/user/mikanos/apps/eye' make: 'eye' is up to date. make: Leaving directory '/home/user/mikanos/apps/eye' make: Entering directory '/home/user/mikanos/apps/fault' make: 'fault' is up to date. make: Leaving directory '/home/user/mikanos/apps/fault' make: Entering directory '/home/user/mikanos/apps/grep' make: 'grep' is up to date. make: Leaving directory '/home/user/mikanos/apps/grep' make: Entering directory '/home/user/mikanos/apps/gview' make: 'gview' is up to date. make: Leaving directory '/home/user/mikanos/apps/gview' make: Entering directory '/home/user/mikanos/apps/large' make: 'large' is up to date. make: Leaving directory '/home/user/mikanos/apps/large' make: Entering directory '/home/user/mikanos/apps/lines' make: 'lines' is up to date. make: Leaving directory '/home/user/mikanos/apps/lines' make: Entering directory '/home/user/mikanos/apps/mmap' make: 'mmap' is up to date. make: Leaving directory '/home/user/mikanos/apps/mmap' make: Entering directory '/home/user/mikanos/apps/more' make: 'more' is up to date. make: Leaving directory '/home/user/mikanos/apps/more' make: Entering directory '/home/user/mikanos/apps/onlyhlt' make: 'onlyhlt' is up to date. make: Leaving directory '/home/user/mikanos/apps/onlyhlt' make: Entering directory '/home/user/mikanos/apps/paint' make: 'paint' is up to date. make: Leaving directory '/home/user/mikanos/apps/paint' make: Entering directory '/home/user/mikanos/apps/readfile' make: 'readfile' is up to date. make: Leaving directory '/home/user/mikanos/apps/readfile' make: Entering directory '/home/user/mikanos/apps/rpn' make: 'rpn' is up to date. make: Leaving directory '/home/user/mikanos/apps/rpn' make: Entering directory '/home/user/mikanos/apps/sort' make: 'sort' is up to date. make: Leaving directory '/home/user/mikanos/apps/sort' make: Entering directory '/home/user/mikanos/apps/stars' make: 'stars' is up to date. make: Leaving directory '/home/user/mikanos/apps/stars' make: Entering directory '/home/user/mikanos/apps/timer' make: 'timer' is up to date. make: Leaving directory '/home/user/mikanos/apps/timer' make: Entering directory '/home/user/mikanos/apps/tview' make: 'tview' is up to date. make: Leaving directory '/home/user/mikanos/apps/tview' make: Entering directory '/home/user/mikanos/apps/winhello' make: 'winhello' is up to date. make: Leaving directory '/home/user/mikanos/apps/winhello' make: Entering directory '/home/user/mikanos/apps/winjpn' make: 'winjpn' is up to date. make: Leaving directory '/home/user/mikanos/apps/winjpn' + dirname /home/user/osbook/devenv/make_mikanos_image.sh + DEVENV_DIR=/home/user/osbook/devenv + MOUNT_POINT=./mnt + [ ./disk.img = ] + [ /home/user/mikanos = ] + LOADER_EFI=/home/user/edk2/Build/MikanLoaderX64/DEBUG_CLANG38/X64/Loader.efi + KERNEL_ELF=/home/user/mikanos/kernel/kernel.elf + /home/user/osbook/devenv/make_image.sh ./disk.img ./mnt /home/user/edk2/Build/MikanLoaderX64/DEBUG_CLANG38/X64/Loader.efi /home/user/mikanos/kernel/kernel.elf + [ 4 -lt 3 ] + dirname /home/user/osbook/devenv/make_image.sh + DEVENV_DIR=/home/user/osbook/devenv + DISK_IMG=./disk.img + MOUNT_POINT=./mnt + EFI_FILE=/home/user/edk2/Build/MikanLoaderX64/DEBUG_CLANG38/X64/Loader.efi + ANOTHER_FILE=/home/user/mikanos/kernel/kernel.elf + [ ! -f /home/user/edk2/Build/MikanLoaderX64/DEBUG_CLANG38/X64/Loader.efi ] + rm -f ./disk.img + qemu-img create -f raw ./disk.img 200M Formatting './disk.img', fmt=raw size=209715200 + mkfs.fat -n MIKAN OS -s 2 -f 2 -R 32 -F 32 ./disk.img mkfs.fat 4.1 (2017-01-24) + /home/user/osbook/devenv/mount_image.sh ./disk.img ./mnt + [ 2 -lt 2 ] + dirname /home/user/osbook/devenv/mount_image.sh + DEVENV_DIR=/home/user/osbook/devenv + DISK_IMG=./disk.img + MOUNT_POINT=./mnt + [ ! -f ./disk.img ] + mkdir -p ./mnt + sudo mount -o loop ./disk.img ./mnt mount: ./mnt: mount failed: Operation not permitted.
そもそも、WSL1ではloop deviceがないことが原因で、mountが十分に動作しないようです。 microsoft/WSL#131
あまり良い回避策は見つからず、私がみた範囲ではWSL2かLinuxを使うのが妥当そうです。
The text was updated successfully, but these errors were encountered:
@tandasat WSL1 でマウントできないのはその通りです。 Mtool を使うとマウント不要でディスクイメージを操作できます。 参照 uchan-nos/os-from-zero#39
Sorry, something went wrong.
No branches or pull requests
mount -o loop ./disk.img ./mnt
が以下のように失敗します。そもそも、WSL1ではloop deviceがないことが原因で、mountが十分に動作しないようです。
microsoft/WSL#131
あまり良い回避策は見つからず、私がみた範囲ではWSL2かLinuxを使うのが妥当そうです。
The text was updated successfully, but these errors were encountered: