Arduino Forum

Products => Arduino Yún => Topic started by: CiccioSgamino on Feb 28, 2014, 01:20 pm

Title: Problem with microSD
Post by: CiccioSgamino on Feb 28, 2014, 01:20 pm
I'had insert the microSD in the Yun's slot, i connect to YUN with PuTTY to check if the SD was correctly detected (root@YUN:~dmesg )  but i did't find nothing like "sda: sda1 " ....  and the same is use (root@YUN:~df) no folder like  "/dev/sda1" !!

What does it means ?   The SD was not correctly detected or sometingd wrong on OpenWRT ?

* YUN is with default config
** SD is a SanDisk microSD 8Gb
Title: Re: Problem with microSD
Post by: smakson on Feb 28, 2014, 07:50 pm
did you try /mnt/sda1 ?
Title: Re: Problem with microSD
Post by: sonnyyu on Mar 01, 2014, 08:13 pm
Install sofware:

Code: [Select]
opkg update
opkg install fdisk
opkg install mkdosfs
opkg install e2fsprogs
opkg install nano


Partition microSD:

http://www.howtogeek.com/106873/how-to-use-fdisk-to-manage-partitions-on-linux/ (http://www.howtogeek.com/106873/how-to-use-fdisk-to-manage-partitions-on-linux/)

Code: [Select]
fdisk -l

Format  microSD( base on the format you need only run one of them):

Code: [Select]
mkdosfs -F 32 /dev/sda1
mke2fs -t ext2 /dev/sda1
mke2fs -t ext3 /dev/sda1
mke2fs -t ext4 /dev/sda1


Mount microSD:

Code: [Select]
mkdir -p /mnt/sda1
mount  /dev/sda1 /mnt/sda1
Title: Re: Problem with microSD
Post by: FormulaArduino on Jul 24, 2014, 09:58 am
I have similar problems:

root@Arduino:~# mkdir -p /mnt/sda1
root@Arduino:~# mount  /dev/sda1 /mnt/sda1
mount: mounting /dev/sda1 on /mnt/sda1 failed: Device or resource busy

How should I mount my SD card? Thanks.
Title: Re: Problem with microSD
Post by: sonnyyu on Jul 24, 2014, 01:53 pm
output of

Code: [Select]
fdisk -l
Title: Re: Problem with microSD
Post by: pellumb on Oct 10, 2015, 10:34 pm
sda not mounting.... WWW folder is not captured over wifi; crapy arduino yun!!!
Title: Re: Problem with microSD
Post by: pellumb on Oct 11, 2015, 12:19 am
I have tried everything  but sd it won't mount....
Title: Re: Problem with microSD
Post by: PCWorxLA on Oct 12, 2015, 07:02 am
sda not mounting.... WWW folder is not captured over wifi; crapy arduino yun!!!
Maybe you just don't know how to use it?

Ok, seriously, try to find the source of your problem rather than just cursing around...

For starters, what size is the MicroSD card? The reader in the Yun is SD/SDHC only, meaning you won't be able to use any SD card that's larger than 32GB, as that would be an SDXC card...

Beside that, MicroSD cards/readers are notorious to fail to recognize/read because the contact "fingers" are very fragile and even subtle deformation from constant removal/insertion or worse, a try to force insertion upside down will cause issues...

Ralf
Title: Re: Problem with microSD
Post by: jonahn2 on Mar 30, 2016, 07:37 am
Hey guys. Figured it out...

You need to use this line of code
Code: [Select]
ln -s /mnt/sda1/arduino/www /www/sd

and you cant have a folder sd in /www/
It will create a symbolic link which looks like this...