Install ubuntu

From CSBLwiki

(Difference between revisions)
Jump to: navigation, search
(1. Installation of ubuntu)
(2. Moving home folder to HDD)
Line 30: Line 30:
  $ sudo blkid
  $ 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.
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.
-
#Setup Fstab
+
#Setup fstab
Duplicate your fstab file:
Duplicate your fstab file:
$ sudo cp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)
$ sudo cp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)
Line 39: Line 39:
And add these lines into it
And add these lines into it
  (identifier)  (location, eg sda5)  (format, eg ext3 or ext4)      (some settings)  
  (identifier)  (location, eg sda5)  (format, eg ext3 or ext4)      (some settings)  
-
  UUID=????????  /media/home    <font color:red;>ext3</font>          nodev,nosuid      0      2  
+
  UUID=????????  /home    <font color:red;>ext3</font>          nodev,nosuid      0      2  
and replace the "????????" with the UUID number of the intended /home partition.
and replace the "????????" with the UUID number of the intended /home partition.

Revision as of 07:23, 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)
  1. complete installing ubuntu
  1. Boot with live ubuntu cd and select 'try ubuntu'
  1. 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. Moving home folder to HDD

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