large 2nd disk volume not mounted, unable to access 2nd disk volume.

0

I have an ECS instance (AWS Linux, t2.xlarge) with a a large 2nd disk volume (block device: /dev/sdb 80 Gib) When my instance is started, the 2nd disk volume is not mounted onto any directories. I ssh into my instance as a non-root user, and tried to mount the /dev/sdb, but I am not allowed to do so because I do not have root privileges.

What should I do? How can I access my 2nd disk volume? Could there be an issue because of the large disk size?

Also, is there a way to request for root privileges for my instance?

Thanks.

질문됨 2년 전246회 조회
1개 답변
0
수락된 답변

Disk size is not an issue and root access should be available using sudo.

If all that you are looking for is to be able to mount the volume on the ECS instance ( and not any container within it since you mentioned ECS), log into the instance as ec2-user and type the following

sudo mkfs.ext4 /dev/sdb 
sudo mkdir /mnt/vol2
sudo mount /dev/sdb /mnt/vol2

The above command assumes that /dev/sdb is a new volume without any data. The 2nd volume would be mounted to /mnt/vol2. You can change the mount point as you wish

--Syd

profile picture
Syd
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠