LinuxQuestions.org
Review your favorite Linux distribution.
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 09-01-2003, 12:44 AM   #1
Kristic
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat9 / Mandrake 9.0
Posts: 19

Rep: Reputation: 0
Accessing Hard Drives as user


Basically, I have it set up to where I have all my partitions available in /mnt/ But when I try and save on them with my user account, it says that its read only, and I cant. So I would like to know how I can make it so I have the power to save on these with a user account. Thanks
 
Old 09-01-2003, 12:47 AM   #2
linuXBOX
Member
 
Registered: Jul 2003
Location: Stuart,FL
Distribution: Fedora Core 3 and Slackware 10.0
Posts: 179

Rep: Reputation: 30
from a nub to another nub, I know only rewt has r-w-rw permissions, users aren't allowed to do all the nifty things rewt can...
 
Old 09-01-2003, 12:48 AM   #3
Kristic
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat9 / Mandrake 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
So are you saying that I wont ever be able to get user access to it?
 
Old 09-01-2003, 02:29 AM   #4
linuXBOX
Member
 
Registered: Jul 2003
Location: Stuart,FL
Distribution: Fedora Core 3 and Slackware 10.0
Posts: 179

Rep: Reputation: 30
...are you on a network? can't you get rewt access? even if only for a while? Now that I think of it, when you are rewt you can change the permissions...
 
Old 09-01-2003, 02:45 AM   #5
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Kristic: can you please show the contents of your /etc/fstab file here...

Most likely u just need one simple modufication for your particular mount point by changing owner to user and setting the rw (read-write) flag.
 
Old 09-01-2003, 11:55 AM   #6
Kristic
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat9 / Mandrake 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
LABEL=/ / ext2 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0


I added 2 more entries that have access to my other two drives, but they appear to not be here
 
Old 09-01-2003, 12:00 PM   #7
Kristic
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat9 / Mandrake 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
Now this is odd, I used to have access to my D: and H: drives, that were located in my /mnt file. The files to access those drives are still there, but the data within them is not. All I have done since the last time I gain access to them is restart and used up2date
 
Old 09-01-2003, 01:33 PM   #8
Kristic
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat9 / Mandrake 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
OK, I've added hdb1 to mount to the /mnt/Music Folder and hdb5 to mount to the /mnt/Music2 folder. Now how do I get those to stay mounted so when I reboot, they still are mounted. And how do I get it so I can write to them using my user account?
 
Old 09-01-2003, 01:39 PM   #9
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
about the first question: write entries in the fstab. you have to know the type of file system though. if they by any chance ntfs, you can't write to them at all.
 
Old 09-01-2003, 01:53 PM   #10
Kristic
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat9 / Mandrake 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
So would they look like this then?:

LABEL=/ / ext2 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm
Music /mnt/Music fat32 defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
 
Old 09-01-2003, 02:04 PM   #11
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you need entries for /dev/hdb1 and /dev/hdb5 if you want them mounted automatically.
So instead of the Music line, you'll have something like
/dev/hdb1 /Music vfat quiet,iocharset=utf8,umask=0 0 0

You'll have to figure out the right iocharset. I think utf8 is fine but if you want to access it from windows, you might want a different iocharset. Just look around in the forum. There are a bunch of people who've posted their fstabs. You can probably steal the right entries from them.
 
Old 09-01-2003, 02:07 PM   #12
Kristic
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat9 / Mandrake 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
And that'll give a user read/write access too?
 
Old 09-01-2003, 02:39 PM   #13
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
it should. Those are entries I have in my fstab and everyone has rad/write access to the vfat partitions.
 
Old 09-01-2003, 03:01 PM   #14
Kristic
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat9 / Mandrake 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
Doesnt work

When I retsrt, I get a failed thing, saying that its either wrong or too many mounts.

Here is my fstab again:

LABEL=/ / ext2 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm
/dev/hdb1 /mnt/Music vfat quiet,iocharset=iso8859,umask=0 0 0
/dev/hdb5 /mnt/Music2 vfat quiet,iocharset=iso8859,umask=0 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
 
Old 09-01-2003, 03:06 PM   #15
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you need to specify the codepage for iso8859. Try
/dev/hdb1 /mnt/Music vfat quiet,iocharset=iso8859-1,codepage=850,umask=0 0 0
correspondingly for the other partition.

After you edit the fstab just do as root
mount -a
this should mount everything in the fstab.
 
  


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
Accessing CD Drives/Floppy Drives rsearing Linux - Newbie 9 08-13-2004 08:53 PM
Accessing Fat drives as User fantacmet Linux - General 5 02-19-2004 01:18 AM
Accessing Different Hard Drives in RH9 PhysixstringGuy Linux - Hardware 7 02-13-2004 03:53 PM
Accessing Hard drives jmrjohan Linux - Newbie 7 07-19-2003 07:46 AM
User priv's on mounted hard drives harperonline Linux - Networking 3 03-11-2003 05:35 AM


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