If the /mnt/c
directory is not accessible, it may indicate one of the following issues:
/mnt
. However, this may not happen if the feature is disabled or there’s a configuration issue./mnt
:
ls /mnt
c
or d
, the drives may not be mounted./etc/wsl.conf
) to ensure that automounting of drives is enabled. Use the following command:
cat /etc/wsl.conf
[automount]
, create or modify it:
sudo nano /etc/wsl.conf
Add the following lines:
[automount]
enabled = true
root = /mnt
wsl --shutdown
Then relaunch Kali Linux.
sudo mount -t drvfs C: /mnt/c
cd /mnt/c/Users/akashdip2001/Desktop
C:\Users
directory in Windows File Explorer to ensure the correct path.wsl --shutdown
wsl
It looks like the c
drive is properly mounted under /mnt
, which means you should be able to access it. The next step is to check the exact path to your desktop directory.
Let’s try to navigate to your desktop folder again, but this time double-check the directory structure:
Users
Directory:
First, navigate to /mnt/c/Users
to see if the folder exists:
cd /mnt/c/Users
ls
akashdip2001
or something similar). Once you find it, proceed with navigating to your Desktop folder:
cd /mnt/c/Users/akashdip/Desktop
If the path to your desktop folder is different (for example, if the username is slightly different), make sure to replace akashdip2001
with the correct name.