LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-20-2004, 05:25 PM   #1
sci0x
LQ Newbie
 
Registered: Mar 2004
Location: Rathmore, Co. Kerry
Posts: 12

Rep: Reputation: 0
Accessing files on the Windows Partition from Linux


I would like to access the music on my Windows Partition to play on Linux. I know there is a way this can be done I would just like to know how. Is there some software out there that can do it?
 
Old 03-20-2004, 05:46 PM   #2
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
You need to have support for whatever windows filesystem you want to access (fat32, ntfs) compiled into your kernel or as a module. Then you can add an entry for your windows partition to /etc/fstab, mount it and read files as normal (you can't really write to ntfs though afaik).

man mount
man fstab
 
Old 03-20-2004, 06:00 PM   #3
sci0x
LQ Newbie
 
Registered: Mar 2004
Location: Rathmore, Co. Kerry
Posts: 12

Original Poster
Rep: Reputation: 0
Any chance you could explain that again, to a person who has just started using Linux yesterday?

Thanks
 
Old 03-20-2004, 06:28 PM   #4
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
Ok... the kernel thing is tricky, although it is not that difficult to compile a new one. Most stock kernels that I know of probably have fat32 read support though. What distro and kernel are you using (check with uname -r at the command line), and what format is your windows partition (fat32 or ntfs)?

Assuming that you have read support for that partition type in your kernel, do this as root:

1) Add a line similar to this to your /etc/fstab:
Code:
/dev/hda1        /mnt/windows     ntfs        noauto,users,ro,umask=0222    0   0
Where the first part points to the name of your windows partition, the second points to the directory you are going to make in the next step, the third is the file system type of your win partition.

2) Make a new directory /mnt/windows
Code:
mkdir /mnt/windows
chmod 755 /mnt/windows
My memory is a little hazy on this, you might have to do that in the opposite order.

Hopefully after this you should be able to use the command:
mount /mnt/windows
to mount your windows partition and then be able to navigate and use files in it as you would normally. Note that you won't be able to change them unless you alter the umask setting in /etc/fstab. If you get any errors post them here with specific error messages.
 
Old 03-20-2004, 06:53 PM   #5
sci0x
LQ Newbie
 
Registered: Mar 2004
Location: Rathmore, Co. Kerry
Posts: 12

Original Poster
Rep: Reputation: 0
When i open etc/fstab i cant edit it. How do i log in as root to edit it?

Thanks for helping me btw
 
Old 03-20-2004, 07:15 PM   #6
urzumph
Member
 
Registered: Jan 2004
Location: Australia
Distribution: Debian
Posts: 168

Rep: Reputation: 30
it's better not to log into the GUI as root (safer)

To log in as root :
CTRL-ALT-F2
and log in

To have access to root permissions from within GUI :
Open a terminal.
type su and hit enter
enter your password.

Once you've done that, edit your fstab with whatever editor you have installed, (I recommend nano for new linux users) and save.
 
Old 03-21-2004, 02:34 PM   #7
sci0x
LQ Newbie
 
Registered: Mar 2004
Location: Rathmore, Co. Kerry
Posts: 12

Original Poster
Rep: Reputation: 0
ok i open the terminal, type su, log in and it says im logged in. But when i open /etc/fstab i still dont have permission to edit it?
 
  


Reply



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
accessing windows partition in linux... fatherg Linux - General 3 10-15-2004 02:51 PM
Accessing Linux Partition from Windows podollb Linux - Software 2 04-10-2004 06:31 PM
Accessing files on my Windows partition darktalon96 Linux - Newbie 4 01-09-2004 10:23 AM
Accessing the linux partition through windows rolandi Linux - Newbie 3 11-26-2003 05:49 PM
accessing windows partition from linux partition dave bean Linux - Newbie 19 10-15-2003 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:43 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
Open Source Consulting | Domain Registration