Arduino Yun Datalogger problem

Thanks it worked now, i was having sda1 folder instead of sd. So changed the code to sda1 and it worked.