Expressions (phrases, clauses, etc.), I-adjective (keiyoushi)
having no choice but to ...; all one can do is ...; there's nothing to do except ...
after a verb
翌朝まで待つしかなかった。There was nothing to do but wait until the next morning. having nothing but ...; there is only ...; having only ...; having no more than ...
after a noun or counter