LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-23-2003, 05:09 AM   #1
kvtournh
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Mandriva
Posts: 91

Rep: Reputation: 15
mounting ntfs in mdk9.2


Hi,

I've been trying to open ntfs-partitions while beeing a normal user, but it doesn't work. I can only open them as root. can somebody help me out?

It are the partitions win_c and win_d that I want to read as normal user

Here under you find my fstab and mtab and what i tried

I also changed my mtab and fstab, but mdk9.2 changes it always back. How can I avoid this?

thanks
klaas

[root@localhost mnt]# ls -l
total 12
drwxrwxrwx 0 root root 0 Dec 23 12:47 cdrom/
drwxrwxrwx 0 root root 0 Dec 23 12:47 cdrom2/
drwxrwxrwx 0 root root 0 Dec 23 12:47 floppy/
dr-x------ 1 root root 8192 Dec 16 20:26 win_c/
dr-x------ 1 root root 4096 Dec 20 10:51 win_d/
[root@localhost mnt]# chmod 444 win*
chmod: changing permissions of `win_c': Read-only file system
chmod: changing permissions of `win_d': Read-only file system
[root@localhost mnt]# cat /etc/fstab
/dev/hda3 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /mnt/cdrom supermount dev=/dev/hdc,fs=udf:iso9660,ro,--,iocharset=iso8859-1 0 0
none /mnt/cdrom2 supermount dev=/dev/scd0,fs=udf:iso9660,ro,--,iocharset=iso8859-1 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,codepage=850,iocharset=iso8859-1,sync 0 0
/dev/hda4 /mnt/win_c ntfs user,iocharset=iso8859-1 0 0
/dev/hda5 /mnt/win_d ntfs user,iocharset=iso8859-1 0 0
none /proc proc defaults 0 0
/dev/hda2 swap swap defaults 0 0
[root@localhost mnt]# cat /etc/mtab
/dev/ide/host0/bus0/target0/lun0/part3 / ext3 rw 0 0
none /proc proc rw 0 0
none /proc/bus/usb usbfs rw 0 0
none /dev devfs rw 0 0
none /dev/pts devpts rw,mode=0620 0 0
none /mnt/cdrom supermount ro,dev=/dev/hdc,fs=udf:iso9660,--,iocharset=iso8859-1 0 0
none /mnt/cdrom2 supermount ro,dev=/dev/scd0,fs=udf:iso9660,--,iocharset=iso8859-1 0 0
none /mnt/floppy supermount rw,sync,dev=/dev/fd0,fs=ext2:vfat,--,codepage=850,iocharset=iso8859-1 0 0
/dev/ide/host0/bus0/target0/lun0/part4 /mnt/win_c ntfs rw,noexec,nosuid,nodev,iocharset=iso8859-1 0 0
/dev/ide/host0/bus0/target0/lun0/part5 /mnt/win_d ntfs rw,noexec,nosuid,nodev,iocharset=iso8859-1 0 0
 
Old 12-23-2003, 06:32 AM   #2
firewired
LQ Newbie
 
Registered: Dec 2003
Posts: 6

Rep: Reputation: 0
afaik vfat options aplys to ntfs too, so use the umask option, e.g mine fstab :

/dev/hda2 /mnt/winxp vfat iocharset=iso8859-7,codepage=869,uid=501,gid=501,umask=002,shortname=mixed,owner 0 0
 
Old 12-23-2003, 09:07 AM   #3
RancidWannaRiot
LQ Newbie
 
Registered: Nov 2003
Location: Florida, USA
Distribution: Mandrake
Posts: 20

Rep: Reputation: 0
i don't know how much different mounting ntfs is from mounting FAT32... but to mount a FAT32 can't you just do this

/dev/hda2 /path/to/desired/directory vfat umask=000 0 0

you're /dev/hda will have to change according to what partition you're mounting. i don't understand what all that other stuff is..

iocharset=iso8859-7,codepage=869,uid=501,gid=501,umask=002,shortname=mixed,owner 0 0


but what i typed above works for FAT32...
 
Old 12-23-2003, 06:06 PM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
For NTFS as an ordinary user add these options to the 4th field of the relevant /etc/fstab entries

umask=0222,auto,ro

for example

dev/hda4 /mnt/win_c ntfs iocharset=iso8859-1,umask=0222,auto,ro 0 0

Last edited by Skyline; 12-23-2003 at 06:07 PM.
 
Old 12-24-2003, 05:11 AM   #5
kvtournh
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Mandriva
Posts: 91

Original Poster
Rep: Reputation: 15
this worked, thanks
 
  


Reply



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
Need a little help with ntfs and mounting! Worksman Linux - Newbie 1 07-24-2005 09:04 PM
mounting ntfs terfy Debian 11 01-09-2005 02:42 PM
Mounting NTFS Eagle101 Linux - General 2 12-13-2004 09:57 AM
mounting ntfs kvtournh Linux - Hardware 3 12-24-2003 06:06 AM
Mounting NTFS tspauld98 Linux - General 3 08-04-2002 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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