-
MillTek
SysV-init Editor is a utility you use to configure what service is going to laod when you boot your system.
It can be found when you click KDE start menu--->System ---> SysV-Init Editor.
If you never use it before, it wil ask you question about your system. Select Linux and Debian. When the gui started, you will see on the left side (Available services) list of services in your system(usually these services resides in your /etc/init.d folder).
Select and drag service called autofs and drop on Runlevel 5 (start) collum. If there's an error pop up that says something like :
"Unable to generate a valid sorting number for this position..................."
Try change kdm sorting number by right clickin on it-->properties-->
change the number to 90.
Then drag & drop autofs.Change the sort number for autofs to say 65, and change back the sort number for kdm to its original.
To stop the autofs service when you shutdown, just drop on Runlevel 6 at the bottom collum (Stop).
Dont forget to save.
-
You could of course do the same from a root shell with:
Code:
update-rc.d autofs start 20 5 . stop 20 6 .
or if you want to start it at lower runlevels as well:
Code:
update-rc.d autofs defaults
and if you want to remove it later:
Code:
update-rc.d -f autofs remove
-
Shah,
I did everything exactly as you suggested, and as you said, when I open a console and 'ls /mnt/cdrom', it lists the contents of the data CD.
However, when I reboot and click on the file manager (kfmclient) it shows me, under Devices', a CD-ROM with properties as follows 'automount(pid998)mntcdrom)' . If I click on this I get ;
An error occurred while loading devices:/automount(pid998)mntcdrom:
Retrieving data from devices is not supported
Now if I open a konsole and type 'ls /mnt/cdrom' , this works but it also inserts a new entry in the list of devices in kfmclient - CD-ROM (sr0) [/mnt/ cdrom/cdrom].
The properties for this are;
devsr0mntcdromcdrom
In kfmclient if I click on this new entry it will display the contents of the data CD.
If I terminate the kfmclient session and restart it the new entry is still there and still functional.
Obviously the opening of th konsole and the 'ls' command are doing something that is not being done at boot. Any ideas?
Here are my fstab and mtab in case these help;
FSTAB
# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda6 none swap defaults 0 0
# Added by KNOPPIX
/dev/hda7 /mnt/hda7 vfat noauto,users,exec,umask=000 0 0
MTAB
/dev/hda5 / ext3 rw,errors=remount-ro 0 0
/dev/root.old /initrd ext2 rw 0 0
proc /proc proc rw,nodiratime 0 0
/dev/pts /dev/pts devpts rw 0 0
/sys /sys sysfs rw 0 0
/proc/bus/usb /proc/bus/usb usbdevfs rw,devmode=0666 0 0
automount(pid1003) /mnt/floppy autofs rw,fd=4,pgrp=1003,minproto=2,maxproto=4 0 0
automount(pid998) /mnt/cdrom autofs rw,fd=4,pgrp=998,minproto=2,maxproto=4 0 0
Thanks for all the help Shah and thanks Markus for the suggestion as well.
Jim
-
MillTek
I have the same problem with you but I did some adjustment
1)First what you need to do is to delete/remove autofs from runlevel5(rc5.d) and runlevel6(rc6.d).We don't need it anymore.Knoppix-autoconfig will handle it.
2) You need to delete /etc/auto.cdrom and /etc/auto.floppy
3) Edit /etc/auto.master, it should look like this :
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(5).
# /var/autofs/misc /etc/auto.misc
# /var/autofs/net /etc/auto.net
#
# KNOPPIX automounts for floppy and cdrom(s), see knoppix-autoconfig
/mnt/auto /etc/auto.mnt --timeout=2
/mnt/auto /etc/automount.sh --timeout=2
4) Edit /etc/auto.mnt, it should look like this :
# Knoppix automounter file for Directory /mnt
floppy -fstype=auto,sync,exec,umask=000 :/dev/fd0
cdrom -fstype=auto,exec,ro :/dev/sr0
# The following entries (if any) are auto-generated by knoppix-autoconfig
5) Edit your /etc/fstab, and it should look like this:
# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,users,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/dvd iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/sr0 /mnt/auto/cdrom iso9660 defaults,ro,users,noexec,auto 0 0
*( I added change user to users on every type of dev so that you can control you device (mount/unmount, eject) without being su )*
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda6 none swap defaults 0 0
# Added by KNOPPIX
/dev/hda7 /mnt/hda7 vfat noauto,users,exec,umask=000 0 0
5) Try run /etc/init.d/autofs restart or reboot. You should be able to open your cdrom from CD-ROM(cdrom) from your desktop.
There will be another icon called CD-ROM(sr0) will automatically be created on your desktop.This icon will not list files on your cd, but it is usefull to eject your cd.
6) If you see something like, mount: mount point /mnt/auto/cdrom does not exist; while booting,
just ignore it because the mount point will only exist when you insert your cd.
Hope this time it will work for you.
:D
-
my solution may have sounded naieve but it fixed identical problem on two machines
try discover1 using apt
automatically updates fstab on boot and did it correct every time so far