LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is the code to copy a file from my windows partition to my linux partition? (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-code-to-copy-a-file-from-my-windows-partition-to-my-linux-partition-158202/)

THEBIGFISH 03-15-2004 09:57 PM

What is the code to copy a file from my windows partition to my linux partition?
 
I can't find this anywhere online, but all I need to do is copy a file c:\temp\NVIDIA-Linux-x86-1.0-5336-pkg1.run to my linux partition which happens to be on a second harddrive. I have linux on the 3rd partition(4th=swap). Man, this is easy isn't it!? :)

watashiwaotaku7 03-15-2004 10:12 PM

i dont know where your windows partion is mounted, or if you know how to mount drives yet ill assume windows is on /dev/hda1 and linux on /deb/hdb3

mkdir /mnt/windows
mount /dev/hda1 /mnt/windows
cp /mnt/windows/temp/NV... /whereyou/wantit

you can add your windows partition to your /etc/fstab by adding a line like this

/dev/hdc3 /mnt/hdc3 vfat

/dev/hda1 /mnt/windows vfat

this will mount your windows partition at boot so you wont have to mount it each time you want something also, the mkdir command is a one time thing you will not need it when you mount your drive after the first tiem, all it does is make an empty directory with the name you provide it, vfat is correct for fat fat12 fat16 and fat32 ntfs should be the right flag for an ntfs partiton but remember that ntfs write support is experimental

THEBIGFISH 03-15-2004 10:25 PM

that's great, thanks...I where would I want it to run the NVIDIA drivers?

watashiwaotaku7 03-15-2004 11:14 PM

just about anywhere works, i would personally just put it into my home directory, then cntrl+alt+bkspc which will dump you to a command line, from there use the command su which will most likely ask you for your root password, enter it then make sure you are still in your original home directory "cd /home/whateveryourusernameis" then type run NVI[tab] if that doesnt work you have to use run ./NVI[tab] i havent use NVIDIA drivers in a long time


All times are GMT -5. The time now is 01:42 AM.