Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Ubuntu on my 80GB hard disk. I chose "Guided - use entire disk and set up LVM". The system showed 79.7GB and I chose 39.7GB for the OS. The system is up and now I want to use remaining 40GB space as /data. But I'm unable to find that 40GB. Here are some command outputs that I tried:

$ fdisk -l
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00007eb9

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        1          32      248832   83  Linux Partition 1 does not end on cylinder boundary.
/dev/sda2           32        9726    77873153    5  Extended
/dev/sda5           32        9726    77873152   8e  Linux LVM

$ df -h
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/dekhoji-root  35G  1.4G   32G   5% /
none                     998M  228K  997M   1% /dev
none                    1002M     0 1002M   0% /dev/shm
none                    1002M  324K 1002M   1% /var/run
none                    1002M     0 1002M   0% /var/lock
none                    1002M     0 1002M   0% /lib/init/rw
none                      35G  1.4G   32G   5% /var/lib/ureadahead/debugfs
/dev/sda1                228M   31M  185M  15% /boot
share|improve this question

Have you looked into using gparted to format that partition? From your Ubuntu install, or from a LiveCD you can use gparted to format and resize your partitions, even after using the initial guided setup from installing Ubuntu.

Here is a tutorial for its use.

share|improve this answer
Thanks - gparted is showing lvm is using the whole disk (minus /boot space) but "df -h" is showing / as 35 GB. I will look into how do I extend the space in the filesystem or if I can create a new logical volume. – Manjeet Jan 20 '13 at 0:45
Did some more digging and found out the missing space! Since rest of the disk was used in LVM, the system had created the 35GB logical volume and mounted that as /. vgdisplay -v <vg_name> command showed me the unused space. I created another logical volume of the remaining capacity, ran "mkfs -t ext4" on that and mounted it as /data. Problem solved! Thanks SometimesRomano! – Manjeet Jan 20 '13 at 1:03
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Tim May 17 '15 at 21:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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