![]() ![]() Just make your changes to the bottom of the file. ![]() It’s safe to ignore any default lines that are already in this file. For example, adding the following line will automatically mount the D: drive. Rather than having to run mount commands every time you open WSL, we can mount the drives automatically and persistently by making some edits to the system’s /etc/fstab file. If you need to unmount a drive, you can use the normal umount Linux command. You can mount the drives wherever you like as long you use Microsoft’s DrvFs as the filesystem type in your mount command. Of course, you don’t you have to use the /mnt directory. ![]() Remember to replace D: with whichever drive letter you’re trying to mount. Run the following commands with sudo or the root user account. In that case, we can mount them with the mount command. ![]() However, this doesn’t always work, as WSL may not mount these other drives automatically. So for your D: drive, you’d navigate to it in terminal with the following command. To access other drives and removable media like flash drives, you can try the /mnt directory. $ cd /mnt/cĪccessing secondary drives and removable media You can access the C: drive from under /mnt/c. WSL will ordinarily mount your hard disks for you automatically in the /mnt directory. In this guide, we’ll see how to mount our file systems in Windows Subsystem for Linux in order to access our files, as well as how to automate the process. You can access all your Windows PC’s files in WSL by mounting hard drives, flash drives, and other removable disks. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |