`
love~ruby+rails
  • 浏览: 826375 次
  • 性别: Icon_minigender_1
  • 来自: lanzhou
社区版块
存档分类
最新评论

How to install Ubuntu 9.10 without CD/DVD

阅读更多

Ubuntu 9.10, Karmic Koala is finally out now and everybody wants to install it. But since the requested CDs won't get delivered for another few weeks the only option left is to download the ISO , burn it and then install. Everything seems to be right except the burning part, I hate burning CDs. And I believe there are many out there who feel the same. So, in this article I will tell you about 2 different ways of installing Ubuntu Karmic which don't involve burning CDs.

 

Install from your Hard Drive

Pre-requisites

  • Any preinstalled Linux system.
  • Ubuntu 9.10 ISO. (you may download it from here )
  • If you want to learn the basic concept behind installation without burning CDs then refer this article .

Benefits

  • Since the ISO lies on the Hard disk, installation is pretty quick.
  • If you don't have CD/DVD drive.
  • You hate burning CDs, like me ;).

Installation

1) The basic trick behind this method of installation is that instead of booting from a 700 MB installation CD we create a separate > 700 MB partition and boot from that partition. This results in increased speed of booting into a Live mode and lesser time for installation.

So, first of all we are going to create a separate partition for this purpose (750 MB will be fine). One can create partition using gparted (Gnome partition editor). Let us call this new partition /dev/sda1

2) After creating the partitoin, we will have to copy the contents of the ISO into the new partition. Boot into your pre installed linux system or using another Live CD and run the following commands

[shredder12]$ mkdir /tmp/install_cd

[shredder12]$ mkdir /tmp/installer

Now, mount the partition and the ISO in their respective directories

[shredder12]$ sudo mount -o loop ubuntu_disk_image.iso /tmp/install_cd

[shredder12]$ sudo mount /dev/sda1 /tmp/installer

Now, use rsync to copy the contents of the ISO to the partition

[shredder12]$ sudo rsync -a  /tmp/install_cd/    /tmp/installer

Once, this is done unmount the partitions.

[shredder12]$ sudo umount /tmp/installer

[shredder12]$ sudo umount /tmp/install_cd

P.S.- Replace /dev/sda1 with the partition you have created and ubuntu_disk_image.iso with the ISO have downloaded.

3) Now, we need to add an entry in our grub or lilo boot loader to be able to boot into this partition. If you are using grub then add this line in the grub's menu.lst file. Open the file in any editor (i will use vim here)

[shredder12]$ sudo vim /boot/grub/menu.lst

Add these lines at the end of your menu.lst file

title           my ubuntu installer
root            (hd0,0)
kernel          /casper/vmlinuz boot=casper root=/dev/ram ramdisk_size=1048576 rw
initrd          /casper/initrd.gz

Since, the disk partition I was using was /dev/sda1 so I used (hd0,0) here if your partition is /dev/sdaN then you should use (hd0,N-1).

You may either add this entry in menu.lst file or you may boot from grub by executing similar commands (prefer adding these lines if you don't know what I am talking about).

4) Now, reboot your system and select "my ubuntu installer" from grub. And you can follow the regular Ubuntu installation from there.

Install using USB

If you have a USB (size > 700MB) then you can create your own USB bootable Ubuntu.

Pre-requisites

  • A USB of size > 700MB
  • A BIOS that allows booting from USB
  • Ubuntu installation ISO
  • A tool for creating USB bootable disk

Benefits

  • If the USB is fast then the installation can be as fast as a hard drive installation.
  • You can use the USB stick as a Live CD (but ofcourse it will be a lot faster than a CD)
  • It is easier to maintain than a Live CD

Installation

1) First of all we will need a bootable USB creator. Actually there are many of them, you can check them out here . I will be using UNetbootin in this article.

2) I guess you might have installed UNetbooting by now. If not follow this link and download the version you want to install (they are available at the top).

3) Once you have installed it open it and you will see a window. Select Ubuntu in the distribution drop down box and select the USB location and the ISO. Click OK and it will create a bootable USB disk for you.

4) Now, there is nothing much to do. Just insert the USB and select boot from USB from your BIOS booting options. After booting you will see some options, select default if you don't know what to do. And after that you will see the regular Ubuntu installation. Go ahead and install it.

Enjoy then new Ubuntu Karmic :) !!

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics