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

Input/output error on partitions mounted in empty NTFS folders #7164

Closed
1 of 2 tasks
gamesharkmike opened this issue Jul 9, 2021 · 6 comments
Closed
1 of 2 tasks

Comments

@gamesharkmike
Copy link

gamesharkmike commented Jul 9, 2021

Windows Build Number

Microsoft Windows [Version 10.0.19042.1052]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

Linux version 4.4.0-19041-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #488-Microsoft Mon Sep 01 13:43:00 PST 2020

Distro Version

Fedora Remix v33 , Also tested on Ubuntu

Repro Steps

Step 1 - Mount a partition to an empty NTFS dir in diskmgmt.msc

Ex. C:\zzz

Screenshot 2021-07-09 135005

Step 2 - Try to access the partition in WSL

Ex. /mnt/c/zzz

ls /mnt/c/zzz
ls: cannot access '/mnt/c/zzz': Input/output error

Expected Behavior

Expected behavior: Users should be able to access the partition's folder on WSL's mount point. Ex. ls command should show files and folders.

Actual Behavior

Actual behavior (Problem): Cannot access the partition's WSL mount point with error "Input/output error"

ls: cannot access '/mnt/c/zzz': Input/output error
@craigloewen-msft
Copy link
Member

Can you please take logs for this issue? /logs

@ghost
Copy link

ghost commented Jul 13, 2021

Hello! Could you please provide more logs to help us better diagnose your issue? You can find instructions on how to attach logs here, please make sure to post the link to the Feedback Hub item in this chat so we can see it.

Thank you!

@ghost ghost closed this as completed Jul 20, 2021
@ghost
Copy link

ghost commented Jul 20, 2021

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

@phoerious
Copy link

phoerious commented Nov 9, 2021

@craigloewen-msft Can you reopen this please? It seems to be a general issue, also on WSL 2.
I'm on Windows 11 now and somehow I don't have the feedback hub app that your bot linked to, but I can give you additional details if needed.

The problem is as follows: I can mount folder-mounted NTFS volumes, no problem, but I cannot access any NTFS folders that are already mounted on the host.

For example, I have mounted a storage space at D: and also at %USERPROFILE%/Data. In WSL when I try to list the folder contents, I only get

$ ls Data
ls: cannot access 'Data': Input/output error

I also cannot mount anything on top of this "dead" folder:

$  sudo mount -t drvfs D: Data
<3>init: (882) ERROR: MountPlan9WithRetry:285: mount drvfs on Data (cache=mmap,rw,msize=262144,trans=virtio,aname=drvfs;path=D:;symlinkroot=/) failed: 5
mount: I/O error

Bind-mounting the drive letter mount (or anything else for that matter), isn't possible either:

$ sudo mount -o bind /d Data
mount: Data: can't read superblock on /d.

My only option would be to make another folder Data-WSL next to Data and mount the storage space there, but then I would have two mount points for the same drive and one of them is empty on WSL, the other one on the host.

@mokugyos
Copy link

I've met the same issue. Any solution for this plz? @phoerious

@phoerious
Copy link

Unfortunately not.

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

No branches or pull requests

4 participants