/dev/sdf
is a block device and /var/www/html
is a mount point. They're completely different things; analogous to a physical book and a bookmark.
You first have to attach your EBS volume to your instance. It will show up as /dev/sdf
(or whatever device name you've specified). You then have to create a file system on it using mkfs.ext4 /dev/sdf
. You then mount the newly created volume using mount /dev/sdf /var/www/html
. To have it automatically mount at boot, edit /etc/fstab
and append the following to the file:
/dev/sdf /var/www/html ext4 defaults,noatime 0 0