Go Down

Topic: sda1 in /dev/ not visible sometime yun rev2 (SD problem) (Read 3749 times) previous topic - next topic

jplam29

Sometime my uSD card cant be mounted because the port never booted. The only method i currently have is the reboot.


this is recurent and I don't have any solution to reboot with linux command the port to get sda1 or sdb1 in /dev/ ... and mount to /mnt/sda1 my SD card.

Do you have a linux command to reset or reload, or what ever but no reboot the mcu to get my uSD port visible. thank you

pert

I've deleted your other cross-post @jplam29.

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a suspension from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

WhidbeyBill

I can confirm existence of multiple SDA1 errors that force the OS to set the partition to read-only. The file utility BLOCK has already tried to correct the errors by calling /usr.sbin/dosfsck, but dosfsck is not enabled or install-able in Openwrt.
System LOG
Code: [Select]
Thu Apr  9 21:09:35 2020 daemon.err block: check_filesystem: /usr/sbin/dosfsck not found
Thu Apr  9 21:09:35 2020 daemon.err block: /dev/sda2 is already mounted on /overlay
Thu Apr  9 21:09:35 2020 kern.warn kernel: [   69.135333] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Thu Apr  9 21:09:41 2020 kern.err kernel: [   75.248738] FAT-fs (sda1): error, fat_free_clusters: deleting FAT entry beyond EOF
Thu Apr  9 21:09:41 2020 kern.err kernel: [   75.251588] FAT-fs (sda1): Filesystem has been set read-only

When set to read-only, the sketches are blocked from writing data to the partition and this renders my system testing useless.  From what I can glean from openwrt forums, fsck.fat should be enabled and utilized instead.
The issue has been mentioned and a correction posted but I have no idea how to compile the firmware.
https://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg48916.html

Go Up