LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-03-2011, 01:54 PM   #1
rmaleshri
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
Copying files from windows to linux


How can I copy some files from a windows machine to Linux machine ?
 
Old 01-03-2011, 02:01 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
You can use sneaker net, NFS, Samba, or probably 100 other ways.
 
Old 01-03-2011, 02:12 PM   #3
misconfiguration
Member
 
Registered: Apr 2007
Location: Indianapolis, Indiana
Distribution: RHEL, Fedora, AIX, HP-UX, FreeBSD, Slackware
Posts: 62

Rep: Reputation: 19
A USB flash drive will suffice =
 
Old 01-03-2011, 02:39 PM   #4
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
yea .. or a DVD .. if you want .. or... upload them to a site like adrive and then download them again (which i don't recommend .. i'm just saying )

yea .. maybe using samba and a shared network connection ..
 
Old 01-04-2011, 02:59 AM   #5
tommyttt
Member
 
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

Rep: Reputation: 34
Quote:
Originally Posted by rmaleshri View Post
How can I copy some files from a windows machine to Linux machine ?
If you can network the two computers together you could then transfer over the network using SAMBA in linux.You don't say how many files, total size of the transfer, or file formats which would be helpful to formulate a simple plan.

Tom
 
Old 01-04-2011, 03:35 AM   #6
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
Just to add to add to options provided above:
  1. Set up an FTP server on your linux machine. FTP files over
  2. Set up an SSH server on your linux machine. Use a program like winscp from windows to copy them over.
  3. Set up a HTTP server on your windows machine. Download the files from your linux box (wget or browser).
 
Old 01-04-2011, 03:43 AM   #7
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Rep: Reputation: 21
I hope you know how to share a directory in windows. So after sharing it from windows, come to the linux box and type the following command. It will prompt you for the windows password. Just fire it and access your files of windows from linux. i dont know the impact of enabling iptables, firewall and selinux here. you can try by disabling all these things also.

Quote:
mount -t cifs //windows/share /mnt --verbose -o user=username
Quote:
service iptables stop
setup - to disable firewall
/etc/selinux/config - set SELINUX entry to disabled and a reboot is required.

Last edited by kingston; 01-04-2011 at 03:49 AM.
 
Old 01-04-2011, 04:17 AM   #8
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 218

Rep: Reputation: 27
Quote:
Originally Posted by rmaleshri View Post
How can I copy some files from a windows machine to Linux machine ?
Download WinSCP from here
Login into the Linux Machine from your windows machine using WinSCP and copy files.

I am assuming both machines are on a network.
 
Old 01-04-2011, 07:09 AM   #9
ashish_neekhra
Member
 
Registered: Nov 2007
Posts: 67

Rep: Reputation: 4
Yes enable SSH properly & use WinSCP software, it's very easy.

If you want how to enable ssh see this.

Last edited by ashish_neekhra; 01-04-2011 at 07:15 AM.
 
Old 01-04-2011, 11:31 AM   #10
raviteja_s
Member
 
Registered: Jun 2010
Location: India
Distribution: Redhat
Posts: 68

Rep: Reputation: 1
use floppy disk or usb ...
 
Old 01-04-2011, 11:48 AM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Just clarification for those of you not old enough to remember; Sneakernet is the transfer of files by physical means(Floppy, USB, CD/DVD, moving hard drive from one machine to another, etc).
 
Old 01-04-2011, 07:51 PM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
If you've got Putty (free MS term emulator for Linux) then it has a cmd line pscp tool ie ssh like winscp.
 
Old 01-04-2011, 08:13 PM   #13
meabi
LQ Newbie
 
Registered: Nov 2010
Location: INDIA
Distribution: FEDORA
Posts: 25

Rep: Reputation: 9
if you mean how to access windows partition in linux you can mount it there

suppose id /dev/sdc2 is windows partition you can access it with a directory /home/user1/winc if you mount this

for this you may do this

]$ mount /dev/sdc2 /home/user1/winc

now you can access the contents by
]$ cd /home/user1/winc
winc]ls
will list all contents in windows c partition

alternately you can access Linux Drives from windows using a utility called explore2fs

its detailed here http://www.meabi.com/access-linux-drives-from-windows/

hope you are clear now
 
1 members found this post helpful.
Old 01-10-2011, 03:33 PM   #14
rmaleshri
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Copying files issue has been solved. Another issue - While copying files from Windows, I logged in to Linux as myself (LDAP) and copied the files. Now I have to copy these files to another Linux user. I get a permission denied.
 
  


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
Copying Windows files in Linux yaro137 Linux - General 7 07-23-2010 04:39 PM
Copying windows files to linux investmentbnker75 Linux - General 16 08-22-2008 01:45 PM
Copying files from Windows to Linux Kmann Linux - Newbie 3 11-24-2006 03:19 PM
copying files from linux to windows jonnypop00 Linux - Newbie 2 09-17-2003 05:32 PM
copying files from windows to linux susyq78 Linux - Newbie 6 08-10-2003 10:21 PM


All times are GMT -5. The time now is 07:31 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