The present invention relates to an optical head device and an optical disk unit using the same. In this way, thicker insulating material can be formed in the accommodating space, and the thickness of the insulating material in the accommodating space is even. Segments in a transmission are monitored.