Install ubuntu

From CSBLwiki

(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
#Boot with live ubuntu CD
#Boot with live ubuntu CD
caution : disconnect internet, otherwise you will get retrieving error (stop at 43 of 53)
caution : disconnect internet, otherwise you will get retrieving error (stop at 43 of 53)
-
 
#Select erase and install ubuntu (second option)
#Select erase and install ubuntu (second option)
-
 
#File system: ext4 or btrfs
#File system: ext4 or btrfs
-
 
#Complete installing ubuntu
#Complete installing ubuntu
-
 
#Boot with live ubuntu cd and select 'try ubuntu'
#Boot with live ubuntu cd and select 'try ubuntu'
-
 
+
#Execute gparted partition editor
-
#execute gparted partition editor
+
  Remove linux-swap (It occupies too much space)
  Remove linux-swap (It occupies too much space)
  Remove Exteend
  Remove Exteend

Revision as of 07:35, 27 September 2012

<html> <style type="text/css">

.basic {

  font-family : helvetica;
  font-size : 12pt;

}

pre {

  font-size : 12pt;
  padding: 10pt;
  margin: 5pt 0;
  border: 2px solid #abcdef;
  background-color: #f9f9f9;
  font-family:sans-serif;
  line-height: 160%;

}

</style> </html>

Contents

Clean installation of ubuntu in the SSD with HDD being used /home folder.

1. Installation of ubuntu

  1. Boot with live ubuntu CD

caution : disconnect internet, otherwise you will get retrieving error (stop at 43 of 53)

  1. Select erase and install ubuntu (second option)
  2. File system: ext4 or btrfs
  3. Complete installing ubuntu
  4. Boot with live ubuntu cd and select 'try ubuntu'
  5. Execute gparted partition editor
Remove linux-swap (It occupies too much space)
Remove Exteend
Extend /dev/sda1 to full capacity leaving 1 GB (1000 MB)
Create Extended partition to allocate (1 GB) (partition type: Extended)
Create linux-swap  space occupying 1 GB
'Apply'
  1. Restart

2. Optimization to SSD

  1. turn on Trim
Edit /etc/fstab

UUID=ac39c463-fe88-45ea-a4dd-f4eb6117141c /               ext4    discard,noatime,errors=remount-ro 0       1
  1. tunr off swap


3. Mounting HDD to home folder

In case, mounting HDD containing home folder files, create all users before mounting to prevent overwritting.

To get more information, go https://help.ubuntu.com/community/Partitioning/Home/Moving

  1. Find the uuid of the Partition
$ sudo blkid

take note (copy&paste into a text-file) the uuid of the partition that you have set-up ready to be the new /home partition.

  1. Setup fstab

Duplicate your fstab file: $ sudo cp /etc/fstab /etc/fstab.$(date +%Y-%m-%d) Compare the two files to confirm the backup matches the original:

$ cmp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)

Open the original fstab in a text editor:

$ sudo vim /etc/fstab 

And add these lines into it

(identifier)  (location, eg sda5)   (format, eg ext3 or ext4)      (some settings) 
UUID=????????   /home    ext3          nodev,nosuid       0       2 
and replace the "????????" with the UUID number of the intended /home partition.
Personal tools
Namespaces
Variants
Actions
Site
Choi lab
Resources
Toolbox