On Windows 10 Ubuntu subsystem terminal I tried to inspect the disk usage with the following commands:
sudo -s
cd /mnt/c/Users
du -h --max-depth=1
and got this:
du: cannot read directory './D-Ef/AppData/Local/Packages/CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc/LocalState/rootfs': Permission denied
du: cannot read directory './D-Ef/AppData/Local/Packages/CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc/LocalState/temp/{3b734033-965e-4834-ba78-36717e14008d}': Permission denied
Infinity ./D-Ef
2.7M ./Default
du: cannot read directory './dmitr': Permission denied
0 ./dmitr
du: cannot read directory './Public/Documents/Hyper-V': Permission denied
1.3M ./Public
Infinity .
so obviously root user, for example, does not have the access to these folders.
What Ubuntu user can access Windows folders with administrator privileges?
EDIT1:
if I run Ubuntu.exe as Admin I can assess folders with 'll', but 'du' outputs 'infinity':
EDIT2:
in the current windows user folder I have this:
EDIT3:
another example, both 'll' and 'du' show some strange huge numbers:
My OS versions: Windows 10 1803, ubuntu 18.04.1
ubuntu.exe
as Admin.cd /mnt/c/Users/Harry/AppData/
, thensudo du -h --max-depth=1
, gives some error messages and then the data without "Infinity". Try maybe to check the disk usingchkdsk
.