-
Senior Member
registered user
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(pid99mntcdrom)' . If I click on this I get ;
An error occurred while loading devices:/automount(pid99mntcdrom:
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(pid99 /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
-
Senior Member
registered user
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.
-
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
Similar Threads
-
By tonysathre in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 02-26-2005, 11:23 PM
-
By Knopper12 in forum MS Windows & New to Linux
Replies: 1
Last Post: 12-16-2004, 04:31 AM
-
By piki in forum Hardware & Booting
Replies: 3
Last Post: 10-15-2004, 05:21 PM
-
By budhead in forum General Support
Replies: 0
Last Post: 04-12-2004, 05:34 PM
-
By pau in forum General Support
Replies: 8
Last Post: 11-23-2003, 05:36 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD
$69.99
Western Digital WD60PURZ 6TB Hard Drive SATA6 Gb/s 64MB Cache 3.5 Inch
$109.99
WF12F DELL 1TB 7.2K 6GBPS SATA 2.5'' HDD HARD DRIVE ST91000640NS 0WF12F
$25.00
WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN
$49.99
HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601
$82.99
Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive
$29.99
2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive
$26.85
Western Digital WD5000LPLX 500GB 2.5" SATA 32MB 6Gb/s 7200RPM Laptop Hard Drive
$7.99
WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN
$174.99
WD 4TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0040BBK-WESN
$69.99