Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-07-2003, 07:41 AM
|
#1
|
Member
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407
Rep:
|
CD drive automounter
I installed woody from CDs and at first the apt and dselect tools automounted the CDs.
I don't remember at what point in time the automounting was pulled out of the picture, but the certain thing is that its' no more
How do I make it come back?
Eddy
|
|
|
08-07-2003, 06:33 PM
|
#2
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep: 
|
In /etc/fstab change /dev/cdrom from noauto to auto. You will have to do this in a terminal as root.
|
|
|
08-09-2003, 02:47 AM
|
#3
|
Member
Registered: Jun 2003
Location: San Diego, CA
Distribution: Debian 3.0rl "Woody"
Posts: 41
Rep:
|
Pardon the interuption, but I have a similar question: How do I enable users to mount cdroms and floppys. I can't seem to get it to work even though I list user in the etc/fstab....?
Also, will setting mount to auto automatically mount the cdrom/floppy during start up for both root and user logins?
Thanks,
rikkulinux
|
|
|
08-11-2003, 03:19 AM
|
#4
|
Member
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407
Original Poster
Rep:
|
the flag auto is set, and the nouser is also, but it seems that it has no efect(I mean the first)
I saw that the noexec flag does not work also for vfat partitions
Why is that?
And please send an alteranative response if u have one..
|
|
|
08-11-2003, 07:24 AM
|
#5
|
Member
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Rep:
|
It is not a good idea to automount cd and floppy as it will return a no media error everytime you boot. Or else you will have to put a floppy or a cd into the drives at boot time.
As for permissions ,just add 'users' to both the cdrom and floppy lines on fstab will enable root and ordinary users to mount/unmount.
to make it convenient create a shortcut icon for both floppy and cdrom on the desktop for mount/unmount.
|
|
|
08-11-2003, 09:02 AM
|
#6
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep: 
|
Quote:
It is not a good idea to automount cd and floppy as it will return a no media error everytime you boot.
|
This statement isn't true, at least for my Debian machine. Here is my /etc/fstab:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda3 / reiserfs defaults 0 0
/dev/hda2 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,auto 0 0
/dev/cdrom /cdrom iso9660 ro,user,auto 0 0
/dev/hda1 /boot reiserfs defaults 0 0
/dev/hda5 /home reiserfs defaults 0 0
/dev/hda6 /usr reiserfs defaults 0 0
/dev/hda7 /var reiserfs defaults 0 0
/dev/hda8 /tmp reiserfs defaults 0 0
And I have never received a no media error upon booting - whether or not there is media in the drive. Why would you say this? I'd like to learn, as I'm new to Debian GNU/Linux.
Quote:
to make it convenient create a shortcut icon for both floppy and cdrom on the desktop for mount/unmount.
|
Would you mind posting a short How-To concerning this? I'd like to know. I'm currently using fluxbox. Somewhere I saw a wm screenshot that looked similar to a Mac OS, which had these folders on it's desktop.
TIA
|
|
|
08-12-2003, 02:35 AM
|
#7
|
Member
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Rep:
|
I am using KDE where this is done thru the desktop setting wizard( "show icons for mounted or unmounted drives"). I do have flux as an option but I am not familiar with it(did not like it when I tried) so I can't tell you how.
|
|
|
08-12-2003, 02:53 AM
|
#8
|
Member
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407
Original Poster
Rep:
|
Is there anyboby that konws the answer to my problem?
(the noexec flag and the automounting thing) 
|
|
|
08-18-2003, 05:09 PM
|
#9
|
Member
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407
Original Poster
Rep:
|
Really, I mean it!
Anybody, just a clue?
|
|
|
08-18-2003, 11:50 PM
|
#10
|
Member
Registered: Jun 2003
Location: San Diego, CA
Distribution: Debian 3.0rl "Woody"
Posts: 41
Rep:
|
That was funny...
(and no, I don't know)
-rikkulinux
|
|
|
08-19-2003, 11:38 PM
|
#11
|
Member
Registered: Jun 2003
Location: San Diego, CA
Distribution: Debian 3.0rl "Woody"
Posts: 41
Rep:
|
pe-
Did you try matching your etc/fstab file to match the one that Chinaman posted? This is my only advice. It should work if you do that. I think you have to mount it to read it either way, however, but you shouldn't have any no media errors.
Sorry I can't help more. I'm new at this...
-rikkulinux
|
|
|
08-20-2003, 02:36 AM
|
#12
|
Member
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407
Original Poster
Rep:
|
Quote:
Originally posted by rikkulinux
pe-
Did you try matching your etc/fstab file to match the one that Chinaman posted? This is my only advice. It should work if you do that. I think you have to mount it to read it either way, however, but you shouldn't have any no media errors.
Sorry I can't help more. I'm new at this...
-rikkulinux
|
/dev/cdrom /cdrom iso9660 ro,user,auto 0 0
The only difference is the mount point.
My /cdrom is a symlink to /mnt/cdrom and in fstab I have
/dev/cdrom /mnt/cdrom iso9660 ro,user,auto 0 0
|
|
|
08-20-2003, 12:04 PM
|
#13
|
Member
Registered: Jun 2003
Location: San Diego, CA
Distribution: Debian 3.0rl "Woody"
Posts: 41
Rep:
|
So does your cdrom mount when you do:
mount /cdrom -or- mount /mnt/cdrom
?
I think that's the only thing you can do. If there is a way that you can mount the cd on startup without doing this, I'm not sure how... Good luck.
-rikkulinux
|
|
|
08-20-2003, 01:43 PM
|
#14
|
Member
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407
Original Poster
Rep:
|
The CD does mount with /mnt/cdrom but after I've just installed debian for the first time it was enough to press enter when required in dselect and the CD would aoutomount.
I saw it with my own eyes and now that I don't have it anymore I kinda' miss it
|
|
|
08-20-2003, 04:41 PM
|
#15
|
Member
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601
Rep:
|
pe2338,
When you run apt-get, it mounts and unmounts for you because that functionality is built into apt-get. You had to type "apt-get ..." at some point, and it ran mount and umount for you.
To get your computer to automatically recognize when you've put in a CD, and then mount it for you, I think there's a daemon called automountd (or something similar. In Solaris it's called vold). It will simply run in the background and repeatedly poll your CD drive asking if it contains any media.
I don't think it works with a floppy though -- polling a floppy drive may or may not be feasible.
I believe it's regarded as a security issue to let just *any* user mount/unmount CD's, though I don't know why...
Let us know how it goes.
|
|
|
All times are GMT -5. The time now is 11:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|