Instructions and form for filing a petition for writ of habeas corpus under 28 USC § 2254. Case No.: (Leave blank.In the Baltimore City Court. The Writ of Habeas Corpus is one of the oldest principles of criminal law in the United States with a rich history dating back to medieval times. Filing the petition: An attorney can properly prepare and file the petition for writ of habeas corpus in the Circuit Court for Baltimore County, Maryland. Generally, anyone detained or imprisoned can file a petition for a writ of habeas corpus in the United States. Petition For Writ Of Habeas Corpus (Under 28 USC 2241) Form. This is a Maryland form and can be use in District Court Federal. , 10 days in a habeas corpus case). Forms Finder. Search.