LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-08-2002, 04:38 AM   #1
cracked4life
LQ Newbie
 
Registered: Mar 2002
Location: Los Angeles
Posts: 3

Rep: Reputation: 0
Unhappy Mounting NTFS -> Locked Directory


Ok, so i've been looking around the forums and i've found how to mount my ntfs XP partition. I added the following line to fstab

/dev/hde1 /mnt/windows ntfs user,ro,defaults 0 0

and i added a icon to my desktop to the partition. However, when i try to open it, i get the error:

Could not enter directory /mnt/windows

When i go up a level i see that /mnt/windows is a locked directory. Please god, does someone know how to unlock this or what i'm doing wrong. I have all my mp3 and docs on my xp partition and i want to access them from linux. Any help is appreciated.

P.S. i've also tried adding the umask=0 option as well as specifying the uid and gid but to no avail.
 
Old 03-08-2002, 09:58 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
What are the permissions on /mnt/windows?

Try as root:
chmod 755 /mnt
chmod 755 /mnt/windows
 
Old 03-08-2002, 11:19 AM   #3
delvekian
LQ Newbie
 
Registered: Mar 2002
Posts: 3

Rep: Reputation: 0
I screwed around with that for several days and finally gave in and solved it by creating a much smaller fat32 partition on my XP hard drive and stuck my MP3's on that partition. worked for me and that's all i realy wanted acces to from linux. If you do get it it working, please post what you did so I can try it
 
Old 03-08-2002, 02:58 PM   #4
cracked4life
LQ Newbie
 
Registered: Mar 2002
Location: Los Angeles
Posts: 3

Original Poster
Rep: Reputation: 0
I tried chmod 755 /mnt/windows but it says:

Read-Only File system.

Still can't figure this one out. Anyone else?
 
Old 03-08-2002, 02:58 PM   #5
cracked4life
LQ Newbie
 
Registered: Mar 2002
Location: Los Angeles
Posts: 3

Original Poster
Rep: Reputation: 0
I tried chmod 755 /mnt/windows but it says:

Read-Only File system.

Still can't figure this one out. Anyone else?

Last edited by cracked4life; 03-08-2002 at 02:59 PM.
 
Old 03-08-2002, 03:16 PM   #6
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
if you're using NTFS, then the kernel you're using probably isn't recent enough to write to the partition. i think that writing to a NTFS partition is still experimental under the most recent kernels, and on older ones, it's strictly read-only. this should be more fully developed in the next few months.

the reason it worked for the fat32 paritition is that the support for fat32 under linux is mature, and can safely read and write.
 
Old 03-09-2002, 01:50 AM   #7
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Instead of chmod 755 try chmod 555.
 
Old 07-15-2003, 05:53 AM   #8
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Rep: Reputation: 30
I'm having the same problem.

chmod 555 didn't work- same error (read only)

guess it won't work with NTFS huh?
 
Old 07-15-2003, 07:44 AM   #9
hansjorn
LQ Newbie
 
Registered: Jul 2003
Location: Værløse north of Copenhagen
Distribution: Suse 8.1
Posts: 4

Rep: Reputation: 0
I don't know much about this, but I have managed to get two NTFS-partitions to work on my machine - from two IDE-disks.

My fstab contains the following line about NTFS-partions

/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=iso8859-1 0 0
/dev/hdb1 /windows/D ntfs .. (same)


I have more partitons - which I at present cannot reach, but these two work nicely - and they were not invented by me, Suse v8.1 did the whole thing, when I long time ago installed it next to Windows 2000 /which was later upgraded to Windows XP without problems/.
 
Old 07-15-2003, 10:37 AM   #10
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
i've been able to mount my ntfs partition without any editing of my fstab or that

try going to this thread and click on the link in it, it also has some good ntfs mounting info

http://www.linuxquestions.org/questi...highlight=ntfs
 
Old 07-15-2003, 11:24 AM   #11
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Wink Am I a God ?

Quote:
Please god, does someone know how to unlock this or what i'm doing wrong
I believe the command you want is:
Code:
mount -t ntfs -o ro,umask=640 /dev/hde1 /mnt/windowsXP
Add ro,umask=640 to your fstab.

Also, the reason why chmod 755 did not work is because the filesystem was Read-Only and by default, the files are owned by root and not readable by somebody else.

Check the man under Mount options for ntfs for more info.
 
Old 10-19-2003, 02:30 PM   #12
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Rep: Reputation: 30
Try the following options in your fstab:
ro,user,umask=022
 
Old 10-19-2003, 02:53 PM   #13
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Exclamation

Be careful writing to NTFS. It CAN? cause data problems including not being able to boot XP. The phrase I usually see is 'It will really hose your XP.'

Just be careful and aware of the problem you can cause. Backed up your XP data lately?

Later

 
  


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
Trying to copy a user folder from ntfs hd that is locked. bluedevlx Linux - Security 1 05-18-2005 03:28 PM
Locked Directory Question abw Linux - General 6 10-17-2004 06:09 PM
Root Directory Locked... *sigh* Sonshyne Linux - Newbie 9 06-19-2004 05:42 AM
Locked NTFS Mount Pleiades Fedora 9 05-09-2004 06:33 AM
NTFS Drive Locked sillouette Linux - General 1 04-03-2004 05:47 AM


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