Recovering Lost Keys For EC2 FreeBSD13

1

Hello All, Yep, I did it. Lost my key pair for an important, (to me), EC2 server. Been hacking at it for a few days now. I need help. I am following this guide: -- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replacing-lost-key-pair.html

Everything seems straight forward. It is a well written guide. But when I try to mount the old disk in the new temporary instance, I get an input output error. Using geom list disk, the old disk shows up as nda1 in the temp instance. I have tried mounting using mount /dev/nda1p1 /mnt/temp I get the error.

I have tried using a regular Linux instance but didn't get very far. I was afraid I might mess up my disk. This might be a question better asked in a FreeBSD forum so I'll go looking for one. I am hoping this is a no brainer for somebody out there in the AWS community.

Here is the error:

root@freebsd:~ # mount /dev/nda1p1 /mnt/temp

mount: /dev/nda1p1: Input/output error

Thanks for reading this plea for help!

John Ullom

  • mount /dev/nda1p1 /mnt/temp

    There's your problem. nda1p1 is the GPT bootfs; and after that comes the UEFI ESP. You want p3 (assuming you're on x86; if you're on arm then you want p2 since arm doesn't have the GPT bootfs).

Redbone
質問済み 2年前266ビュー
2回答
0

cperciva,

YOU are my hero! Thank you!!

xoxoxoxoxoxo

Redbone
回答済み 2年前
0

Looks like I wrote my answer in the wrong place before. Copying it down here for better visibility in case anyone else runs into this problem:

mount /dev/nda1p1 /mnt/temp

There's your problem. nda1p1 is the GPT bootfs; and after that comes the UEFI ESP. You want p3 (assuming you're on x86; if you're on arm then you want p2 since arm doesn't have the GPT bootfs).

回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ