Search This Blog

Friday, April 20, 2012

Mount Windows folder on Linux

Sometimes, we need to mount a Windows folder on Linux. In order to do it, let’s follow these steps:
1. Create a directory in Windows, share it and give full permission:
mount_1
2. Create new directory in /tmp directory on Linux, name it to “test_dir” and mount shared Windows directory into that directory by running below code:
mount -t cifs -o username=#####,password=###### //192.168.##.##/test   /tmp/test_dir
mount_23
3. Now, by creating new file and folder in Windows directory, we can get them from Linux box. Let’s create a file and a directory in Windows folder
mount_3
4. At last, let’s check it from Linux, whether we can see the file and the directory or not
mount_4
As you can see, we can mount any Windows folder in Linux with very easy steps

Related Posts with Thumbnails