LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-16-2004, 06:37 AM   #1
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30
fstab mounting


This is my config in fstab

/dev/hdb2 swap swap defaults 0 0
/dev/hdb1 / ext2 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 auto,user,ro 0 0
/dev/fd0 /mnt/floppy auto auto,user 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/hdg5 /mnt/multimedia vfat user,ro

For root, I need to manually mount cdrom and floppy, /dev/hdg5 is mount automatically.

However, I can't mount the cdrom, floppy drive and my hdg5 using my local user account.

Questions :

1) How do I mount them using my user account? I thought "user" is to allow user to mount?

2) Those things that I did in root, doesn't seems to be available for user. (e.g. OpenOffice, adsl-setup, firefox etc)

Last edited by subaruwrx; 06-16-2004 at 06:40 AM.
 
Old 06-16-2004, 08:21 AM   #2
nature_priyan
LQ Newbie
 
Registered: May 2004
Location: India
Distribution: Red Hat 9
Posts: 14

Rep: Reputation: 0
hi,
You have given mount options as auto that will mount automatically when you boot the system.

Give mount option as noauto to /mnt/cdrom

reboot the system.

then mount using the command
mount /mnt/cdrom

before mounting put the cd in the cd drive.

hope this helps.

yours,
nature_priyan.
 
Old 06-16-2004, 11:59 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
This is my cdrom entry from my fstab (SuSE 8.2).

/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0

Of course, in fstab it's all on one line.
 
Old 06-18-2004, 04:28 AM   #4
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
This is my new fstab file.

/dev/hdb2 swap swap defaults 0 0
/dev/hdb1 / ext2 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/hdg5 /mnt/multimedia vfat user,ro
/dev/hdg6 /mnt/collin vfat user,ro

However, my user account still could not access any of the mounted partitions. Error message was "Access Denied".
 
Old 06-19-2004, 03:37 PM   #5
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by subaruwrx
This is my new fstab file.

/dev/hdb2 swap swap defaults 0 0
/dev/hdb1 / ext2 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/hdg5 /mnt/multimedia vfat user,ro 0 0
/dev/hdg6 /mnt/collin vfat user,ro 0 0
I tried mounting cdrom and floppy drive but it said only root can do that. Tried accessing my vfat partition, it said access denied.
 
Old 10-25-2004, 08:36 AM   #6
daveb673
LQ Newbie
 
Registered: Mar 2004
Location: Misawa, Japan
Distribution: SUSE 8.0
Posts: 12

Rep: Reputation: 0
Did you try adding yourself to a group? I had to do that using YAST as root(I just can't remember exactly how I did it) so I could get access as a user to some filesystems. Try Security and Users, then edit and create users... Daveb
 
  


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
problems with fstab and mounting BlackShadowWolf Fedora 3 03-10-2005 12:09 PM
Problem with mounting and fstab. N00bDeb Debian 7 11-17-2004 06:58 PM
Mounting with /etc/fstab cpp Linux - General 4 04-09-2004 04:28 PM
Mounting ntfs in fstab calimer Mandriva 2 11-28-2003 09:35 AM
fstab mounting Roy-Svork Linux - General 2 06-13-2003 12:34 PM

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

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