In 1856, after graduating from the naval academy he was appointed as a navy officer. During the Russo-Turkish War (1877-1878) he was a commander of a warship. In 1882, he was appointed as the commander of the navy.
Three years later, he became the adjutant of the sultan Abdülhamit II, a prestigious but inactive post. In 1906, he was appointed as the naval minister. Two years later however, following the Young Turk Revolution he was dismissed by the now powerful Committee of Union and Progress partisans.
He was put on trial and was downgraded. He spent his last years in İstanbul and died in 1923. Abdülaziz, the sultan before 1876, tried to form a powerful navy.
In the mid 19th century, the Ottoman navy was one of the most powerful in the world. But Abdülhamit II never allowed any naval activity. After the Russian war, for about 20 years, the navy had no training, maneuver or maintenance.
All warships stayed in Golden Horn without the slightest training. According to one view, Abdülhamit was afraid of navy officers' possible coup. But before the war against Greece, Abdülhamit decided to send the navy to Dardanelles Strait as a precaution against a possible Greek naval offensive.
(Greek navy was smaller but more up-to-date and superior than that of the Ottoman Empire ). Hasan Rami who was the commander of this navy soon found out that almost all ships and most of the weapons needed major repairs. Although Hasan Rami Pasha was able to sail up to Dardanelles with difficulty, he saw that the navy was almost out of commission.
He prepared a report and suggested to purchase new warships instead of repairing the old ships. He further pointed out that the former reports to sultan about the navy were false. Rauf Bey (future prime minister and one of the leaders in the early days of the Turkish War of Independence) was one of the subordinates of Hasan Rami Pasha.
According to his memoirs, his expectations were high in Hasan Pasha’s reform projects. But he was disappointed when Hasan Pahsa was appointed as the naval minister. Because unlike his former self, Hasan Pasha became a passive politician and did nothing to reform the navy.
After the Young Turk Revolution he was accused for the miserable condition of the navy. Later Hasan Pasha published his memoirs to be acquitted. In 2013 his memoirs, together with was republished by Osman Öndeş, a retired naval officer and an editor.