Re: Restore partition table

From: Bela Lubkin (belal_at_sco.com)
Date: 08/29/03


Date: Fri, 29 Aug 2003 10:12:40 GMT
To: scomsc@xenitec.ca

Frederico Fonseca wrote:

> >> i=254
> >> while true

or better, while [ $i -gt 0 ]

> >> do
> >> mknod dev/$i b 1 $i
> >> i=`expr $i - 1`
> >> done
> >>
> >>
> >> for i in `ls dev`
> >> do
> >> echo $i>>dtype1
> >> dtype dev/$i>>dtype1 2>>dtype1 1>>dtype1
> >> done

> Out of curiosity do you know if the above construct (using the correct
> minor/major) would work with a SCSI environment?

See hd(HW). The minor number scheme described there applies to all hard
disks on an OpenServer system, using any of the various disk drivers (in
order of my guess of their current popularity: wd, Sdsk, ida, Dsk, esdi,
st, omti). The major number would have to be adjusted to match the
driver being used.

But again, that just makes device nodes that point to the starts of the
various constructs known to the disk partitioning driver (dk). If the
partition or divvy tables are corrupt, no amount of fiddling with minor
numbers will find your data.

>Bela<



Relevant Pages

  • Re: 2.6.23-rc4-mm1 OOPS in forcedeth?
    ... # Generic Driver Options ... # PCI IDE chipsets support ... # SCSI support type (disk, tape, CD-ROM) ...
    (Linux-Kernel)
  • Re: 0x0000007B
    ... If Windows XP Pro cannot install, then you will not get very far with XPe. ... Next I augmented my USB boot with every file system I could find, ... "Windows could not start because of a computer disk hardware configuration ... > Warning:Could not find a driver for Video Controller ...
    (microsoft.public.windowsxp.embedded)
  • Re: RAMDisk and harddisk - Revisited
    ... but your constatation that driver load fails is not accurate in some amount based on info you gave us. ... Only if it is a cloned disk they can have same diskid, but this would be completely different error. ... the ATA Flash Disk was detectable and mountable from RAMDisk image as described. ... e.g. IDE ATA Flash or IDE hard drives. ...
    (microsoft.public.windowsxp.embedded)
  • Re: SCO OS 5.0.7 on Qemu
    ... The OSR5 "wd" IDE driver has code in it to ... > controller used in PC/AT class machines), ... > the kernel to look for a SCSI disk on a "wd" HBA. ... Possible UDMA timing mismatch, ...
    (comp.unix.sco.misc)
  • Re: Seagate Barracuda 160 GB IDE becomes corrupted. RMA?
    ... Driver Description ST3120026A ... Disk Device Physical Info: ... Partition Partition Type Drive Start Offset Partition ... You havent ENABLED 48 bit LBS support in the registry. ...
    (comp.sys.ibm.pc.hardware.storage)