LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2003, 11:08 PM   #1
mabarnes
LQ Newbie
 
Registered: Nov 2003
Posts: 8

Rep: Reputation: 0
Can't read mounted drive


I can mount a drive just fine, have to do it as root, but when I login in as a user I can't read the mounted drive. What do I do?
 
Old 12-19-2003, 12:05 AM   #2
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
Try and use a umask

eg: mount -o umask=022 /dev/device /mnt/mntpoint
 
Old 12-19-2003, 01:00 PM   #3
mabarnes
LQ Newbie
 
Registered: Nov 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Now how do I make it so it mounts like then when I login.
 
Old 12-19-2003, 01:07 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Add line to /etc/fstab file using a text-editor as the root user. It is pretty straightforward, you can figure it out by looking at it. The 'umask=022' goes in the options field, where 'defaults' sometimes is, before the last two zeros. Multiple options are seperated by commas, and each field is seperated by a space. Also put an 'auto' option to mount on startup. Don't forget to search, this is asked all the time.
 
Old 12-19-2003, 11:36 PM   #5
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
This is the entry from my fstab

Code:
/dev/hda5       /mnt/windows      ntfs        umask=022
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba mounted drive to read-only (???) JordanH Linux - Software 0 07-31-2004 10:27 PM
root fs is mounted read only after adding new drive PPaladin Linux - Hardware 0 03-02-2004 11:25 AM
Why partimage cannot read a mounted drive? browny_amiga Linux - General 4 02-06-2004 11:33 AM
Mounted drive read-only! MultiMike Linux - Newbie 8 06-09-2003 05:21 PM
why is my mounted drive read only? nyroc Linux - General 2 01-18-2003 07:24 PM


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