Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've setup an EC2 instance and have 2 EBS volumes attached to it. I would like to view the contents of each volume. How do I view it via the terminal (cd /somePath)? I've already have a valid SSH connection to the EC2 instance.

Edit:

From the AWS console, one of the volume is i-9167d3ff:/dev/sda1. I tried to do cd /dev/sda1 but I get the message -bash: cd: /dev/sda1: Not a directory

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Items in the dev directory are devices, so you can't view them directly. This in effect is the disk for the EBS volume in question. Typically this is mounted on a specific directory, such as /mnt/volumename.

If they volumes are already mounted, you can run the 'df' command to list them. This will show you the device name and the mount point. You can then view the contents of the mount point.

If they are not already mounted, then you would need to configure /etc/fstab with the correct places to mount your volumes. They will then be mounted at boot time, or by running the mount command.

share|improve this answer
2  
Thanks for the info to get me started. I found a tutorial here randomtools.net/… –  David Jun 2 '11 at 16:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.