Fedora Linux Support Community & Resources Center
  #1  
Old 12th September 2004, 04:25 PM
nexus- Offline
Registered User
 
Join Date: Sep 2004
Posts: 7
Automated mount/umount of cdroms

I was wondering why is there nothing (at least not that I know of) in Linux which will handle mount/umount (umount at least) of cdroms when the button is pressed?

It really seems counter productive to use a daemon such as automount to umount devices after a period of time instead of when the user presses the eject button on the cdrom.

Am I missing a point or is it really an unaddressed issue as yet?
  #2  
Old 12th September 2004, 06:06 PM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
Part of the issue is how the mounting subsystems work - you can't simply auto-unmount and eject a mounted drive when there's an active "session" working in that mounted file system. There's been mention of a bug with fam that doesn't "release" the mounted filesystem correctly; you could be "browsing" the filesystem with Nautilus or Konqueror; there's quite a few other filesystem "clients" that could be using it. This feature (and it is a feature) is to prevent active progams from crashing that are depending upon the underlying filesystem to be present and working.

In other words, you can't yank the carpet out from underneath an active program.
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
  #3  
Old 12th September 2004, 06:29 PM
nexus- Offline
Registered User
 
Join Date: Sep 2004
Posts: 7
But shouldn't programs try to handle such errors?

Or if the filesystem is in use the cdrom just won't eject. That would be sensible and convenient at the same time!
  #4  
Old 12th September 2004, 07:01 PM
superbnerd
Guest
 
Posts: n/a
thats exaclty what happens. if you try to unmount a cdrom and something is using it, the mount deamon will give you an error and the program will continue to run without a hitch and the cdrom won't eject. if the program handle the error, it would crash and tell you the file is no longer available, and you might loose any work you were working on. is this desirable? didn't think so.
what is so inconvenient about not having your programs crash?
  #5  
Old 13th September 2004, 05:28 AM
nexus- Offline
Registered User
 
Join Date: Sep 2004
Posts: 7
But the cdrom won't eject as well even if there is nothing using the files until it is umounted, wouldn't it be better if a user would be able to umount the cdrom and eject using the button if there is nothing using the cdrom?
  #6  
Old 13th September 2004, 05:36 AM
superbnerd
Guest
 
Posts: n/a
yes, that would be convenient. essentially preesing the eject buttin should be the same as giving the umount command. perhaps you should request this feature in the fedora bugzilla.
  #7  
Old 13th September 2004, 07:35 AM
kosmosik's Avatar
kosmosik Offline
Registered User
 
Join Date: Apr 2004
Location: Warsaw, Poland
Age: 32
Posts: 1,085
you can load cdrom driver without tray locking... but it is not advised...
Code:
% modinfo cdrom                                                               ~
filename:    /lib/modules/2.4.22-1.2199.nptl/kernel/drivers/cdrom/cdrom.o
description: <none>
author:      <none>
license:     "GPL"
parm:        debug int
parm:        autoclose int
parm:        autoeject int
parm:        lockdoor int
parm:        check_media_type int
  #8  
Old 17th September 2004, 06:29 PM
nexus- Offline
Registered User
 
Join Date: Sep 2004
Posts: 7
Hmm I think I'll just post a feature request so that pressing the button should issue the "eject" command. Lets see if it has been posted before...
  #9  
Old 27th October 2004, 02:34 PM
lakerssuperman Offline
Registered User
 
Join Date: Sep 2004
Posts: 12
I have raised this question myself on this forum. Mandrake and Suse can handle automatic unmounting of cdrom media, why cant fedora. I have never had a problem with my system or data integrity with either of these distros. I understand why the drive stays locked and the need to manually unmount a volume. But if it was so dangerous why would 2 major distros choose to implement such a feature. I like using fedora, but this is one of my biggest problems with it. Experienced computer users understand the concept of mount/unmount. Basic users simply shouldnt have to deal with this aspect. This is one the areas that fedora needs to improve upon if it is to be taken seriously as a desktop os. So many people in the linux community are talking about adoption of linux by the masses. This is one feature that I feel would strongly hold fedora back as a viable candidate when compared with the other distros that have these features that users are accustomed to. Again, I am not bashing fedora and have been playing with the core 3 betas for some time now and they are very well done.
  #10  
Old 27th October 2004, 07:32 PM
kosmosik's Avatar
kosmosik Offline
Registered User
 
Join Date: Apr 2004
Location: Warsaw, Poland
Age: 32
Posts: 1,085
because what makes you think that when you press [eject] the media is not in use?
  #11  
Old 27th October 2004, 09:41 PM
Shadow Skill Offline
Registered User
 
Join Date: Aug 2004
Posts: 1,317
I've wondered about that too, but I haven't actually loaded any cd/dvd while using fedora in a while so I'm not sure if the testing versions do this as well, I'll have to check after I get around to reformatting my Linux partition.
__________________
Ware wa mutekinari.
Wa ga kage waza ni kanau mono nashi.
Wa ga ichigeki wa mutekinari.



Please vote for this bug and help me make GAYT [Go As You Type ]a standard option in Firefox.
  #12  
Old 28th October 2004, 02:26 PM
ghight Offline
Registered User
 
Join Date: Oct 2004
Location: Indiana
Posts: 30
Quote:
Originally Posted by lakerssuperman
This is one feature that I feel would strongly hold fedora back as a viable candidate when compared with the other distros that have these features that users are accustomed to.
Hmmm, I would hope not. That seems rather petty, but to each his own. Right click>Eject doesn't seem so inconvenient to me.
  #13  
Old 14th November 2006, 12:13 AM
Duli's Avatar
Duli Offline
Registered User
 
Join Date: Jul 2006
Location: Sao Paulo, SP - Brazil
Age: 33
Posts: 698
Quote:
Originally Posted by ghight
Hmmm, I would hope not. That seems rather petty, but to each his own. Right click>Eject doesn't seem so inconvenient to me.
Sure it's not!

Please, correct if I'm wrong:

But what about when you want to burn something on the cd/dvd? If it's mounted you won't be able to do it. So rightclick > eject wouldn't be enough in this case, because the cd/dvd would be ejected (and you want to burn on it). My question: Is it possible, at least, to create a icon that does the "umount /dev/hdc, cd, dvd" for you? And is it possible to do the other way around, I mean, when the cd is already in (but not mounted), how would you automatically mount it with a icon (other than rightclicking on it and pressing "mount")?

By the way, if there's a rightclick option of "mount", why there is not one of "unmount"?

Thanks for the help guys! I just would like to create two icons on a friend's fedora box (one to unmount and one to mount). Is it possible?

I appreciate any comments!
Cheers!
Duli

Last edited by Demz; 11th September 2008 at 07:30 AM.
Closed Thread

Tags
automated, cdroms, mount or umount

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD and CDROMs wont mount Viperpsyche1 Hardware & Laptops 3 22nd May 2007 05:54 PM
cdroms' mount point kcyber Using Fedora 2 10th May 2006 02:20 PM


Current GMT-time: 23:56 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat