recovering a USB memory stick corrupted by Win7 improper dismount--> sudo fsck /dev/sdb1 fsck from util-linux 2.28 fsck.fat 3.0.26 (2014-03-07) 0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt. 1) Remove dirty bit 2) No action ? 1 --> ps -ef | grep fsck root 3298 1636 0 09:39 pts/0 00:00:00 sudo fsck /dev/sdb1 root 3299 3298 0 09:39 pts/0 00:00:00 fsck /dev/sdb1 root 3300 3299 0 09:39 pts/0 00:00:00 fsck.vfat /dev/sdb1 FATs differ but appear to be intact. Use which FAT ? 1) Use first FAT 2) Use second FAT ? 1 Invalid input. ? 2 Orphaned long file name part "journals.repair" 1: Delete. 2: Leave it. ? 1 /.Spotlight-V100/Store-V2/0D2AD312-A24B-4439-BFFE-90B141D16009/... Bad short file name ... 1) Drop file 2) Rename file 3) Auto-rename 4) Keep it ? 1 j#|δotlight-V100/Store-V2/0D2AD312-A24B-4439-BFFE-90B141D16009... j#|δd short file name (... 1) Drop file 2) Rename file 3) Auto-rename 4) Keep it ? 1 /.Spotlight-V100/Store-V2/0D2AD312-A24B-4439-BFFE-90B141D16009/... Bad short file name ... 1) Drop file 2) Rename file 3) Auto-rename 4) Keep it ? 1 /.Spotlight-V100/Store-V2/0D2AD312-A24B-4439-BFFE-90B141D16009/∙... Bad short file name ... 1) Drop file 2) Rename file 3) Auto-rename 4) Keep it ? /.Spotlight-V100/Store-V2/0D2AD312-A24B-4439-BFFE-90B141D16009/... Start cluster beyond limit (519591349 > 1946618). Truncating file. Reclaimed 228206 unused clusters (934731776 bytes). Free cluster summary wrong (1682235 vs. really 1910724) 1) Correct 2) Don't correct ? 1 Leaving filesystem unchanged. /dev/sdb1: 134 files, 35893/1946617 clusters ---------------------------------- --> mkdir tmp ; sudo mount /dev/sdb1 /home/luser/tmp ; df -h mount: /dev/sdb1: can't read superblock Filesystem Size Used Avail Use% Mounted on ---------------------------------- ------------------------------------------------ --> sudo fsck -y /dev/sdb1 fsck from util-linux 2.28 fsck.fat 3.0.26 (2014-03-07) 0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt. Automatically removing dirty bit. .... (REALLY TAKES A MICROSOFT SYSTEM TO SCREW UP A THUMB DRIVE!!! Win7 system..) this memory stick had been used on MacOSx, Win10, Linux and was corrupted by a Win7 system... fixing it on a linux system... maybe... .... Cluster 1806076 out of range (235157758 > 1946618). Setting to EOF. Cluster 1806077 out of range (18346011 > 1946618). Setting to EOF. / Contains a free cluster (1402296). Assuming EOF. /.Spotlight-V100/Store-V2/0D2AD312-A24B-4439-BFFE-90B141D16009 Contains a free cluster (752756). Assuming EOF. Orphaned long file name part "journals.repair" Auto-deleting. /.Spotlight-V100/Store-V2/0D2AD312-A24B-4439-BFFE-90B141D16009/PSID.DB Contains a free cluster (753941). Assuming EOF. /.Spotlight-V100/Store-V2/0D2AD312-A24B-4439-BFFE-90B141D16009/PSID.DB File size is 20480 bytes, cluster chain length is 16384 bytes. Truncating file to 16384 bytes. ... taking a very long time... ------------------------------------------------------------------------------ --> ps -ef | grep fsck root 4322 1636 0 09:46 pts/0 00:00:00 sudo fsck -y /dev/sdb1 root 4323 4322 0 09:46 pts/0 00:00:00 fsck -y /dev/sdb1 root 4324 4323 97 09:46 pts/0 01:13:54 fsck.vfat -y /dev/sdb1 ------------------------------------------------------------------------------ PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4324 root 20 0 48388 42492 1912 R 99.67 0.860 79:27.23 fsck.vfat ------------------------------------------------------------------------------ more time passing... ------------------------------------------------------------------------------ PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4324 root 20 0 48388 42492 1912 R 83.33 0.860 89:55.60 fsck.vfat ------------------------------------------------------------------------------ more time passing... ------------------------------------------------------------------------------ ------------------------------------------------ --> time sudo fsck -y /dev/sdb1 gave up... Truncating file to 16384 bytes. ^C real 324m48.939s user 320m49.522s sys 1m30.750s --------------------- --> mount --help Usage: mount [-lhV] mount -a [options] mount [options] [--source] |
|
Wagoneers FULL SIZE JEEPS JeepMeister "Jeep is America's -Enzo Ferrari MeisterTech Diesels + |
One Page Overview of Linux Commands click for an image of the 5 essential Linux commands An Intro to Linux |
at Midway Auto on SR9 in Snohomish, or at Northland Diesel in Bellingham, WA |