Re: [Oberon] Reason for 'read pio error' ?
Andreas Dörr <andreas.doerr@workingobjects.de> wrote:
I have successfully installed Bluebottle on a Dell Inspiron 7500.
Good!
Currently I use a 5GB partition for Bluebottle. While trying to format a second 5GB partition with AosFS I got an error '2820' at lba 12991229.
A disk block is 512 bytes. So lba 12991229 translates to about 6.2GB (6.5GB metric). You didn't say what the disk size is, but I assume it is larger than this. Looking at AosATADisks.ReadPIO, it seems error 2820 is generated when the ERR bit is set after a command. At what stage does this error occur? I assume during Partitions.Format?
Does anyone know what is a typical reason for such an error?
I'm not sure why the driver sees this ERR bit, and as you say, modern disks should remap bad sectors automatically. I'm not sure if they can do this without OS support. Perhaps the OS is required to retry a failed transfer? But then a second Partitions.Format should work...
The only workaround I currently know is to define a small partition that includes the conspicuous block. This partition will not be used. Since the number of partitions is limited this is not a very good workaround :-(
Unfortunately this is currently the only workaround, since the AosFS file system does not handle bad blocks. What needs to be done is: 1. detect bad blocks in Partitions.Format 2. create a file that contains all these bad blocks This will ensure that the bad blocks are ignored by the file system. Part 2 is file system specific. If someone wants to attempt this, I suggest taking the relevant Format code from Partitions.Mod and rewriting it in a new module. Stefan Salewski <Salewski@physnet.uni-hamburg.de> wrote:
I think the 8GB-Limit still exist for Bluebottle and ETH-Native-Oberon. This means Bios-calls are used to access the harddisk, and this method is limited to the first 8 GB. I am not sure if this is still true for newest Bios, but it was true too for my /boot-partition of my Linux-Installation.
This is only partially true. The boot file has to be below 8GB if you want to boot from the partition directly (otherwise you could use noboot.exe). This is another project for someone. Rewrite the OBL boot loader to support larger disks. The ATA and SCSI disk drivers and the AosFS file system support disks up to 128GB (the next hardware limit, surpassed in ATA-5, I think).
I cant imagine how you will fill 5 GB with Bluebottle.
With data! cglur@onwe.co.za wrote:
? number of partitions is limited ? Is this the Microsoft limit of 4 ?
No. You can have 4 primary partitions per hard disk (in the MBR), but an unlimited number of "logical drives" in an extended partition. BTW A new partition table format is slowly being introduced by Intel and Microsoft. It is not yet supported by Bluebottle. http://developer.intel.com/technology/efi/download.htm http://www.microsoft.com/hwdev/tech/storage/GPT_FAQ.asp Originally the motivation was to clean up their act for 64-bit Windows, but I suspect they'll want to switch to the new format for 32-bit Windows also, since the old MBR format is a mess.
Since Micro$hit's policy is to squash all other OS's, perhaps
Please don't resort to childish name-calling, it is counter-productive.
For those who dare to step outside M$ limits with PC's, it's good to be allied with linux. There are many soldier to clear the way for you.
It is true that a lot of information can be gleaned from Linux. Sometimes you just have to dig quite deep for it. -- Pieter -- Pieter Muller, Computer Systems Institute, ETH Zurich / MCT Lab, Zurich Native Oberon OS: http://www.oberon.ethz.ch/native/
A disk block is 512 bytes. So lba 12991229 translates to about 6.2GB (6.5GB metric). You didn't say what the disk size is, but I assume it is larger than this.
Yes. It is a 18GB disk.
Looking at AosATADisks.ReadPIO, it seems error 2820 is generated when the ERR bit is set after a command.
At what stage does this error occur? I assume during Partitions.Format?
Exactly.
I'm not sure why the driver sees this ERR bit, and as you say, modern disks should remap bad sectors automatically. I'm not sure if they can do this without OS support. Perhaps the OS is required to retry a failed transfer? But then a second Partitions.Format should work...
I have tried to format the partition several times. The error remains constant. Concerning the automatic remapping of bad sectors. My current theory is, that the controller is only able to do this after a low level format marks the bad sectors. Maybe someone could provide more definite information ...
Unfortunately this is currently the only workaround, since the AosFS file system does not handle bad blocks. What needs to be done is:
1. detect bad blocks in Partitions.Format 2. create a file that contains all these bad blocks
Well I guess, almost all file systems suppose to operate on a perfect media. I would not expect bad block handling from AosFS. Creating a file that contains all these bad blocks is the most straightforward solution to the problem. From my point of view it has the following drawback: Save access to a partition containing a bad sector file is only possible on file level. Any tool accessing the partition on disk block level will fail. For this solution a new common "BadBlock" error code needs to be introduced to interface module "AosDisks". Otherwise a high level module like "Partitions" would be bound to an error code coming from an implementation of the interface module "AosDisks" (in this case "AosATADisk"). Another solution would be to implement bad sector forwarding on the disk driver level. This solution is transparent to all higher levels. It is even possible to access the partition on block level. In BSD based Unix system the command "bad144" does this. Essentially at the end of each partition some space is reserved for bad sector information and a list of replacement sectors. Whenever the disk device driver receives a read or write error it will use a replacement sector instead of the bad sector. I'm not sure which solution is more appropriate. The bad block file solution is easier to implement. So, maybe we should start with this one ...
If someone wants to attempt this, I suggest taking the relevant Format code from Partitions.Mod and rewriting it in a new module.
Since I own the "offending" disk, I will try to do this. As a first step I will implement a command which creates a file containing a given list of bad blocks. If this is done, I will adapt the formatting code in Partitions.Mod. At first I will directly check for AosATADisk.Mod pio read and pio write error codes. However, in the long run AosATADisk.Mod should convert these error codes to a common error code defined in AosDisks.Mod. Any idea, how the original error code could be preserved? Controller.Transfer() only returns one result code. Do you have any suggestion for the name the bad block file should have? Since I still have to learn a lot about Bluebottle, I will definitely need your assistance ... --Andreas
From: "Andreas Dörr" <andreas.doerr@workingobjects.de>
Unfortunately this is currently the only workaround, since the AosFS file system does not handle bad blocks. What needs to be done is:
1. detect bad blocks in Partitions.Format 2. create a file that contains all these bad blocks
Well I guess, almost all file systems suppose to operate on a perfect media. I would not expect bad block handling from AosFS.
Creating a file that contains all these bad blocks is the most straightforward solution to the problem. From my point of view it has the following drawback: Save access to a partition containing a bad sector file is only possible on file level. Any tool accessing the partition on disk block level will fail.
Before you start working too much in this direction, you should be sure that a single block is the cause of all troubles. In Aos, there is a command to write one or more blocks to a file: you should try to write the offending block and then the (separatedly) teh blocks are it. This could tell if only one block or every block past that one has the same behaviour. I'm sorry I can't give you the command right away, I'm just under the wrong system at the moment. -Patrik
participants (3)
-
Andreas Dörr -
muller@inf.ethz.ch -
Patrik Reali