linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.4.16+devfs+ide+scsi = Disaster! (data recovery tips requested)
@ 2002-05-15  0:05 Leif Sawyer
  2002-05-23 17:16 ` Richard Gooch
  0 siblings, 1 reply; 2+ messages in thread
From: Leif Sawyer @ 2002-05-15  0:05 UTC (permalink / raw)
  To: linux-kernel

I now join the ranks of the "Damn, I should have double-checked my
backups to make sure they were readable."

Booted into Linux last night to format a new IDE drive for a laptop.
My thought was to clone the existing (SCSI) windows partition for my
wife's laptop.  Then I could wipe the old partition after saving off
my data and have one more dedicated linux box laying around.

Everything looked okay when I fdisk'd the drive and the formatted
it with mkfs.vfat

That is, until I went to reboot.

Apparantly, there's a weird bug/race/conflict between devfs, scsi, and ide.

My CD/RW was on the IDE cable, which I had simply swapped out with the
mini-HD.

after the realization of what must have happend, i dug a little deeper.
fortunately lilo hadn't been wiped, and I did have linux on a second (scsi)
drive,
so I double-checked what devices it thought everthing was.

/dev/hda = block-device 8
/dev/sda = block-device 8

umm... this is bad !!

the scsi-ide module was loaded (because of the CD/RW) and it seems that
the combination of a hard-drive + scsi-ide and devfs just layed over the
top of the existing config.

My kernel is 2.4.16.  I can provide more information later, if requested.

So now I have a windows disk that has been formatted over with mkfs.vfat.

I tried norton's unformat, but that was unable to do much work (just
filled the root directory with things that looked like directories until
eventually the root dir was filled)

So, the long shot is that I've got to do some serious work if I want
to try to recover any data off of this drive.  And hopefully, this will
serve to warn people about serious data loss when mixing ide and scsi
without
verifying your entire configuration before embarking on destructive changes.

That said, Does anybody have any tips for data recovery off of a vfat
partition
from linux?

<sob>

Leif
(vowing to make sure that the next backup works, and to double-check
device numbers before fdisk/format anything!)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.4.16+devfs+ide+scsi = Disaster! (data recovery tips requested)
  2002-05-15  0:05 2.4.16+devfs+ide+scsi = Disaster! (data recovery tips requested) Leif Sawyer
@ 2002-05-23 17:16 ` Richard Gooch
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Gooch @ 2002-05-23 17:16 UTC (permalink / raw)
  To: Leif Sawyer; +Cc: linux-kernel

Leif Sawyer writes:
> I now join the ranks of the "Damn, I should have double-checked my
> backups to make sure they were readable."
> 
> Booted into Linux last night to format a new IDE drive for a laptop.
> My thought was to clone the existing (SCSI) windows partition for my
> wife's laptop.  Then I could wipe the old partition after saving off
> my data and have one more dedicated linux box laying around.
> 
> Everything looked okay when I fdisk'd the drive and the formatted
> it with mkfs.vfat
> 
> That is, until I went to reboot.
> 
> Apparantly, there's a weird bug/race/conflict between devfs, scsi, and ide.
> 
> My CD/RW was on the IDE cable, which I had simply swapped out with the
> mini-HD.
> 
> after the realization of what must have happend, i dug a little deeper.
> fortunately lilo hadn't been wiped, and I did have linux on a second (scsi)
> drive,
> so I double-checked what devices it thought everthing was.
> 
> /dev/hda = block-device 8
> /dev/sda = block-device 8

This isn't supposed to happen, because the IDE and SCSI subsystems
hard-wire different major numbers when registering devices.

> umm... this is bad !!
> 
> the scsi-ide module was loaded (because of the CD/RW) and it seems that
> the combination of a hard-drive + scsi-ide and devfs just layed over the
> top of the existing config.

Has anyone responded to you yet?

> My kernel is 2.4.16.  I can provide more information later, if requested.

That's a pretty old kernel. Upgrade to 2.4.19-pre8 and see if the same
thing happens.

				Regards,

					Richard....
Permanent: rgooch@atnf.csiro.au
Current:   rgooch@ras.ucalgary.ca

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-23 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-15  0:05 2.4.16+devfs+ide+scsi = Disaster! (data recovery tips requested) Leif Sawyer
2002-05-23 17:16 ` Richard Gooch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).