Hello I have installed SDXC 64GB card to Turris 1.0. The card is formated with btrfs. When I try to copy large file from USB stick (ext4 formatted) router imediatelly reboots.
[ 297.201218] BTRFS info (device mmcblk0): disk space caching is enabled
[ 297.201228] BTRFS: has skinny extents
[ 297.212031] BTRFS: detected SSD devices, enabling SSD mode
[
MOUNT:
/dev/sda1 on /mnt/flash type ext4 (rw,relatime,data=ordered)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/mmcblk0 on /mnt/sd type btrfs (rw,relatime,ssd,noacl,space_cache)
root@turris:~# uname -a
Linux turris 3.18.44-93291736f4d5145ea9d62e8746031bf1-15 #1 SMP Wed Nov 30 15:33:28 CET 2016 ppc GNU/Linux
r
Have you checked whether the problem is in the SD card or in the USB flash? Try running cat /mnt/flash/large_file > /dev/null, if it triggers a reboot too.
Can you try putting the USB flash into another USB port? And does it happen generally when you copy files or just with the large file you have on the flash drive?
hello it happens after a while reading file thus I think that its some buffer problem which resides in kernel. Can you reproduce it? BTW flash is fine - I can read files at my debian desktop. I will try change port later while I’ll reach router
I’ve just tried it on two routers, one with the latest kernel in our test branch, one with the same you have. Running the cat command and copying a 1 GiB file from a Kingston DTSE9 G2 flash does not do anything nasty. How big is your file?
Sorry, but I can’t reproduce it on any of my routers - including one in the RC branch, which should have the same update history as your router. If there’s nobody else with this problem to pinpoint a common cause, I can recommend following:
Try connecting to the USB-serial console and trigger the bug, if something appears in the output
Force-reinstall kernel and all modules
Backup config and reset the router to factory defaults, ideally update it from SD card with latest image (the most brutal measure…)