LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-27-2003, 03:11 PM   #1
keep
LQ Newbie
 
Registered: Jun 2003
Distribution: slack
Posts: 7

Rep: Reputation: 0
cant use ntfs part as other than root (solved)


I have mounted the partition I want to use, I can enter it as root, but I can't touch it with the other accounts...
I have tried chmod, but the disk won't change.

(i have searched for this in the forum and looked through guides but found nothing that solved this problem)


How do I access the part with my normal account?
(using slack of course)

Last edited by keep; 07-03-2003 at 11:43 AM.
 
Old 06-27-2003, 03:18 PM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
do you want to read from it or you want to mount it as an user?

if you just want o read it chmod should do. if you want to mount it then you need to put 'user' in the options part in the '/etc/fstab' in the line which you use to mount the ntfs partition
 
Old 06-27-2003, 05:57 PM   #3
keep
LQ Newbie
 
Registered: Jun 2003
Distribution: slack
Posts: 7

Original Poster
Rep: Reputation: 0
i want to read from it as a user. i can mount it. but the thing is I can't chmod it, it just says something like "new settings, this disk is read-only", and then it's just as it was before.

so basically i just want to open files and play mp3's from the ntfs hd, but only root can enter the hd.
and since everyone says "don't use root if you don't have to" i don't want to do that.
 
Old 06-27-2003, 06:46 PM   #4
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
add "user" (or replace "owner" with it) in the NTFS line in the /etc/fstab. That should work fine.

The reason you cant chmod files in it is because that physically modifies the file to change the permissions, and remember, you can't write to an NTFS partition.
 
Old 06-30-2003, 04:22 PM   #5
keep
LQ Newbie
 
Registered: Jun 2003
Distribution: slack
Posts: 7

Original Poster
Rep: Reputation: 0
doesn't work...

could the problem be that the kernel doesn't support ntfs? I ran some command that showed what fs's the system supported and ntfs wasn't one of them, seems silly when the root can enter the ntfs disk, but perhaps...?

BTW, this is the what i wrote in fstab, anything wrong?
/dev/hdb5 /mnt/musik ntfs user 0 0

I've tried some different settings on the line, but to no avail...

Last edited by keep; 06-30-2003 at 04:34 PM.
 
Old 06-30-2003, 05:07 PM   #6
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Heres what I use and its always worked fine:

/dev/hda7 /mnt/windows ntfs ro,umask=0222 0 0
 
Old 06-30-2003, 05:10 PM   #7
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
when i mount secondary drives i specify my user id in the fstab for my normal users can read/write the mounted drives....
example:
/dev/hdc1 /mnt/80gig vfat user,rw,exec,uid=500
0 0
 
Old 06-30-2003, 06:27 PM   #8
littleking
Member
 
Registered: Jun 2003
Location: New Albany, OH
Posts: 190

Rep: Reputation: 30
add your user to the root or system group
 
Old 07-01-2003, 03:51 AM   #9
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Rep: Reputation: 15
I had the same problem and Contrasutra's solution (with umask 022 in fstab) worked fine.
 
Old 07-01-2003, 09:52 AM   #10
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Writing to NTFS is HIGHLY not recommended. You can try it though, but be sure you have backups of the partition (and the time to restore it).
 
Old 07-01-2003, 04:57 PM   #11
keep
LQ Newbie
 
Registered: Jun 2003
Distribution: slack
Posts: 7

Original Poster
Rep: Reputation: 0
I tried kontrasutras solution, and while i can now enter the partition, it appears to be empty. Not even root can find anything on it...
 
Old 07-01-2003, 05:23 PM   #12
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Why not post your fstab? That would all help us a lot.
 
Old 07-03-2003, 11:23 AM   #13
keep
LQ Newbie
 
Registered: Jun 2003
Distribution: slack
Posts: 7

Original Poster
Rep: Reputation: 0
It works!
i used contrasutras suggestion (umask=0222) but i didn't reboot the comp, i just restarted X, think that was the prob.
Now i have the disk mounted and i can use it without any problems!

Thank you contrasutra, for the solution. Thank you, everyone else who posted!
 
Old 07-03-2003, 11:30 AM   #14
Anti-Gates
Member
 
Registered: Jul 2003
Distribution: Slackware 9
Posts: 47

Rep: Reputation: 15
Hey Keep, you wouldnt mind tellin gme how I can set it up so that I can read my NTFS partition would you?
 
Old 07-03-2003, 12:14 PM   #15
wonderpun
Member
 
Registered: Aug 2002
Location: Geekland, Planet Earth
Distribution: Slackware 9.1
Posts: 323

Rep: Reputation: 30
Hey Anti-Gates Since I've been talking to you on your CD-ROM mounting problem thread I already know your fstab. So you just add this line to your fstab:
/dev/hda7 /mnt/windows ntfs ro,umask=0222 0 0
but ofcourse don't forget to change /dev/hda7 to the disk where your ntfs partition is actually located! And also don't forget to create a directory /mnt/windows Hope this helps!
 
  


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
Mandraje 9.1 (?) with windows XP., Manadrake9.1 has tool 2 resize NTFS part inq_ah Mandriva 7 07-06-2005 05:02 PM
NTFS only under root Beavis_73 Linux - Hardware 11 02-03-2005 07:21 AM
Dual HDD Interface Problem, Linux on SATA, NTFS Part on IDE HDD LILO Not Loading Blade44 Linux - Hardware 2 02-01-2005 06:56 PM
Users can't log in unless part of the root group jeffreybluml Linux - Newbie 3 12-02-2004 07:24 PM
ntfs permission for non-root Mingthefirst Linux - Newbie 1 09-06-2004 09:01 AM

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

All times are GMT -5. The time now is 03:41 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
Open Source Consulting | Domain Registration