LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   CD icon appears on desktop when cd is put in drive (https://www.linuxquestions.org/questions/slackware-14/cd-icon-appears-on-desktop-when-cd-is-put-in-drive-181801/)

murray_linux 05-15-2004 01:28 PM

CD icon appears on desktop when cd is put in drive
 
Hey guys,

I haven't been able to find any solid documentation on this, so I hope one of you knows how to do this.

I remember when I was using Mandrake in the beginning, there was a feature that I really liked, and I haven't been able to figure out how to do it in Slackware. Whenever I placed a cd into one of my drives, it seemed like it would automount it, and a CD icon would appear on my desktop. I could click on the icon, and it would open up a browser window of the contents of that CD. I think the mac os does this too?

Anywhoo, right now I just have 2 icons on my desktop that are links to the devices /dev/scd0 and /dev/scd1 (cd burner and dvd rom with scsi emulation), but they are always on my desktop. Double clicking them mounts them, and opens a browser. This is VERY close, but not quite there yet.

Has anyone accomplished what I am trying to do?

Thanks!

Murray

ringwraith 05-15-2004 01:34 PM

http://supermount-ng.sourceforge.net/

murray_linux 05-15-2004 03:39 PM

ok, i'm almost there.

after doing some digging, i found a supermount patch for kernel 2.6.5 here:

http://warder.ath.cx:81/projects.php

there is an install script for that patch that updates the kernel.

after running the update, I found a supermount howto here:

http://reviewed.homelinux.org/howtos/supermount/

following the howto, i was able to get supermount working. thanks!

BUT. I still have not been able to accomplish my original goal.

I would like to be able to have the CD icons appear when i place a cd in my CD drive, like mandrake. In KDE when you go Configure Desktop > Device Icons

You can display mounted DVD, unmounted DVD, etc.. if I check both of them, nothing shows up.

my /etc/fstab looks like this:

none /mnt/dvd supermount fs=auto,dev=/dev/dvd 0 0
none /mnt/cdwriter supermount fs=auto,dev=/dev/scd1 0 0
none /mnt/floppy supermount fs=auto,dev=/dev/fd0,--,user,rw 0 0

if i change them to this:

/dev/dvd /mnt/dvd supermount fs=auto,dev=/dev/dvd 0 0

then the icons stay on my desktop regardless if a CD is in the drive or not.

Any ideas?

Thank you!!

Murray

Nichole_knc 05-16-2004 07:06 AM

Strange, my 2.4.26 kernel boxes do just what you are looking for.
insert cd and automagically the cd icon appears, remove the cd and the icon goes 'pop' and disappears.
I would check the fstab for user permissions and noauto set at boot time. I would also make sure automounter was compiled into the kernel and running. Slack has the ability to do what you are looking for without 3rd party installs....

murray_linux 05-16-2004 01:03 PM

yea.. i just need to know how.

Nichole_knc 05-16-2004 06:33 PM

see the
/usr/doc/Linux-HOWTOs/Automount
for more info and it must be install in the kernel

murray_linux 05-16-2004 06:54 PM

The way auto mount/autofs works is that it will mount the CD device when you try to access the sharepoint via command line or browser..

This isn't what I'm looking for. I want the mount to happen once the media is inserted into the drive. Anyone know how to do this?

Thanks for responding!

Murray

Nichole_knc 05-16-2004 07:20 PM

Automounter..
 
I assumed this is/was what caused my external devices to mount when turned on or a disk is inserted as this did not happen before I compiled it into the kernel
My fstab is below
/dev/hda1 / ext2 defaults 1 1
/dev/hda2 none swap sw
/dev/hdb1 /netboot ext2 defaults 1 1
/dev/hdb2 /nethome ext2 defaults 1 1
/dev/hdb3 /netkernel ext2 defaults 1 1
/dev/hdb4 none swap sw
/dev/hdd1 /usr ext2 defaults 1 1
/dev/hdc /cdrom iso9660 noauto,user,exec,suid,dev,async,ro 0 0
/dev/fd0 /floppy auto noauto,user,exec,suid,dev,async,rw 0 0
/dev/pda1 /home/buslink/bl1 ext2 noauto,user,exec,suid,dev,async,rw 1 1
/dev/pda3 /home/buslink/bl3 ext2 noauto,user,exec,suid,dev,async,,rw 1 1
/dev/pda2 /mnt/backup ext2 rw,dev,async 1 1
/dev/ums1 /home/cam auto noauto,user,exec,suid,dev,async,rw 0 0
//hnkcpumain/DocumentsXP /home/DocumentsXP smbfs user,rw,/var/smb/mntlock
devpts /dev/pts devpts gid=5,mode=620 0 0

pda is an external usb harddrive its parts mount when automagically when turned off and on, icon is displayed on desktop when on/mounted not displayed when not on/mounted

ums1 is my fiji camera. it too does as the usb hd

the cd and floppy both are not on the desktop until you insert a disk then they also automagically appear...

LOL and this is just my "little" slackbox. TheDragon fstab is 4x this size...
ppl think a default install is hard....

Nichole_knc 05-16-2004 07:45 PM

Oh yes...
There are 2 other files for doing this that autofs/automount uses to automagically mount removable devices
auto.master
and your dev list named in auto.master

Works nearly the same as supermount.... as the syntax is almost the same...
But I guess this is not what you are looking for....

murray_linux 05-17-2004 12:51 PM

confusia.

Nichole_knc, thank you for your replies.. can you post your auto.master and your cdrom file referenced in auto.master? Maybe I can jigger it if I follow your lead.

Thanks,

Murray

Nichole_knc 05-17-2004 05:19 PM

This is my master

/mnt /etc/mnt.devs --timeout=120

/mnt is the location in which to mount stuff
/etc/mnt.devs is the device list

<mnt.devs>

cdrom -fstype=iso9660,ro :/dev/hdc
cam -fstype=auto :/dev/ums1
floppy -fstype=auto :/dev/fd0
bl1 -fstype=ext2 :/dev/pda1
bl2 -fstype=ext2 :/dev/pda2

automount works pretty good. unformatted floppys will not mount. Joilet cds (windors made) can be a problem also requiring a normal mount issue...
So burned cdrw that have not be closed out tend to make automount burp....

I hope you find this helpful

murray_linux 05-17-2004 05:30 PM

yes. thank you. I don't see anything too different in your files. Well I'm stumped. Almost time to GIVE UP, and just have icons permanently on my desktop.

Thanks!


All times are GMT -5. The time now is 06:49 PM.