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.

preguntada hace 2 años246 visualizaciones
1 Respuesta
0
Respuesta aceptada

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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas