LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to get files from other partition (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-files-from-other-partition-409152/)

pna1_pi3 01-28-2006 10:37 PM

How to get files from other partition
 
Hi, im really new at this and i hope that somebody can help me. I've compiled my hard drive with 2 operating systems, windows and linux. I did this by partitioning my drive. All my music files are in the windows partition and i want to transfer those music files into my Linux partition. When i try opening the windows partition in Linux i get a message saying that i dont have the permissions to display the contents of it. How can i get the permission and finally be able to transfer files?

oneferna 01-28-2006 10:53 PM

Honestly (and this probably isn't what you want to hear or the best way to do this but...) I become root (so su or sudo bash depending on your distro) and copy the files via the command line. I don't use the graphical file managers/browsers.

So what I would do is:

cp /from/windows/partition/example.mp3 /to/linux/partition/example.mp3

But I also don't know how you windows partition is mounted or what kind of file system it is. i.e. NTFS or FAT. That info would be useful.
Thanks.

Dtsazza 01-29-2006 07:06 AM

If you wanted to copy large amounts of data from, say, C:\My Music (and your C drive was mounted on /mnt/windows) you can use the -R option to cp to copy recursively. Something like
Code:

# cp -R /mnt/windows/My\ Music ~
will copy the entire My Music directory from your windows drive to your Linux home directory. After that, you may want to rename it to something more linux-y (i.e. no uppercase or spaces - mv ~/My\ Music ~/music), and you should probably change the owner of the files from root to your everyday user to avoid permissions problems:
Code:

# chown <youruser> -R ~/music (or ~/My\ Music if you didn't rename)
Et voila!


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