Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jul 2000 14:36:07 +0000
From:      "W.H.Scholten" <"whs "@xs4all.nl>
To:        hackers@freebsd.org
Subject:   uncool MO disk problems
Message-ID:  <200007031456.QAA01573@smtp9.xs4all.nl>

next in thread | raw e-mail | index | archive | help
L.S.

(the following is on fbsd 3.3 R)

I tried use 2048 bytes/sector MO media recently, but it doesn't work.
Disklabel complains about /boot/boot2 being to large or something.
It seems to have worked (more or less) up until 3.1 as I saw a few posts
in the SCSI list, e.g.

> From: "Kenneth D. Merry" <ken@plutotech.com> 
> Date: Thu, 25 Feb 1999 15:54:01 -0700 (MST) 

replying to Arnaud Kopp who was using it in fbsd 3.1. (not without
problems, but at least disklabel/newfs worked).

So, what happened after 3.1?

Trying to mount an already formatted 640MB msdos format disk gives the
following errors and the mount does not succeed:
(da0:sym0:0:3:0): READ(10). CDB: 28 0 70 6f 20 6c 0 0 1 0 
(da0:sym0:0:3:0): ILLEGAL REQUEST asc:21,0
(da0:sym0:0:3:0): Logical block address out of range
(da0:sym0:0:3:0): READ(10). CDB: 28 0 4f 49 0 1 0 0 1 0 
(da0:sym0:0:3:0): ILLEGAL REQUEST asc:21,0
(da0:sym0:0:3:0): Logical block address out of range
(da0:sym0:0:3:0): READ(10). CDB: 28 0 20 20 53 50 0 0 1 0 
(da0:sym0:0:3:0): ILLEGAL REQUEST asc:21,0
(da0:sym0:0:3:0): Logical block address out of range
(da0:sym0:0:3:0): READ(10). CDB: 28 0 e9 e 2 7f 0 0 1 0 
(da0:sym0:0:3:0): ILLEGAL REQUEST asc:21,0
(da0:sym0:0:3:0): Logical block address out of range
(da0:sym0:0:3:0): READ(10). CDB: 28 0 70 6f 20 6c 0 0 1 0 
(da0:sym0:0:3:0): ILLEGAL REQUEST asc:21,0
(da0:sym0:0:3:0): Logical block address out of range
(da0:sym0:0:3:0): READ(10). CDB: 28 0 4f 49 0 1 0 0 1 0 
(da0:sym0:0:3:0): ILLEGAL REQUEST asc:21,0
(da0:sym0:0:3:0): Logical block address out of range
(da0:sym0:0:3:0): READ(10). CDB: 28 0 20 20 53 50 0 0 1 0 
(da0:sym0:0:3:0): ILLEGAL REQUEST asc:21,0
(da0:sym0:0:3:0): Logical block address out of range
(da0:sym0:0:3:0): READ(10). CDB: 28 0 e9 e 2 7f 0 0 1 0 
(da0:sym0:0:3:0): ILLEGAL REQUEST asc:21,0
(da0:sym0:0:3:0): Logical block address out of range
dscheck: b_bcount 512 is not on a sector boundary (ssize 2048)

FYI, when mounting a dos formmatted 230 MB disk I also get 'Logical
block address out of range' errors/warnings but the mount succeeds.


[btw, why are the od devices still in /dev if they are not to be used? ]


This is not all though. With 512 b/s media there are also problems.

1. ext2fs formatted disks: trying to unmount a write protected disk
locks up the machine (i.e. I can't do anything under X, machine is not
on a network so can't telnet in, nor read console messages if the kernel
is in a loop somewhere, and no, I don't feel like trying it on the
console at the moment, I tried a few other things and have been
rebooting way to much.)

A side note: The ext2fs code in FreeBSD is very unstable: 
        1a) doing a rm -Rf in a large tree has given me regular
panic->halt->reboot 's

        1b) files in directories with lots of files (like 900-1000) will
cause some files to mysteriously disappear (still in the directory
listing, but trying to access the file will fail, I rescued the files by
copying the entire tree, adding more files to the directory of the ext2
fs, other files were now inaccessible.., so I could copy the missing
ones too..)

>From a few posts on usenet I gather the much better Open/Net BSD ext2
code won't be imported as noone cares enough. Well, in that case please
label the ext2 code in the config file as dangerous (maybe even a
message when mounting an ext2fs fs).

2. msdos formatted MO disks.
Mounting /unmounting a write protected disk works unless I (yes, just
had to try to see what would happen) you write a file to the write
protected disk. There's a message saying the disk is write protected and
nothing bad happens at that time, but when trying the unmount the
device, the OS tries to write the data to disk anyway, fails, (lots of
5's on screen), panic->reboot.

3. ufs disk formatted on obsd:
I cannot use da0a but mounting da0 (with -t ufs) works.
After I change the disklabel's '16 partitions:' to '8 partitions:' I can
mount da0a (and read/write) but unmounting fails (umount -> unkillable
process).

4. Formatting ufs on fbsd:
newfs hangs (unkillable).

Any ideas on what to change ? patches ? (please CC me as I'm not
currently on this list).

Wouter




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007031456.QAA01573>