LinuxQuestions.org
Visit Jeremy's Blog.
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 02-14-2012, 08:59 AM   #1
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Rep: Reputation: 5
cant open cd drive(after mounted) after changing fstab


Hello,

I changed my fstab so that I can mount my cds and dvds but now I cant open the cd drive without manualy unmounting from the command line.

Here is my fstab:

Code:
/dev/sda1               /boot           ext2            noatime         1 2
/dev/sda2               /               ext4            noatime         0 1
/dev/sda3               none            swap            sw              0 0
/dev/sda4               /home           ext4            noatime         0 0
/dev/mapper/storage-working     /bigdrive       xfs     noatime         0 0
/dev/sr0                /media/dvdrw    auto            auto,user,exec  0 0
/dev/sr1                /media/blueray  auto            auto,user,exec  0 0
proc                    /proc           proc            defaults        0 0
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
sr0 and sr1 are my drives.

Before, I didnt have them in my fstab but could access them with my programs(handbreak a video ripping program) but I couldnt browse the drives when a dvd was inserted.

Now I can browse the drives and access them with my programs but it wont auto unmount when I press the eject button on the drives.

Am I missing an option in my fstab? Or do I need to do something with udev?

Im using gentoo.

Thank you
 
Old 02-14-2012, 10:24 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
eject /dev/sr0


fstab is not needed
AFAIK, in gentoo there are no defaults
so you may need scripts + udev rules
read about udev rules
http://www.reactivated.net/writing_udev_rules.html

https://wiki.archlinux.org/index.php/Udev has details

A script: https://help.ubuntu.com/community/EjectCDLauncher
 
Old 02-15-2012, 07:01 AM   #3
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by amani View Post
eject /dev/sr0


fstab is not needed
AFAIK, in gentoo there are no defaults
so you may need scripts + udev rules
read about udev rules
http://www.reactivated.net/writing_udev_rules.html

https://wiki.archlinux.org/index.php/Udev has details

A script: https://help.ubuntu.com/community/EjectCDLauncher
Thank you. eject /dev/sr0 works.

I want to be able to eject the cd without running a script. I want to press the button on the cd and then have it unmount and eject.

Is that done with the udev rule? I see the script is to unmount it but it looks like its something I need to run every time.
 
  


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
fstab entry suspected a little off-strange happenings with mounted drive schwim Linux - Networking 7 02-02-2010 12:06 PM
changing ownership of a mounted drive laucian Linux - Newbie 9 11-02-2007 03:50 PM
FireWire/USB-drive (Maxtor) - works mounted as root only. fstab included... -=TRA=- Linux - Hardware 4 04-17-2006 05:17 AM
Changing Fstab in ubuntu to mount vfat drive mikeymorgan Linux - Newbie 13 06-23-2005 08:50 AM
changing access to mounted shared drive shycalais Linux - Newbie 4 11-11-2003 05:13 AM

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

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