WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Input/output error on partitions mounted in empty NTFS folders

Open gamesharkmike opened this issue 5 years ago • 6 comments

Windows Build Number

Microsoft Windows [Version 10.0.19042.1052]

WSL Version

  • [ ] WSL 2
  • [X] WSL 1

Kernel Version

Linux version 4.4.0-19041-Microsoft ([email protected]) (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

gamesharkmike avatar Jul 09 '21 20:07 gamesharkmike

Can you please take logs for this issue? /logs

craigloewen-msft avatar Jul 13 '21 16:07 craigloewen-msft

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 avatar Jul 13 '21 16:07 ghost

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!

ghost avatar Jul 20 '21 17:07 ghost

@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.

phoerious avatar Nov 09 '21 18:11 phoerious

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

fortis-flumen avatar Aug 27 '22 07:08 fortis-flumen

Unfortunately not.

phoerious avatar Aug 27 '22 07:08 phoerious