LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 10: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-18-2003, 11:05 PM   #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, 12: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, 12:07 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
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, 10: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



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 09:27 PM
root fs is mounted read only after adding new drive PPaladin Linux - Hardware 0 03-02-2004 10:25 AM
Why partimage cannot read a mounted drive? browny_amiga Linux - General 4 02-06-2004 10:33 AM
Mounted drive read-only! MultiMike Linux - Newbie 8 06-09-2003 04:21 PM
why is my mounted drive read only? nyroc Linux - General 2 01-18-2003 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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