Community
cancel
Showing results for 
Search instead for 
Did you mean: 
sk23
New Contributor II
1,510 Views

I want to take backup state from emmc to sdcard and restore state to sdcard.

Hi ,

How to identify the sd card connected to Edison board.

I want to take backup state from emmc to sdcard and restore data to sdcard.

Intel Edison(arduino expnasion) board and Firmware Version:159.devkit

Adruino IDE 1.6.8 on ubuntu 14.04

Firmware Version:159.devkit

Please provide complete processes for backup and restore the sate.

Regards,

Sreenivas

3 Replies
AGUIM2
New Contributor I
47 Views

Hello Sreenivas,

I can't answer all of your questions but there is one I can because in my app I also face to this problem. here is an example if you want to konw if your sd card is connected :

bool mounted = false;

bool sdPresent = false;

for (;;) {

//cout << system("date") << endl;

ifstream f;

f.open ("/dev/mmcblk1");

if (f.good()) {

f.close();

if (!mounted)

{

system("mount /dev/mmcblk1p1");

mounted = true;

}

sdPresent = true;

}

else {

f.close();

sdPresent = false;

mounted = false;

}

}

When your sd card is connected, the the file named "mmcblk1p1" should be visible in the repertory /dev of the edison system and not if your sd card is not connected.

I hope I helped you.

Regards,

Guimficus

idata
Community Manager
47 Views

Hi,

 

 

If you're looking to backup your Edison you can use the dd command as explained here http://www.instructables/id/BackupRestore-Intel-Edison/?ALLSTEPS www.instructables/id/BackupRestore-Intel-Edison/?ALLSTEPS . Make sure to follow the warnings in the link to avoid losing data in your image so that your backup is done successfully.

 

 

Sergio

 

idata
Community Manager
47 Views

Hi IoT_srinivas

 

 

Did you find our last suggestion helpful? Were you able to perform the backup process successfully?

 

 

Sergio