Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9881 Discussions

Write file into USB flash disk with intel edison

HLI35
Novice
1,022 Views

Could anyone tell me how to write a file into USB flash disk on Intel Edison? Or how can i access the USB disk through edison. Because I want to write the program log into the disk instead of into edison. Thanks for any help.

0 Kudos
1 Solution
idata
Community Manager
109 Views

Hi Mozzie,

 

 

Thanks for reaching out.

 

 

In order to use your USB flash drive in the Edison, first, you need to verify that its file system is in a compatible format like FAT32 and then follow this steps to mount a flash drive on Edison:

 

  • mkdir /media/flash_drive_directory
  • mount /dev/sda1 /media/flash_drive_directory

 

Note: look for the flash drive in the directory /dev or use ls /dev/sd* command, it should appear as sda1 or sdb1.

 

 

Now you should be able to connect a USB flash drive and write your content in /media/flash_drive_directory.

 

 

Hope you find this information useful.

 

 

Regards,

 

-Yermi A.

 

View solution in original post

1 Reply
idata
Community Manager
110 Views

Hi Mozzie,

 

 

Thanks for reaching out.

 

 

In order to use your USB flash drive in the Edison, first, you need to verify that its file system is in a compatible format like FAT32 and then follow this steps to mount a flash drive on Edison:

 

  • mkdir /media/flash_drive_directory
  • mount /dev/sda1 /media/flash_drive_directory

 

Note: look for the flash drive in the directory /dev or use ls /dev/sd* command, it should appear as sda1 or sdb1.

 

 

Now you should be able to connect a USB flash drive and write your content in /media/flash_drive_directory.

 

 

Hope you find this information useful.

 

 

Regards,

 

-Yermi A.

 

Reply