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 03-03-2004, 09:28 PM   #1
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Rep: Reputation: 15
Question Win disk read-only; howto make it r/w???


Hello,

My computer has two harddisk. Disk 0 contains the Linx os, disk 1 is for windows.
Now I have the following problem:

- the windows disk has been set to read-only by Linux during install.

- root is the only one having read-permission on this disk.

- because of the read-only attribute, root cannot modify the rights for user.

- user MUST have read-access.

How can I make the disk read-write for root???
I use Mandrake 9.2....
If anybody knows how to achieve this, I shall appreciate if you want to share this knowledge with me

Kind regards,

Schmurff
 
Old 03-03-2004, 09:44 PM   #2
CoolAJ86
Member
 
Registered: Jan 2004
Location: VT, USA
Distribution: Gentoo, Ubuntu - t3h 1337 & the easy, respectively
Posts: 125

Rep: Reputation: 15
Is the Win disk NTFS?
If so there is no safe way to write to the disk.
Use a FAT32 partition.
 
Old 03-03-2004, 09:54 PM   #3
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Assuming that your win disk isn't NTFS, as CoolAJ6 said, you should be able to edit /etc/fstab to include the <rw> option for all users, and then remount the disk (otherwise there's probably a gui for this in the Mandrake Control Center, under hardware - I haven't used Mandrake recently).
 
Old 03-03-2004, 11:13 PM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
the rw option by itself does not, to my knowledge to date, allow write access to windows fat partitions. the umask option does this. assuming you do not care who writes to your windows partitions an fstab entry may look like:

/dev/hda1 /mnt/winC vfat auto,owner,umask=0000,exec,rw 0 0

i think the umask is the permissions of the partition when mounted. the exec, rw options are what users are allowed to do on that partition. the 2 are mutually exclusive though. for instance, even though you allow users to read/write/exec on that partition, they will not be able to unless you mount that partition to allow them to use their permissions.
 
Old 03-04-2004, 02:22 AM   #5
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Original Poster
Rep: Reputation: 15
Unfortunately, the disk in question contains ntfs-partitions.

The line in my /etc/fstab looks like this:

"/dev/hdb6 /mnt/win-e ntfs ro,iocharset=iso8859-1 0 0"

If I change 'ro' to 'rw', it becomes impossible to access any partitions on the disk.

??????????

Schmurff
 
Old 03-04-2004, 06:18 AM   #6
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
At the moment, there is no safe way to write to a NTFS partition. That said, there are utilities that allow you to write to NTFS, but they are very much in a beta stage and I would not recommend you use them unless you don't care if you NTFS partition gets corrupt . What I did was to create an 8GB partition on my WinXP drive to move files between OS's.

Baldrick
 
Old 03-04-2004, 06:33 AM   #7
crypticsoda
LQ Newbie
 
Registered: Feb 2003
Location: Stuttgart, Germany
Distribution: Fedora
Posts: 26

Rep: Reputation: 15
Quote:
Originally posted by Baldrick65
At the moment, there is no safe way to write to a NTFS partition. That said, there are utilities that allow you to write to NTFS, but they are very much in a beta stage and I would not recommend you use them unless you don't care if you NTFS partition gets corrupt . What I did was to create an 8GB partition on my WinXP drive to move files between OS's.

Baldrick
In my experience captive-ntfs is indeed quite safe, just not always really a performance king.
 
Old 03-04-2004, 10:30 AM   #8
shobhit
Member
 
Registered: Sep 2003
Location: kolkata
Distribution: Fedora 7
Posts: 60

Rep: Reputation: 15
if you are using ntfs file system, then you will have to d/w and compile a patch for your kernel.
if its a fat32 file system, then just edit your /etc/fstab.
in the line containing your windows partition info, typically
/dev/hdb .............
add the keyword 'user' in the fourth column, which will contain the keyword 'default' (generally).
i think that maybe you will have to delete the default keyword, just try both ways.
 
Old 03-05-2004, 01:45 AM   #9
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Original Poster
Rep: Reputation: 15
Hello everybody who replied to my question,

Thank you for your help.
It is not my objective to write to my ntfs-partitions. I only need to set the drive writeable in order to enable root to make it readeable for user. User wants to read his huge collection of mp3-files on this drive without the need to copy them to his Linux-drive.
By default the Mandrake-installer sets the drive on readonly for root, thus preventing to change the rights.
This problem feels like running in a circle...
 
Old 03-05-2004, 04:34 AM   #10
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
use umask again in your fstab. you don't need to make use the rw option at all.

umask=0222

will mount your ntfs partition with the default permissions as r-x r-x r-x and change the rw option back to ro.

now with mandrake, you may have some issue with their supermount thing. i'm not sure as i don't use mandy. just, for now, make the changes to your /etc/fstab file and see if that does it for you.
 
  


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
howto enable win keys for mandrake spikeyklitske Linux - Software 0 10-31-2004 07:40 AM
Howto read raw-partitions? lowtek Linux - Hardware 0 07-16-2004 06:30 PM
how do I make a read-only file NOT read-only? robster Linux - General 1 02-17-2004 10:11 PM
Can only connect to win box read only patpawlowski Linux - Networking 5 02-14-2004 07:21 PM
Howto get Linux on a Win NT4 LAN? erikcw Linux - Networking 7 10-02-2001 12:22 PM


All times are GMT -5. The time now is 04:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration