Use a miter saw to cut a two-by-four to 12 inches. Cut two pieces of a 1-inch wooden dowel to 9 inches.
Draw a 6-inch vertical line across a board. Measure 1 inch to the left, and then measure 1 inch to the right of the center.
Drill a 1-inch hole through the marks on the board. Put a mark 1 inch from each of these holes. Drill a one-quarter-inch hole into the wood. These are pilot holes to secure the board to your wall.
Put wood glue around the sides of the 1-inch holes, and slide the dowels into the holes. Allow the glue to dry for about two hours.
Use a stud finder to locate the studs on the wall that you want to mount the rack to. Line the pilot holes up with the studs on the wall.
Drill the screws into the pilot holes to secure the rack to the wall. Make sure that you're using screws that are long enough to go through the rack and into the studs.