if you want to install the new release of Ubuntu (13.04) on 2 drives you can do this with the following step by step manual. My notebook is a Sony Vaio vpcz1 and therefore your first steps may differ from mine!
0. (vpcz1) Prepare the disks:
- Open up the BIOS on boot (by pressing F2). Go to the options where you can show the raid system on booting (it is under the Intel raid option) and enable that (while you're at it, make sure you boot from external device!)
- Press F10 to save and exit the BIOS
- Now you should see after the vaio splashscreen the information about your disks. Press Strg+I to enter the raid setup menu
- In the raid setup you choose option 3 and reset all your discs by selecting them with space and lastly pressing enter (for German keyboard layouts: if you want to confirm the questions with y you have to press z!)
- Exit and reboot
1. Setting up the LVM
- Boot into the Ubuntu live Desktop
- Open a terminal on the live Desktop and check your drives by typing in
sudo fdisk -l
and note your drives (in my case it is sdb and sdc) - ---begin---
- Now we have to create partitions of the type "Linux LVM"
sudo fdisk /dev/sdb
- Delete all Partitions "d", make a new one "n", choose primary partition "p", number of partition "1" and cylinders first/last default (press ENTER each time), then press "t" for change a partition's system id and type in the HEX-code "8e" and write the table to disk and exit via "w".
- ---repeat (exactly!) from ---begin--- for all your drives---
- It is time to create the physical volumes (change it to your names)
sudo pvcreate /dev/sdb1
sudo pvcreate /dev/sdc1 - Create the Volumegroup (change VOLUMEGROUPNAME as you like)
sudo vgcreate VOLUMEGROUPNAME /dev/sdb1 /dev/sdc1
- (optional) If you missed one you can add it later with the command
sudo vgextend VOLUMEGROUPNAME /dev/sdX1
- Type in the next command to get a logical volume (with the name you like)
sudo lvcreate -l 100%FREE -n LOGICALVOLUMENAME VOLUMEGROUPNAME
- (optional) If you want to create volumes with a specific size, use the following command:
sudo lvcreate -L 3G -n LOGICALVOLUMENAME
VOLUMEGROUPNAME - Lastly check your drive with
sudo lvdisplay
- If you ever have to resize a Partition:
sudo lvreduce -L -5G /dev/mapper/VOLUMEGROUPNAME-LOGICALVOLUMENAME
(I reduced the size of my created LVM and added with lvcreate a Swap partition)
- Proceed as usual and choose "other options"
- Select your newly created partition and change it to ext4 and mountingpoint "/"
- The Bootloader (GRUB) goes to /dev/sdb
- Continue
- Ok, as usually my GRUB didn't work correct, so boot once again into the live desktop
- Type in a terminal the following commands:
sudo mount /dev/mapper/VOLUMEGROUPNAME-LOGICALVOLUMENAME /mnt
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /sys /mnt/sys
sudo mount -t proc /proc /mnt/proc
sudo cp /proc/mounts /mnt/etc/mtab
sudo chroot /mnt /bin/bash - You are now on your Ubuntu system. To repair GRUB proceed with (without sudo):
grub-install /dev/sdb
grub-install /dev/sdc
update-grub - Exit with Strg+D and your system should boot normally :-)
Good Luck!
Keine Kommentare:
Kommentar veröffentlichen