LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-17-2005, 02:51 PM   #1
Shady195
LQ Newbie
 
Registered: Oct 2005
Posts: 18

Rep: Reputation: 0
Getting files off a partition??


Okay well im running linux on a 20 gig partition on my hard drive with windows on it.. i have all this music on that partition and i was just wondering if i can get the files off my windows partition and play them on my linux partition.. just like takeing music off another hard drive to play on your main one


thanks
Shady
 
Old 10-17-2005, 03:07 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
You can just mount the partition and play them directly from there. If you don't have one already, make a mountpoint for it, like /mnt/Windows, then

mount -t vfat /dev/hdb1 /mnt/Windows -o gid=100, umask=002

If windows is not on hdb1 substitute the correct partition. And gid=100,umask=002 make it rw for the users group. If Windows is on a ntfs partition then rw won't matter because you won't be able to write to it anyway.
 
Old 10-17-2005, 03:17 PM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Hi!

If that partition is of type NTFS, you can mount it read-only. That should be good enough for you if you are willing to simply play the music off the Windows partition.. If that's the case, then do, as root:

mkdir -p /mnt/win_c
mount /dev/hda1 /mnt/win_c -t ntfs -o nls=utf8,umask=0222


That means that your first partition of your first HD (hda1, most likely windows C:\... just a guess ) will be mounted read-only at the directory you've created at /mnt/win_c.

If that's what you were looking for and you would like to "auto-mount" upon boot, then you need to add the following line to your /etc/fstab:

/dev/hda1 /mnt/win_c ntfs nls=utf8,umask=0222 0 0

Now, if that partition is of type FAT32, then it you should also be able to write to that partition. If you wish to mount it to allow read and write, do this, again, as root:

mkdir -p /mnt/win_c
mount /dev/hda1 /mnt/win_c -t vfat -o iocharset=utf8,umask=000


If you want it to be mounted when booting, add this line to your /etc/fstab:

/dev/hda1 /mnt/win_c vfat iocharset=utf8,umask=000 0 0

I personally like to create at least 4 partitions in my HD when I dual boot: Windows. Linux, swap and share. I make both Linux and Windows big enough to fit the OS and the basic programs I've to install. The "share" partition is of FAT32 type and I use it to exchange data between the OS. Well, that's how I did before I put an old box as a file-server only.

Good luck!

Last edited by Mega Man X; 10-17-2005 at 03:21 PM.
 
Old 10-17-2005, 03:20 PM   #4
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
I'd recommend creating a separate FAT 32 partition to store data that is not OS dependant. Linux and windows can both easily read and write to FAT32, making it perfect for music/movie files.
 
Old 10-17-2005, 03:34 PM   #5
Shady195
LQ Newbie
 
Registered: Oct 2005
Posts: 18

Original Poster
Rep: Reputation: 0
thanks guys, while i was waiting for replys i was tinkering and found them.. i noticed that i could access windows files from the mnt folder in computer... but if you guys could please go to my other topic im trying to install vid card drivers and it says it cant read my kernal or something and it trys to download one but it doesnt work
 
  


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
moving files from windows partition to linux partition M O L8ingN2dust Linux - Newbie 11 01-08-2006 09:11 PM
Copy files from partition to partition too slow, SATA hard disk.What should I do£¿ Ryanlee SUSE / openSUSE 20 10-31-2005 07:30 AM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-17-2004 11:05 PM
Transfer files from partition ylkien Linux - Newbie 3 09-13-2004 02:37 PM
Accessing files on another partition pyr0ph0r1c Linux - Newbie 21 08-29-2003 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:50 AM.

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
Open Source Consulting | Domain Registration