Question: Are there different types of Shaimos with different rules?
Sifrei Torah, mezuzos, and tefillin, and Tanach written on parchment:
Must be buried in a sealed earthenware, metal or plastic container that will prevent them from decaying. They should be buried in or near a Jewish cemetery if possible.
Seforim and paper Shaimos:
Should be buried in a tightly closed plastic bag that will prevent it from decaying. They may be buried in any respectable place where they will not get uncovered.
Question: Can it buried inside garbage bags? Cardboard boxes?
Answer: Garbage bags- only paper Shaimos. They must be tightly closed.
Cardboard boxes – no.
Question: How deep does it need to be buried?
Answer: Deep enough that it will not get uncovered – some poskim write that it should be 3 tefachim deep. It should certainly not be less than one tefach.
Question: What can/cannot be done on the ground above (or next to) where the Shaimos is buried?
Answer: Poskim argue whether one may walk on top of the place where the Shaimos are buried. If the area is covered over by concrete, it is permitted to walk, build, etc. there.
Question: Can it be buried in the Same grave pit at a funeral?
Answer: Yes. On the contrary, it is advantageous if it is buried in grave of Talmid Chochom, or at least learned person, but should not be buried in the grave of an ‘Am Haaretz’.