Nefunkcni flashdisk / GEOM_PART: integrity check failed

Miroslav Lachman 000.fbsd at quip.cz
Wed Oct 29 12:19:33 CET 2014


Byl jsem ted tyden pryc, tak se k tomu vracim az ted. Diky za tipy.

Dan Lukes wrote, On 10/17/2014 20:15:

> Mozna by to obsah mohl poskytnout obycejny klasicky fdisk - kdez to teda
> je ta MBR

# fdisk -p /dev/da0
# /dev/da0
g c0 h64 s32
p 1 0x0c 35008 62551872

Tomuhle nejak moc nerozumim.

>> Netusite nekdo, jestli tohle jde nejak vyresit?
>
> Napriklad zakazat kontrolu integrity
> sysctl kern.geom.part.check_integrity=0 (nebo do loader.conf)
> i kdyz to bych asi nenazval vyresenim jako spis zignorovanim problemu.

Bohuzel se to i tak porad tvari, ze to ma velikost jednoho sektoru:

# sysctl kern.geom.part.check_integrity=0
kern.geom.part.check_integrity: 1 -> 0

# diskinfo -v da0
da0
         512             # sectorsize
         512             # mediasize in bytes (512B)
         1               # mediasize in sectors
         0               # stripesize
         0               # stripeoffset
         0               # Cylinders according to firmware.
         64              # Heads according to firmware.
         32              # Sectors according to firmware.
         AA33JJ7ZJFJG8N3C9RM7    # Disk ident.


12:11:46 ugen1.5: <Lexar> at usbus1
12:11:46 umass0: <Lexar USB Flash Drive, class 0/0, rev 2.10/11.00, addr 
5> on usbus1
12:11:46 umass0:  SCSI over Bulk-Only; quirks = 0x0100
12:11:46 umass0:2:0:-1: Attached to scbus2
12:11:46 da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
12:11:46 da0: <Lexar USB Flash Drive 1100> Removable Direct Access 
SCSI-6 device
12:11:46 da0: Serial Number AA33JJ7ZJFJG8N3C9RM7
12:11:46 da0: 40.000MB/s transfers
12:11:46 da0: 0MB (1 512 byte sectors: 64H 32S/T 0C)
12:11:46 da0: quirks=0x2<NO_6_BYTE>
12:11:46 GEOM_PART: integrity check failed (da0, MBR)
12:11:46 GEOM_PART: integrity check failed 
(diskid/DISK-AA33JJ7ZJFJG8N3C9RM7, MBR)
12:11:46 illbsd volmand: CREATE da0
12:11:46 illbsd volmand: CREATE da0s1

Pokus o mount:

12:12:07 g_vfs_done():da0s1[READ(offset=0, length=8192)]error = 5
12:12:07 GEOM_PART: integrity check failed 
(diskid/DISK-AA33JJ7ZJFJG8N3C9RM7, MBR)
12:12:07 illbsd volmand: MEDIACHANGE da0
12:12:07 illbsd volmand: MEDIACHANGE da0s1

> Nahlednutim do
> sys/geom/part/g_part.c:g_part_check_integrity()
> je totiz videt, ze test neprojde jen kdyz je partition opravdu vadna.
>
> Tim se mysli, ze nejaka partition konci driv nez zacina, konci az za
> koncem fyzickeho media, jednotlive partition se prekryvaji a podobne
> nepristojnosti.
>
> Bootni to ve verbose rezimu, melo by ti to pri te prilezitosti rict co
> konkretne se mu nezda ...

Zkusim jeste ten verbose rezim a pak pripadne zkusim celou slavnou 
flashku zazalohovat a nejak prerozdelit / preformatovat na nejakem jinem 
pocitaci / systemu, ktery to dovoli.

Mirek


More information about the Users-l mailing list