Installing nUbuntu to a hard drive

From nUbuntu Wiki

Jump to: navigation, search

Contents

nUbuntu 8.04 Alpha

  • Uncomment anything in this file that contains a URL (delete the #):

sudo nano /etc/apt/sources.list
To save changes:
CTRL+X -----> Y -----> ENTER

  • Update:

sudo apt-get update

  • Install Ubiquity:

sudo apt-get install ubiquity

  • Run Ubiquity:

sudo ubiquity


nUbuntu 6.10

Ubiquity

The official method is by installing and using Ubiquity, a graphical installer.

Boot the nUbuntu LiveCD, without changing any boot options (i.e. key layout, language).

1) Execute sudo apt-get install ubiquity. Let all the packages install.
2) Execute setupcon. This should change the console font, and resolution.
3) Execute startx. This will start the X server and Fluxbox.
4) Open a terminal from the Fluxbox menu.
5) Execute sudo ubiquity. This will start the Ubiquity user interface.
6) Following the Ubiquity instructions.
7) Let it download the language packs, and anything else it needs to download.
8) If successful it should ask you to restart your computer, or if you received the grub error, please email your logs.
9) If it worked and you rebooted, you should be greeted with a login prompt. Login and then run startx.
10) The Fluxbox style will be messed up. This can be sorted by choosing the bean theme from the Styles context-menu.

This method is known to fail sometimes. (Make that often, --Klerud 20:19, 19 July 2008 (UTC))If that is the case, try the next method.

Manual install

tasdawg of the nUbuntu forums posted an alternative installation method as the Ubiquity-method failed. Note that this method is only tested with nUbuntu 6.10. Step one - preparing the hard drive. Boot up the disk and just stay at the main screen Note that you do not have type [nubuntu@nubuntu] in the following commands.


[nubuntu@nubuntu]

Next I started up fdisk and did a partition of my hard drive. This step can be done with gParted, or any other partitioning tool outside of nUbuntu as well.


[nubuntu@nubuntu] sudo fdisk /dev/hda

I set up making 3 partition tables. 1: Linux - Main OS 2: Linux - Storage 3: Linux Swap

I formatted 1 and 2 partitions with mkfs.ext3


[nubuntu@nubuntu] sudo mkfs.ext3 /dev/hda1 && sudo mkfs.ext3 /dev/hda2


Then login as root.


[nubuntu@nubuntu] su - passwd: [leave blank]


Create mount point & mount the hda1

[root@nubuntu] mkdir /tmp/hda1 && mount /dev/hda1 /tmp/hda1


Now start copying th files ... P.S: don't copy mnt, tmp, proc or cdrom

[root@nubuntu] cp -R {/bin,/dev,/home,/lib,/opt,/sbin,/usr,/boot,/etc,/initrd,/srv,/tools,/var,/root,/sys} /tmp/hda1 && mkdir /tmp/hda1/mnt && mkdir /tmp/hda1/tmp && mkdir /tmp/hda1/proc

You now have to install the bootloader.

Staying as root - you have to make hda1 your root dir, install grub and you're done....

First, create the folder 'grub' in 'boot' & copy all files from /lib/grub/i386-pc/ to there


[root@nubuntu] mkdir /tmp/hda1/boot/grub && cp -R /lib/grub/i386-pc /tmp/hda1/boot/grub

Now for the fun part

[root@nubuntu] chroot /tmp/hda1

[root@nubuntu] grub

grub> root (hd0,0)

grub> setup (hd0)


You will then need to make a boot menu for grub as the default one has a lot of other unnecessary code in it. My menu.lst looks like this:

title Linux 0,0

root (hd0,0)

kernel /boot/vmlinuz root=/dev/hda1

initrd /boot/initrd.img


Re-run these sets of commands again:

[root@nubuntu] chroot /tmp/hda1

[root@nubuntu] grub

grub> root (hd0,0)

grub> setup (hd0)

Now you should have a working grub and nUbuntu on your hard drive.

Ubiquity and Manual Grub Install

Another method of installing nUbuntu is to install ubiquity as described above. After you get the error about grub not installing run grub-install to install it manually as root like so:

sudo su -

grub-install --root-directory=/target hd0

Now you need to create a menu.lst in /target/boot/grub/

Mine looks like this:

title nUbuntu 8.04 alpha

root (hd0,0)

kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/hda1 ro

initrd /boot/initrd.img-2.6.24-16-generic

savedefault

Done. Now reboot without the CD and enjoy nUbuntu.

-h00d

See also

Alternative window managers

Personal tools