Koozali.org: home of the SME Server

Correcting the CDrom Mount failure in SME 5.6 after Upgdates

Offline satovey

  • ****
  • 75
  • +0/-0
    • Yevotas Ministry Network
This is an update to the follwoing post:
http://forums.contribs.org/index.php?topic=16857.msg65295#msg65295

And completes the bug fix:)

CD-ROM fails to mount after install/upgrade

To fix:

i) add a line that says "modprobe cdrom > /dev/null 2>&1" to /etc/rc.sysinit just above the line that says "modprobe ide-cd > /dev/null2>&1".

ii) delete the /dev/cdromX symbolic links
(this may not exist, if it doesn't go to iii)

Step iii eliminates the step of recreating
the symlink. After rebooting I found that
the cd drive was pointing at scd0 despite
the fact that I followed the previouse
post's directions. So I dug a bit and
came up with the following steps to
eliminate that problem in it's entirety.

iii) Open /etc/e-smith/events/actions/fix-cdrom
Edit the following line,
symlink{"/dev/scd0", "/dev/cdrom"}:
to,
symlink("/dev/hdc", "/dev/cdrom");
or whatever your cdrom is pointing to.
Then save and close the file.

iv) Run the script to update the new
settings. If you are in Midnight Commander,
the file will be highlighted and all
you need do is press enter and it will run
the script and update symlink. If you
are privy to using the prompt, issue
the proper command to run the script and
update the settings.

v) open /etc/rc.d/rc.local
edit the line which reads:
   ln -sf /dev/scd0 /dev/cdrom

so that it reads:
   ln -sf /dev/hdc /dev/cdrom

Now when your system starts, the cd drive
will be mounted properly. :)

Rembember that scd0 and hdc are names for
the cdrom drive on the system and that your
system may have a different name for it.
You need to put the name of your cdrom drive
in place of scd0 or hdc for this fix to work.
If you don't know what name your system has
given your cd drive, try hdc to see if it
works.

If you don't know the command to run
the script then issue the mc command
to start Midnight Commander and run
the script that way.

For you over zealous gurus, I use MC because
remembering all those commands and paths
is just two much of a bother. I get lost
Expecially when there is a much easier way
to do it.

You don't need to reboot the machine for
the new setting to take affect, all you
need do is run the fix-cdrom script.

If you have installed the sharedrive autofs
contrib, you can check to see if your cd is
mounting properly by going to the ibay you
used to share your cdrom and floppy drives
If you are in MidnightCommander, put a cd
in your drive and enter the folder, the cd
will automatically mount and you will see the
files on the cd.

Scott
Scott A Tovey

Offline satovey

  • ****
  • 75
  • +0/-0
    • Yevotas Ministry Network
Re: Correcting the CDrom Mount failure in SME 5.6 after Upgd
« Reply #1 on: May 06, 2004, 10:34:00 PM »
Quote from: "satovey"
This is an update to the follwoing post:
http://forums.contribs.org/index.php?topic=16857.msg65295#msg65295

And completes the bug fix:)

CD-ROM fails to mount after install/upgrade

To fix:

i) add a line that says "modprobe cdrom > /dev/null 2>&1" to /etc/rc.sysinit just above the line that says "modprobe ide-cd > /dev/null2>&1".

ii) delete the /dev/cdromX symbolic links
(this may not exist, if it doesn't go to iii)

Step iii eliminates the step of recreating
the symlink. After rebooting I found that
the cd drive was pointing at scd0 despite
the fact that I followed the previouse
post's directions. So I dug a bit and
came up with the following steps to
eliminate that problem in it's entirety.

iii) Open /etc/e-smith/events/actions/fix-cdrom
Edit the following line,
symlink{"/dev/scd0", "/dev/cdrom"}:
to,
symlink("/dev/hdc", "/dev/cdrom");
or whatever your cdrom is pointing to.
Then save and close the file.

iv Run the script to update the new
settings. If you are in Midnight Commander,
the file will be highlighted and all
you need do is press enter and it will run
the script and update symlink. If you
are privy to using the prompt, issue
the proper command to run the script and
update the settings.

Now when your system starts, the cd drive
will be mounted properly. :)

If you don't know the command to run
the script then issue the mc command
to start Midnight Commander and run
the script that way.

For you over zealous gurus, I use MC because
remembering all those commands and paths
is just two much of a bother. I get lost
Expecially when there is a much easier way
to do it.

You don't need to reboot the machine for
the new setting to take affect, all you
need do is run the fix-cdrom script.

Scott


Found a bug in this as the fix-cdrom script does not run on reboot, and the symlink is set back to the impoper pointer. Will try and find the cause of this.
Scott A Tovey

Offline satovey

  • ****
  • 75
  • +0/-0
    • Yevotas Ministry Network
Re: Correcting the CDrom Mount failure in SME 5.6 after Upgd
« Reply #2 on: May 06, 2004, 11:15:49 PM »
Quote from: "satovey"
Quote from: "satovey"

Found a bug in this as the fix-cdrom script does not run on reboot, and the symlink is set back to the impoper pointer. Will try and find the cause of this.


Sorry about the premature post of these instuctions.
I didn't realize that the first script was not
run when the system booted. Found the bug when
I rebooted the system trying to get a website
working properly.

Found the fix and the post is corrected with
step (v). Remember that your cdrom may have a
different hardware name and you should replace
scd0 or hdc with that name. Once this is done,
you shouldn't have problems until the next time
you do an update and have to edit these two
files, so print or save these instructions to
your hardrive.

If your like me, you won;t remember these
instructions the next time your cdrom
chooses not to work.

Take care.

Scott.
Scott A Tovey