When you finish installing WSL and open the terminal for the first time, you’ll probably be wondering how to access the files on your C: drive or other hard drives, flash drives, etc.
WSL will mount your hard drives for you automatically under the /mnt
directory. The C: drive can always be accessed there, and usually other fixed NTFS drives that you have installed will be mounted there as well. But if you don’t see them, they are easy to mount.
Accessing the C: drive
Many articles said that support for xfs on windows was non-existent and many others pointed to a site link (www.crossmeta.com) which has expired. The link they said had windows drivers that enabled xfs r/w support. So can anyone help me in this regard. Many thanks in advance. Linux File Systems for Windows by Paragon Software is a unique tool which enables full access to Linux volumes under Windows OS. Just plug your hard disk with ExtFS/Btrfs/XFS partitions into your PC and instantly access your media in a Windows environment. On Windows, when you uninstall a program, usually every file that was added to your drive gets deleted. I'm asking this because I was trying something on a Linux build, installed it, took some time to download and install, decided to remove it and it was removed immediately. Mount the filesystem to replay the log, and unmount it before. Re-running xfsrepair. If you are unable to mount the filesystem, then use. The -L option to destroy the log and attempt a repair. Note that destroying the log may cause corruption - please attempt a mount. Of the filesystem before doing this.
- Ext2Fsd is the next option which features full read-and-write support for ext2/ext3/ext4 file-systems on Windows 200,XP,Vista and Win7. The utility makes use of an Windows driver to provide the access and can auto-mount linux file-systems on every boot.
- Ufs2tools contains tools for reading ufs (ffs) filesystems and bsd labels from Windows. Both ufs1 and ufs2 are supported. Supports Windows 2000, XP, Vista, Windows 7, Windows 8, and should work on any future versions. Both 32-bit and 64-bit versions are supported. 'ufs2tool' is a program for reading ufs filesystems from windows.
Your main hard drive should always be accessible under /mnt/c
A simple change directory command should take you to the root of your C: drive…
Accessing other drives and removable media
If you have a second hard drive or removable media such as a flash drive, you can try accessing them through the /mnt directory as well, obviously by appending the appropriate drive letter to /mnt/
If you can’t access your drives/media that way, you’ll just need to mount them first, which Windows has made very simple in WSL. In this example, we’ll mount and access drive D: in Ubuntu on Windows Subsystem for Linux.
Mounting:
Accessing:
You can mount your media anywhere you’d like; the thing to note here is that you must use Microsoft’s DrvFS when mounting accessible media within the subsystem.
In the case of removable media, you unmount them in the traditional way for safe removal:
Adding drives to fstab
Mount Xfs On Windows
To automatically mount drives, edit the /etc/fstab
file and add a line:
Linux Xfs Windows
Of course, change D: to any hard drive letter you need, as well as the mount point.