LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-07-2003, 06:41 AM   #1
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Angry 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
 
Old 08-07-2003, 05:33 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
In /etc/fstab change /dev/cdrom from noauto to auto. You will have to do this in a terminal as root.
 
Old 08-09-2003, 01:47 AM   #3
rikkulinux
Member
 
Registered: Jun 2003
Location: San Diego, CA
Distribution: Debian 3.0rl "Woody"
Posts: 41

Rep: Reputation: 15
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
 
Old 08-11-2003, 02:19 AM   #4
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
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..
 
Old 08-11-2003, 06:24 AM   #5
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Rep: Reputation: 30
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.
 
Old 08-11-2003, 08:02 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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
 
Old 08-12-2003, 01:35 AM   #7
bongski55
Member
 
Registered: May 2003
Location: Somewhere in Asia
Distribution: ubuntu on Dell, Vista,XP triple boot
Posts: 276
Blog Entries: 1

Rep: Reputation: 30
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.
 
Old 08-12-2003, 01:53 AM   #8
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
Is there anyboby that konws the answer to my problem?

(the noexec flag and the automounting thing)
 
Old 08-18-2003, 04:09 PM   #9
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
Really, I mean it!
Anybody, just a clue?
 
Old 08-18-2003, 10:50 PM   #10
rikkulinux
Member
 
Registered: Jun 2003
Location: San Diego, CA
Distribution: Debian 3.0rl "Woody"
Posts: 41

Rep: Reputation: 15
That was funny...

(and no, I don't know)

-rikkulinux
 
Old 08-19-2003, 10:38 PM   #11
rikkulinux
Member
 
Registered: Jun 2003
Location: San Diego, CA
Distribution: Debian 3.0rl "Woody"
Posts: 41

Rep: Reputation: 15
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
 
Old 08-20-2003, 01:36 AM   #12
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
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
 
Old 08-20-2003, 11:04 AM   #13
rikkulinux
Member
 
Registered: Jun 2003
Location: San Diego, CA
Distribution: Debian 3.0rl "Woody"
Posts: 41

Rep: Reputation: 15
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
 
Old 08-20-2003, 12:43 PM   #14
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
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
 
Old 08-20-2003, 03:41 PM   #15
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 32
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.
 
  


Reply



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
Disable KDE Automounter? raid517 Linux - Software 1 03-24-2005 06:35 PM
amd - automounter configuration help PsychoSid Linux - Software 0 12-22-2004 03:39 AM
subfs automounter ronald-be Linux - Hardware 2 08-22-2004 11:46 AM
automounter issue Pico_01 Linux - General 0 05-10-2004 11:42 AM
How to remove automounter in kde and gnome visu Red Hat 1 01-22-2004 02:59 PM

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

All times are GMT -5. The time now is 09:34 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
Open Source Consulting | Domain Registration