Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 07-14-2004, 12:07 AM   #1
Registered: Feb 2004
Posts: 89

Rep: Reputation: 15
Using Windows partition in Linux

I am trying to let all users access my windows partition from Linux, but it is owned by root and the permissions are 500. I can't change the permissions, because I get a read only error. I modified the line in fstab slightly so that it looks like this:

/dev/hda1 /win-c ntfs rw,user 0 0

How can I change the permissions to let everyone read the partition?
Old 07-14-2004, 01:59 AM   #2
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Add 'umask=000' in the line in fstab. Everybody will have full access.
However, it's ntfs so I don't think you can write to it.
Change 'rw' to 'ro' and umask=222 (I think this is correct?) to mount it read-only for everyone.
Old 07-14-2004, 03:00 AM   #3
LQ Newbie
Registered: Jul 2004
Location: Texas
Distribution: suse9.3
Posts: 18

Rep: Reputation: 0
Anotherr nice little trick is to shrink your ntfs partition a little and make a FAT32 partition so Linux can write to it. That way you can have two way comm between your windows and Linux boxes.
Old 07-14-2004, 04:31 AM   #4
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
I have read that the latest 2.6 kernels are getting pretty good at write support. That is NOT from personal experience though. I would be very very careful.

To be safe, use ratcheson's advice. That is what I tell people to. It is much safer.


Old 07-14-2004, 07:10 AM   #5
Senior Member
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Unmount the partition and change the permissions of the mount point, or it won't matter if the files mounted have the right permissions, as you won't be able to open the folder they're contained in.

You might further consider adding uid= and gid= options to the mount line in /etc/fstab, so that ownership of newly created files is not screwed up by one user for the others. Read man mount and man fstab for more details.

You might also move the mount point somewhere that it's a bit easier to deal with, like your /home directory, where it's easier to reach in the file tree, and the user has better ownership permissions. If multiple users need to access the partition, the mount can be symlinked into individual $HOME folders.

Hope this helps.
Old 07-14-2004, 05:54 PM   #6
Registered: Feb 2004
Posts: 89

Original Poster
Rep: Reputation: 15
After reading everybody's advice and taking a look at the manuals for mount and fstab, I changed the fstab line to this:

/dev/hda1 /win-c ntfs umask=222,ro 0 0

I also changed the permissions of /win-c to 555 with the filesystem unmounted. However, when I mount the system, the permissions somehow become 441, and I still can't change them as root. Is there something big that I'm missing here?


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
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
I want to increase my Linux partition.Should I take space from a Windows partition? PrinceBalak Linux - General 1 06-25-2004 05:44 PM
What is the code to copy a file from my windows partition to my linux partition? THEBIGFISH Linux - Newbie 3 03-15-2004 10:14 PM
accessing windows partition from linux partition dave bean Linux - Newbie 19 10-15-2003 04:39 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration