Slackware This Forum is for the discussion of Slackware 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.
|
|
05-15-2004, 01:28 PM
|
#1
|
Member
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210
Rep:
|
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
|
|
|
05-15-2004, 01:34 PM
|
#2
|
Senior Member
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272
Rep:
|
|
|
|
05-15-2004, 03:39 PM
|
#3
|
Member
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210
Original Poster
Rep:
|
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
|
|
|
05-16-2004, 07:06 AM
|
#4
|
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:
|
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....
|
|
|
05-16-2004, 01:03 PM
|
#5
|
Member
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210
Original Poster
Rep:
|
yea.. i just need to know how.
|
|
|
05-16-2004, 06:33 PM
|
#6
|
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:
|
see the
/usr/doc/Linux-HOWTOs/Automount
for more info and it must be install in the kernel
|
|
|
05-16-2004, 06:54 PM
|
#7
|
Member
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210
Original Poster
Rep:
|
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
|
|
|
05-16-2004, 07:20 PM
|
#8
|
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:
|
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....
|
|
|
05-16-2004, 07:45 PM
|
#9
|
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:
|
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....
|
|
|
05-17-2004, 12:51 PM
|
#10
|
Member
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210
Original Poster
Rep:
|
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
|
|
|
05-17-2004, 05:19 PM
|
#11
|
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:
|
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
|
|
|
05-17-2004, 05:30 PM
|
#12
|
Member
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210
Original Poster
Rep:
|
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 09:41 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
|
|