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 12-08-2009, 02:52 PM   #1
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Slackware 14.1
Posts: 211

Rep: Reputation: 77
A question about accessing ntfs partitions as user


Sorry to ask a question Im sure will be considered simple by most. My problem is I cant access my ntfs storage partitions as user in slackware 13. Ive tried many things Ive found doing searches with no luck. When I attempt to access the drive I get the message "could not enter folder DATA". Here is a copy of my fstab.

/dev/sda5 swap swap defaults 0 0
/dev/sdb6 swap swap defaults 0 0
/dev/sdb9 / ext3 defaults 1 1
/dev/sda1 /win ntfs defaults 1 0
/dev/sdb1 /DATA ntfs defaults 1 0
/dev/sdb5 /data vfat defaults 1 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0

I have no trouble accessing it as root but really need to access as user.
 
Old 12-08-2009, 03:26 PM   #2
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
I think you may have neglected to mount them during the install.

Heres my fstab

/dev/sdb3 /media/sdb3 ext3 defaults 1 2
/dev/sda5 swap swap defaults 0 0
/dev/sda6 / ext3 defaults 1 1
/dev/sdb1 /media/sdb1 ext3 defaults 1 2
/dev/sda1 /media/Windows ntfs-3g umask=000 1 0 <--see post #4
/dev/sda2 /media/NTFS ntfs-3g umask=000 1 0 <--see post #4
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
none /dev/shm tmpfs defaults 0 0

Last edited by slackass; 12-08-2009 at 04:26 PM.
 
Old 12-08-2009, 03:28 PM   #3
rjwilmsi
Member
 
Registered: Mar 2005
Location: UK
Distribution: opensuse 12.2 x86_64
Posts: 563

Rep: Reputation: 38
My own notes for opensuse are

"To enable user write permissions on NTFS drives, add dmask=002 in /etc/fstab for the NTFS drive entry."
 
Old 12-08-2009, 03:31 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by slackass View Post
I think you may have neglected to mount them during the install.

Heres my fstab

/dev/sdb3 /media/sdb3 ext3 defaults 1 2
/dev/sda5 swap swap defaults 0 0
/dev/sda6 / ext3 defaults 1 1
/dev/sdb1 /media/sdb1 ext3 defaults 1 2
/dev/sda1 /media/Windows" ntfs-3g umask=000 1 0
/dev/sda2 /media/NTFS ntfs-3g umask=000 1 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
none /dev/shm tmpfs defaults 0 0
Note the parts in red. The ntfs-g is required for read/write, the umask value for user read/write.

Change your disk/partition to correct values.

This is Slackware. In the install, it even asks you if you want it to change to 'umask=000' for user read/write access. Fairly easy to miss.

Last edited by cwwilson721; 12-08-2009 at 03:34 PM. Reason: Additional info for SLACKWARE, not Suse
 
Old 12-08-2009, 03:44 PM   #5
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
Quote:
Originally Posted by cwwilson721 View Post
Note the parts in red. The ntfs-g is required for read/write, the umask value for user read/write.

Change your disk/partition to correct values.

This is Slackware. In the install, it even asks you if you want it to change to 'umask=000' for user read/write access. Fairly easy to miss.
Thanks, but I did it on purpose. But your are correct, with my setup it's easy bork windows.
 
Old 12-08-2009, 03:57 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
You were fine, SA....

I just wanted to point out the relevant parts in red, to make it easier for the OP to see what the issue was between yours and the OP's fstab, and to explain what was going on...

I love Slackware, because it teaches you what you need to know, not just "Point and click", so you learn the whys of what is going on.

Now the OP knows why those are needed.

Your post was fine, just needed a little clarification for future reference, and for future users to see.
 
Old 12-08-2009, 04:20 PM   #7
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
Quote:
Originally Posted by cwwilson721 View Post
You were fine, SA....

I just wanted to point out the relevant parts in red, to make it easier for the OP to see what the issue was between yours and the OP's fstab, and to explain what was going on...

I love Slackware, because it teaches you what you need to know, not just "Point and click", so you learn the whys of what is going on.

Now the OP knows why those are needed.

Your post was fine, just needed a little clarification for future reference, and for future users to see.
Actually, you are right. I should not have posted my fstab without making sure that the OP knows of the dangers of screwing up C drive with user read/write
 
Old 12-08-2009, 08:40 PM   #8
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Slackware 14.1
Posts: 211

Original Poster
Rep: Reputation: 77
Thank you both for your answering posts. But root already has read/write access to the disk and I dont need that for a user only read only. So what would I add to simply give users ro access? Im really sorry as this is certainly one of my weakest areas of knowledge.
 
Old 12-08-2009, 10:12 PM   #9
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
I'm not very sharp on this stuff because I always setup my windows partitions during the install but I "think" your fstab lines should look something like this.

/dev/sda1 /Windows ntfs-3g umask=022 1 0
/dev/sdb1 /NTFS ntfs-3g umask=022 1 0
 
Old 12-08-2009, 10:20 PM   #10
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Slackware 14.1
Posts: 211

Original Poster
Rep: Reputation: 77
Also no joy with ntfs-3g edits. With that added to fstab I no longer get the "cant access folder DATA" error but it appears to open but shows partition empty. Im looking forward to getting this done so Ill know how to handle an issue like this in the future. And I agree cwwilson I love slackware myself for the same reason. I just dont usually get so stumped by something that seems should be simple.
 
Old 12-08-2009, 10:22 PM   #11
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Slackware 14.1
Posts: 211

Original Poster
Rep: Reputation: 77
Thank you slackass Ill give that a try now.
 
Old 12-08-2009, 10:33 PM   #12
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Slackware 14.1
Posts: 211

Original Poster
Rep: Reputation: 77
No luck with that one either Slackass. Same result as other edit - appears to open with no error message but shows empty.
 
Old 12-08-2009, 10:39 PM   #13
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
If you don't mind can you post your /etc/fstab and fdisk -l
 
Old 12-08-2009, 10:47 PM   #14
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Slackware 14.1
Posts: 211

Original Poster
Rep: Reputation: 77
Thank you guys for all the help I found what I needed in another thread I didnt see earlier. Heres my new fstab that works.

/dev/sda5 swap swap defaults 0 0
/dev/sdb6 swap swap defaults 0 0
/dev/sdb9 / ext3 defaults 1 1
/dev/sda1 /win ntfs defaults 1 0
/dev/sdb1 /DATA ntfs ro,user,umask=022 1 0
/dev/sdb5 /data vfat defaults 1 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0

Ill mark this solved and hope it will help others in the future.
 
Old 12-08-2009, 10:54 PM   #15
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
EDIT: glad you solved it.

Last edited by ~sHyLoCk~; 12-08-2009 at 10:57 PM.
 
  


Reply

Tags
slackware13



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
non-root users accessing NTFS partitions? Jaymz87 Slackware 11 06-14-2005 07:13 AM
accessing my FAT32 and NTFS partitions d0tc0mguy Linux - Newbie 2 04-21-2005 03:42 PM
Accessing Fat/NTFS partitions satinet Linux - General 3 09-03-2004 01:16 PM
accessing c and d drive ntfs partitions from rh9.0 mani singh Linux - Software 5 02-27-2004 02:56 PM
Accessing NTFS Partitions eboggess Linux - General 7 01-25-2002 10:49 AM

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

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