LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-12-2004, 11:24 PM   #1
AliasE
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Rep: Reputation: 0
Unhappy Unwritable windows partition


I'v recently installed Mandrake 9.2 and automounted the system.
Before I had installed linux I had (and still do) a NTFS Windows partition which is located in file:/windows/ which seems to have the mods of
Code:
dr-xr-xr-x    1 root     root         8192 Jan 11 17:49 windows/
while every file inside taht directory seems to have the mods of
Code:
-r-xr-xr-x    2 root     root        61440 Dec 23 01:40 file.exe*
which does not let me write inside the directory or change any of its setting even though I am logged in as superuser or root.

Is there any possible way to unlock windows? I'v tried chmod +w /windows/ but it didnt seem to work, any suggestions?

Last edited by AliasE; 01-12-2004 at 11:28 PM.
 
Old 01-12-2004, 11:31 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

Most linux systems can't write NTFS. You'll have to install a more recent kernel to write on these partitions.

(I could be wrong, but the latest RedHat versions can't write to NTFS, because it's not supported by the kernel).

Dave
 
Old 01-12-2004, 11:35 PM   #3
hexbit
Member
 
Registered: Jun 2003
Location: Dallas, Tx
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
Try using the -R switch like this :

chmod -R 755 windows/

That will cause your windows/ dir to only be writeable by root but it should give you the permissions to write to it now. The -R switch just means recursive. Check out the man pages for chmod for more info.
 
Old 01-12-2004, 11:37 PM   #4
AliasE
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Original Poster
Rep: Reputation: 0
just executed that command and it seems to be changing everytihng inside of it , btw what does 755 mean? and 733 also?

edit: it seems to still unallow me to write files to it, maybe i should get rid of windows forever?

Last edited by AliasE; 01-12-2004 at 11:42 PM.
 
Old 01-12-2004, 11:55 PM   #5
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 496

Rep: Reputation: 30
See this site:

http://linux-ntfs.sourceforge.net

Linux has trouble writing to NTFS partitions. Even if you get it to work, there's a small chance data might be corrupted. You can't really change the file system type Windows runs on unless you're using Windows 95/98/ME, which use FAT32 instead of NTFS. Windows 2000/NT and Windows XP are stuck with NTFS until the next version (Longhorn) releases OFS aka "Windows" FS.

About the "755", imagine that 4 = read, 2 = write, 1 = execute.
So the first digit means that the owner of the file and root can read, write and execute (4 + 2 + 1 = 7)
The second digit means users in the same group as the creator can read and execute but not write (4 + 1 = 5)
The third digit means that all other users can read and execute but not write (4 + 1 = 5)

733 means that the creator and root can do everything, but everyone else can only write and execute, not read. (2 + 1 = 3)
 
Old 01-12-2004, 11:57 PM   #6
AliasE
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Original Poster
Rep: Reputation: 0
possible to make 777?
 
Old 01-13-2004, 12:21 AM   #7
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
if you want to read/write to ntfs partitions, give this a looksie.

http://www.jankratochvil.net/project/captive/

you'll need to edit your /etc/fstab file afterwards with the umask option since chmod'ing a windows partition will not work. the basic way to get default rw access for everyone (i don't recommend this since this opens up your windows partitions to everyone) is to add this line in the options:

umask=0000

an expanded /etc/fstab entry:

/dev/hda10 /winpar/winI vfat auto,owner,umask=0000,exec,rw 0 0

this is a modified example. not one that i'd recommend or use. i also use fat32, so for ntfs, you'd change vfat to ntfs.
 
  


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 On
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
Bootsector Unwritable hamish Linux - Software 3 04-16-2005 07:03 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
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
How do I install slackware on a partition made by partition magic in windows bling bling Slackware 4 06-28-2003 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:16 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