lkml.org 
[lkml]   [2003]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: test11: fd0 with msdos showing garbage


On Sat, 13 Dec 2003, Nicolai Lissner wrote:
>
> While doing a BIOS-Update for my board, I have tried to read/write an
> msdos-formatted disk with kernel 2.6.0-test11. It can be mounted without
> errors - but "ls" shows only garbage. The disk is 100% ok - and can be readed
> with kernel 2.4.x without problems.
>
> I have done some more investigation with that. I can format a disk with e2fs,
> even with msdos - both *seem* to work correct - data can be stored and readed
> - but if the disk have been formatted with msdos on another system it cannot
> be readed with test11.
> So I started to do a diskimage with "dd if=/dev/fd0 of=disk.image"
> - and found some interesting differences:
> While kernel 2.4 produces a file of 1474560 bytes,
> test11 produces a file of 737280 bytes only.

Sounds like test11 mis-identified the floppy format.

> Comparing these files I found:
>
> from offset 0x00000000 to 0x000013FF -- no difference.
> but... surprise !
> The diskimage done with kernel 2.6.0-test11 shows the directory of the disk -
> beginning at offset 0x00001400

Can you try using /dev/fd0H1440 instead of /dev/fd0?

Also, please set the FP_DEBUG flag in the floppy driver flags - something
like "floppy=debug" should do that for you. That should tell more about
the autoprobing..

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-11-18 23:46    [W:0.036 / U:0.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site