Nagrywałem dane na dysk USB z UBUNTU 16.04. Spieszyłem się. Nagrywanie się wlokło. Anulowałem myśląc, że wrócę do nagrywania później. Niestety dysk zrobił się tylko do odczytu. poniższa komenda pokazuje, że zatrzymując nagrywanie część zdjęć została niezakończona.
jacek@xxxxxxxxxxxx:~$ sudo dosfsck -av /dev/sdb1
fsck.fat 3.0.28 (2015-05-16)
Checking we can access the last sector of the filesystem
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
Automatically removing dirty bit.
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
8192 bytes per cluster
928 reserved sectors
First FAT starts at byte 475136 (sector 928)
2 FATs, 32 bit entries
8151040 bytes per FAT (= 15920 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 16777216 (sector 32768)
2037707 data clusters (16692895744 bytes)
63 sectors/track, 255 heads
840 hidden sectors
32636088 sectors total
FATs differ but appear to be intact. Using first FAT.
/Dana_LG/20160328_144825.jpg
Contains a free cluster (304146). Assuming EOF.
/Dana_LG/20160328_144825.jpg
File size is 1986359 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Dana_LG/20160320_132553.jpg
Contains a free cluster (564864). Assuming EOF.
/Dana_LG/20160320_132553.jpg
File size is 2322935 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Dana_LG/20160328_144723.jpg
Contains a free cluster (449133). Assuming EOF.
/Dana_LG/20160328_144723.jpg
File size is 2158775 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Dana_LG/20160704_142327.jpg
Contains a free cluster (564864). Assuming EOF.
/Dana_LG/20160704_142327.jpg
File size is 2768695 bytes, cluster chain length is 745472 bytes.
Truncating file to 745472 bytes.
/Dana_LG/20160704_142330.jpg
Contains a free cluster (565111). Assuming EOF.
/Dana_LG/20160704_142330.jpg
File size is 2781559 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Dana_LG/20160320_132431.jpg and
/Dana_LG/20160704_142333.jpg
share clusters.
Truncating second to 819200 bytes.
/Dana_LG/20160704_142333.jpg
File size is 2195703 bytes, cluster chain length is 434176 bytes.
Truncating file to 434176 bytes.
/Dana_LG/20160320_132629.jpg and
/Dana_LG/20160704_142335.jpg
share clusters.
Truncating second to 811008 bytes.
/Dana_LG/20160704_142335.jpg
File size is 2851959 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Dana_LG/20160322_154201_Pano.jpg and
/Dana_LG/20160704_142338.jpg
share clusters.
Truncating second to 155648 bytes.
/Dana_LG/20160704_142338.jpg
File size is 2631031 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Dana_LG/20160328_144339.jpg and
/Dana_LG/20160704_142342.jpg
share clusters.
Truncating second to 1409024 bytes.
/Dana_LG/20160704_142342.jpg
File size is 2463991 bytes, cluster chain length is 65536 bytes.
Truncating file to 65536 bytes.
/Dana_LG/20160328_144411.jpg and
/Dana_LG/20160704_142344.jpg
share clusters.
Truncating second to 1048576 bytes.
/Dana_LG/20160704_142344.jpg
File size is 2449079 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Dana_LG/20160328_144419.jpg and
/Dana_LG/20160704_142446.jpg
share clusters.
Truncating second to 1081344 bytes.
/Dana_LG/20160704_142446.jpg
File size is 1908855 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Dana_LG/20160328_144455.jpg and
/Dana_LG/20160704_142530.jpg
share clusters.
Truncating second to 966656 bytes.
/Dana_LG/20160704_142530.jpg
File size is 1727415 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Dana_LG/20160328_144455.jpg and
/Dana_LG/20160704_142547.jpg
share clusters.
Truncating second to 2695168 bytes.
/Dana_LG/20160704_142547.jpg
File size is 1513335 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
/Dana_LG/20160704_142603.jpg
File size is 1703287 bytes, cluster chain length is 1097728 bytes.
Truncating file to 1097728 bytes.
/Dana_LG/20160704_142615.jpg
File size is 1858423 bytes, cluster chain length is 1556480 bytes.
Truncating file to 1556480 bytes.
/Dana_LG/20160704_142625.jpg
Contains a free cluster (568064). Assuming EOF.
/Dana_LG/20160704_142625.jpg
File size is 1856375 bytes, cluster chain length is 57344 bytes.
Truncating file to 57344 bytes.
/Dana_LG/20160704_144508.jpg
Contains a free cluster (568284). Assuming EOF.
/Dana_LG/20160704_144508.jpg
File size is 1836727 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
Reclaiming unconnected clusters.
Reclaimed 1120 unused clusters (9175040 bytes) in 8 chains.
Checking free cluster summary.
Free cluster summary wrong (1472936 vs. really 1472123)
Auto-correcting.
Performing changes.
/dev/sdb1: 1012 files, 565584/2037707 clusters
Wydaje mi się, że próbowałem wszystkiego.
Mój stary post:
http://forum.linux.pl/index.php/topic,24371.msg131728.html#msg131728
a w nim komendy
sudo dd if=/dev/zero of=/dev/sdb bs=2048 count=1
i
sudo dd if=/dev/zero of=/dev/sdb bs=4k
do tego sudo chmod 777 /media/jacek/842A-6E2B/
sudo mkfs.msdos -F 32 /dev/sdb1
W gparted próbowałem formatować (oczywiście odmontowując wstępnie), tworzyć tablicę partycji i pewnie kilka innych sposobów, których jeszcze nie wymieniłem.
I nic! Konsekwentnie pojawia się komunikat: dysk tylko do odczytu.
Proszę o pomoc.
Dane polecenia dmesg | tail -n25
[ 7177.594745] cdc_ether 2-1.2:1.3 usb0: register 'cdc_ether' at usb-0000:00:1d.0-1.2, CDC Ethernet Device, 02:1a:2f:5b:4d:25
[ 7178.149805] cdc_ether 2-1.2:1.3 enp0s29u1u2i3: renamed from usb0
[ 7178.169765] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u2i3: link is not ready
[ 7178.169939] cdc_ether 2-1.2:1.3 enp0s29u1u2i3: kevent 12 may have been dropped
[ 7178.169947] cdc_ether 2-1.2:1.3 enp0s29u1u2i3: kevent 12 may have been dropped
[ 7178.170634] cdc_ether 2-1.2:1.3 enp0s29u1u2i3: kevent 11 may have been dropped
[ 7381.369971] usb 2-1.2: USB disconnect, device number 23
[ 7381.372691] cdc_ether 2-1.2:1.3 enp0s29u1u2i3: unregister 'cdc_ether' usb-0000:00:1d.0-1.2, CDC Ethernet Device
[12921.899463] usb 2-1.2: new high-speed USB device number 24 using ehci-pci
[12921.999651] usb 2-1.2: New USB device found, idVendor=058f, idProduct=6387
[12921.999659] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[12921.999663] usb 2-1.2: Product: Mass Storage
[12921.999667] usb 2-1.2: Manufacturer: Generic
[12921.999670] usb 2-1.2: SerialNumber: 1F4535DC
[12922.000147] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[12922.002072] scsi host13: usb-storage 2-1.2:1.0
[12923.001835] scsi 13:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
[12923.002441] sd 13:0:0:0: Attached scsi generic sg2 type 0
[12923.003635] sd 13:0:0:0: [sdb] 32636928 512-byte logical blocks: (16.7 GB/15.6 GiB)
[12923.004819] sd 13:0:0:0: [sdb] Write Protect is off
[12923.004827] sd 13:0:0:0: [sdb] Mode Sense: 23 00 00 00
[12923.005908] sd 13:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[12923.013420] sdb: sdb1
[12923.017254] sd 13:0:0:0: [sdb] Attached SCSI removable disk
[12923.513079] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Zrobiłem jak napisałeś. Niestety bez zmian. System dalej jest tylko do odczytu i nie mam pomysłu co dalej. Wyniki wykonania komend:
jacek@xxxxxxxxxxxxxx:~$ sudo umount /media/jacek/842A-6E2B
jacek@xxxxxxxxxxxxxx:~$ sudo wipefs -a /dev/sdb1
/dev/sdb1: 8 bytes were erased at offset 0x00000052 (vfat): 46 41 54 33 32 20 20 20
/dev/sdb1: 1 byte was erased at offset 0x00000000 (vfat): eb
/dev/sdb1: 2 bytes were erased at offset 0x000001fe (vfat): 55 aa
jacek@xxxxxxxxxxxxxx:~$ sudo wipefs -a /dev/sdb
/dev/sdb: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
/dev/sdb: calling ioctl to re-read partition table: Sukces