LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-18-2005, 10:55 PM   #1
LinuxNoob1234
LQ Newbie
 
Registered: Mar 2005
Location: Ottawa
Distribution: Slackware
Posts: 25

Rep: Reputation: 15
User Mount


Hey guys,

I have stumbled into a problem once again. I am not able to mount my cd drive while im logged on as one of my users. How do i enable this from root.
 
Old 05-18-2005, 11:30 PM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
In /etc/fstab, what does the line for your CD-ROM look like?

You've p'bly got 2 options here: either give yourself sudo access to mount, which is handy if slightly insecure, or modify the line in fstab to allow a user to mount the drive.

The line looks like this for me:
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
 
Old 05-18-2005, 11:58 PM   #3
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Edit: this potential 3rd way was confusing, and upon trying it myself I found that it didn't work. So it's going away

However, I did discover one interesting thing while playing around with this - for me my cdrom device isn't actually /dev/hdc, it's ide-scsi emulation so it's actually /dev/sr0 (I discovered this when I was trying to mount /mnt/cdrom, and the system complained about my filesystem type. It was nice enough to suggest that perhaps I ought to be using /dev/sda or /dev/sr0. sda didn't work any better, so that only left sr0!) So I deleted the symlink /dev/cdrom and re-linked it to /dev/sr0:

[me@localhost ~]$ ls -l /dev/cdrom
lrwxrwxrwx 1 root cdrom 8 2005-05-19 00:34 /dev/cdrom -> /dev/sr0

And that, plus the change from 'owner' to 'user' in /etc/fstab, means that mounting the drive as a normal user actually works and gives me files ^_^

[me@localhost ~]$ mount /mnt/cdrom
[me@localhost ~]$ ls /mnt/cdrom
ANNOUNCE.10_0 COPYRIGHT.TXT GPG-KEY SPEAK_INSTALL.TXT kernels
BOOTING.TXT CRYPTO_NOTICE.TXT PACKAGES.TXT Slackware-HOWTO rootdisks
CHECKSUMS.md5 ChangeLog.txt README.TXT UPGRADE.TXT slackware
CHECKSUMS.md5.asc FAQ.TXT RELEASE_NOTES bootdisks
COPYING FILELIST.TXT SPEAKUP_DOCS.TXT isolinux
[me@localhost ~]$

Hopefully some of this is useful

Last edited by rose_bud4201; 05-19-2005 at 12:41 AM.
 
  


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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 11:03 AM
user cannot mount? emanresu Linux - Newbie 4 12-08-2005 08:00 AM
user cant mount after chmod 777 /bin/mount misterwiddle Linux - General 2 04-06-2005 06:36 PM
User mount ?? exvor Linux - Software 8 11-13-2004 09:40 PM
how to use 'mount' as user servnov Linux - Newbie 6 11-02-2004 03:49 PM


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