2

How can I stop CentOS 5.3 from trying to mount my CD-ROM drives during boot?

What will it affect if I disable it? Will my USB Drives still automount?

Additional Information

There is no entries in the fstab or mtab to automount the drives. It is the first place I checked. Also a grep of the etc and underlying directories for /media/cdrom did not bring up anything remotely useful in this regard.

The machine is not running a GUI, no X-Windows installed. It also doesn't have autofs installed.

CentOS is trying to mount both my internal and external drives. There is no discs in them so these fail, however I want to stop the process altogether.

BinaryMisfit
  • 1,593
  • 2
  • 15
  • 30

3 Answers3

1

I was under the impression that was handled via hald.

Maybe not, but another option (presuming you don't need them), would be to just disable them via your server's BIOS. I've done that when I wanted to hold onto the drive, but not have it active in the system.

warren
  • 17,829
  • 23
  • 82
  • 134
0

Just remove this line from /etc/fstab

/dev/hda                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 

Or better yet, just comment it out. #

geeklin
  • 518
  • 2
  • 10
  • I would love to. Except it is not there. It was the first place I looked, both in mtab and fstab. I have no idea where it is picking up the mounts which is the reason for the question. I will update accordingly. – BinaryMisfit Sep 14 '09 at 20:30
  • Strange, I'm guessing autofs is mounting it automatically. – geeklin Sep 14 '09 at 21:08
  • autofs is not installed either. Was about to check on that and realised it wasn't one of the packages I installed as I didn't need it. – BinaryMisfit Sep 14 '09 at 21:50
0
fuser /dev/cdrom

should get you started figuring out what process is attached to it....I woulda guessed autofs as well...

Greeblesnort
  • 1,739
  • 8
  • 10
  • interesting problem. I second the use of fuser to try to get some idea of what could be going one. Is there anything in /var/log/messages? – egorgry Sep 15 '09 at 00:42
  • The problem is there is no disc in the drive, it fails to mount due to this. I want to stop it from happening completely. – BinaryMisfit Sep 15 '09 at 07:16
  • I guess I'm kinda confused as to why you would want to, but when BIOS informs the system that there's a drive there, it's going to try to spin it up to see whether or not to mount it. I'm not sure exactly where in system bootup that occurs, but if you really want to disable it, perhaps turning off the drive in BIOS? – Greeblesnort Sep 17 '09 at 02:02