How to reinstall Solaris Grub menu

I have a dual boot PC with Solaris 10 and Windows Vista. I installed Windows Vista and the Solaris 10. So I got a boot menu (which I assume is a grub menu) to make a selection of the OS I want to boot on my system.
Unfortunately I lost the grub for Solaris. Now I can boot only on Windows. How do I recover the previously installed grub?
PS: Steps to do this will be helpful.

You need at least a bootable Solaris Install CD/DVD. Go to command line option rather than install option. Type 'grub' and enter
# grub here you type 'c' to get to 'grub' command prompt
grub> find /boot/grub/stage1
(hd0,1,a) Note: This is the answer from grub where solaris boot partition resides - number may be different on your system+
grub> root (hd0,1,a)
filesystem is ufs, partition type 0xbf
grub> setup (hd0)
Checking if “boot/grub/stage1” exists...yes
Checking if “boot/grub/stage2” exists...yes
Checking if “boot/grub/e2fs_stage1_5” exists...yes
Running “embed /boot/grub/e2fs_stage1_5(hd0)”...16 sectors
are embedded... succeeded
Running “install /boot/grub/stage1(hd0) (hd0)1+16p (hd0,1,a)
/boot/grub/stage2/boot/grub/menu.lst”... succeeded
Done.
grub> quit
# reboot
pinecloud,

Similar Messages

  • How to stop the boot process after the GRUB menu?

    Hello there.
    I am getting an error message in the boot process, after the GRUB menu, but I can't read completely the message because it is shown too fast. So, how can I stop the process when I see the error message, for writing down it?
    Thanks in advance.

    zuargo wrote:
    Hello there.
    I am getting an error message in the boot process, after the GRUB menu, but I can't read completely the message because it is shown too fast. So, how can I stop the process when I see the error message, for writing down it?
    Thanks in advance.
    I didn't try this before, but if you use systemd, you may want to try systemd.confirm_spawn to invoke interactive booting process, so you can start the services one by one manually therefore locate the one throwing out error message.
    It is explained in the systemd manual:
    http://www.freedesktop.org/software/sys … stemd.html

  • [ SOLVED ] Still not understanding how to reinstall Grub ?

    Hi All
    I currently have a dual boot windows 7 & Arch system and i have to wipe the Windows partition and reinstall.  But i am still confused as to how to reinstall Grub once i have reinstalled windows 7.  The wiki post is not longer available and have not found anything that explains what i need to do ... So can anyone point me in the right direction or explain what i need to do ?
    Many Thanks
    Last edited by whitetimer (2011-01-03 15:48:49)

    # FLAWLESS GRUB REINSTALL GUIDE BY DARKBEANIES ASSUMING YOU USE EXT3 FILESYSTEM
    # Boot arch install cd and login as root, and type the following commands in order, replacing X and Y values with the number of the partition/disk(MAKE SURE YOU GET THIS RIGHT, ASK IF YOU DON'T KNOW)
    cd /
    mount -t ext3 /dev/sdaX /mnt
    mount -t proc proc /mnt/proc
    mount -t sysfs sys /mnt/sys
    mount -o bind /dev /mnt/dev
    chroot /mnt /bin/bash
    #IMPORTANT-ONLY IF YOU HAVE SEPARATE BOOT PARTITION
    mount -t ext3 /dev/sdaX /boot
    #Then try:
    grub-install /dev/sdaX
    # -WHEN- this fails type this:
    grub
    root (hdY,X)
    setup (hdY)
    #Then reboot:
    cd /
    umount -a
    exit
    cd /
    umount -a
    reboot
    #That's it!
    Why oh why was this page removed from the wiki I do not know...
    Live CDs of various flavours available HERE: (Don't you have the CD or whatever you used to install to begin with?)
    http://www.archlinux.org/download/
    Last edited by darkbeanies (2011-01-02 17:24:55)

  • Installing Arch but keeping another OS's grub menu

    I installed Arch with the help of the beginners' guide on a 'spare' partition on my machine, which also have another 4 OSs installed. As I wanted one of the others' grub menu to be the 'active' one I skipped the grub installation part - in fear of messing up the grub menu, and hoping that the update-grub command (from within the 'active' OS) would pick Arch up.
    This it didn't and I assume it is because I DIDN'T install grub in Arch (?) but could someone just tell me how I can safely do that but still keeping the other OS's grub as the main one.
    At one point in the guide it says to install grub in /dev/sda; would I be safe if I installed it in /dev/sda10 (which is the Arch partition) instead?
    Will I have to go through the whole installation process again? Or can I start Arch up (perhaps with the help of the CD?) and 'jump in' and carry on where I left off?

    olliegab wrote:I installed Arch with the help of the beginners' guide on a 'spare' partition on my machine, which also have another 4 OSs installed. As I wanted one of the others' grub menu to be the 'active' one I skipped the grub installation part - in fear of messing up the grub menu, and hoping that the update-grub command (from within the 'active' OS) would pick Arch up.
    This it didn't and I assume it is because I DIDN'T install grub in Arch (?) but could someone just tell me how I can safely do that but still keeping the other OS's grub as the main one.
    At one point in the guide it says to install grub in /dev/sda; would I be safe if I installed it in /dev/sda10 (which is the Arch partition) instead?
    Will I have to go through the whole installation process again? Or can I start Arch up (perhaps with the help of the CD?) and 'jump in' and carry on where I left off?
    I dual boot Arch and Ubuntu. I did NOT install Grub from Arch Install. After installing Arch, I rebooted Ubuntu and updated GRUB. Then I changed the default OS to Arch from /etc/default/grub.
    My rationale behind this was Ubuntu being a 6 monthly release compared to Rolling Arch, I had to install and reinstall ubuntu every 6 months and I didn't want any mishaps with Grub during this.
    You probably forgot to update grub in the distro that is handling your Boots. If updating Grub does not show Arch then mount the Arch Partition and then update grub. [However the Grub version in Ubuntu 13.04 has fixed this and I don't have to mount Arch any more].
    EDIT: By the way, not installing Grub means that Grub is not installed in the MBR. All the necessary files required to boot arch will be there in the Arch install.
    Last edited by fantab (2013-04-07 16:56:47)

  • Configuring GRUB:  /boot/grub/menu.lstn

    I have two disks, Solaris 10 on one and Windows XP on the other
    (c1t2d0). (the 3rd disks mirrors the 1st)
    I want to boot into Solaris by default.
    How do I edit /boot/grub/menu.lstn file to reflect this?
    Here are the disks:
    #: format
    Searching for disks...done
    c1t2d0: configured with capacity of 136.71GB
    AVAILABLE DISK SELECTIONS:
    0. c1t0d0 <DEFAULT cyl 36469 alt 2 hd 255 sec 63>
    /pci@0,0/pci10de,376@a/pci1000,3150@0/sd@0,0
    1. c1t1d0 <DEFAULT cyl 36469 alt 2 hd 255 sec 63>
    /pci@0,0/pci10de,376@a/pci1000,3150@0/sd@1,0
    2. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
    /pci@0,0/pci10de,376@a/pci1000,3150@0/sd@2,0
    Specify disk (enter its number): ^D

    This works:
    title Solaris 10 5/08 s10x_u5wos_10 X86
    kernel /platform/i86pc/multiboot
    module /platform/i86pc/boot_archive
    #---------------------END BOOTADM--------------------
    #---------- ADDED BY BOOTADM - DO NOT EDIT ----------
    title Solaris failsafe
    kernel /boot/multiboot kernel/unix -s
    module /boot/x86.miniroot-safe
    title Windows XP
    rootnoverify (hd2,0)
    map (hd0) (hd2)
    map (hd2) (hd0)
    chainloader +1

  • Luactivate 'succeeds' but then new BE does not show up in GRUB menu

    Hi,
    I'm trying to do a live upgrade from S10 u6 to u7.
    The machine is a Sun v20z (which is an x64 box).
    The only file system is ZFS, which consists of two drives that forming one pool, "rpool".
    I use the Service Processor/LOM over SSH to monitor the status of the console and GRUB menu.
    I did everything as directed and everything seemed to check out OK, but no matter what, the new BE never shows up on the GRUB menu! It's driving me nuts! PLEASE HELP!
    lola@sol10box:~$ sudo lucreate -n s10_u7        
    lola@sol10box:~$ sudo pkgadd -d /mnt/Solaris_10/Product SUNWluu SUNWlur
    lola@sol10box:~$ sudo lustatus
    Boot Environment           Is       Active Active    Can    Copy     
    Name                       Complete Now    On Reboot Delete Status   
    s10x_u6wos_07b             yes      yes    yes       no     -        
    s10_u7                     yes      no     no        yes    -        
    lola@sol10box:~$ sudo luupgrade -u -n s10_u7 -s /mnt
    System has findroot enabled GRUB
    No entry for BE <s10_u7> in GRUB menu
    Copying failsafe kernel from media.
    Uncompressing miniroot
    Creating miniroot device
    miniroot filesystem is <ufs>
    Mounting miniroot at </mnt/Solaris_10/Tools/Boot>
    Validating the contents of the media </mnt>.
    The media is a standard Solaris media.
    The media contains an operating system upgrade image.
    The media contains <Solaris> version <10>.
    Constructing upgrade profile to use.
    Locating the operating system upgrade program.
    Checking for existence of previously scheduled Live Upgrade requests.
    Creating upgrade profile for BE <s10_u7>.
    Checking for GRUB menu on ABE <s10_u7>.
    Saving GRUB menu on ABE <s10_u7>.
    Checking for x86 boot partition on ABE.
    Determining packages to install or upgrade for BE <s10_u7>.
    Performing the operating system upgrade of the BE <s10_u7>.
    CAUTION: Interrupting this process may leave the boot environment unstable
    or unbootable.
    Upgrading Solaris: 100% completed
    Installation of the packages from this media is complete.
    Restoring GRUB menu on ABE <s10_u7>.
    Updating package information on boot environment <s10_u7>.
    Package information successfully updated on boot environment <s10_u7>.
    Adding operating system patches to the BE <s10_u7>.
    The operating system patch installation is complete.
    ABE boot partition backing deleted.
    PBE GRUB has no capability information.
    PBE GRUB has no versioning information.
    ABE GRUB is newer than PBE GRUB. Updating GRUB.
    GRUB update was successfull.
    Configuring failsafe for system.
    Failsafe configuration is complete.
    INFORMATION: The file </var/sadm/system/logs/upgrade_log> on boot
    environment <s10_u7> contains a log of the upgrade operation.
    INFORMATION: The file </var/sadm/system/data/upgrade_cleanup> on boot
    environment <s10_u7> contains a log of cleanup operations required.
    INFORMATION: Review the files listed above. Remember that all of the files
    are located on boot environment <s10_u7>. Before you activate boot
    environment <s10_u7>, determine if any additional system maintenance is
    required or if additional media of the software distribution must be
    installed.
    The Solaris upgrade of the boot environment <s10_u7> is complete.
    Installing failsafe
    Failsafe install is complete.
    lola@sol10box:~$
    root@sol10box:/# luactivate s10_u7
    System has findroot enabled GRUB
    Generating boot-sign, partition and slice information for PBE <s10x_u6wos_07b>
    Saving existing file </etc/bootsign> in top level dataset for BE <s10x_u6wos_07b> as <mount-point>//etc/bootsign.prev.
    A Live Upgrade Sync operation will be performed on startup of boot environment <s10_u7>.
    Setting failsafe console to <ttya>.
    Generating boot-sign for ABE <s10_u7>
    Saving existing file </etc/bootsign> in top level dataset for BE <s10_u7> as <mount-point>//etc/bootsign.prev.
    Generating partition and slice information for ABE <s10_u7>
    Copied boot menu from top level dataset.
    Generating multiboot menu entries for PBE.
    Generating multiboot menu entries for ABE.
    Disabling splashimage
    No more bootadm entries. Deletion of bootadm entries is complete.
    GRUB menu default setting is unaffected
    Done eliding bootadm entries.
    The target boot environment has been activated. It will be used when you
    reboot. NOTE: You MUST NOT USE the reboot, halt, or uadmin commands. You
    MUST USE either the init or the shutdown command when you reboot. If you
    do not use either init or shutdown, the system will not boot using the
    target BE.
    In case of a failure while booting to the target BE, the following process
    needs to be followed to fallback to the currently working boot environment:
    1. Boot from Solaris failsafe or boot in single user mode from the Solaris
    Install CD or Network.
    2. Mount the Parent boot environment root slice to some directory (like
    /mnt). You can use the following command to mount:
         mount -Fzfs /dev/dsk/c1t0d0s0 /mnt
    3. Run <luactivate> utility with out any arguments from the Parent boot
    environment root slice, as shown below:
         /mnt/sbin/luactivate
    4. luactivate, activates the previous working boot environment and
    indicates the result.
    5. Exit Single User mode and reboot the machine.
    Modifying boot archive service
    Propagating findroot GRUB for menu conversion.
    File </etc/lu/installgrub.findroot> propagation successful
    File </etc/lu/stage1.findroot> propagation successful
    File </etc/lu/stage2.findroot> propagation successful
    File </etc/lu/GRUB_capability> propagation successful
    Deleting stale GRUB loader from all BEs.
    File </etc/lu/installgrub.latest> deletion successful
    File </etc/lu/stage1.latest> deletion successful
    File </etc/lu/stage2.latest> deletion successful
    Activation of boot environment <s10_u7> successful.
    root@sol10box:/#
    lola@sol10box:~$ sudo lustatus
    Password:
    Boot Environment           Is       Active Active    Can    Copy     
    Name                       Complete Now    On Reboot Delete Status   
    s10x_u6wos_07b             yes      yes    yes       no     -        
    s10_u7                     yes      no     no        yes    -        
    lola@sol10box:~$
    lola@sol10box:~$ sudo init 0
        GNU GRUB  version 0.95  (616K lower / 4127168K upper memory)               
    +-------------------------------------------------------------------------+   
    | Solaris 10 10/08 s10x_u6wos_07b X86                                     |   
    | Solaris failsafe                                                        |   
    |                                                                         |   

    What happens when you create a new BE using the current BE without any changes (just making a bootable copy of the current BE)? What is the results of cat /rpool/boot/grub/menu.lst? If you do a lufslist bootenvname, do all of the indicated filesystems actually exist?

  • How to reinstall a hard drive on a mac pro that was accidentally dragged out of Finder

    How to reinstall a hard drive on a mac pro that was accidentally dragged out of Finder?  I have files on this drive that I don't want to loose or corrupt.

    If you mean you dragged the hard drive shortcut out of the sidebar of a Finder window, you're quite all right - that's just a shortcut and you haven't lost any files. You can get it back by going to Finder preferences (the Finder menu, then Preferences), click Sidebar, and tick the "hard drives" box fully to show all hard drives.
    Post back if you did something different though.
    Matt

  • [SOLVED]Unable to install grub "couldn't find /mnt/boot/grub/menu.lst"

    Ok so I was trying to install windows after I had arch installed, used an ubuntu cd to use gparted to create a partition, tried to go to the windows installation but it would endlessly send me back to restart the installation even after succesfully writting all files...
    So now I decided to not install it, went back into ubuntu/gparted, deleted the partition and rejoined the space with my main arch partition and then selected the "boot" flag to boot...
    Cannot boot, grub its still on /boot/ but the MBR its obviously tempered with by windows ( which coincidentally couldn't even find itself after writing mbr to its liking....*sigh* ).
    So I try to use my arch install cd to reinstall grub but i get this:
    "couldn't find /mnt/boot/grub/menu.lst is grub installed?"
    I tried to use the select packages thing to make sure the cd is mounted and mounts fine but it keeps getting me that error message. I managed to boot to my system just fine with arch root=/dev/sda1 but obviosly the kernell does not has my nvidia module which means I can't get into x which means i am using links and since my grub is not loaded i can't even get framebuffer so this is rather inconvenient.
    Im sure im missing a very simple and stupid thing but im so annoyed my brain must be saying "ok im done somebody else figure it out". I still have a backup copy of my grub menu.lst I made before. Do I just delete /bood/grub/ and try again? Am I missing something on the install procedure to be able to rewrite grub? Can I just do it from the command line or with pacman? Any help appreciate it thanks.
    Last edited by Misanthrope (2008-06-01 17:22:32)

    If you can get into your arch and cli then you should just be able to reinstall grub with
    install-grub /dev/sda
    or reinstall grub with
    pacman -S grub
    if the package is messed up or missing.

  • How to install Solaris 10 on the same hard drive that has had an XP OS

    Hi All,
    I downloaded 5 CDs of Sun Solaris 10 and tried to install the OS on the same HDD that has already had XP OS. But when I boot the machine from CD-ROM to install the new OS, the PC did not do anything but just went back to XP windows. I do appreciate anyone who has a complete procedure to perform this task. I don't know whether the CDs are not bootable, the partition has to be done for the new OS, etc.
    Thanks a lot,
    tv

    I've tried doing a dual-boot install keeping my OEM XP environment intact, and have had nothing but problems getting the Solaris 10 11/06 side of the system running - see my previous posts for more details. I followed what seemed to be good instructions for partinioning and installation. Now, I get the grub menu, but when I select Solaris, the OS puts me in a command-line safe-mode which is read-only. Certainly does not help, since I can't modify any files to try fixes, etc.
    Seems like most people are using a dedicated system or drive for Solaris, or if dual-boot using older hardware that meets the HCL. I can't find much help on getting a newer system (with more hardware compatibilty issues) working in a dual-boot mode. If you figure it out please let me/us know.
    Good luck!

  • Reinstalling Solaris 8

    Dear Solaris Gurus,
    I have Sun Sparc machine with Solaris 9. I want
    reinstall Solaris 8.
    I am doing the follwing,
    I booted from the Cdrom and after 3 steps it throws an error
    "X Error of failed request: BadAlloc (insufficient resources for operation) "
    I want to totally format my Present Solaris 9 and reinstall Solaris 8. Plz tell me how to do it.
    Regards
    Gopalan

    Seems like there is a problem with your X - environment, you could try and type the following from the OBP:
    boot cdrom - install w
    .. when the CD labeled "Solaris Software CD 1/2" is inserted into the computer.
    This should give you a text-based install GUI instead.
    //Magnus

  • How to reinstall mail.app using Yosemite?

    I downloaded some third party emoticons and now a windows pops up noting that the plugin is outdated. Searching for the plugin to be removed I opened the Mail.app and moved the webkit plug-in to the waste basket. accidentally emptied the trashbin and now I can't add any attachments to my mail.
    How to reinstall mail with the webkit plug-in?
    Wient

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • How to install Solaris 10 on sun ultra enterprise 450

    I just got a used sun ultra enterprise 450 and need to get a username and password. If I cannot get easily how do I reinstall the OS. What OS can I put on its? I am new to some equipment. It also came with a a storage unit for extra hard drives and how would I use it and set it up also?
    It now says type ctrl-d. What do I do?
    http://www.unix.com/sun-solaris/114206-how-get-root-password-how-install-sun-os.html
    http://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-install-solaris-10-on-sun-ultra-enterprise-450-739614/

    This same question was cross-posted to another forum site
    [http://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-install-solaris-10-on-sun-ultra-enterprise-450-739614/|http://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-install-solaris-10-on-sun-ultra-enterprise-450-739614/]
    with the same unintelligible drivel.
    O.P.
    Go to Docs.Sun.Com and get the system's documentation. Also go get the OBP 3.x Command Reference manual while you are there. All you questions are answered in that documentation, except for those that are easily found with Google.
    [Example of a Google search for your question.|http://www.google.com/#hl=en&q=solaris+root+password&aq=f&oq=&aqi=g9&fp=KxYPMM6r3XA]

  • Grub Menu Help

    Hi
    I have a system currently running with a RAID 1 pair of hard disks running Solaris 10 X86. These are located in slots 0 and 1 and are currently bootable. I would like to add another RAID 1 pair of disks also running Solaris 10 X86 to slots 2 and 3 and boot to them also. My aim is to have a dual boot system running 2 instances of Solaris 10, separate RAID 1 pair disks for each OS instance. I have updated the menu.lst on the 1st pair of RAID 1 disk to incorporate the below:
    title Solaris 10 5/08 1st-RAID1-PAIR
    kernel /platform/i86pc/multiboot
    module /platform/i86pc/boot_archive
    title Solaris 10 5/08 2nd-RAID1-PAIR
    root (hd2,0,a)
    kernel /platform/i86pc/multiboot
    module /platform/i86pc/boot_archive
    When booting I see the option to select the 2nd-RAID1-PAIR of disks in the grub menu, but I cannot boot the 2nd Raid 1 PAIR. If I change the root line to (hd1,0,a) or hd0,0,a) then it boots the 1st-RAID1-PAIR. Can anyone spread some light on what I am doing wrong or what the HD value should be?

    I am currently using an Arch grub legacy on the mbr to boot 2 grub2 systems.
    Here is the menu.lst entry for my new arch install, which uses systemd and grub2:
    title Arch Linux 1
    root (hd1,0)
    kernel /grub/i386-pc/core.img
    That install has a separate /boot partition which is the first partition on my second drive, sdb1 or (hd1,0) in grub legacy-speak. Without the separate boot partition, the entry would use
    kernel /boot/grub/i386-pc/core.img
    This menu.lst entry boots Fedora 17 (also grub2 & systemd) which is all on a single partition at sdb6, or (hd1,5) in grub legacy's terms:
    title Fedora 17
    root (hd1,5)
    chainloader +1
    Both of these methods work. The Fedora entry works across kernel updates, not sure about the core.img method as there hasn't been a kernel update there yet.
    http://en.gentoo-wiki.com/wiki/Grub2#Ch … g_to_GRUB2
    Last edited by sonoran (2012-10-22 22:17:06)

  • Satellite 2450: How to reinstall WXP on existing partition from recovery disc?

    Hello:
    This question has been asked before, but the answer is as follows:
    On this forum you can use Advanced search option to find some solutions if someone wrote about it before.
    Anyway check this please
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=2513&tstart=125
    I checked this and it gives an answer how to create a partition but not how to reinstall xp in the c drive from the recovery disk.
    There is the choice to go to expert, but once there I have no idea what to do. Lots of potential settings, but nothing to say how to reinstall xp without wiping out all the other drives.
    Thanks for any help

    Hello tw
    Like I said in my explanation If you want to install OS on a partition please use Expert mode. In this case the software can be installed onto an existing partition. You can also make one by yourself.
    If you want to install the OS on existing partition make it on this way:
    1) put Recovery CD or DVD in DVD drive
    2) pres power button and after that press and hold down C button
    3) after short time there is an menu and choose Expert mode pressing number 2
    4) Approve OK pressing ENTER button
    5) Choose LOCAL > PARTITION > FROM IMAGE
    6) Look in: must be selected to CD-ROM drive and In the middle window choose GHO file and press ENTER
    7) The information about drive will be shown > press ENTER again
    8) The local destination drive will be shown > press ENTER again
    9) The next window show both partition if you have two of them. On this place you must chose the destination partition (the first one is under Part 1)
    10) The OS will be installed on marked partition (you can change it using UP and DOWN buttons)
    11) If the partition is selected press ENTER button
    12) The small Information window appear with follow content: Proceed with partition load? Destination partition will be permanently overwritten.
    13) Confirm with OK
    I hope that your installation will be successful.
    If you have more questions please write again and I hope that we will find an solution.
    Good luck!

  • Does anybody know how to reinstall System Preferences? I accidentaly put System Preferences in the trash and emptied the trash :P

    Does anybody know how to get System Preferences? A couple of weeks ago I put it in the trash and emptied it. Does anyone know how to reinstall it?

    How Restore Deleted or Missing OS X Components
    A few of the basic OS X installed applications can be restored from the Optional Installs installer located in the Optional installs folder on your Installer DVD.  However, if what you need is not there then follow the instructions below.
    How to Use Pacifist to Restore Deleted or Missing OS X Components
    Insert the OS X Installer DVD into the optical drive.  Use a simple utility like TinkerTool to toggle invisibility so you can see invisible items.  Alternatively, open the Terminal application in your Utilities folder and at the prompt enter the following:
    defaults write com.apple.finder AppleShowAllFiles Yes
    Press RETURN.
    To turn off the display of invisible files repeat the above command substituting No for Yes.
    The install packages are located in the /System/Installation/ folder on the DVD.
    Download the shareware utility Pacifist. Use it to extract a fresh copy of the missing item(s) from the file archives on your OS X installation DVD. The file archives are in the /System/Installations/ folder (use Go to Folder option in the Go menu of the Finder.)
    Here are Four Basic ways to use Pacifist (courtesy of George Orville.)
      A. Drag a .pkg icon onto the Pacifist window .....proceed to step 7.
      B. Click on “Open Package ....” and navigate to package desired and click “Open” in
           the open/save window.....proceed to step 7.
      C. Insert Mac OS X installer CD and when it mounts, navigate to .... Menu->Go->Go
           to Folder. In the path field enter or paste ....
    /Volumes/disc name/System/Installation/Packages (where disc name is the name of the CD/DVD that you inserted.)
    Click on the  "Go" button ..... • Drag a .pkg to Pacifist..... proceed to step 7.
    The package you'll need will have to be discovered by trial and error, but for most applications you should start with the Essentials.pkg and/or Additional Essentials.pkg.
    D. Insert your Mac OS X install disk 1 .... and open Pacifist.
    1. In Pacifist, select "Open Mac OS X Install Packages" ... dialog may appear asking for disk 2, then disk 3 and finally disk 1 again.... {if DVD is not used)...If “Stop Loading” is selected...the procedure will stop!!!
    2a. When loading is complete, a new window appears, click the triangle to display contents of each package...Select item and proceed to step 7.
    2b. or click the “Find” icon in the Pacifist window and type the name of the software you need.
    3. In the list that comes back, click the top most entry for the item that you want. ..... that is the one for the English language.
    4. On the top of the Pacifist window, click “verify” .... you will probably be prompted for your password.
    5. Enter checks for.... “verify permissions” and “verify file contents.” and click “verify” ....enter password when prompted.... you will get back output which may look like this:
      20 files were scanned. 20 of 20 files were present on the hard disk. 0 of 20 files had file permissions that did not match those specified in the package. 0 of 20 files had checksums that did not match those specified in the package.
    6. Click “close”. Go to step 7.
    Extract or Install........
    7. In the Toolbar (upper left), you now have the option to extract or install. Click a file in the lower list and those two icons will be enabled.
    8. If “Extract to...” is selected.... navigate to the location where the file will be placed, select “choose”, select “extract” in new dialog that appears,authenicate , if prompted, click “OK”.
    9. In the next dialog, click “Extract”.
    10. If “Install” is selected... dialog will appear with the location/path of the installed software. Click “Install”
    11. Type in your password, click “OK”
    Pacifist will begin to extract files.
    12. In steps 8/10ß.... you also have the choice to “cancel”
    Notes: Pacifist may find that a file it is installing already exists on the hard disk. Pacifist will present you with an alert panel....
      • Stop
      • Leave original alone
      • Update .....
      • Default selection
      • Replace .... (Replace option should only be used on full install packages)

Maybe you are looking for