I got locked out of my amazon instance. I read that I can create a new instance and attach that volume to the new instance. I attached the old volume to the new instance and the management console says its at /dev/sdf. My question is how do I access that volume ? I read that I can access it by mounting. I tried doing this
sudo mount /dev/sdf ~/vol1/
but I get the error
[root@ip-172-31-42-113 ~]# sudo mount /dev/sdf ~/vol1/ mount: wrong fstype, bad option, bad superblock on /dev/xvdf, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so.
Any suggestions on how I can access that volume ? I need to change the permissions of
home/ec2-user of that volume. Apparently I set it to 777 and because of the relaxed permission setting I think I got locked out of it ? Also can you tell me what the default permission for
home/ec2-user should be ?