Alain Knaff wrote:
Mark Hounschell wrote:
[...]
All kernels below 2.6.28 work on these boxes. All kernels 2.6.28 and higher do
NOT.
2.6.28 was when support for sector "bases" other than 0 or 1 were
introduced. So, rather than have sectors numbered from 1 to 18, you can
now have sectors numbered from 129 to 146 (as is used by some of the
more exotic CP/M formats). This info is stored in some previously unused
bits of the "stretch" parameter.
Could it be that on some distributions, "something" is setting this to
some spurious value (which got ignored before 2.6.28, but from 2.6.28
got misinterpreted as a non-zero sector base).
Could you try to:
fdformat /dev/fd0u1440
in case you don't have /dev/fd0u1440, you can create it using the
following command line:
mknod /dev/fd0u1440 b 2 28
then do a getfdprm -o /dev/fd0u1440 (or getfdprm /dev/fd0)
You should get:
2880 18 2 80 0 0x1b 0x00 0xcf 0x6c
The fifth byte (0 here) is the stretch byte. If it contains anything
other than 0, this might explain it.
Another test would be to perform:
fdrawcmd readid 0 repeat=18
Here are my results to complement Mark's. Unfortunately fdrawcmd would
not run here, perhaps because I have different a different floppy
controller. Or maybe I have a different version and am not giving it the
right parameters.
# dpkg -s fdutils
Package: fdutils
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 924
Maintainer: Anibal Monsalve Salazar <ani...@debian.org>
Architecture: i386
Version: 5.5-20060227-3
------------------------------------------------------------------------
# mknod /dev/fd0u1440 b 2 28
# fdformat /dev/fd0u1440
Double-sided, 80 tracks, 18 sec/track. Total capacity 1440 kB.
Formatting ... done
Verifying ... Read: : Input/output error
Problem reading cylinder 0, expected 18432, read -1
# getfdprm -o /dev/fd0u1440
2880 18 2 80 0 0x1b 0x00 0xcf 0x6c
# fdrawcmd drive=/dev/fd0u1440 readid 0 repeat=18
raw cmd: Invalid argument
# fdrawcmd drive=0 rate=0 readid 0
raw cmd: Invalid argument
# hexdump /dev/fd0
hexdump: /dev/fd0: Input/output error
/sys/devices/platform/floppy.0/block/fd0# ls -l
total 0
-r--r--r-- 1 root root 4096 2009-12-14 11:18 alignment_offset
lrwxrwxrwx 1 root root 0 2009-12-14 11:18 bdi ->
../../../../virtual/bdi/2:0
-r--r--r-- 1 root root 4096 2009-12-14 11:18 capability
-r--r--r-- 1 root root 4096 2009-12-14 10:28 dev
lrwxrwxrwx 1 root root 0 2009-12-14 10:28 device -> ../../../floppy.0
-r--r--r-- 1 root root 4096 2009-12-14 11:18 discard_alignment
-r--r--r-- 1 root root 4096 2009-12-14 11:18 ext_range
drwxr-xr-x 2 root root 0 2009-12-14 10:51 holders
-r--r--r-- 1 root root 4096 2009-12-14 11:18 inflight
drwxr-xr-x 2 root root 0 2009-12-14 11:18 power
drwxr-xr-x 3 root root 0 2009-12-14 10:51 queue
-r--r--r-- 1 root root 4096 2009-12-14 10:28 range
-r--r--r-- 1 root root 4096 2009-12-14 10:28 removable
-r--r--r-- 1 root root 4096 2009-12-14 11:18 ro
-r--r--r-- 1 root root 4096 2009-12-14 11:18 size
drwxr-xr-x 2 root root 0 2009-12-14 10:51 slaves
-r--r--r-- 1 root root 4096 2009-12-14 11:18 stat
lrwxrwxrwx 1 root root 0 2009-12-14 10:28 subsystem ->
../../../../../class/block
-rw-r--r-- 1 root root 4096 2009-12-14 10:28 uevent
--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org