All entries made and patents issued under the provisions of this subchapter shall be subject to and contain a reservation to the United States of all the coal and other minerals in the lands so entered and patented, together with the right to prospect for, mine, and remove the same. The coal and other mineral deposits in such lands shall be subject to disposal by the United States in accordance with the provisions of the coal and mineral land laws in force at the time of such disposal. Any person qualified to locate and enter the coal or other mineral deposits, or having the right to mine and remove the same under the laws of the United States, shall have the right at all times to enter upon the lands entered or patented, as provided by this subchapter, for the purpose of prospecting for coal or other mineral therein, provided he shall not injure, damage, or destroy the permanent improvements of the entryman or patentee, and shall be liable to and shall compensate the entryman or patentee for all damages to the crops on such lands by reason of such prospecting. Any person who has acquired from the United States the coal or other mineral deposits in any such land, or the right to mine and remove the same, may reenter and occupy so much of the surface thereof as may be required for all purposes reasonably incident to the mining or removal of the coal or other minerals, first, upon securing the written consent or waiver of the homestead entryman or patentee; second, upon payment of the damages to crops or other tangible improvements to the owner thereof, where agreement may be had as to the amount thereof; or, third, in lieu of either of the foregoing provisions, upon the execution of a good and sufficient bond or undertaking to the United States for the use and benefit of the entryman or owner of the land, to secure the payment of such damages to the crops or tangible improvements of the entryman or owner, as may be determined and fixed in an action brought upon the bond or undertaking in a court of competent jurisdiction against the principal and sureties thereon, such bond or undertaking to be in form and in accordance with rules and regulations prescribed by the Secretary of the Interior and to be filed with and approved by the officer designated by the Secretary of the Interior of the local land office of the district wherein the land is situate, subject to appeal to the Secretary of the Interior or such officer as he may designate: Provided, That all patents issued for the coal or other mineral deposits herein reserved shall contain appropriate notations declaring them to be subject to the provisions of this subchapter with reference to the disposition, occupancy, and use of the land as permitted to an entryman under this subchapter.