Just spent 5 hours this weekend replacing a $2 lug stud on my passenger's side rear wheel. Wanted to share some lessons learned to save one of you the pain. I have a manual, and that's important. The reason it is important is because the emergency brake grips the inside of the rotor. This diagram proved very helpful:
When you lift a rear wheel in 2WD, it will roll. Thus, your natural tendency is to hit the e-brake to keep it still. Unfortunately, now your rear rotor is stuck and no amount of WD40 or rubber mallet can remedy that (for good reason). You need to relax the e-brake - that happens with the star wheel that sits vertically behind the rotor (there's a rubber gasket that can be pulled away to give you and a short screwdriver access to turn it click by click - you will need to tighten it back when you are done). In this image, it's part number 9.
So back up in the story a bit. To start getting a rotor off of a manual,
put your truck in 4WD and chock your wheels before you do anything else, including jacking it up - your transmission will keep you parked.
Next, make sure your emergency brake is off. Then jack up and remove the wheel and retaining rings on your lug studs.
Then use the 18mm socket to remove the 2 bolts from your brake caliper and pull it off. IMPORTANT - do not mash your brakes with the caliper off or you will curse a lot trying to get it back on.
Once the caliper is off (might want to set some boards down for it to rest on so it doesn't dangle by the brake cable), see if the rotor will shimmy off with gentle persuasion, but don't force it. If it does, fantastic. If not, pull the rubber grommet (shaped like a long pill) and use a short screwdriver to turn the star gear on the vertical post in the diagram. Once it is loose, the rotor should move more freely and come off with less effort.
Whether you are changing the rotor, a lug stud, or just looking around, sorting out the e-brake's hold on the inside of your rotor is an epiphany if you are using a dead-blow mallet and getting nowhere.
Once you are done, carefully follow these instructions in reverse to get your assembly safely back together and roadworthy. You may have to pump your brakes a time or to to repressurize them after having the caliper off.
Test your emergency brake as well. It never hurts to write your steps out on a piece of paper to keep yourself from having to guess. When you're messing with your braking system, better safe than sorry. Hope that helps