Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

My linux system scans my cdrom on boot. Can I disable that feature without removing my cdrom tray?

share|improve this question
    
Are you sure it's Linux doing it and not your BIOS (or possibly bootloader)? –  Mat Nov 13 '11 at 7:59
    
@Mat , i hear that noise twice , one done by BIOS , one after ram disk is loaded –  warl0ck Nov 13 '11 at 9:27
    
The "scan" might just be the CD-rom's self-test happening when the driver loads and asks it how it's doing. –  Shadur Nov 14 '11 at 8:40

2 Answers 2

up vote 5 down vote accepted

If you are running LVM, or have the LVM tools installed, it will scan for LVM devices during the init sequence. This is controlled by the lvm config file (/etc/lvm/lvm.conf on Debian).

The config file may have a commented-out line to exclude /dev/cdrom from its scan. Check this and uncomment it, or substitute a different device name if you don't have /dev/cdrom.

In the devices section, you want a line like:

filter = [ "r|/dev/cdrom|" ]
share|improve this answer
    
yeah , i do have LVM root , i'll take a try soon –  warl0ck Nov 13 '11 at 9:27
    
Alternatively, you can use filter = [ "a|/dev/sda2|", "r/.*/" ] or the like to only include the device(s) that contains the LVM partitions. –  phunehehe Nov 13 '11 at 13:36

Another one guilty of doing these things might be some kind of hardware-scan-process. In RH/clones this is kudzu. I am not sure if gentoo has a similar startup process that scans for new/changed hardware.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.