Tag Archives: ubuntu installation

Install Windows 7 alongside a pre-existing Ubuntu

I purchased a Dell Laptop last week for work related tasks and it was shipped with pre-installed Ubuntu 11.10. After receiving the laptop, I want to install the Windows 7 on another partition (To use it as my Primary OS). I start searching the internet and every guide I found suggest to install Windows and, after that, Ubuntu but I want to keep all these setting that it shipped with. In this tutorial, I will try to show you the procedure that I followed to achieve this goal:

First, back up your data and boot the system from Ubuntu desktop CD and select “Try Ubuntu” :

Press “Ctrl+Alt+T” for terminal and write this command:

sudo gparted

Select your desired parition to free up the disk space for winodws 7, Right click on it and select “Resize/Move“:

Mention the Size that you want to free:

Right-click on the free space and select “New“:

Select file system as “NTFS” and click on Add:

After that click on the tick mark sign and hit “Apply“:

Then reboot the system and install Windows into the NTFS partitions:

Then boot the Ubuntu CD again and re-install grub, first add the boot repair repository:

sudo add-apt-repository ppa:yannubuntu/boot-repair

Update the local package index with the latest changes made in repositories:

sudo apt-get update

Install and launch the boot repair by using this command:

sudo apt-get install -y boot-repair && boot-repair

Click on the recommended option:

It will take about 15 to 20 mins and if everything goes well, it will show you the success message:

After reboot, your system will present you with the grub menu:

Hope this will help you!

Please Remember me in your prayers!

Enjoy 🙂

Advertisements

How to reinstall Ubuntu without losing the old data with separate home partition

I came from Windows world and always think that if we want to reinstall the windows then we only need to format the C drive while data in other drives survive(e.g. Documents, Software etc.) but if we reinstall the Linux, then all of our data erased(If we used default partition scheme). In this tutorial, I will create separate home partition for my personal data and also want to make sure that it will survive during the clean installation of Linux.

I will use the recommended partition scheme for this tutorial, in which, I’ve created four primary partitions:

1) /boot – for bootloader, if you’re running multiple OS
2) swap – which should be a little larger than the amount of ram you have(double than your ram is recommended)
3) – the main file system directory for operating system
4)/home – for your data files

Suppose,I purchased a new Laptop and want to install Ubuntu 10.04 LTS on it and for this, I did the partition like this:

Note: I skipped the couple of steps until reach to the partition page.

When you come to the partition manager part of the install, then select the partition manually:

The new hard drive does not have a partition table, click on the “New Partition Table” to create one:

Click “Continue“:

As per recommendation, the first partition should be mounted at /boot, because Ubuntu is the solo OS on this disk then installer will create the first partition as a primary partition (300 MB space is sufficient for this partition).

Select the free space and click on Add to create /boot partition:

The second partition will be for Swap, which should be a little larger than the amount of ram you have (double than your ram is recommended).

Select the free space and click on Add to create Swap partition:

The third partition will be for /. The installer recommends ~4.0 GB of disk space for installing Ubuntu 10.04, but assign more, if you are installing a lot of applications(~ 20 to 50GB).

Select the free space and click on Add to create / partition:

The last partition will be for /home and you may use all the available disk space.

Select the free space and click on Add to create /home partition:

The main manual partitioning window shows us all the partitions that we just created, Click “Forward” to continue the installation:

Suppose,I used this laptop about 1 year and create some folders which contain my data at /home.

Meanwhile, Ubuntu 12.04 LTS released and I want to updated my laptop from Ubuntu 10.04 to 12.04 but want to make sure that all the data in my home partition will be survived.

Again,I skipped the couple of steps until reach to the partition page, Click “Something else“:

It will present us with the partitions that already created:

As we already follow the recommended partition scheme 1 year ago when we created the partitions on our new hard disk.

Choose the /boot partition(How I know that, it’s boot partition? Well we know that we created it ~300MB) then click on Change, specify the file system, select format and set the mount point as /boot.

Choose the Swap partition then click on Change and specify the file system as Swap.

Next choose the / partition then click on Change, specify the file system, select format and set the mount point as /.

Now choose the /home partition then click on Change, specify the file system, DO NOT SELECT format and set the mount point as /home.

In the main manual partitioning window, we can see all the partitions that just created. Click “Install Now”:

After the fresh installation of Ubuntu 12.04, I still have all of my old data (if you don’t have your old data then please don’t blame me).

Hope this will help you!

Please Remember me in your prayers!

Enjoy 🙂

Step by Step tutorial to install Ubuntu Server 12.04

I hate to write the long articles, so I will make it short and sweet.

First, download the server version of Ubuntu from here,create the CD and boot the machine with the CD:

Once you successfully boot from CD, it will present you with the following screen in order to select your desired language and then press [Enter]

Select “Install Ubuntu Server

Select the language, you would like to use for the install

Select your Country/City

It’s time to detect your keyboard layout. If you want to detect it then select “Yes” or else use the predefined one by using the “No” option.

Choose the Keyboard layout from pre-defined list

Choose a hostname for Ubuntu Server

Setting up username and password

It will show you warning if you are using the weak password

Select “Yes“, if you want to encrypted private directory (but I will use No)

If it finds the correct time zone for your location you can select Yes. If it says none or is not the time you wish to use, select No.

You have to partition your hard disk before use it, here I am using the “use entire disk” option

Configuring the package manager and select continue

Select how do you want to update your sever

Select the software that you wish to install by highlighting them and hitting the spacebar

Select Yes to install the grub in the master boot record

Installation complete message here, you need to remove the CD

After reboot, Login to the server by entering the username and password you created during installation

Hope this will help you!

Please Remember me in your prayers!

%d bloggers like this: