
    Richard A. THURSTON, Petitioner-Appellant, v. State of MARYLAND, Respondent-Appellee.
    No. 14-7707.
    United States Court of Appeals, Fourth Circuit.
    Submitted: April 20, 2015.
    Decided: April 30, 2015.
    Richard A. Thurston, Appellant Pro Se. Edward John Kelley, Office of the Attorney General of Maryland, Baltimore, Maryland, for Appellee.
    Before NIEMEYER, DIAZ, and FLOYD, Circuit Judges.
   Affirmed in part; vacated in part by unpublished PER CURIAM opinion.

Unpublished opinions are not binding precedent in this circuit.

PER CURIAM:

Richard A. Thurston, a Maryland inmate, seeks to appeal the district court’s order denying relief on his petition for a writ of error coram nobis and dismissing the petition as untimely to the extent it could be construed as a petition filed pursuant to 28 U.S.C. § 2254 (2012). We affirm the district court’s denial of relief on Thurston’s petition for a writ of error coram nobis for the reasons stated by the district court. Thurston v. Maryland, No. 1:13-cv-01766-JFM (D.Md., Nov. 4, 2014). However, we vacate that portion of the district court’s order construing the petition as one filed pursuant to 28 U.S.C. § 2254.

A district court must first give a prisoner notice and opportunity to respond before construing a mislabeled postconviction motion as an initial § 2254 petition. Castro v. United States, 540 U.S. 375, 383, 124 S.Ct. 786, 157 L.Ed.2d 778 (2003); United States v. Emmanuel 288 F.3d 644, 649 (4th Cir.2002), overruled in part on other grounds by Castro, 540 U.S. at 383, 124 S.Ct. 786, as recognized in United States v. Blackstock, 513 F.3d 128, 133 (4th Cir.2008). In Emmanuel, we held that a district court must notify a prisoner if the court intends to recharacterize a motion as the movant’s first federal habeas petition. If the prisoner fails to respond within the time set by the district court, the court may proceed with the recharacterization. If the movant agrees to recharacterization, the court should permit amendments to the motion. If, however, the movant objects to recharacterization, the court should not treat the motion as a § 2254 or § 2255 motion but must rule on the merits of the motion as filed. 288 F.3d at 649. Similarly, in Castro, 540 U.S. at 377, 383, 124 S.Ct. 786, the Supreme Court held that a pro se litigant must be warned before a motion is recharacterized as his first federal habeas motion, and the district court must furthermore “provide the litigant an opportunity to withdraw the motion or to amend it so that it contains all the § 2255 claims he believes he has.”

Here, the district court erred by treating Thurston’s petition as a § 2254 petition after he timely objected to such treatment. Accordingly, we vacate that portion of the district court’s order. We dispense with oral argument because the facts and legal contentions are adequately presented in the materials before this court and argument would not aid the decisional process.

AFFIRMED IN PART; VACATED IN PART.  