Wednesday, 23 March 2016

HOW TO MAKE A PARTITON ON UBUNTU

image

After Installing Ubuntu

If you don’t create a separate home partition while installing Ubuntu, you don’t have to reinstall Ubuntu from scratch. To migrate to a separate home partition after installation, you’ll have to create a new partition (which may require resizing your existing partitions), copy the files from your existing home directory to that partition, and tell Ubuntu to mount the new partition at /home.

Step 1: Create a New Partition

If you have some free space, this step is easy. If you don’t, you’ll have to resize your system partition and create a new partition in the free space. If you have free space or don’t need to resize a system partition, you can just install GParted and create the partition without restarting from a live CD – you’ll want to create an ext4 partition.


image


Step 2: Copy Home Files to New Partition

Ubuntu makes it easy to mount the new partition – just click it under Devices in the file manager. After you do, click the Go menu and select Location to view its mount point.

image

Launch a terminal and run the following command to create a copy of your current /home directory on the new partition, where /mount/location is the location of your mounted partition:

"sudo cp -Rp /home/* /mount/location"

You’ll see an error about a .gvfs directory – this is normal; you can ignore it.

image

You should check the new home directory to verify it contains your files. However, we won’t be deleting the old home directory just yet.


image

Step 3: Locate the New Partition’s UUID

The long, random-looking string above is actually the partition’s UUID, and we’ll need it to add the partition to our fstab file, which tells Linux where to mount partitions when it boots. You can also locate the partition’s UUID by running the following command in a terminal:
"sudo blkid"

image


Step 4: Modify the fstab File

Before modifying our fstab file, we should create a backup copy that we can restore, just in case:
sudo cp /etc/fstab /etc/fstab.backup
Next, run the following command to open the fstab file in gedit. You can also use another text editor, if you prefer.
gksu gedit /etc/fstab
Add the following text to the fstab file on a new line, replacing the _____ portion with the full UUID of your new home partition from the sudo blkid command above:
UUID=_____     /home     ext4     nodev,nosuid     0     2

image

 Save the file after adding the line.

Step 5: Move Home Directory & Restart

From a terminal, run the following command to leave your home directory, move your current home directory to a placeholder location, and create a new, empty home directory which your new partition will be mounted at:
cd / && sudo mv /home /home_old && sudo mkdir /home


image

Reboot your computer after running this command. You can restart with the following command:
sudo shutdown -r now

Clean Up

After restarting your computer, you should be able to log in normally. Ubuntu is now using the separate home partition. After making sure that everything went okay and you still have all your files in your /home directory – just in case – you can you can remove your /home_old directory to free up space:
sudo rm -rf /home_old









THANK YOU........

FOR MORE VISIT TO....

www.4stupids.in/ 

AND YES NOT TO FORGET TO SUBSCRIBE OUR 

YOUTUBE CHANNEL.........






1 comment:

felisha green said...

Do you need to increase your credit score?
Do you intend to upgrade your school grade?
Do you want to hack your cheating spouse Email, whatsapp, Facebook, instagram or any social network?
Do you need any information concerning any database.
Do you need to retrieve deleted files?
Do you need to clear your criminal records or DMV?
Do you want to remove any site or link from any blog?
you should contact this hacker, he is reliable and good at the hack jobs..
contact : cybergoldenhacker at gmail dot com