Go to advanced search

by ppparadox
Tue Sep 30, 2014 8:25 pm
Forum: Troubleshooting
Topic: Failing to copy files to USB
Replies: 12
Views: 1520

Re: Failing to copy files to USB

I managed to solve the issue. The situation was the following, a bit more complicated than i initially said: /etc/rc.local contained calls to several scripts. The first one was meant for the first boot only and after a few things had to shutdown but the very next script was the one containing the pr...
by ppparadox
Tue Sep 30, 2014 7:09 pm
Forum: Troubleshooting
Topic: Failing to copy files to USB
Replies: 12
Views: 1520

Re: Failing to copy files to USB

File system is FAT32, unmounting before shutdown is the only thing i haven't tried yet. Reformatting is out of the question because of the nature of what i'm trying to accomplish (windows compatibility yay). But is there that big a difference from calling sync?
by ppparadox
Tue Sep 30, 2014 6:53 pm
Forum: Troubleshooting
Topic: Failing to copy files to USB
Replies: 12
Views: 1520

Re: Failing to copy files to USB

Ok i did some more testing and now i think i've narrowed down the problem: if i run the script without the final "shutdown -h now" everything is OK.
Still it is very worrying that i'm losing data even after TWO calls to sync and a proper shutdown. How come?
by ppparadox
Tue Sep 30, 2014 4:57 pm
Forum: Troubleshooting
Topic: Failing to copy files to USB
Replies: 12
Views: 1520

Re: Failing to copy files to USB

Been there, done that. No problem whatsoever. Also as i said the problem is that some files get copied, not all of them, which smells like some ugly form of caching is in the way.
by ppparadox
Tue Sep 30, 2014 4:13 pm
Forum: Troubleshooting
Topic: Failing to copy files to USB
Replies: 12
Views: 1520

Re: Failing to copy files to USB

No errors, the -f flag is just to overwrite without prompting.
by ppparadox
Tue Sep 30, 2014 10:39 am
Forum: Troubleshooting
Topic: Failing to copy files to USB
Replies: 12
Views: 1520

Failing to copy files to USB

Hi, i'm having issues with my raspberry pi model B (running a fully up-to-date raspbian) and my 8GB USB storage device: i am developing a small embedded system which has to check for the presence of certain files inside the USB device and copy them (if they're not there). My problem is that only few...

Go to advanced search