LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do you transfer files from Windows to Linux with Windows mounted to Linux ? (https://www.linuxquestions.org/questions/linux-software-2/how-do-you-transfer-files-from-windows-to-linux-with-windows-mounted-to-linux-715245/)

lupusarcanus 03-29-2009 05:42 AM

How do you transfer files from Windows to Linux with Windows mounted to Linux ?
 
Hey LQ, I was wondering how to transfer files from Windows to Linux when I mount Windows to Linux....I'm trying to get ndiswrapper off my Windwows Desktop onto my Linux system.

I sincerely thank you,

leopard

camorri 03-29-2009 06:10 AM

You need a working connection between the two systems. This can be a ethernet hard wired connection, wireless, a direct attach cable or even dial up.

You need to be able to ping in both directions. This is to verify the connection only.

You can use ftp. You would need a ftp server on windoze. You should be able to find one in freeware. Then open a ftp client in linux.

You could use ssh. You need a ssh server for windoze. Freeware also. It needs a little configuration.

If this is to be used a lot, then samba is worth the effort. Linux comes with samba client installed. Depending on desktop you installed, the samba client will be different. If it is KDE, Konqueror will work. On windows you have to set the desktop up as a windoze share. Then connect from Konq to windoze, drag and drop will copy the file(s).

Sneaker net. Copy the file to a CD, walk to the other machine...

Lots of ways.

b0uncer 03-29-2009 06:10 AM

EDIT: I got the impression that you were talking about getting files from a Windows installation on the same machine to a Linux installation, not through ethernet from another machine..so what follows is based on that assumption. In the case of network file transfer, see the above post from camorri; I'd just use sftp or scp, if your Linux machine had an ssh server running. Another thing is that you didn't specify which distribution you're using, so the instructions are fairly general..you should edit your profile information and include your distribution there.

Provided that you have ntfs filesystem support in your kernel, basically just mount the data partition you have the files on, then [use a file manager (or shell) to navigate to the correct directory inside the mount point if you don't know what it is and] copy the files as usual.

For example if the files were on Windows partition /dev/sda1 (if "C:" was the first primary partition on your primary harddisk) and /mnt existed and was empty, you could do something like
Code:

mount /dev/sda1 /mnt
cp -R /mnt/Users/yourWindowsUserName/Desktop/ndiswrapperdirectory /home/yourLinuxUserName/ndiswrapperdirectory
umount /mnt

In practise you probably need to have root privileges (so either put 'sudo ' in front of the commands OR use 'su -' to become root before issuing the commands), and there might be a lot easier way depending on your distribution. For example it could be that you can just open your file manager (say Nautilus on Gnome desktop), click the Windows partition icon in the directory tree if present, maybe type in your password if asked and then just grab the files from the partition as usual.

lupusarcanus 03-29-2009 07:02 AM

Thank you, b0uncer! I successfully transferred my two files from windows to Linux!


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