Skip to contentSkip to conversation

SPAM: [parisc-linux] Can't write to hard drives on a K200

DISCUSSION Michael S. Zick 3 participants 4 messages Sep 26, 2006 – Sep 27, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 24 lines · Joe Emenaker

I've booted a Gentoo install CD, which puts me in a root shell. The first step, I guess, is to partition the drives... but the thing won't let me.

Quoted 6 lines

When I try to write from "cfdisk /dev/sda", it gives me:
Wrting partition table to disk...
end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 lost page write due to I/O error on sda
SCSI device sda: 8388314 512-byte hdwr sectors (4295 MB)

Just in case it was a glitch in cfdisk, I tried writing from fdisk, as well:

Quoted 10 lines

Calling ioctl() to re-read partition table.
end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 lost page write due to I/O error on sda
SCSI device sda: 8388314 512-byte hdwr sectors (4295 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write through w/ FUA SCSI device sda: 8388314 512-byte hdwr sectors (4295 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write through w/ FUA

Quoted 7 lines

Hrmmm.... so maybe the disks are read-only somehow, right? Well then how come I can dd like so:

   dd if=/dev/zero of=/dev/sda bs=512 count=10

That works fine. So.... anybody have any idea what's going on?

Other problems have been report on other models that also use the ncr53c720 driver - most often filesystem corruption.

The problem has not yet been isolated - might be the driver code or the hardware adapter code used with that scsi adapter.

In contrast, some pci add-in cards that use the driver are known to work(???).

Translation: Something is wrong, no one has yet offered a solution.

Mike
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#2 lore raw

Re: [parisc-linux] Can't write to hard drives on a K200

In reply to a message not in the archive
Quoted 22 lines · Joe Emenaker

I've booted a Gentoo install CD, which puts me in a root shell. The first step, I guess, is to partition the drives... but the thing won't let me.

Quoted 6 lines

When I try to write from "cfdisk /dev/sda", it gives me:
Wrting partition table to disk...
end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 lost page write due to I/O error on sda
SCSI device sda: 8388314 512-byte hdwr sectors (4295 MB)

Just in case it was a glitch in cfdisk, I tried writing from fdisk, as well:

Quoted 10 lines

Calling ioctl() to re-read partition table.
end_request: I/O error, dev sda, sector 0 Buffer I/O error on device sda, logical block 0 lost page write due to I/O error on sda
SCSI device sda: 8388314 512-byte hdwr sectors (4295 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write through w/ FUA SCSI device sda: 8388314 512-byte hdwr sectors (4295 MB)
sda: Write Protect is off
SCSI device sda: drive cache: write through w/ FUA

Quoted 6 lines

Hrmmm.... so maybe the disks are read-only somehow, right? Well then how come I can dd like so:

dd if=/dev/zero of=/dev/sda bs=512 count=10

That works fine. So.... anybody have any idea what's going on?

If that doesn't matter to completely erase your disk try the same cmdl without count param, i.e.

	dd if=/dev/zero of=/dev/sda bs=512

Or to be quicker:

	dd if=/dev/zero of=/dev/sda bs=512k (e.g.)

(I don't remember where [c ]fdisk write its "partition table" but) my hypothesis is that could be out of first 5k?

btw, iirc you have severall other disks on this system, didn't you have the opportunity to switch this disk with another one
or, if possible, choose another disk (sdb, sdc, sdd?) to install your distro?

Hth,
Joel

Quoted 7 lines

------------------------------------------------------------------------

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#3 lore raw

Re: [parisc-linux] Can't write to hard drives on a K200

Quoted 7 lines · Joel Soete
Quoted 5 lines

Hrmmm.... so maybe the disks are read-only somehow, right? Well then how come I can dd like so:

dd if=/dev/zero of=/dev/sda bs=512 count=10

That works fine. So.... anybody have any idea what's going on?

If that doesn't matter to completely erase your disk try the same cmdl without count param, i.e.

    dd if=/dev/zero of=/dev/sda bs=512

Well, I did the entire drive with:
dd if=/dev/zero of=/dev/sda bs=512 count=10 count=8388314
and that worked fine.

I also tried your
dd if=/dev/zero of=/dev/sda bs=512k
and that worked too (8192 records in, 8192 records out).

So... dd works, (c)fdisk doesn't. I guess I could just get someone to partition a blank hd just the way I want and then send me their partition table (dd if=/dev/sdX bs=512 count=1 | gzip -9 | mail ....), then I could dd it on this end and I'd be all set, huh?

Well, there's another option. I could plug the drives into a SCSI card on a PC... but I've tried that, and I can't get that to work. If someone wants to help me with *that*, I'd appreciate that as well, since I clearly don't understand all of the intricacies of SCSI, because I couldn't get the PC to recognize the drive(s). I *think* it had to do with the drives being (apparently) "single-ended"... but I don't know.

- Joe

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#4 lore raw

Re: [parisc-linux] Can't write to hard drives on a K200

Quoted 23 lines · Joe Emenaker
Quoted 9 lines · Joel Soete
Quoted 6 lines

Hrmmm.... so maybe the disks are read-only somehow, right? Well then how come I can dd like so:

dd if=/dev/zero of=/dev/sda bs=512 count=10

That works fine. So.... anybody have any idea what's going on?

If that doesn't matter to completely erase your disk try the same cmdl without count param, i.e.

    dd if=/dev/zero of=/dev/sda bs=512

Well, I did the entire drive with:

   dd if=/dev/zero of=/dev/sda bs=512 count=10 count=8388314

and that worked fine.

I also tried your

    dd if=/dev/zero of=/dev/sda bs=512k

and that worked too (8192 records in, 8192 records out).

So... dd works, (c)fdisk doesn't. I guess I could just get someone to partition a blank hd just the way I want and then send me their partition table (dd if=/dev/sdX bs=512 count=1 | gzip -9 | mail ....), then I could dd it on this end and I'd be all set, huh?

Quoted 7 lines

Well, there's another option. I could plug the drives into a SCSI card on a PC... but I've tried that, and I can't get that to work. If someone wants to help me with *that*, I'd appreciate that as well, since I clearly don't understand all of the intricacies of SCSI, because I couldn't get the PC to recognize the drive(s). I *think* it had to do with the drives being (apparently) "single-ended"... but I don't know.

It is hard to say -

The drive's firmware reported a model number that indicates SE - but it also reported an HP revision number for the drive firmware. Which, as Dave pointed, means the model number reported may not be complete.

The driver reported that the drives where using differential - this might stand a better chance of being correct.

The driver in pa-risc is a derivative of the {open,free,net}BSD driver - it should negotiate with the attached drive(s) the proper SCSI connection or tri-state the SCSI bus to prevent drive/adapter damage.

Still with me?
differential comes in two flavors - High Voltage and Low Voltage I am guessing from the chip's age that its version of differential is HVD.

If your pa-risc machine has connectors to external drives - they should be labeled - now that label you can trust.

Another thing to consider - as I recall, the dmesg of your machine has reported two SCSI controllers - the one not using the ncr53c driver has only the CD-ROM on it - you might consider adding a drive (of the proper type - check your dmesg) to the scsi chain with the CD-ROM on it.

Another thing that might be worth trying - DD your live-cd image onto one of the hard drives - if there are no read/write problems with DD, it should work.

An cd-rom image on a hard drive? Yes, that does work for me - I have an iso image DD copied to a 100Mb removable (zip) SCSI-2 drive. Linux doesn't care about media type vs filesystem type.

Mike

Quoted 2 lines

- Joe

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux