[Solved]Permission denied while installing legato on Raspberry pi 3

Hi,

I am new to Legato and are trying to install the legato framework on raspberry pi 3 platform. As per the Raspbian info page on legato, I installed the the raspbian lite jessie on the pi and also rebuilt the kernel with the configurations mentioned in the page.

After which I proceeded to install the legato framework by executing the following command:
mkdir /mnt/flash

But this is the error I get:
mkdir: cannot create directory /mnt/flash : Permission denied

Can anybody please tell what leads to this problem.

Also just to give you a view of my understanding of this subject, I am at a level what I call as NoobLevel

Thanks in advance.

Needs root permissions. Thus has to be executed using sudo mkdir