LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sharing file between windows and linux (https://www.linuxquestions.org/questions/linux-newbie-8/sharing-file-between-windows-and-linux-844904/)

ghantauke 11-17-2010 02:32 PM

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?

TB0ne 11-17-2010 02:45 PM

Quote:

Originally Posted by ghantauke (Post 4162239)
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.

ghantauke 11-17-2010 02:47 PM

Quote:

Originally Posted by TB0ne (Post 4162251)
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.

Tinkster 11-17-2010 02:51 PM

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

ghantauke 11-17-2010 03:01 PM

Quote:

Originally Posted by Tinkster (Post 4162259)
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.

Snark1994 11-17-2010 03:55 PM

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.

jf.argentino 11-17-2010 04:02 PM

linux can read and write any windows partitions (fat or ntfs), so just mount it.

markush 11-17-2010 05:34 PM

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

ferris_bewley 11-17-2010 06:48 PM

Quote:

Originally Posted by ghantauke (Post 4162271)
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.

TobiSGD 11-17-2010 07:10 PM

Quote:

Originally Posted by ferris_bewley (Post 4162454)
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.

tailinlinux 11-17-2010 07:38 PM

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.

TobiSGD 11-17-2010 07:56 PM

Quote:

Originally Posted by tailinlinux (Post 4162501)
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?


All times are GMT -5. The time now is 02:18 AM.