Katso myös millaisia virheviestejä kernelin lokissa näkyy:
[2087342.456016] usb 4-2: new full-speed USB device number 7 using uhci_hcd
[2087342.813065] usb 4-2: New USB device found, idVendor=091e, idProduct=240c
[2087342.813070] usb 4-2: New USB device strings: Mfr=0, Product=0, SerialNumber=5
[2087342.813074] usb 4-2: SerialNumber: 0000e62b0271
[2087342.816100] usb-storage 4-2:1.0: USB Mass Storage device detected
[2087342.816163] scsi31 : usb-storage 4-2:1.0
[2087343.820122] scsi 31:0:0:0: Direct-Access Garmin Edge 500 Flash 1.00 PQ: 0 ANSI: 5
[2087343.821996] sd 31:0:0:0: Attached scsi generic sg4 type 0
[2087343.830117] sd 31:0:0:0: [sdd] 110336 512-byte logical blocks: (56.4 MB/53.8 MiB)
[2087343.833101] sd 31:0:0:0: [sdd] Write Protect is off
[2087343.833105] sd 31:0:0:0: [sdd] Mode Sense: 23 00 00 00
[2087343.836099] sd 31:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[2087343.877113] sdd:
[2087343.894100] sd 31:0:0:0: [sdd] Attached SCSI removable disk
[2087489.830968] systemd-hostnamed[24394]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[2087505.530401] FAT-fs (sdd): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[2087790.414441] FAT-fs (sdd): error, fat_bmap_cluster: request beyond EOF (i_pos 27799)
[2087790.414447] FAT-fs (sdd): Filesystem has been set read-only
[2087790.414451] FAT-fs (sdd): error, fat_bmap_cluster: request beyond EOF (i_pos 27799)
[2087790.414454] FAT-fs (sdd): error, fat_bmap_cluster: request beyond EOF (i_pos 27799)
[2087790.414457] FAT-fs (sdd): error, fat_bmap_cluster: request beyond EOF (i_pos 27799)
[2087790.414460] FAT-fs (sdd): error, fat_bmap_cluster: request beyond EOF (i_pos 27799)
[2087790.414463] FAT-fs (sdd): error, fat_bmap_cluster: request beyond EOF (i_pos 27799)
Eli se sanoo "Filesystem has been set read-only". Mitenkäs sen poistan?
Tarkista, mikä on GPS-loggerin massamuistilaite (/dev/sdX) vaikka komennolla:
Tiedostojärjestelmä 1K-lohkot Käyt Vapaana Käy% Liitospiste
udev 1882928 4 1882924 1% /dev
tmpfs 378744 1108 377636 1% /run
/dev/sda5 23899004 16634252 6027712 74% /
none 4 0 4 0% /sys/fs/cgroup
none 5120 4 5116 1% /run/lock
none 1893712 820 1892892 1% /run/shm
none 102400 72 102328 1% /run/user
/dev/sda1 1888268 673264 1101036 38% /boot
/dev/sdc1 2884153072 1338568376 1399055032 49% /home
/dev/sdd 55042 1926 53116 4% /media/ari/GARMIN
Kas, sdd:hän se on...
Irrota tiedostojärjestelmä ja korjaa fsck:lla:
umount /media/ari/GARMIN
fsck.fat /dev/sdX1
ari@ari:~$ sudo fsck.fat /dev/sdd
[sudo] password for ari:
fsck.fat 3.0.26 (2014-03-07)
0x25: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 1
FATs differ but appear to be intact. Use which FAT ?
1) Use first FAT
2) Use second FAT
? 2
/.VolumeIcon.icns
Contains a free cluster (17). Assuming EOF.
/.VolumeIcon.icns
File size is 119664 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Garmin/Garmintriangletm.ico
Contains a free cluster (2). Assuming EOF.
/Garmin/Garmintriangletm.ico
File size is 25214 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Garmin/gmaptz.img
Contains a free cluster (76). Assuming EOF.
/Garmin/gmaptz.img
File size is 598016 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Garmin/GarminDevice.xml
Contains a free cluster (384). Assuming EOF.
/Garmin/GarminDevice.xml
File size is 7803 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Garmin/Activities/2015-12-26-20-12-04.fit and
/Garmin/Activities/2015-12-24-13-39-07.fit
share clusters.
1) Truncate first to 0 bytes
2) Truncate second to 0 bytes
? 1
/Garmin/Activities/2015-12-24-13-39-07.fit
File size is 27924 bytes, cluster chain length is 8192 bytes.
Truncating file to 8192 bytes.
Reclaimed 409 unused clusters (837632 bytes).
Leaving filesystem unchanged.
/dev/sdd: 37 files, 302/27521 clusters
ari@ari:~$
Mitä tuo sanoo "Leaving filesystem unchanged." Siis eikö tehnytkän mitään?
Ja sitten kokeilemaan:
ari@ari:/media/ari/GARMIN/Garmin/Activities$ ll
yhteensä 76
drwx------ 2 ari ari 2048 joulu 27 19:37 ./
drwx------ 14 ari ari 2048 elo 22 1999 ../
-rw-r--r-- 1 ari ari 27924 joulu 24 14:57 2015-12-24-13-39-07.fit
-rw-r--r-- 1 ari ari 22140 joulu 25 20:12 2015-12-25-19-20-54.fit
-rw-r--r-- 1 ari ari 6625 joulu 27 19:37 2015-12-26-20-12-04.fit
-rw-r--r-- 1 ari ari 12556 joulu 27 20:47 2015-12-27-19-37-48.fit
ari@ari:/media/ari/GARMIN/Garmin/Activities$ cp * ~/
cp: virhe luettaessa tiedostoa ”2015-12-24-13-39-07.fit”: I/O-virhe
cp: failed to extend ”/home/ari/2015-12-24-13-39-07.fit”: I/O-virhe
ari@ari:/media/ari/GARMIN/Garmin/Activities$
Eli eipä tuntunut auttavan... Mitäs nyt?