Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wanna create a new partition from the existing root partition.My root partition is about 250GB.I wanna create a new partition say 150 GB taking space from this root partition.Can anyone help me with the procedure on doing this?

output: fdisk -l

karthick@karthick:~$ sudo fdisk -l
[sudo] password for karthick: 

Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 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: 0x28219744

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          61      487424   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              61       30395   243650561    5  Extended
/dev/sda5              61         124      498688   82  Linux swap / Solaris
/dev/sda6             124         186      498688   82  Linux swap / Solaris
/dev/sda7             186       30395   242651136   83  Linux
share|improve this question
    
At the very least you'll need to get into a state where this isn't the active partition. That means a LiveCD or USB to most people. –  Oli Apr 12 '11 at 13:33
    
@Oli Yeah i know that,but how to do that using a live CD? –  karthick87 Apr 12 '11 at 13:40
add comment

1 Answer 1

up vote 4 down vote accepted

Boot from the livecd and run gparted. You also appear to have duplicate swap partitions so you should get rid of one of those.

share|improve this answer
    
When i boot from a live CD,the resize option is greyed out. –  karthick87 Apr 12 '11 at 14:20
    
@karthick87 unmount the swap partitions ( right click ) –  psusi Apr 12 '11 at 19:54
add comment

Your Answer

 
discard

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.