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.

asked 2 years ago236 views
1 Answer
0
Accepted Answer

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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions