Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 426378 - sys-kernel/gentoo-sources-3.4.4 - seek errors accessing USB drive's MBR
Summary: sys-kernel/gentoo-sources-3.4.4 - seek errors accessing USB drive's MBR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-13 00:10 UTC by Marco Clocchiatti
Modified: 2012-08-27 20:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,6.80 KB, text/plain)
2012-07-13 00:11 UTC, Marco Clocchiatti
Details
dmesg log (dmesg,14.98 KB, text/plain)
2012-07-13 00:12 UTC, Marco Clocchiatti
Details
.config (.config,94.94 KB, text/plain)
2012-07-13 00:17 UTC, Marco Clocchiatti
Details
extract from /var/log/messages (messages.bz2,19.60 KB, application/x-bzip)
2012-07-13 00:26 UTC, Marco Clocchiatti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Clocchiatti 2012-07-13 00:10:57 UTC
after upgrading to gentoo-sources-3.4.4 (from 3.3.*) I had some troubles to access mbr of my usb key.

s939 ~ # lsusb|grep Verbatim
Bus 002 Device 002: ID 18a5:0302 Verbatim, Ltd 



Reproducible: Always

Steps to Reproduce:
1.
s939 ~ # parted  print /dev/sde 
Errore: Impossibile fare stat del device print - File o directory non esistente. 
Riprova/Retry/Annulla/Cancel? A                                            
s939 ~ # parted   /dev/sde print 
Avviso: Impossibile determinare la dimensione fisica del settore per /dev/sde. 
Verrà utilizzata la dimensione logica (512). 
Errore: /dev/sde: etichetta del disco non riconosciuta 
Modello: Verbatim  (scsi)                                                  
Disco /dev/sde: -144115188075855392,00B 
Dimensione del settore (logica/fisica): 512B/512B 
Tabella delle partizioni: unknown 
Flag del disco: 
s939 ~ # fdisk -l  /dev/sde print 
s939 ~ # sfdisk -l  /dev/sde print 

Disco /dev/sde: 2225167883115 cilindri, 255 testine, 63 settori/traccia 
lseek: Argomento non valido 

sfdisk: errore di ricerca su /dev/sde - impossibile ricercare a 0 
sfdisk:  /dev/sde: tipo di tabella delle partizioni non riconosciuto 

sfdisk: Non si è trovata alcuna partizione 

print: File o directory non esistente 
sfdisk: cannot open print for reading

at the same time, any attempt to overwrite the mbr with dd was ineffective.
apparently, the mbr seems not write accessible.

conversley, all other ways to use the usb key work properly.
Comment 1 Marco Clocchiatti 2012-07-13 00:11:49 UTC
Created attachment 318040 [details]
emerge --info
Comment 2 Marco Clocchiatti 2012-07-13 00:12:18 UTC
Created attachment 318042 [details]
dmesg log
Comment 3 Marco Clocchiatti 2012-07-13 00:17:08 UTC
Created attachment 318044 [details]
.config
Comment 4 Marco Clocchiatti 2012-07-13 00:26:42 UTC
Created attachment 318046 [details]
extract from /var/log/messages
Comment 5 Marco Clocchiatti 2012-07-13 00:30:48 UTC
sorry for the last attachment.
it's a bziped file from a text/plain one.

I found some troubles to send it in the simple text/plain format because it seems long too much.
Comment 6 Marco Clocchiatti 2012-07-15 19:46:55 UTC
same behaviour for sys-kernel/vanilla-sources-3.4.4 .

sorry for logs in italian language.
anyway, the following are the same outputs in english, for parted, fdisk and sfdisk:

s939 ~ # LANGUAGE="CC" parted /dev/sdd print
Warning: Could not determine physical sector size for /dev/sdd.
Using the logical sector size (512).
Error: /dev/sdd: unrecognised disk label
Model: Verbatim  (scsi)                                                   
Disk /dev/sdd: -144115188075855392,00B
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 
s939 ~ # LANGUAGE="CC" fdisk -l /dev/sdd
s939 ~ # LANGUAGE="CC" sfdisk -l /dev/sdd

Disk /dev/sdd: 2225167883115 cylinders, 255 heads, 63 sectors/track
lseek: Invalid argument

sfdisk: seek error on /dev/sdd - cannot seek to 0
sfdisk:  /dev/sdd: unrecognized partition table type

sfdisk: No partitions found
Comment 7 Marco Clocchiatti 2012-07-22 14:49:15 UTC
this issue does not affects sys-kernel/gentoo-sources-3.4.5.
Comment 8 Mike Pagano gentoo-dev 2012-08-27 20:40:32 UTC
Ok, great. Closing as reported that this is fixed in 3.4.5.