Another part of notonegoro.net

March 21, 2006

To bring GRUB back again…

Filed under: FOSS @ 8:56 pm

Today I have to reinstall my Windows 2003 over my Ubuntu installation, a dual-boot Operating System on a harddrive. The partition itself /dev/hda1 for Windows’s partition, /dev/hda5 for data (a FAT32 partition), /dev/hda6 for Ubuntu and /dev/hda7 for the swap partition.

To use the dual-boot using boot loader that came from Linux, which can be GRUB or LILO, firstable you should install Windows first then continue with your Linux’s installation. By this, hopefully your hands will not be “dirtier”. By default, GRUB will be install after you have successfully installing Ubuntu.

To be short, I have to install Windows again. By this, if you have GRUB installed (like me), the GRUB will be replace by Windows boot loader. This is what I did to recover the GRUB without have to install the Ubuntu again. :D

1. Get any Live-CD you have, Knoppix will be great.
2. Boot to Knoppix.
3. Get to the terminal, by pressing Alt+F2 then type ‘xterm’ (without quote) in the box appeared.
4. Change the user priviledge to root.
5. Type on the terminal:
; below command is use to make a directory call disk

# mkdir /disk

; below command is used to mount your Linux’s partition to /disk, you can change the partition according to your installation respectevely.

# mount /dev/hda6 /disk

; below command is used to get in to your root directory of your Linux’s partition.

# chroot /disk

; below command is used to install the GRUB on the MBR. You can change to the boot partition you might have made previously.

# grub-install /dev/hda

6. Reboot your computer.

Trala!!! Now you have your GRUB again. <:-p

Well, now it’s time to get back to the console again. :P

6 Comments »

  1. Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows XP

    same old mistake my boy … same old mistake … :-" :P

    Comment by aldi — March 22, 2006 @ 5:19 am
    Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows XP

  2. Using Mozilla Firefox Mozilla Firefox 1.0.7 on Windows Windows Server 2003

    Hehe.. I know installing Windows’s a mistake, but I not that hate to Windows.. :P

    Comment by bn — March 23, 2006 @ 4:30 pm
    Using Mozilla Firefox Mozilla Firefox 1.0.7 on Windows Windows Server 2003

  3. Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows XP

    euh? :P ADA YANG KURANG! ADA YANG KURANG! :D

    Comment by aldi — March 23, 2006 @ 5:20 pm
    Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows XP

  4. Using Mozilla Firefox Mozilla Firefox 1.0.6 on Windows Windows 98

    ga ngerti :)>-
    yah btw.. dv kan bilang dv punya ponakan bandel.. bukannya im not even trying gituu..

    Comment by dv — March 28, 2006 @ 3:36 pm
    Using Mozilla Firefox Mozilla Firefox 1.0.6 on Windows Windows 98

  5. Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows 2000

    helow brother
    ihihih suka Koil juga yah hehehe .
    makasi komennya …ehemz
    tak link yah web muh

    Comment by arie — March 30, 2006 @ 6:58 pm
    Using Mozilla Firefox Mozilla Firefox 1.5.0.1 on Windows Windows 2000

  6. Using Mozilla Firefox Mozilla Firefox 1.0.7 on Windows Windows XP

    #3 Emang benar, kurang rasanya tidak ada Linux. :P
    #4 Hehe.. terkadang emang malas juga main keponakan yang bandel.
    #5 Yoi, suka Koil juga nih. :D Silakan dilink, terima kasih.

    Comment by bn — March 31, 2006 @ 2:50 pm
    Using Mozilla Firefox Mozilla Firefox 1.0.7 on Windows Windows XP

RSS feed for comments on this post. TrackBack URI

Leave a comment

You can use these tags and emoticons: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:) :( :d :"> :(( \:d/ :x 8-| /:) :o :-? :-" :-w ;) [-( :)>- more »

Generated in 0.116 seconds.