1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114 | # sudo lspci -v -nn
23:00.1 System peripheral [0880]: JMicron Technology Corp. SD/MMC Host Controller [197b:2392] (rev 30)
Subsystem: Hewlett-Packard Company SD/MMC Host Controller [103c:17ab]
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at d4504000 (32-bit, non-prefetchable) [size=256]
Expansion ROM at d4508000 [disabled] [size=32K]
Capabilities: [a4] Power Management version 3
Capabilities: [80] Express Endpoint, MSI 00
Capabilities: [94] MSI: Enable- Count=1/1 Maskable- 64bit-
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci
23:00.2 SD Host controller [0805]: JMicron Technology Corp. Standard SD Host Controller [197b:2391] (rev 30) (prog-if 01)
Subsystem: Hewlett-Packard Company Standard SD Host Controller [103c:17ab]
Flags: fast devsel, IRQ 18
Memory at d4503000 (32-bit, non-prefetchable) [size=256]
Capabilities: [a4] Power Management version 3
Capabilities: [80] Express Endpoint, MSI 00
Capabilities: [94] MSI: Enable- Count=1/1 Maskable- 64bit-
Kernel modules: sdhci_pci
# sudo lshw
*-generic:0
description: System peripheral
product: SD/MMC Host Controller
vendor: JMicron Technology Corp.
physical id: 0.1
bus info: pci@0000:23:00.1
version: 30
width: 32 bits
clock: 33MHz
capabilities: pm pciexpress msi bus_master cap_list rom
configuration: driver=sdhci-pci latency=0
resources: irq:18 memory:d4504000-d45040ff memory:d4508000-d450ffff
*-generic:1 UNCLAIMED
description: SD Host controller
product: Standard SD Host Controller
vendor: JMicron Technology Corp.
physical id: 0.2
bus info: pci@0000:23:00.2
version: 30
width: 32 bits
clock: 33MHz
capabilities: pm pciexpress msi cap_list
configuration: latency=0
resources: memory:d4503000-d45030ff
# sudo fdisk -l
Disk /dev/mmcblk0: 31.3 GiB, 33554432000 bytes, 65536000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
# sudo mount /dev/mmcblk0 /mnt
NTFS signature is missing.
Failed to mount '/dev/mmcblk0': Invalid argument
The device '/dev/mmcblk0' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
# sudo mount -t vfat /dev/mmcblk0 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/mmcblk0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
# dmesg | tail -25
[ 1142.313404] mmcblk0: mmc0:0001 USB D 31.3 GiB
[ 1328.190970] mmc0: card 0001 removed
[ 1337.276177] mmc0: new SDHC card at address 0001
[ 1337.276698] mmcblk0: mmc0:0001 USB D 31.3 GiB
[ 1407.491022] FAT-fs (mmcblk0): bogus logical sector size 65535
[ 1407.491031] FAT-fs (mmcblk0): Can't find a valid FAT filesystem
[ 2222.643276] FAT-fs (mmcblk0): bogus logical sector size 65535
[ 2222.643281] FAT-fs (mmcblk0): Can't find a valid FAT filesystem
[ 2670.798738] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[ 2670.840017] JFS: nTxBlock = 8192, nTxLock = 65536
[ 2670.856058] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[ 2670.926639] QNX4 filesystem 0.2.3 registered.
[ 2671.043399] raid6: sse2x1 gen() 4588 MB/s
[ 2671.111372] raid6: sse2x1 xor() 4838 MB/s
[ 2671.179383] raid6: sse2x2 gen() 9479 MB/s
[ 2671.247380] raid6: sse2x2 xor() 7389 MB/s
[ 2671.315378] raid6: sse2x4 gen() 12042 MB/s
[ 2671.383382] raid6: sse2x4 xor() 8886 MB/s
[ 2671.383383] raid6: using algorithm sse2x4 gen() 12042 MB/s
[ 2671.383384] raid6: .... xor() 8886 MB/s, rmw enabled
[ 2671.383384] raid6: using ssse3x2 recovery algorithm
[ 2671.405677] xor: automatically using best checksumming function: avx
[ 2671.458417] Btrfs loaded, crc32c=crc32c-intel
[ 3905.591105] FAT-fs (mmcblk0): bogus logical sector size 65535
[ 3905.591112] FAT-fs (mmcblk0): Can't find a valid FAT filesystem
# sudo fsck /dev/mmcblk0
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/mmcblk0
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
|