I have used this method for attaching items to my backdrop. if you have Run #255, you can check out my featured layout and possibly see a pic or two.
I did this with scenery material, coarse ground foam in my case. It would also work for coal or sand. Cut a 0.125 inch "profile board" to the profile of the coal pile or sand dune. Paint the board an appropriate color and apply your coal or sand with a base coat of white glue and then let it dry. Apply more product and soak on some diluted white glue and let everything dry. Once dry, you can stand the board vertical and the product will not fall off.
You can now attach this to the wall or backdrop directly but what I like to do is to provide a spacer between the wall / backdrop (another 0.125 inch) to provide a bit of relief, it makes your piece stand out just a bit and looks a lot better than a direct attachment. Make sure these spacers are not visible.
Sorry for the long post, I write a lot.
Donald