Hi,
This is my first Forum post.
I have MicroSD 64GB class 10.
I use 2 PC
- Ubuntu 14.04 LTS 64 Bit
- Centos 5.0 LTS 32 Bit
On both i run few commands for cross verify the SD card working proper or not.
Commands as follows:-
-
For Ubuntu
1.gdisk -l /dev/sdb
2.fdisk -l
3.sudo parted /dev/sdb unit s print
4.sfdisk -l -uM
5.lsblk
6.blkid
7.dmesg |grep sdb
8.cfdisk /dev/sdb -
For Centos
gdisk -l /dev/sdb
fdisk -l
sudo parted /dev/sdb unit s print
sfdisk -l -uM
dmesg |grep sdb
For cross verification i use different Card Readers
1.http://hongkongheya.en.alibaba.com/product/296666147-209833623/USB_Memory_Card_reader_HY_539.html
2.http://www.flipkart.com/digitek-dcr-002-card-reader/p/itmdqhuhuzwkcge9
I got Observations as follows:-
- When i use 1st card reader with any OS, i can see 2.0TiB is totle size of card.
- When i use 2nd card reader with any OS, i can see two warnings as follows:-
1. Secondary partition table overlaps the last partition by 33 blocks!
2.Warning: The partition table looks like it was made for C/H/S=*/255/63 (instead of 60906/64/32).
Results which i get by using commands as follow:-
1.1. For ubuntu by using 1st card Reader for 1st command:-
root@DTP233:~# gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.8
Warning! Read error 5; strange behavior now likely!
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Disk /dev/sdb: 4285485056 sectors, 2.0 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): E1630C27-F259-4C20-840C-0ADF3D857F54
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 4285485022
Partitions will be aligned on 2048-sector boundaries
Total free space is 4160782269 sectors (1.9 TiB)
Number Start (sector) End (sector) Size Code Name
1 32768 124735487 59.5 GiB 0700 Microsoft basic data
root@DTP233:~# gdisk -l /dev/sdb1
GPT fdisk (gdisk) version 0.8.8
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Exact type match not found for type code F400; assigning type code for
‘Linux filesystem’
Exact type match not found for type code F400; assigning type code for
‘Linux filesystem’
Exact type match not found for type code F400; assigning type code for
‘Linux filesystem’
Exact type match not found for type code F400; assigning type code for
‘Linux filesystem’
Warning! Secondary partition table overlaps the last partition by
8094685705 blocks!
You will need to delete this partition or resize it in another utility.
Disk /dev/sdb1: 124702720 sectors, 59.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 4E9D9558-33A3-415F-BA24-F4134CB4692E
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 124702686
Partitions will be aligned on 4-sector boundaries
Total free space is 124702653 sectors (59.5 GiB)
Number Start (sector) End (sector) Size Code Name
1 4109694196 8219388391 1.9 TiB 8300 Linux filesystem
2 4109694196 8219388391 1.9 TiB 8300 Linux filesystem
3 4109694196 8219388391 1.9 TiB 8300 Linux filesystem
4 4109694196 8219388391 1.9 TiB 8300 Linux filesystem
root@DTP233:~#
1.2. For ubuntu by using 2nd card Reader for 1st command:-
root@DTP233:~# gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.8
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Disk /dev/sdb: 124735488 sectors, 59.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 71A320C3-65D3-4911-AECD-D2EF6F640C2F
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 124735454
Partitions will be aligned on 2048-sector boundaries
Total free space is 32734 sectors (16.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 32768 124735487 59.5 GiB 0700 Microsoft basic data
root@DTP233:~# gdisk -l /dev/sdb1
GPT fdisk (gdisk) version 0.8.8
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
Exact type match not found for type code F400; assigning type code for
‘Linux filesystem’
Exact type match not found for type code F400; assigning type code for
‘Linux filesystem’
Exact type match not found for type code F400; assigning type code for
‘Linux filesystem’
Exact type match not found for type code F400; assigning type code for
‘Linux filesystem’
Warning! Secondary partition table overlaps the last partition by
8094685705 blocks!
You will need to delete this partition or resize it in another utility.
Disk /dev/sdb1: 124702720 sectors, 59.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): B9B0E437-047C-4E99-A28B-743AA0F62D65
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 124702686
Partitions will be aligned on 4-sector boundaries
Total free space is 124702653 sectors (59.5 GiB)
Number Start (sector) End (sector) Size Code Name
1 4109694196 8219388391 1.9 TiB 8300 Linux filesystem
2 4109694196 8219388391 1.9 TiB 8300 Linux filesystem
3 4109694196 8219388391 1.9 TiB 8300 Linux filesystem
4 4109694196 8219388391 1.9 TiB 8300 Linux filesystem
2.1. For ubuntu by using 1st card Reader for 2nd command:-
fdisk -l
Disk /dev/sdb: 2194.2 GB, 2194168348672 bytes
255 heads, 63 sectors/track, 266759 cylinders, total 4285485056 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 32768 124735487 62351360 7 HPFS/NTFS/exFAT
2.2. For ubuntu by using 2nd card Reader for 2nd command:-
fdisk -l
Disk /dev/sdb: 63.9 GB, 63864569856 bytes
255 heads, 63 sectors/track, 7764 cylinders, total 124735488 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 32768 124735487 62351360 7 HPFS/NTFS/exFAT
3.1. For ubuntu by using 1st card Reader for 3rd command:-
root@DTP233:~# sudo parted /dev/sdb unit s print
Model: USB2.0 CARD-READER (scsi)
Disk /dev/sdb: 4285485056s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32768s 124735487s 124702720s primary
root@DTP233:~#
3.2. For ubuntu by using 2nd card Reader for 3rd command:-
root@DTP233:~# sudo parted /dev/sdb unit s print
Model: Mass Storage Device (scsi)
Disk /dev/sdb: 124735488s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32768s 124735487s 124702720s primary
4.1. For ubuntu by using 1st card Reader for 4th command:-
sfdisk -l -uM
Disk /dev/sdb: 266759 cylinders, 255 heads, 63 sectors/track
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End MiB #blocks Id System
/dev/sdb1 16 60905 60890 62351360 7 HPFS/NTFS/exFAT
/dev/sdb2 0 - 0 0 0 Empty
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
4.2. For ubuntu by using 2nd card Reader for 4th command:-
sfdisk -l -uM
Disk /dev/sdb: 60906 cylinders, 64 heads, 32 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 60906/64/32).
For this listing I’ll assume that geometry.
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End MiB #blocks Id System
/dev/sdb1 16 60905 60890 62351360 7 HPFS/NTFS/exFAT
/dev/sdb2 0 - 0 0 0 Empty
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
5.1. For ubuntu by using 1st card Reader for 5th command:-
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 2T 0 disk
└─sdb1 8:17 1 59.5G 0 part
sr0 11:0 1 1024M 0 rom
root@DTP233:~#
5.2. For ubuntu by using 2nd card Reader for 5th command:-
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 59.5G 0 disk
└─sdb1 8:17 1 59.5G 0 part
sr0 11:0 1 1024M 0 rom
6.1. For ubuntu by using 1st card Reader for 6th command:-
blkid
/dev/sdb1: UUID=“3739-3062” TYPE=“exfat”
6.2. For ubuntu by using 2nd card Reader for 6th command:-
blkid
/dev/sdb1: UUID=“3739-3062” TYPE=“exfat”
7.1. For ubuntu by using 1st card Reader for 7th command:-
root@DTP233:~# dmesg |grep sd
[21199.297615] sd 7:0:0:0: Attached scsi generic sg2 type 0
[21199.310106] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[21199.337064] sd 7:0:0:0: [sdb] 4285485056 512-byte logical blocks: (2.19 TB/1.99 TiB)
[21199.343082] sd 7:0:0:0: [sdb] No Caching mode page found
[21199.343091] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[21199.359060] sd 7:0:0:0: [sdb] No Caching mode page found
[21199.359068] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[21199.376091] sdb: sdb1
[21385.122149] sd 7:0:0:0: [sdb] Unhandled error code
[21385.122157] sd 7:0:0:0: [sdb]
[21385.122165] sd 7:0:0:0: [sdb] CDB:
[21385.122182] end_request: I/O error, dev sdb, sector 4285484928
[21385.122188] Buffer I/O error on device sdb, logical block 535685616
[21571.170242] sd 7:0:0:0: [sdb] Unhandled error code
[21571.170249] sd 7:0:0:0: [sdb]
[21571.170257] sd 7:0:0:0: [sdb] CDB:
[21571.170274] end_request: I/O error, dev sdb, sector 4285485048
[21571.170281] Buffer I/O error on device sdb, logical block 535685631
[21757.154337] sd 7:0:0:0: [sdb] Unhandled error code
[21757.154345] sd 7:0:0:0: [sdb]
[21757.154353] sd 7:0:0:0: [sdb] CDB:
[21757.154371] end_request: I/O error, dev sdb, sector 4285485048
[21757.154378] Buffer I/O error on device sdb, logical block 535685631
[21943.138425] sd 7:0:0:0: [sdb] Unhandled error code
[21943.138431] sd 7:0:0:0: [sdb]
[21943.138439] sd 7:0:0:0: [sdb] CDB:
[21943.138456] end_request: I/O error, dev sdb, sector 4285485048
[21943.138463] Buffer I/O error on device sdb, logical block 535685631
root@DTP233:~#
7.2. For ubuntu by using 2nd card Reader for 7th command:-
Forgot to take log related to dmesg
Results from CentOS
[root@dtp016 ~]# fdisk -l
Disk /dev/sda: 63.8 GB, 63864569856 bytes
255 heads, 63 sectors/track, 7764 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 3 7765 62351360 7 HPFS/NTFS
[root@dtp016 ~]#
[root@dtp016 ~]# gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.6.10
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
***************************************************************
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Disk /dev/sda: 124735488 sectors, 59.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 14C366A2-9905-4D31-90FF-85EE02A0B49A
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 124735454
Partitions will be aligned on 2048-sector boundaries
Total free space is 32734 sectors (16.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 32768 124735487 59.5 GiB 0700 Linux/Windows data
[root@dtp016 ~]# gdisk -l /dev/sda1
GPT fdisk (gdisk) version 0.6.10
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
***************************************************************
Exact type match not found for type code F400; assigning type code for
‘Linux/Windows data’
Exact type match not found for type code F400; assigning type code for
‘Linux/Windows data’
Exact type match not found for type code F400; assigning type code for
‘Linux/Windows data’
Exact type match not found for type code F400; assigning type code for
‘Linux/Windows data’
Warning! Secondary partition table overlaps the last partition by
8094685705 blocks!
You will need to delete this partition or resize it in another utility.
Disk /dev/sda1: 124702720 sectors, 59.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 044E2601-E792-4EAD-B972-0DFAEE69B5E5
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 124702686
Partitions will be aligned on 4-sector boundaries
Total free space is 124702653 sectors (59.5 GiB)
Number Start (sector) End (sector) Size Code Name
1 4109694196 8219388391 1.9 TiB 0700 Linux/Windows data
2 4109694196 8219388391 1.9 TiB 0700 Linux/Windows data
3 4109694196 8219388391 1.9 TiB 0700 Linux/Windows data
4 4109694196 8219388391 1.9 TiB 0700 Linux/Windows data
[root@dtp016 ~]#
[root@dtp016 ~]# sudo parted /dev/sda unit s print
Model: Mass Storage Device (scsi)
Disk /dev/sda: 124735487s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32768s 124735487s 124702720s primary
Information: Don’t forget to update /etc/fstab, if necessary.
[root@dtp016 ~]#
[root@dtp016 ~]# sfdisk -l -uM
Disk /dev/sda: 60906 cylinders, 64 heads, 32 sectors/track
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 60906/64/32).
For this listing I’ll assume that geometry.
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End MiB #blocks Id System
/dev/sda1 16 60905 60890 62351360 7 HPFS/NTFS
/dev/sda2 0 - 0 0 0 Empty
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
[root@dtp016 ~]#
I posted email for this to support team, but they only provide replacement, not providing me scintific reason!
If any one try to solve this mystrious behaviour of SD card then its very helpful.
Thanks.