Kernel confused two firewire drives??

From: Daniel Barrett (dbarrett_at_spinky.blazemonger.com)
Date: 07/29/04


Date: Thu, 29 Jul 2004 04:27:25 GMT


On my Red Hat 9.0 system, I just had a weird situation where the
kernel thought a Firewire hard drive was corrupt when it wasn't. Can
anyone explain why this happened and how to prevent it from happening
again?

Today, the kernel reported that my 80 GB firewire drive (let's call it
drive "A") had a corrupt partition table or superblock. When I
examined the drive, fdisk reported the 80 GB drive was only 20 GB! I
could mount the drive but any access produced errors.

To make a long story short: the kernel was confusing drive A with
another firewire disk I'd used recently (call it drive "B") that was
only 20 GB. The problem went away after I rebooted the machine: Kudzu
appeared and offered to remove the configuration for a 20 GB drive. I
said yes. Now my computer recognized drive A as an 80 GB drive. I
think both drives may have claimed /dev/sda for their use at different
times.

This was a maddening problem that cost me several hours of wasted
effort. (While trying to "repair" drive A, I damaged its partition
table and had to restore it from backups.) Why did this happen, and
how can I make sure it doesn't happen again?

I use the "devlabel" system to detect and mount drive A, if that makes
any difference. I never did successfully mount drive B, but it was
present when I rebooted one day (when Kudzu first recorded its
configuration).

--
Dan Barrett
dbarrett@blazemonger.com


Relevant Pages

  • [PATCH 18-rc2] Fix typos in /Documentation : N-P
    ... Again, if you're not gonna do synchronization with disk drives (dang, ... -the kernel. ... There are two options specific to PSX driver portion. ... The driver uses the settings from the EEPROM set in the SCSI BIOS ...
    (Linux-Kernel)
  • Re: disk speed regression kernel 2.6.29 and after
    ... When I installed kernel 2.6.30, ... I currently have 3 hard drives hooked up. ... ACPI: ... CPU: L2 Cache: 512K ...
    (Linux-Kernel)
  • Major SATA / EXT3 Issue?
    ... I am curious if anyone else has had major problems with SATA drives on ... basis for my kernel build and test processes. ... Because I focused on hardware as the reason for the failure I ... # AX.25 network device drivers ...
    (Linux-Kernel)
  • athlon-xp + fakeraid regression
    ... The build completes fine, the kernel boots fine, the machine will seem to be fine as long as it remains quiescent. ... At the beginning, just after hitting enter on the make command, one of the ad4 disk light goes on solid for several seconds. ... There is a well known thing where these cheap pata fakeraid cards will try to do ata133 if the drive says it can, when really, even if he drives are new ata133 drives and the cables are new and short and shielded, you still shouldn't try to do ata133 since the spec is too tight and you'll just get bit errors or other failures. ... The fix is use ata100 somehow, either by disabling dma entirely in loader.conf (since you have no more selective option there, and the raid card bios never has an option for controlling pio/dma mode like motherboard bios's have) and then use atacontrol in rc.early to set udma5, or by using disks that can only do ata100 and only advertise ata100 to the controller. ...
    (freebsd-current)
  • Re: Where did you get them there devices ?
    ... point me to the mechanism or kernel ... controller, and the address of the controller. ... SCSI controllers, the order of the controllers depended on how the ... Drives on a SCSI controller have an address, ...
    (Fedora)