Crawford remained in command of the Pennsylvania Reserve Division in the V Corps for the rest of the war. In the Richmond–Petersburg Campaign he also commanded a garrison in the siege that consisted of his first two brigades, a division from the IX Corps, and a few other regiments and artillery units; his third brigade was temporarily assigned to another V Corps division. On December 12, 1864, President Abraham Lincoln nominated Crawford for appointment to the brevet grade of major general, to rank from August 1, 1864, and the U.S. Senate confirmed the nomination on February 14, 1865. On August 18, he was wounded at the chest in the action at the Weldon Railroad. He received a brevet promotion to brigadier general in the regular army for the Battle of Five Forks and to major general on March 13, 1865. At Five Forks, his division drifted away through heavy woods from the main attack on the Confederate left. Maj. Gen. Gouverneur K. Warren, commander of V Corps, personally rode off to retrieve Crawford's division. His absence during the attack was one of the reasons cited by Maj. Gen. Philip Sheridan to relieve Warren. Although Crawford was the senior general in the corps, Sheridan named a more junior officer (Brig. Gen. Charles Griffin) to replace Warren.