Gentoo Archives: gentoo-user

From: wabe <wabenbau@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] The sudden disappearance of ....WHAT??? (I/O error on a SD flash card?!)
Date: Sat, 25 Mar 2017 22:30:30
Message-Id: 20170325232944.2035979d@hal9000.localdomain
In Reply to: [gentoo-user] The sudden disappearance of ....WHAT??? (I/O error on a SD flash card?!) by tuxic@posteo.de
1 tuxic@××××××.de wrote:
2
3 > Hi,
4 >
5 > (Running Gentoo Linux on a 4.9.17 vanilla (ftp.kernel.org) Linux
6 > kernel)
7 >
8 > I was doing a backyp of a 64GB SAMSUNG flash card to my
9 > harddisk....which runs for quite a while...
10 >
11 > For that I mount the partitions and tarred their contents as root
12 > to the harddisk
13 >
14 > Syddenly out of nothing/from nowhere/into thin air or whatever:
15 > read errors happens and the process stops.
16 >
17 > First I thought of the one an most hated failure of harddisks, which
18 > in years of deveopment of computer technology no company was able to
19 > fix: No space left on device.
20 >
21 > But - no,,,the error was a _READ_ error and a 'ls' of the mountpoints
22 > show....nothing but empty directories.
23 >
24 > I tried to unmount/remount the sd card and got this output:
25 > mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
26 > missing codepage or helper program, or other error
27 >
28 > In some cases useful info is found in syslog - try
29 > dmesg | tail or so.
30 >
31 > dmesg gives me:
32 > [ 236.021878] UDF-fs: warning (device sdb2): udf_fill_super: No
33 > partition found (2)
34 >
35 >
36 > UDF??? -- Those partitions are either ext4 or vfat.
37 > (A tried that with and without the -t option...)
38 >
39 > fdisk -l /dev/sdb gave me:
40 > Device Boot Start End Sectors Size Id Type
41 > /dev/sdb1 32768 73433087 73400320 35G 83 Linux
42 > /dev/sdb2 73433088 100696063 27262976 13G 83 Linux
43 > /dev/sdb3 100696064 125042687 24346624 11.6G 83 Linux
44 >
45 > So -- the partition table is still there (I had booted the PC
46 > in between...so these are no ghosts of an abondomed cache...)
47 >
48 > If a certain kernel module woyld be missing I wouldn't not
49 > able to mount the partition right before starting the backyp
50 > - but I could.
51 >
52 > The partition table is there so this part of "DMESG predicts"
53 > is also not applicable here.
54 >
55 > What happens here? Flash killed? Is there any chance to rescye
56 > some or all contents of that card? Any ideas other than
57 > hoping for an alternate reality?
58
59 You can try to recover some data with photorec (part of
60 testdisk).
61
62 Btw.: If it is a microsd card I would put it into an
63 microsd-to-sd adapter. I made some strange experiences
64 with different types of card readers when I used microsd
65 cards directly without an adapter.
66
67 --
68 Regards
69 wabe