Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am wondering, is there any way to easily share a folder between Linux and Windows?

share|improve this question
Can you explain in depth your requirements? Otherwise, I'd have to flag as not a real question. – James Nov 28 '11 at 1:40
Do you mean sharing between machines or on the same machine? – Roman B. Nov 28 '11 at 4:02


If you want to share files stored on Linux Linux, install a Samba server on the Linux machine. Follow the documentation (Red Hat 6, CentOS 5, Ubuntu).

If you want to share files from Windows, your file manager on Linux can probably connect to a Windows share with no extra effort on your part. Try browsing smb:///. If you want access from the command line, run

mkdir /media/somedir
sudo mount -t cifs //servername/sharename /media/somedir

(If you need help on the Windows side, ask on a Windows site.)

share|improve this answer
Or use an NFS client on the MSWindows box – symcbean Nov 28 '11 at 9:26

The answer is going to depend very much on which of two questions you are actually asking.

If you want to share files and directories over a network between a PC running windows and a computer running linux that are on at the same time, Gilles' answer regarding Samba is definitely the way to go.

If you're asking how to create a partition/drive on a single dual-booting system that both your windows and linux setups can read, the easiest way is to format a partition as NTFS and use ntfs-3g to mount it in read/write mode in linux.

share|improve this answer
Or use an ext2/3/4 driver for WIndows. When I explored the question of the existence of drivers for modern Linux filesystems under Windows, I discovered that there was no drivers for XFS or btrfs. But there was for one for ext. – imz -- Ivan Zakharyaschev Nov 28 '11 at 15:05
The ntfs-3g driver for linux seems to be significantly more mature and reliable than the ext2/3/4 drivers for windows. – Shadur Nov 28 '11 at 16:08
Ok, as for me personally, I had no experience with the ext2/3/4 driver for Windows. @Shadur - thanks for your impression (that it's not mature)! – imz -- Ivan Zakharyaschev Nov 28 '11 at 18:15

For the Linux -> Windows part, the following is my favorite:

  • python2 -m SimpleHTTPServer
  • python3 -m http.server

This opens a HTTP-Server on Port 8000 for the current directory. You can access it from Windows by typing your IP-Adress in a browser - eg.

If you want to share a directory, you have to zip it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.