LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting NTFS -> Locked Directory (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-ntfs-locked-directory-15813/)

cracked4life 03-08-2002 03:38 AM

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.

Mik 03-08-2002 08:58 AM

What are the permissions on /mnt/windows?

Try as root:
chmod 755 /mnt
chmod 755 /mnt/windows

delvekian 03-08-2002 10:19 AM

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 :)

cracked4life 03-08-2002 01:58 PM

I tried chmod 755 /mnt/windows but it says:

Read-Only File system.

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

cracked4life 03-08-2002 01:58 PM

I tried chmod 755 /mnt/windows but it says:

Read-Only File system.

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

isajera 03-08-2002 02:16 PM

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.

linuxcool 03-09-2002 12:50 AM

Instead of chmod 755 try chmod 555.

guest 07-15-2003 04:53 AM

I'm having the same problem.

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

guess it won't work with NTFS huh?

hansjorn 07-15-2003 06:44 AM

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/.

TheOneAndOnlySM 07-15-2003 09:37 AM

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

Mathieu 07-15-2003 10:24 AM

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.

guest 10-19-2003 01:30 PM

Try the following options in your fstab:
ro,user,umask=022

dalek 10-19-2003 01:53 PM

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

:D :D :D :D


All times are GMT -5. The time now is 06:22 PM.