SD card will not mount

I was wondering what the next step should be for debugging my problem.

My Yun was working fine for the past week but suddenly it stopped auto mounting my SD cards. When I ssh in and look at the /mnt directory nothing shows up. I tried different SD cards, reformatting different cards, and even tried a brand new one, but none will auto mount (all fat32 format). My PC can read all the cards fine so I am unsure what the problem is.

I also tried a complete reset (hold wifi button down 30 seconds) but that did not rectify the situation.

The Yun has no problem auto mounting a usb drive.

Any advice appreciated.

Have you found a fix for this yet?

I've only had my Yun a few days and so far it has not once mounted my 2GB SD card.
If i SSH into the Yun i can see it as /dev/sda, and in the Yun web interface under mount points it is available if i want to create a new mount point.
The /mnt folder is empty.

I did try:

  1. Create a folder named 'sd' in /mnt.

  2. Create a mount point using the web interface, mounting /dev/sda to /mnt/sd.

I could then browse the SD card using SSH, but uploading a sketch which contains a www folder always shows the error:
Warning: Problem accessing board folder /www/sd

All attempts to access the SD card using a browser have also failed.

Any ideas?

martin.

warwound:
Have you found a fix for this yet?

I've only had my Yun a few days and so far it has not once mounted my 2GB SD card.
If i SSH into the Yun i can see it as /dev/sda, and in the Yun web interface under mount points it is available if i want to create a new mount point.
The /mnt folder is empty.

Have a look at the system log when you insert the SD-card.

Start or reboot the Yun without the Sd-card.
Open a shell (ssh) on the Yun.
Have a look at the system log

root@Arduino:~# dmesg -c

You will see a lot of messages from booting the Yun.
The -c options clears all the current messages.
Now plug you SD card in and run dmesg again. On my yYun it looks like this

root@Arduino:~# dmesg
[  405.810000] sd 0:0:0:0: [sda] 15564800 512-byte logical blocks: (7.96 GB/7.42 GiB)
[  405.900000] sd 0:0:0:0: [sda] No Caching mode page present
[  405.900000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  405.900000] sd 0:0:0:0: [sda] No Caching mode page present
[  405.910000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  405.990000]  sda: sda1
root@Arduino:~# ls -all /mnt/
drwxr-xr-x    1 root     root             0 Oct  5 12:17 .
drwxr-xr-x    1 root     root             0 Aug  8 21:48 ..
lrwxrwxrwx    1 root     root             9 Oct  5 12:17 sd -> /mnt/sda1
drwxr-xr-x    3 root     root         32768 Jan  1  1970 sda1

There is no need to create the mount dir for the SD manually.

BTW. I bought a SONY SD-card labed SR8UY 40MBit/s. I remember reading some blog posts about the Raspberry PI not accepting certain SD-Cards

Great i got it all working!

I started by using Windows 8 to format the SD card, i choose exFAT as i thought i'd seen exFAT listed in the available file systems in the web interface under 'Add Mount Point' (i was wrong exFAT is not listed there).

Booted the YUN without the SD card, ran dmesg -c and then inserted the SD card.
dmesg now showed:

root@Anonduino:~# dmesg
[ 166.010000] sd 0:0:0:0: [sda] 3862528 512-byte logical blocks: (1.97 GB/1.84 GiB)
[ 166.010000] sd 0:0:0:0: [sda] No Caching mode page present
[ 166.010000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 166.110000] sd 0:0:0:0: [sda] No Caching mode page present
[ 166.110000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 166.120000] sda: unknown partition table

I rebooted my PC to PartedMagic and used Parted to format the SD card as FAT32 file system.
Rebooted to Windows 8 and SSH'd into the YUN, inserted the SD card and ran dmesg:

root@Anonduino:~# dmesg
[ 1953.710000] sd 0:0:0:0: [sda] 3862528 512-byte logical blocks: (1.97 GB/1.84 GiB)
[ 1953.710000] sd 0:0:0:0: [sda] No Caching mode page present
[ 1953.720000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 1953.810000] sd 0:0:0:0: [sda] No Caching mode page present
[ 1953.810000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 1953.820000] sda: sda1
root@Anonduino:~# ls -all /mnt/
drwxr-xr-x 1 root root 0 Oct 6 10:01 .
drwxr-xr-x 1 root root 0 Jan 1 1970 ..
drwxr-xr-x 2 root root 4096 Jan 1 1970 sda1

I rebooted the YUN and ran ls again:

root@Anonduino:~# ls -all /www/
drwxr-xr-x 1 root root 0 Oct 6 10:06 .
drwxr-xr-x 1 root root 0 Jan 1 1970 ..
drwxr-xr-x 2 root root 27 Aug 19 15:22 cgi-bin
-rw-r--r-- 1 root root 436 Jul 30 14:06 index.html
drwxr-xr-x 2 root root 53 Aug 19 15:22 keystore_manager_example
drwxr-xr-x 4 root root 61 Aug 19 15:21 luci-static
lrwxrwxrwx 1 root root 21 Oct 6 10:06 sd -> /mnt/sda1/arduino/www

Finally uploaded a sketch over wifi, the sketch folder contained a folder named www with a few small files in it.
The sketch uploaded and browsing to the YUN's sd folder saw my sketch folder in which were my files.

Thanks for the help.

Martin.

Hi warwound,
thanks for having pointed out this problem.
I've checked linino filesystems support and indeed exFAT (aka: FAT64) is NOT supported.

Hi,

I have the same problems and I can not solve it. Have you any suggestions?

Warning: Problem accessing board folder /www/sd

root@arduino:~# ls -la /mnt /mnt/sdal /www
ls: /mnt/sdal: No such file or directory
/mnt:
drwxr-xr-x 2 root root 3 Aug 19 16:21 .
drwxr-xr-x 1 root root 0 Jan 1 1970 ..

/www:
drwxr-xr-x 5 root root 111 Aug 19 16:22 .
drwxr-xr-x 1 root root 0 Jan 1 1970 ..
drwxr-xr-x 2 root root 27 Aug 19 16:22 cgi-bin
-rw-r--r-- 1 root root 436 Jul 30 15:06 index.html
drwxr-xr-x 2 root root 53 Aug 19 16:22 keystore_manager_example
drwxr-xr-x 4 root root 61 Aug 19 16:21 luci-static

Regards

frankk1 tell us what you have done before getting the error. Have you formatted the sd card? Please explain us how you did

yes, I formatted FAT32 and created on SD arduino/www on PC.

I have problems only with a sketch "TemperatureWebPanel".

I tested two SD cards ( 1G and 8G) and still have problems with "Warning: Problem accessing board folder /www/sd".

Regards

Franc

Look at the dmesg command i used in my post: SD card will not mount - #4 by warwound - Arduino Yún - Arduino Forum

It might help you track down what's going wrong.

Martin.

Thanks, I solved with faster SD card

Franc

Denbo:
I was wondering what the next step should be for debugging my problem.

My Yun was working fine for the past week but suddenly it stopped auto mounting my SD cards. When I ssh in and look at the /mnt directory nothing shows up. I tried different SD cards, reformatting different cards, and even tried a brand new one, but none will auto mount (all fat32 format). My PC can read all the cards fine so I am unsure what the problem is.

I also tried a complete reset (hold wifi button down 30 seconds) but that did not rectify the situation.

The Yun has no problem auto mounting a usb drive.

Any advice appreciated.

I got exactly the same problem as Denbo, it was working, and the Linino doesn't detect my card anymore. I made the same tests and resets, it still doesn't detect the SD cards (formatted in FAT32).
Dendo, did you succeed to solve your problem ?

mkdosfs -F 32 /dev/sda1

http://forum.arduino.cc/index.php?topic=222069.msg1614584#msg1614584

i have the same problem with a usb stick if i do dmesg -c it shows me

[ 683.620000] usb 1-1: USB disconnect, device number 2
[ 690.280000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 690.430000] usb 1-1: New USB device found, idVendor=1f75, idProduct=0817
[ 690.430000] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 690.430000] usb 1-1: Product: USB 2.0
[ 690.430000] usb 1-1: Manufacturer: innostor
[ 692.300000] scsi1 : usb-storage 1-1:1.0
[ 693.300000] scsi 1:0:0:0: Direct-Access IS817 innostor 1.00 PQ: 0 ANSI: 6
[ 693.310000] sd 1:0:0:0: [sda] 61440000 512-byte logical blocks: (31.4 GB/29.2 GiB)

Nothing is in the /mnt folder and in the /dev folder is only a folder sda /dev/sda but i cant look into it

The Usb-flash is NTFS

mkdir -p /mnt/sda1
mount  /dev/sda1 /mnt/sda1