I installed bitcoin and bitcoin-qt on my raspberry-pi and was downloading the blockchain on an external device (usb stick) connected to it when the raspberry-pi crashed. Now i can't make bitcoin-qt catch up. After calling:
bitcoin-qt -datadir=/media/usb/.bitcoin
it starts trying to sync and then crashes. This is what i get in the logs:
2016-04-12 09:33:08 Pre-allocating up to position 0x900000 in rev00378.dat
2016-04-12 09:33:08 Unable to open file /media/usb/.bitcoin/blocks/rev00378.dat
2016-04-12 09:33:08 ERROR: UndoWriteToDisk: OpenUndoFile failed
2016-04-12 09:33:08 *** Failed to write undo data
2016-04-12 09:33:20 ERROR: ConnectTip(): ConnectBlock 00000000000000000517b6c57bb2977b74285733d4be2f440a0981b2249386e6 failed
2016-04-12 09:33:25 scheduler thread interrupt
2016-04-12 09:33:25 Shutdown: In progress...
2016-04-12 09:33:25 StopNode()
2016-04-12 09:33:25 Shutdown: Failed to write fee estimates to /media/usb/.bitcoin/fee_estimates.dat
2016-04-12 09:33:25 Unable to open file /media/usb/.bitcoin/blocks/blk00380.dat
2016-04-12 09:33:25 Unable to open file /media/usb/.bitcoin/blocks/rev00380.dat
2016-04-12 09:33:27 IO error: /media/usb/.bitcoin/chainstate/1279395.log: Read-only file system
2016-04-12 09:33:27 *** System error while flushing: Database I/O error