2008-02-04 00:50:46

by Patrick Ringl

[permalink] [raw]
Subject: wrong cylinders of kingston usb pendrive [intel 82801DB]

Hello,

I am suffering from the following (usb-related?) problem:

I have several different mashines - all x86 architecture - just lets
call them mashineA, mashineB and mashineC.
Anyway, mashineA has a severe problem with a
Kingston-USB-pendrive(2gig). I simply cant install anything on it - the
kernel usually moans with problems like "attempt to access beyond end of
device" - while it does work fine with several noname usb-pendrives of
the same size.
Now, I just tested that kingston pendrive on mashineB and mashineC -
where it runs fine .. I can install debian to it (same installation
media) without any problem or kernel errors.

I compared the output of dmesg and fdisk from mashineA and mashineB and
C .. and the difference is simple: mashineA always shows 248 cylinders -
while all the other mashines show 228 cylinders.

So I guess this is the problem and especially the reason why using it on
mashineA always fails.

mashineA has the following usb chipset:

vendor = 'Intel Corporation'
device = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB 2.0 EHCI Controller'


Hopefully you have any suggestions.

PS: I am not subscribed so please CC to me.


regards,
Patrick


2008-02-04 02:12:58

by Greg KH

[permalink] [raw]
Subject: Re: wrong cylinders of kingston usb pendrive [intel 82801DB]

On Mon, Feb 04, 2008 at 01:50:37AM +0100, Patrick Ringl wrote:
> Hello,
>
> I am suffering from the following (usb-related?) problem:
>
> I have several different mashines - all x86 architecture - just lets call
> them mashineA, mashineB and mashineC.

Is the kernel the same on all of these machines?

thanks,

greg k-h

2008-02-04 08:15:37

by Matthew Dharm

[permalink] [raw]
Subject: Re: wrong cylinders of kingston usb pendrive [intel 82801DB]

On Sun, Feb 03, 2008 at 05:59:38PM -0800, Greg KH wrote:
> On Mon, Feb 04, 2008 at 01:50:37AM +0100, Patrick Ringl wrote:
> > Hello,
> >
> > I am suffering from the following (usb-related?) problem:
> >
> > I have several different mashines - all x86 architecture - just lets call
> > them mashineA, mashineB and mashineC.
>
> Is the kernel the same on all of these machines?

I'm not sure it matters...

usb-storage has no knowledge of CHS geometery. It deals entirely in LBA.

Does anyone know where the kernel gets the CHS geometery equivalent from?

Matt

--
Matthew Dharm Home: [email protected]
Maintainer, Linux USB Mass Storage Driver

E: You run this ship with Windows?! YOU IDIOT!
L: Give me a break, it came bundled with the computer!
-- ESR and Lan Solaris
User Friendly, 12/8/1998


Attachments:
(No filename) (848.00 B)
(No filename) (189.00 B)
Download all attachments

2008-02-09 21:57:09

by Jan Engelhardt

[permalink] [raw]
Subject: Re: wrong cylinders of kingston usb pendrive [intel 82801DB]


On Feb 4 2008 00:15, Matthew Dharm wrote:
>> On Mon, Feb 04, 2008 at 01:50:37AM +0100, Patrick Ringl wrote:
>> > Hello,
>> >
>> > I am suffering from the following (usb-related?) problem:
>> >
>> > I have several different mashines - all x86 architecture - just lets call
>> > them mashineA, mashineB and mashineC.
>>
>> Is the kernel the same on all of these machines?
>
>I'm not sure it matters...
>
>usb-storage has no knowledge of CHS geometery. It deals entirely in LBA.
>
>Does anyone know where the kernel gets the CHS geometery equivalent from?

Something like `hdparm -I` I suppose.

2008-02-09 22:12:45

by Alan Stern

[permalink] [raw]
Subject: Re: wrong cylinders of kingston usb pendrive [intel 82801DB]

On Mon, 4 Feb 2008, Patrick Ringl wrote:

> Hello,
>
> I am suffering from the following (usb-related?) problem:
>
> I have several different mashines - all x86 architecture - just lets
> call them mashineA, mashineB and mashineC.
> Anyway, mashineA has a severe problem with a
> Kingston-USB-pendrive(2gig). I simply cant install anything on it - the
> kernel usually moans with problems like "attempt to access beyond end of
> device" - while it does work fine with several noname usb-pendrives of
> the same size.
> Now, I just tested that kingston pendrive on mashineB and mashineC -
> where it runs fine .. I can install debian to it (same installation
> media) without any problem or kernel errors.
>
> I compared the output of dmesg and fdisk from mashineA and mashineB and
> C .. and the difference is simple: mashineA always shows 248 cylinders -
> while all the other mashines show 228 cylinders.

The number of cylinders is meaningless. What matters is the number of
sectors. What does "fdisk -l /dev/sdX" (substitute the appropriate
letter for X) display for the pendrive on each of the machines?

What messages show up in the dmesg log when you plug in the pendrive?

What version of the Linux kernel are you using?

Alan Stern