LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2010, 03:32 PM   #1
ghantauke
Member
 
Registered: Nov 2010
Posts: 114

Rep: Reputation: 6
sharing file between windows and linux


Is there a way I can import windows files to linux? Like linux and windows having a common directory?

Last edited by ghantauke; 11-17-2010 at 03:47 PM.
 
Old 11-17-2010, 03:45 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,960

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by ghantauke View Post
Is there a way I can import windows files to linux? Like linux and windows having a command directory?
I'm assuming you mean a COMMON directory?

Set up Samba on your Linux box (see Google for how-to guides), and your Windows box can attach to it.
 
Old 11-17-2010, 03:47 PM   #3
ghantauke
Member
 
Registered: Nov 2010
Posts: 114

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by TB0ne View Post
I'm assuming you mean a COMMON directory?

Set up Samba on your Linux box (see Google for how-to guides), and your Windows box can attach to it.
Yea i meant common directory. Thanks for pointing that out. I'l go and have a look at Samba.
 
Old 11-17-2010, 03:51 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
The big question is: are windows and linux on the SAME machine, or
different machines? In the first case Samba won't do you much good. :}


Cheers,
Tink
 
Old 11-17-2010, 04:01 PM   #5
ghantauke
Member
 
Registered: Nov 2010
Posts: 114

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by Tinkster View Post
The big question is: are windows and linux on the SAME machine, or
different machines? In the first case Samba won't do you much good. :}


Cheers,
Tink
It's on the same machine. I've installed ubuntu in windows. Theres a folder called ubuntu in C drive in windows where all the files of ubuntu are stored.
 
Old 11-17-2010, 04:55 PM   #6
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
An easy way to do it would be to get a dropbox account (http://www.dropbox.com) and install their application on both windows and linux - this means it will sync any files you put in the "dropbox" folder to both operating systems.
 
Old 11-17-2010, 05:02 PM   #7
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
linux can read and write any windows partitions (fat or ntfs), so just mount it.
 
1 members found this post helpful.
Old 11-17-2010, 06:34 PM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello ghantauke,

as js.argentino stated Linux can read every Windowspartition/Filesystem (NTFS and FAT32).
An issue are the permissions, Linux cannot handle the permissions of an NTFS-partition and a FAT32-filesystem has no permisssions at all.
This leads to either a problem of security (you'll have to mount the Windowspartitions read/writeable for all users) or a problem of inconvenience (when mounting the Windowspartition only writeable by root).
I'm running my Laptop with Dualboot Windows/Arch/Slackware and have a separate Windows-datapartition. This partition is a primary one and resides as volume d: when Windows is running.
From Linux it is mounted as /usr/local/windata. The advantage is that I do not mount the Windows-systempartition in Linux. The Windows-datapartition is mounted in Linux as writeable for all users. Look at the manpage for "umask".

Markus
 
Old 11-17-2010, 07:48 PM   #9
ferris_bewley
LQ Newbie
 
Registered: Dec 2009
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by ghantauke View Post
It's on the same machine. I've installed ubuntu in windows. Theres a folder called ubuntu in C drive in windows where all the files of ubuntu are stored.
Then the easiest way would be to install smbfs and then restart the computer. You should see a new drive under places upon reboot. Mount it. You may see one now depending on what ubuntu installed. It will probably be named something like NNGig Filesystem. Click on it and it should open. You will notice that it is the root of your C: drive. Browse through Documents and Settings\UserName\ then you will see your docs, desktop, my docs et.
 
Old 11-17-2010, 08:10 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by ferris_bewley View Post
Then the easiest way would be to install smbfs and then restart the computer. You should see a new drive under places upon reboot. Mount it. You may see one now depending on what ubuntu installed. It will probably be named something like NNGig Filesystem. Click on it and it should open. You will notice that it is the root of your C: drive. Browse through Documents and Settings\UserName\ then you will see your docs, desktop, my docs et.
This has nothing to do with smbfs. To access the files on the Windows partition in read/write mode you need ntfs-3g, which should already be installed in Ubuntu. The rest of the explanation is valid.
 
Old 11-17-2010, 08:38 PM   #11
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 390
Blog Entries: 3

Rep: Reputation: 25
Study all about Samba Server.. I have a computer shop in our country and i your Linux Mandriva powered by Samba Server to Have shared folder in every pc to avoid Viruses in my windows XP Computers.
 
Old 11-17-2010, 08:56 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by tailinlinux View Post
Study all about Samba Server.. I have a computer shop in our country and i your Linux Mandriva powered by Samba Server to Have shared folder in every pc to avoid Viruses in my windows XP Computers.
The OP uses dual-booting, so no use for a Samba server here.
Anyways, how does a Samba share protect you from viruses?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows and linux file sharing? cranium1200 Linux - Newbie 3 03-16-2008 07:25 AM
How file sharing on linux to windows cbcats Linux - Networking 6 01-25-2005 03:58 PM
File Sharing Windows and linux together ? maxboost Linux - Networking 4 12-30-2004 01:24 PM
Linux-Windows file sharing ar1 Linux - General 6 01-23-2004 12:54 AM
windows and linux file sharing dpreed7 Linux - Networking 4 04-01-2002 08:08 AM


All times are GMT -5. The time now is 05:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration