- 论坛徽章:
- 0
|
bad pbr sig
没有人会,就自几会一个,总是以为可以从别让那里得到什么,其实还的靠自己!
Restoring Solaris boot manager
Solaris Master Boot Code of the MBR might be overwritten during installation of other operating system or a third party boot manager after Solaris was installed. Solaris Master Boot Code is stored in the file /usr/lib/fs/ufs/mboot. It can be restored using Solaris fdisk utility (see fdisk man page) as follows:
fdisk -b /usr/lib/fs/ufs/mboot -n /dev/rdsk/c0d0p0
where /dev/rdsk/c0d0p0 stands for the raw device associated with the first (usually primary master) IDE/ATA hard disk drive on the system.
Sometimes it is necessary to recover VBS of a Solaris boot partition or Solaris boot manager program. installboot utility is capable of doing that (see installboot man page). To refresh VBS of Solaris partition located on the first IDE/ATA drive type as root:
installboot /usr/platform/i86pc/lib/fs/ufs/pboot \
/usr/platform/i86pc/lib/fs/ufs/bootblk /dev/rdsk/c0d0s2
Since installboot can not verify the partition specified as its argument, it may write Solaris boot manager into any partition. Therefore care must be taken not to destroy other partitions. The same operation may be also done with fmthard utility discussed later.
The following files contain critical executable code for boot process:
/usr/lib/fs/ufs/mboot - Master Boot Code,
/usr/platform/i86pc/lib/fs/ufs/pboot - Volume Boot Code,
/usr/platform/i86pc/lib/fs/ufs/bootblk - Solaris boot manager. |
|