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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南