Thursday, May 14, 2009

How To Properly Uninstall Linux + GRUB Bootloader

To do this, you have to do two steps:
1. Stop using GRUB as your bootloader and resinstall the MS Bootloader that was there originally for Windows.
2. Format/Remove the partition with Linux and GRUB bootloader on it.

The following are steps explains how to do this for Windows XP, but these steps also work with Vista and Windows 7.

How to do it:

1. Reboot your laptop with windows 98 start up disc or Windows XP CD and type the command “fixmbr”.

2. Above command will repair ur bootloader and rewrite ntldr which will replace grub loader of Linux and now you can see only Windows XP in the boot menu.

3. Now Boot up in Windows xp.

4. Go to Start > Control Panel > Administrative Tools > Computer Management

5. Go to Disk Management under “Storage”

6. Select your Hard Disk and then the linux partition.

7. Delete the linux partition this will delete linux and grub.

8. Thats it done now boot your laptop or desktop normally it will be booted by default in windows xp.


Sunday, May 10, 2009

Linux + Multibooting With Multiple Versions of Windows

In order to have a multi OS system with Windows as one of the OS installed. You must install Windows first or else you would have to install a bootloader program like GRUB manually after because the Windows installation would install the Windows boot loader in the boot sector of the drive. There is nothing with this if you don't want to use Linux again, but the Windows boot loader only recognizes Windows OS and will only let you start up those OS.

Once GRUB is installed, you can modify it to say whatever you like.

**NOTE** This guide is referring to the original GRUB Bootloader, now known as GRUB Legacy. For GRUB 2, please see a later post called 'Everything You Need To Know About GRUB 2'.

In my case, I had Windows Vista Business installed, then I installed Windows 7 RC to try it out and Linux Mint 7 RC as well. With Linux Mint being the last OS I installed, my computer booted into GRUB no problem.

You can modify the GRUB boot menu (and booting options) in the menu.lst file, located at:
/boot/grub/menu.lst

In order to modify this file, you must have administrative rights (sudo). For the Linux OS, you would have seperate sections for it, but for Windows, you would have one that would load the Windows bootloader (loading another bootloader is called chain loading).

In order to load the Windows boot loader, you must figure out which harddrive/partition it resides in. It is usually installed in the boot sector of the disk you installed Windows on, although once a partition is marked active (required to install an OS on it), then it will be at the head of the partition.

In Linux, the first harddrive would be called hd0, second hd1, third hd2, etc. The first partition would be called sd0, second sd1, third sd2, etc. In my case, my laptop only has one harddrive, but three partitions. My Windows boot loader is on the second partition, which is (hd0,1). I also have a copy of the Windows bootload on (hd0,4) from my installation of Windows 7. I could use either one. Choose the one of the OS that you would keep the longest.

The Windows load sequence should look something like this:

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista/7 (loader)
rootnoverify (hd0,1)
savedefault
makeactive
chainloader +1
boot

You could also do things, such as hiding a partition before going to the Windows bootloader, like follows:

# I added this for Windows 7
# on /dev/sda5
# Hides the Vista partition (sda2)
title Windows 7 (hide Vista)
hide (hd0,1)
rootnoverify (hd0,4) # Windows 7 installation also installed a bootloader
chainloader +1
makeactive
boot

*NOTE: Your other bootloaders should have "unhide (hd0,1)" in order to see that partition again. You can't hide the harddrive/partition that has the bootloader, otherwise there would be no way to boot into it.

This would hide the partition that Vista is on when I load Windows 7. That means that that partition will not be available when I'm running Windows 7. That's ok for me because those files were not editable without having the corrent user rights to modify them.

Sunday, April 12, 2009

Viewing US and UK Only Streaming Videos

Hi,

Have you ever tried to watch a video on the internet and waited for the video to load just to get a message saying "Sorry this video is not available in your region"? I am in Canada, but I watch American programming, but if I miss an episode there are no sites that legally put these shows up for streaming for Canadian residence.

For example, FOX (http://www.fox.com) puts the latest episode(s) of their top shows up on their site for streaming. The only restriction is that these videos are only viewable to US residence. So somehow we have to trick the site into thinking we are trying to watch from within the US. How do we do that? The answer lies in changing our Proxy Server.

=========================================================
How To View Regional Specific Content From Outside That Region
=========================================================

To change your proxy server for IE, just follow the following steps:

Go to Tools -> Internet Options -> Go to "Connections" Tab 
-> Press the "LAN Settings" found at the bottom 
-> In the "Proxy Server" Area, Check "Use Proxy Server for your LAN" the place where you input your proxy IP and port will be enabled 
-> Input your chosen proxy IP and port 
-> Check "Bypass proxy server for local addresses 
-> Press "OK"

You can get different free proxy servers from the following websites:



Other/International Proxies (http://proxy4free.com/page1.html)


Saturday, April 11, 2009

My First Blog

Hi All,

This is my first blog. I was thinking about creating a php script that I can host on my own server that will have a form that I can fill out and it will create an HTML page for it. My plan was to create a collection of 'How To...' guides that I, or someone else, can use later on. Then I realized that I can actually just sign up for a blog and do this here. So now here I am with a blog.

My goal for this site is to summarize things that I learned and put them all in an easy to read format for me to review and relearn later on in case I ever forget. For example, I have learned about ten or maybe more programming languages in my life so far and if I was asked to write a program in one of those languages, I would need to have a refresher course in it first. Right now I am fluent in Perl and TCL scripting, but that's only because I've been writing a lot of scripts in those languages for the past few months.

Here is a list of the programming/scripting languages that I've learned and when I was fluent in them:

HTML - Middle school, made my own webpages for fun
Turing - Grade 9 Tech Class, first programming language I learned
BASIC - Grade 12 Tech Class
Visual BASIC - Grade 12 Tech Class
JAVA - First year university, took a course about this
C++ - Second year university, wrote a HTML web sever
C - Second year university, programs to control LEGO pieces
Assembly - Second year university, controlled a micro processor
Verilog - Second year university, not a programming language
Kernal Programming Language (KPL) - Third year university, wrote an operating systems for a course
TCL - Internship, various scripts for synthesis
Perl - Internship, various scripts to reduce manual work
Python - Internship, just tried it out, never made any scripts to be used often
PHP - Internship, a webpage cataloging my results

I think I know some more languages, but I can't even remember them right now. MATLAB comes to mind, but is that really a language? I completely forgot how to use MATLAB and I will probably be relying heavily on that to solve some difficult math problems in my fourth year. 

I find programming and writing scripts simple. Although that's not the field I'm going into. The field that I'm choosing to go into is a lot more difficult to me. Maybe I should just stick to what I'm good at. I guess I will have to reconsider what I'm deciding to do.

Well now that I have a blog, hopefully I will keep up with it and continue to post.

- DreOn