GPSBabel / gpsbabel

GPSBabel: convert, manipulate, and transfer data from GPS programs or GPS receivers. Open Source and supported on MacOS, Windows, Linux, and more. Pointy clicky GUI or a command line version...
https://www.gpsbabel.org
GNU General Public License v2.0
475 stars 126 forks source link

Data lost with erase=1 and basic filesystem error #333

Closed MattBlissett closed 5 years ago

MattBlissett commented 5 years ago

GPSBabel Version 1.5.4

This seems a surprising oversight, so I hope my data is just in some temporary folder -- although I can't find it.

sudo gpsbabel -i skytraq,baud=115200,erase=1 -f /dev/ttyACM0 -o gpx -F ~/France/20190331.gpx      
Cannot open '/home/matt/France/20190331.gpx' for write.  Error was 'No such file or directory'.

I'd forgotten to create the ~/France directory, but the GPS logger seems to have been erased anyway.

robertlipe commented 5 years ago

Sorry to be the one to dash your hopes, but your data is gone. I was reluctant to add that 'erase' option for that very reason. It's a destructive operation and by the time we encounter any problems on output (we document that we do things strictly left to right and we mean that - by the time the GPX file writer has opened the file, the skytraq reader had already finished with the read and the erase - in that order) it's too late.

It was also an awkward fit for us from the start that we do conversions and transfers and logger management, including erasures, really is an awkward case.

Sorry. This is the way if fundamentally works and changing it to recover this case it isn't practical.

RJL

On Sun, Mar 31, 2019 at 5:39 PM Matt Blissett notifications@github.com wrote:

GPSBabel Version 1.5.4

This seems a surprising oversight, so I hope my data is just in some temporary folder -- although I can't find it.

sudo gpsbabel -i skytraq,baud=115200,erase=1 -f /dev/ttyACM0 -o gpx -F ~/France/20190331.gpx Cannot open '/home/matt/France/20190331.gpx' for write. Error was 'No such file or directory'.

I'd forgotten to create the ~/France directory, but the GPS logger seems to have been erased anyway.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gpsbabel/gpsbabel/issues/333, or mute the thread https://github.com/notifications/unsubscribe-auth/AIUh7-5QH67i3dRenxJ5KUA3t0BeC76Fks5vcTkKgaJpZM4cUl6n .