Topics about disk partitioning (fdisk, parted, gparted, partimage), Volumes Management (lvm, evms, dmraid), Storage, file systems, ...
2 posts • Page 1 of 1
I like to boot the CD with the docache option so that I can eject the CD. I've noticed that since 1.5.8 (possibly earlier; I tend to skip versions), after caching is complete, the Hardware Abstraction Layer Daemon seems to want to read the CD, preventing me from ejecting it. This is particularly annoying on older, slower CD drives. I had thought of creating a custom CD with /etc/init.d/hald made non-executable. What would be the implications of this? Would important things stop working? Is there a way to prevent hald from reading the CD and leave its other functions intact?
After more RTFMing and experimenting, I've found the answer. After doing sysresccd-custom extract, go into the directory /mnt/custom/customcd/files/etc/hal/fdi/information, create a file called media-check-disable-cdrom.fdi, and edit it to contain the following:
Now build the custom cd as usual.This will prevent hald from doing a media check on any cdrom drive.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <device> <match key="scsi.type" string="cdrom"> <merge key="storage.media_check_enabled" type="bool">false</merge> </match> </device> </deviceinfo>