Re: Restore partition table

From: Frederico Fonseca (real-email-in-msg-spam_at_email.com)
Date: 08/29/03

  • Next message: Jim Hickinbotham: "Re: SCO Announces Winners of Longest Running Server Competition"
    Date: Thu, 28 Aug 2003 23:47:50 +0100
    
    

    On Thu, 28 Aug 2003 21:13:29 GMT, Bela Lubkin <belal@sco.com> wrote:

    >Frederico Fonseca wrote:
    >
    Snip
    >> ----------------
    >>
    >> i=254
    >> while true
    >> 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
    >>
    >> ------------
    >> You will now have a directory with several special devices that can be
    >> "mounted", and a file "dtype1" with a description of each valid file
    >> system in each special file from /tmp/dev.
    >>
    >> You can mount the valid entries as normal.
    >> e.g. mount -r /tmp/dev/114 /mnt
    >>
    >> and then copy whatever you need.
    >>
    >> Note sure if it will work now because of the badtracing bit.
    >
    >Your `while true' loop won't ever stop. But aside from that, this would
    >only work if the divvy table wasn't destroyed. The device nodes you're
    >making refer to every division of every partition on all four possible
    >units of the "wd" driver. (Actually, 4 "wd" units of the "hd" driver,
    >in a system that is rooting from an IDE drive.) Each of those divisions
    >and partitions will only be correct if the division and partition tables
    >are intact.
    >
    >>Bela<
    Thats why I said I wasn't sure it would work. (loop bit was a code
    ommission (cut and past)!)

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

    Frederico Fonseca
    ema il: frederico_fonseca at syssoft-int.com


  • Next message: Jim Hickinbotham: "Re: SCO Announces Winners of Longest Running Server Competition"

    Relevant Pages


    Loading