[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: discover not finding CDROM




->>In response to your message<<-
  --received from H. S.--
>
> Apparently, _Paul Yeatman_, on 04/25/2005 02:00 PM,typed:
> 
> >Hello and thanks!
> 
> Hi. You are welcome.
> 
> 
> 
> >Answers to your questions...
> >
> >
> >>If you could answer a few questions, we might narrow down where your 
> >>problem really is:
> >>1) What are the relevant contents of /etc/fstab that you have?
> >
> >
> >/dev/cdrom0     /media/cdrom0   iso9660 ro,user,noauto  0       0
> >/dev/cdrom1     /media/cdrom1   iso9660 ro,user,noauto  0       0
> >
> 
> 
> Okay, honestly, I am not at all sure about these cdrom? things. In my 
> computer running Sarge, I have made /media/cdrw and /media/cdrom and put 
> these in my /etc/fstab and they are working fine. I did notice however 
> that after installation of Sarge, I ended up with /cdrom0 and /cdrom1 
> (IIRC) mount points. Never figured out what they were supposed to do.
> 
> 
> >>2) What are the mount points that you use to access /dev/hdc and /dev/hdd?
> >
> >
> >I believe this is indicated in the answer to the first question unless I"m 
> >not understanding your question.
> 
> Just wanted to make sure mount points exist and are correct.
> 
> 
> 
> >>3) Are you in the 'cdrom' group?
> >
> >
> >Yes!
> 
> You must be for this to work (belonging to the 'disk' group is not 
> recommended as I found out here). Secondly, if you want automounting of 
> usb sticks and the like to work, you also need to be in plugdev group 
> unless I am really mistaken but I am sure somebody more knowledgable 
> here can confirm this.
> 
> 
> >>4) What are the permissions of /dev/hdc and /dev/hdd?
> >
> >
> >brw-rw----  1 root disk 22,  0 Apr 29  2004 /dev/hdc
> >brw-rw----  1 root disk 22, 64 Apr 29  2004 /dev/hdd
> >
> >Ah, so this is interesting.  Under kernel 2.4, I was using scsi
> >emulation for the IDE cdrom devices.  Thus the /dev/scd? entries are in
> >group 'cdrom'.  /dev/hd[cd], currently, are not, however.  This seems
> >it should be changed.  I would anticipate that 'discover' would do this
> >auto"magically" if it found the cdrom devices yet, as already stated,
> >it does not.
> 
> The permissions here need to be root:cdrom. I also had to change them 
> manually after installation of Sarge.
> 
> 
> >>5) What are the contents of /media?
> >
> >
> ># ls  /media/
> >cdrom  floppy  floppy0  sophos_server
> >
> >I put the "sophos_server" mount point here.  All others I believe
> >were part of the Gnome or otherwise installation.  There are no
> >cdrom[01] mount point directories here (as there used to be under
> >kernel 2.4) yet this seems to be a symptom of the fact that 'discover'
> >does not find the devices.  I can manually create such directories but
> >this doesn't seem to solve anything (and such manual entries may be
> >getting deleted upon each reboot by 'discover').
> >
> >I deleted these directories before doing the 'ls' to show what was
> >there before beginning to futz around (and upon first boot into
> >2.6).
> 
> I think discover for some reason puts cdrom? into / and you end up with 
> /cdrom0 and /cdrom1. But if yo go ahead and put these in /media, 
> everything should work.
> 
> 
> >>6) Do you have hal, hotplug, dbus-1, gnome-volume-manager installed? 
> >>What versions?
> >
> >
> ># dpkg -l hal hotplug dbus-1 gnome-volume-manager
> >Desired=Unknown/Install/Remove/Purge/Hold
> >| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> >|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
> >uppercase=bad)
> >||/ Name           Version        Description
> >+++-==============-==============-============================================
> >pn  hal            <none>         (no description available)
> >ii  hotplug        0.0.20040329-2 Linux Hotplug Scripts
> >ii  dbus-1         0.23.4-1       simple interprocess messaging system
> >pn  gnome-volume-m <none>         (no description available)
> >
> >
> >
> >Hmmm, it seems gnome-volume-manager would be responsible for mounting
> >the CD's upon insertion although apparently not installed.  Even with
> >it "purged" I have the preference configuration GUI to specify whether
> >to have inserted CD's mounted or not.  If gnome-volume-manager was
> >recentinly uninstalled for some reason, this would explain things
> >although I'm not convinced it was ever installed.
> >
> >Thanks, again.
> >
> >Just a note that things were working fine and as desired under kernel
> >2.4, ie. everything seemed to be in place . . . I was in cdrom group,
> >correct entries were in fstab, mount points existed, things were
> >automounting (by Gnome not autofs).  Going to 2.6, scsi emulation of
> >IDE cdrom devices doesn't seem to be the same (not available...? ...at
> >least not by 2.6.8) so that is a change as well as 'discover' no longer
> >finding the cdrom devices itself.
> 
> Discover should still find the drives, wonder why it doesn't -- maybe 
> becuase you are missing hal. Only that now they are /dev/hd[cd]. Anyway:
> Change permissions of /dev/hd[cd] to root:cdrom.
> Make the mount pionts that you want in /media (even in / will do).
> Try inserting a CD. It should work.
> If it doesn't, install gnome-volume-manger. If it does, still install 
> gnome-volume-manger and add yourself to plugdev group if you also want 
> automounting and icons-on-desktop for any USB disk that you may plug in.
> 

Ah, ok.  Not being in the group assigned to the /dev/hd[cd] device
filenames was the problem.

I agree I should not be in group "disk" so I changed the group setting
for these filenames to be "cdrom".  A newly inserted CD still wasn't
automatically mounted but it could read the volume name of the CD when
manually mounted which was a good sign.  I tried restarting fam but
that also didn't do it.  As "discover" isn't finding the cdrom devices,
I've reconfigured the package to not manage the device filenames and
links for now (so it wouldn't undo anything) and rebooted the
computer.  An inserted CD is now automatically mounted and displayed as
an icon on the desktop and with the correct volume name.  Ah . . .

Thanks for helping me talk that out and raising the correct issues.
Don't want to know how long it may have taken me to realize the hang up
on my own.

Also, thanks for pointing out gnome-volume-manager concerning USB devices.

Thanks, HS!

Paul

> GL,
> ->HS
> 
> -- 
> (Remove all underscores,if any, from my email address to get the correct 
> one. Apologies for the inconvenience but this is to reduce spam.)
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact 
> listmaster@lists.debian.org
> 

-- 
Paul Yeatman       (858) 534-9896        pyeatman@ucsd.edu
	     ==================================
	     ==Proudly brought to you by Mutt==
	     ==================================



Reply to: