LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-26-2005, 05:51 PM   #1
0mn1z10n
LQ Newbie
 
Registered: Jun 2005
Distribution: PCLOS, DSL, Kubuntu, Debian
Posts: 15

Rep: Reputation: 0
Automatically mounting cds I add in a cd drive?


Hi. I'm used to sticking a cd or dvd in my drive and having it automatically mount, and having it automatically unmount and eject when I hit the eject button, but it doesn't seem to do that without a little tweaking I guess, in this distro, could somebody tell me how I'd make it do that?
It's mostly just a pain when I try to unmount the disks, as I get told that the device is busy, and it won't respond to anything.
 
Old 10-27-2005, 03:58 AM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Debian stable has a bit old versions of gnome and kde and these old versions may not support automounting "out of the box". Newer versions of gnome and kde (available in Debian unstable) should come with an in-built automounting capability. However, I don't use gnome or kde, so I don't know which version supports automounting or how you can set the (auto)mounting preferences in these DE's.

I use mount.app in WMaker and emelfm or mc as my file manager. I have also set the mount points in fstab and made symlinks to my home directory for easy access to these mount points. I don't need automounting because mount.app is easy to use and it mounts/unmounts all my removable media very reliably.

If your version of gnome or kde doesn't support automounting, then you too need to set the mount points in /etc/fstab and use either a file manager to mount/unmount your disks or install an additional app for that, like "xvmount".

Some file managers reserve the last visited directory, so you should probably change away from your cdrom/dvd directory (mount point) before exiting the file manager. Don't try to unmount/eject while some app is still accessing the mounted disks.

If disks refuse to unmount, you can open a terminal window and type "eject" and hit Enter. If that fails, "su" to root and try "eject" again. Doing "chmod 4755 /usr/bin/eject" (as root) might help if you continue having trouble unmounting/ejecting your disks.
 
Old 10-27-2005, 06:32 AM   #3
samael26
Member
 
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
Gnome 2.10 in Etch supports automounting.

cheers
 
Old 10-27-2005, 07:03 PM   #4
0mn1z10n
LQ Newbie
 
Registered: Jun 2005
Distribution: PCLOS, DSL, Kubuntu, Debian
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks guys. I'll try getting the newer desktop environment then. I've been having to do umount -l /dev/hdc ; eject cdrom, and opening up a terminal everytime I want to eject has been kind of a drag.
So if I wanted to just update all my stuff at the same time as kde to the unstable branch from sarge, could I just change everything in my sources.list to etch/unstable, and hit upgrade?
 
Old 10-27-2005, 09:57 PM   #5
junkman4547
LQ Newbie
 
Registered: Mar 2005
Distribution: Debian
Posts: 23

Rep: Reputation: 15
You can try install

# apt-get install eject

I believe this will solve your ejecting problem.
 
Old 10-29-2005, 01:58 PM   #6
cddesjar
Member
 
Registered: Jan 2004
Location: Maine/Minnesota/Alberta
Distribution: Debian Sid
Posts: 125

Rep: Reputation: 15
Quote:
Originally posted by 0mn1z10n
Thanks guys. I'll try getting the newer desktop environment then. I've been having to do umount -l /dev/hdc ; eject cdrom, and opening up a terminal everytime I want to eject has been kind of a drag.
So if I wanted to just update all my stuff at the same time as kde to the unstable branch from sarge, could I just change everything in my sources.list to etch/unstable, and hit upgrade?

Etch is not Unstable. Sid = Unstable, Etch = Testing.
Etch currently has most gnome 2.10 packages and Sid does too. I would recommend upgrading just to etch initially and then upgrading to sid later if you wish.
So do this in a terminal
1. su
2. vi (gedit, nano, or <enter your favorite editor here>) /etc/apt/sources.list
3. Change all "stable" to "testing" even security because security fixes are now available for testing.
4. apt-get update
5. apt-get upgrade
6. apt-get dist-upgrade

Now you're ready to party because in gnome you push in your cd and it will magically open up a file manager!
There will still not be automounting in KDE though.
 
  


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
Can't add the checksum to burnt CDs reezin14 Linux - Software 3 08-11-2005 10:11 PM
automatically add route on boot? Loz Linux - Networking 1 11-22-2004 11:56 PM
Gnome 2.6: Automatically add games? technopasta Linux - Games 1 04-21-2004 08:35 PM
Script thats add users automatically embalmedlenin *BSD 1 09-14-2003 04:34 PM
? to add a command to execute automatically when xwindows loads up Kasperisa Linux - Newbie 2 08-02-2003 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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