Re: Restore partition table
From: Bela Lubkin (belal_at_sco.com)
Date: 08/29/03
- Next message: Chaz: "Network Horror"
- Previous message: Terry23: "5.0.4 on a Tyan"
- In reply to: Frederico Fonseca: "Re: Restore partition table"
- Next in thread: Frederico Fonseca: "Re: Restore partition table"
- Reply: Frederico Fonseca: "Re: Restore partition table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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<
- Next message: Chaz: "Network Horror"
- Previous message: Terry23: "5.0.4 on a Tyan"
- In reply to: Frederico Fonseca: "Re: Restore partition table"
- Next in thread: Frederico Fonseca: "Re: Restore partition table"
- Reply: Frederico Fonseca: "Re: Restore partition table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|