LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 05-15-2004, 02:28 PM   #1
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Rep: Reputation: 30
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
 
Old 05-15-2004, 02:34 PM   #2
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
http://supermount-ng.sourceforge.net/
 
Old 05-15-2004, 04:39 PM   #3
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
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
 
Old 05-16-2004, 08:06 AM   #4
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
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....
 
Old 05-16-2004, 02:03 PM   #5
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
yea.. i just need to know how.
 
Old 05-16-2004, 07:33 PM   #6
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
see the
/usr/doc/Linux-HOWTOs/Automount
for more info and it must be install in the kernel
 
Old 05-16-2004, 07:54 PM   #7
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
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
 
Old 05-16-2004, 08:20 PM   #8
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
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....
 
Old 05-16-2004, 08:45 PM   #9
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
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....
 
Old 05-17-2004, 01:51 PM   #10
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
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
 
Old 05-17-2004, 06:19 PM   #11
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
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
 
Old 05-17-2004, 06:30 PM   #12
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Original Poster
Rep: Reputation: 30
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!
 
  


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
USB memory drive key works but icon doesn't appear on the desktop Youssef_C Mandriva 1 06-05-2005 03:18 PM
Can I put a logout icon on desktop? newtwolinux Linux - Newbie 4 05-17-2005 09:24 PM
CD icon appears on desktop when media inserted into cdrom murray_linux Mandriva 4 05-17-2004 11:40 PM
in fvwm, how to put an icon onto desktop? 286 Linux - Newbie 2 12-17-2003 07:21 AM
Hard drive and cdrom icon on desktop help jbumgar Linux - Newbie 4 07-29-2003 11:57 AM


All times are GMT -5. The time now is 08:58 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration