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

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

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

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

関連するコンテンツ