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. Accessing secondary drives and removable media
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |