Quote:
Originally Posted by goggyturk
Hello folks
Got a problem with a script that loads a couple of kernel modules for scsi emulation for my cd/dvd (literally two lines). The script runs fine from its home in /usr/local/bin but when I create a symbolic link in /etc/init.d it refuses to recognise the file exists:
turknet01:/etc/init.d# ./cd-scsi-loader console
bash: ./cd-scsi-loader: No such file or directory
It refuses to recgnise the file under update-rc.d also. The original file has rwx permissions under root, r-- for all others. Anyone have any ideas? Sure this is a simple fix for some of you gurus out there
|
You would put the file in the /etc/init.d directory then use the update-rc.d command to create the proper startup/shutdown link(s) but you really should be if using ide-scsi for the drives using the kernel parameter for them. If using LILO you want something like this in the append= line in the /etc/lilo.conf
hdc=ide-scsi hdd=ide-scsi then run
/sbin/lilo -v to update LILO and reboot. If using Grub you would either put them on the kernel line in the /boot/grug/menu.lst eg.
Code:
## ## End Default Options ##
title Debian GNU/Linux, kernel 2.6.19-ck1-smp Default
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 ro hdc=ide-scsi hdd=ide-scsi
savedefault
This would be for the running kernel if you want all kernels to get this then edit this section.
Code:
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda2 ro hdc=ide-scsi hdd=ide-scsi
This would on every Grub update put the scsi emulation on the kernels available for booting. You should make sure to use the proper drive letters for the cd/dvd as if you make your hard drive use the emulation it will not boot so change the hdc and hdd as necessary.