Adjust variables
Edit
- variables.sh
- locigal_volumes.sh
to match your preferences.
For example: the additional packages to install after installing the server,
or the disk names to create boot partitions onto.
Installing Linux modules
We need some more Linux modules to support mirrored disks and logical volumes.
In a root shell, enter:
1.install_packages.sh (and do something else for an hour).
In the Grub menus you must TAB to the
button to acknowledge.
Mail
When asked for, choose the mail configuration of your sever:
- Internet site: you can deliver mail to any host on the internet directly
(as if you are a provider)
- Internet smarthost: you must send your mail for the Internet
to your Internet provider
The first script also creates some tiny errors in the old menu.lst
and the new grub.cfg. They must be fixed before next boot.
Fix the errors
In older versions there are 2 errors preventing the machine to boot next time.
So they have to be fixed before shutdown !.
Fix menu.lst
If the file /boot/grub/menu.lst exisis (only in older versions), change:
title Chainload into GRUB 2
root 75b94905-643832-348-348
kernel /boot/grub/core.img
into:
title Chainload into GRUB 2
uuid 75b94905-643832-348-348
kernel /boot/grub/core.img
Only once !
Fix grub.cfg
Since there is currently only one disk in the system,
there is only a very small that this error will occur.
In newer versions the UUID is already inserted; then you can skip his paragraprhg.
type command mount | grep " / " (mind the spaces on both sides of the slash)xi
to obtain the root device name.
type command blkid to obtain the UUID of the boot device.
Use it in the green line below.
In file /boot/grub/grub.cfg change:
set root=(hd3,1)
...
menuentry "Ubuntu, linux 2.6.26-7-generic"{
linux (hd3,1)/boot/vmlinuz...
initrd (hd3,1)/boot/initrd...
}
into:
set root=UUID="123456-1234-1234-123456789012"
menuentry "Ubuntu, linux 2.6.26-7-generic"{
linux (hd0,1)/boot/vmlinuz...
initrd (hd0,1)/boot/initrd...
}
Note: this may be version dependingly, it may be right in the first place..
Then reboot without any problems.
Boot failed. Forgot to fix the Grub menu, huh ?
The system will not properly boot, and gives the message
Error 11: Unrecognized device string.
Perform the following actions:
- enter
- Select Chainload into GRUB2, but do NOT enter.
- e edit the menu
- e change root
into uuid.
- b boot.
Now the (blue) GRUB2 menu will start.
And fail with the message: "error: You need to load the kernel first".
Perform the following actions:
- enter
- Select Ubuntu, linux..., the first line in the menu.
But do NOT enter.
- e edit the menu
- change (hd3,1)/boot/linux...
into: (hd0,1)/boot/linux....
In 2 places !.
- ctrl-X boot.
Now do the modifications in the previous paragraph !
Remove old version of Grub
So now you booted without any errors ?
Otherwise go back to the top of this page !.
Now GRUB2 works fine, and we don't need GRUB1 anymore.
(GRUB2 cannot boot from a mirrored disk).
In a root-shell give the command upgrade-from-grub-legacy,
and remove /boot/grub/menu.lst.
Shutdown and reboot the system again, to be sure there are no GRUB problems anymore.
Activate services
In the logon desktop, click System, Administration,
services, unlock, and
- enable RAID disk management (mdadm).
- disable Bluetooth device management, there is no bluetooth device,
so we don't need this.
- maybe you want to have a look at the other options.