from the harbor before 0900, for offshore patrol, Ramsay made sound contact with a submarine at 1120. She released ten depth charges, and then watched an oil slick spread over the attack area. She had damaged, and possibly had sunk one of the midget submarines used by the Japanese in the attack. Eight days later, while escorting a merchant ship off Kauai, she made her second contact. During two runs over the enemy, she dropped her depth charges and again was rewarded by the appearance of an oil slick on the surface indicating damage to her quarry. Into February 1942, Ramsay continued patrol escort services in the Hawaiian area. On 22 February, she got underway with TF 19 for Samoa. Arriving Pago Pago on 4 March, she planted defensive minefields off Tutuila and Apia, then shifted to Suva for mining activities among the Fiji Islands. On 3 May she steamed out of Suva for the New Hebrides and by 11 June had completed, with , the Efate defensive minefields. The next day, she cleared Vila harbor, and returned to Pearl Harbor on 3 July. For the next two months, she again performed escort and patrol assignments in the Hawaiian Islands. Then, on 14 September, she sailed for the Aleutians. Still with Montgomery, she arrived at Adak on 22 September and three days later resumed mineplanting activities. In November she returned to California; underwent overhaul at Hunters Point; and on 13 January 1943 arrived back in the Aleutians for nine months of escort and patrol duty from Unalaska in the east to Attu in the west. On 17 September, Ramsay sailed south. Steaming via Pearl Harbor, she put into San Francisco on 4 October for another overhaul. Out of the shipyard by 20 December, she sailed west on 24 December. She joined ServRon 6 at Pearl Harbor on 2 January 1944, and on 21 January headed for the Gilberts. After a brief stop at Tarawa, she rendezvoused with TG 50.15 on 30 January and screened the cruiser during the bombardment of Wotje that afternoon. The next day, she guarded the cruiser during shelling, and, on 2 February, she arrived at Majuro, where she conducted antisubmarine patrols until 14 March. An escort run to the Gilberts followed, and on 19 February she got underway to return to Pearl Harbor. Arriving on 27 February, she was assigned convoy escort duty. Between then and