Measure the distance to be blocked off, being sure to leave enough space for a doorway if desired. Make sure that the bookshelf or shelving unit being used is the right size, taking into account anything that may jut out of the wall, such as baseboard molding, thermostats or light switches.
Lay the bookcase flat on the ground if it is an open-backed bookcase, and stretch dark fabric over the back. Staple it along the top, and have an assistant continue to stretch the fabric to the bottom and fasten it with staples. Repeat this process for the sides. Cut off any excess fabric, using the scissors, so that none is visible from the outside.
Position the bookshelf in place. Use a carpenter's level to check that the bookcase is level. If there are any discrepancies in leveling, insert small shims under the necessary corner of the bookcase to raise it to the desired level. Repeat this process for as many corners as necessary to achieve a leveled result.
Predrill four holes in the side of the bookcase and into the wall, using a drill bit that is slightly smaller in diameter than the wood screws you will be using. If you don't hit any studs, insert drywall anchors into the predrilled holes. Attach the bookcase to the wall with the wood screws, tightening each screw partway until they are all installed, and then returning to finish tightening them all.