I'm trying to create partition during Ubuntu Server installation(12.10).Now I have a 500GB hard disk where I need to create a partition of 200GB for root file system and another 20GB for swap space and the remaining 280GB logical partition called backup for storing backup files during upgradation .
I'm new to server installation,
How can I achieve the following:

  1. I'm not familiar with RAID array partition and LVM partition. Which is better and how can I do partitioning using any of this.
  2. How can I create a partition called backup and use this partition using command line.

RAID has nothing to do with LVM, these are two different concepts, and for different purposes.

For the partition creation, you can do that during the installation guide (the partition part), no need to run command manually.

Read the guide here and the links above should get you the basic ideas of partitioning.

  • LVM can be used to implement RAID. It supports stripping and mirroring.
    – jordanm
    Mar 10 '13 at 16:44
  • One benefit of using LVM over hardware RAID is that the disk configuration is portable, you can move your disks to another server and as long as the kernel implements a modern version of LVM you can access your data. With hardware RAID, controllers die and your data may or may not ever get back online, usually the recovery or migration to another machine involves restoring from backups.
    – sean_m
    Oct 28 '13 at 21:11

Ubuntu provides a mechanism during install to allow you to resize partitions.

Here is a video explaining how to use it

If you have already installed ubuntu, and want to resize the paritions without loosing data, then I highly recommend a gui tool if you are new to partitioning.

A good free partitioner is gparted


There are many tutorials on how to use gparted.

You can create a live cd which contains gparted. Gparted will let you create, resize and delete partitions.

If you already have ubuntu installed, and you don't want to use a gui tool, then the utility to use is fdisk. (assuming you aren't using lvm)



fdisk is a partition tool. Please take a look at "man fdisk". fdisk can solve your problem.

The latest version of lvm is lvm2. LVM2 has implemented software RAID. LVM is a logic volume tool.It can resize partition after you have finished partition.

Hardware RAID has better performance than software RAID(for example:lvm2).RAID support better formance,redundancy of data.

LVM2 support software RAID.LVM2 has more features than RAID.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.