LinuxQuestions.org
Visit Jeremy's Blog.
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 03-08-2004, 05:52 PM   #1
Ilushka
LQ Newbie
 
Registered: Mar 2004
Location: san jose
Posts: 10

Rep: Reputation: 0
Can't access NTFS partition unless I'm root?


OK,

I'm using RedHat 9 and I just isntalled the NTFS support driver. Now I can mount my NTFS partitions butI can only do that if I'm logged in as root. When go back to my regular account it says I need to be root to access the drive, if I try to change the owner of the drive while I'm root it says that the disk is read-only and it can change any options, including the write permission.

Please help me out.
 
Old 03-08-2004, 07:09 PM   #2
SylvainP
LQ Newbie
 
Registered: Feb 2004
Distribution: Suse, Knoppix, Slackware
Posts: 27

Rep: Reputation: 15
1- Post your /etc/fstab file.
2- do not enable write access on an NTFS partition, the authors themself say no to do this because it doesn't work well yet, the probability of damaging your files is high.
 
Old 03-08-2004, 08:38 PM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
Here is what I use..

/dev/hda2 /mnt/xp ntfs auto,exec,uid=99,gid=100,users,umask=0222 0 0

People that are in the group users would have access to mount or unmount the partition, and everyone has read access.

If you want you can use another group. group 100 is my users group. uid 99 is nobody. auto mounts it at boot, you can use noauto.

here is what the mount looks like..

dr-xr-xr-x 1 nobody users 12288 Mar 2 03:52 xp

umask=0227 may be best for most people

dr-xr-x--- 1 nobody users 12288 Mar 2 03:52 xp

only the users group will have read access, so you can keep everyone from reading the files. If the system is used by a lot of people I would not allow everyone to access it.

Last edited by DavidPhillips; 03-08-2004 at 08:47 PM.
 
Old 03-09-2004, 04:14 PM   #4
cwaidelich
LQ Newbie
 
Registered: Sep 2003
Location: Colombia
Distribution: Ubuntu / Kubuntu
Posts: 27

Rep: Reputation: 15
how can i change the umask option to have all the permisions? or do i have no option of writing on that ntfs partition???

CWaidelich
 
Old 03-09-2004, 05:12 PM   #5
frzburn
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FreeBSD
Posts: 38

Rep: Reputation: 15
My fstab NTFS line looks like this:
/dev/hda1 /mnt/WinXP ntfs users,ro,umaks=0222 0 0

Voilą!
 
Old 03-09-2004, 05:47 PM   #6
cwaidelich
LQ Newbie
 
Registered: Sep 2003
Location: Colombia
Distribution: Ubuntu / Kubuntu
Posts: 27

Rep: Reputation: 15
mine looks like this:

/dev/hda5 /mnt/multy/ ntfs umask=0222,uid=cwaidelich,gid=users 0 0

in my eyes its the same (0222).
Can u rm and mv files ???
 
Old 03-09-2004, 06:16 PM   #7
Ninja Cow
Member
 
Registered: May 2003
Location: Pensacola, Florida
Distribution: Debian, Slackware, Amigo, Ubuntu
Posts: 221

Rep: Reputation: 30
Quote:
Originally posted by cwaidelich
mine looks like this:

/dev/hda5 /mnt/multy/ ntfs umask=0222,uid=cwaidelich,gid=users 0 0

in my eyes its the same (0222).
Can u rm and mv files ???
I've copied files from NTFS, but you cannot remove them.
 
Old 03-09-2004, 09:49 PM   #8
secho
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 34

Rep: Reputation: 15
Its definatly a BAD idea to try to remove or write files on an NTFS partition.
If you are going to write, make sure the files are the same size.

Best bet - try changing the partition to FAT32 with PQMagic if you have it available.
 
Old 03-09-2004, 11:36 PM   #9
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
The newer kernels have a newer module. You should read the help on ntfs write first. It is truly a very bad idea, and is in no way necessary if you can just boot into windows and write files from there.
 
Old 03-10-2004, 04:58 AM   #10
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
um guys in kernel 2.6.x NTFS is supported read and write modes both work.


This enables the partial, but safe, write support in the NTFS driver.

The only supported operation is overwriting existing files, without
changing the file length. No file or directory creation, deletion or
renaming is possible. Note only non-resident files can be written to
so you may find that some very small files (<500 bytes or so) cannot
be written to.

While we cannot guarantee that it will not damage any data, we have
so far not received a single report where the driver would have
damaged someones data so we assume it is perfectly safe to use.

Note: While write support is safe in this version (a rewrite from
scratch of the NTFS support), it should be noted that the old NTFS
write support, included in Linux 2.5.10 and before (since 1997),
is not safe.

This is currently useful with TopologiLinux. TopologiLinux is run
on top of any DOS/Microsoft Windows system without partitioning your
hard disk. Unlike other Linux distributions TopologiLinux does not
need its own partition. For more information see
<http://topologi-linux.sourceforge.net/>

It is perfectly safe to say N here.

Last edited by ProtoformX; 03-10-2004 at 05:01 AM.
 
Old 03-10-2004, 02:00 PM   #11
cwaidelich
LQ Newbie
 
Registered: Sep 2003
Location: Colombia
Distribution: Ubuntu / Kubuntu
Posts: 27

Rep: Reputation: 15
so i have 60 Gb of disk space i can only write on, when im in windows??? give me a break.
i mean, its a lot of space that is not beeing used...

could this work:
delete partion ntsf
create new fat32

but without magic partion...
i know i would have to back up all files on my ntfs...


CWaidelich
 
Old 03-10-2004, 03:28 PM   #12
secho
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 34

Rep: Reputation: 15
"so i have 60 Gb of disk space i can only write on, when im in windows??? give me a break. "

Thats microsoft for you, they designed ntfs specifically to prevent other systems from accessing it. They have gone as far as to make 4 versions (last timne I checked).

deleting the NTFS partition and making a FAT32 partition would absolutely work. Thats what most people do. You would, however, as you said have to back up your data. One note about Fat32 though: you can't have single files bigger than 2GB. For most people this doesn't matter, but if you work with video files, its a big deal.
 
  


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
NTFS partition access rr_rr_29 Linux - Hardware 1 10-17-2005 05:59 AM
how 2 access my ntfs partition jamie7676 Red Hat 3 03-31-2005 01:27 PM
How to access NTFS partition? silvershani Linux - Software 1 02-26-2005 08:16 AM
Cannot Access NTFS partition from linux farrooda Linux - Newbie 13 11-12-2004 10:24 AM
access NTFS mounts without root btaber Linux - Hardware 4 03-23-2004 05:05 PM


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