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 have following setup.i want a new separate 200gb partition. i'll try fdisk /dev/sda to command new partition via but i can't exactly.i need help

Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x000216a9

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   968587263   484292608   83  Linux
/dev/sda2       968589310   976771071     4090881    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5       968589312   976771071     4090880   82  Linux swap / Solaris
share|improve this question
    
please upload the gparted screenshot in imgur.com and post the link here. –  Avinash Raj Nov 9 '13 at 12:13

2 Answers 2

up vote 0 down vote accepted

You can move/resize/delete a partition in Ubuntu through gparted.Run the below commands in terminal to install gparted.

sudo apt-get install gparted
sudo gparted

Please note that,by this method you can resize/delete a partition through gparted only if it was unmounted.

To resize/delete a mounted partition then you can use gparted-live-disk.

share|improve this answer
    
Thanks...but i would like COMMAND mode –  APK Nov 11 '13 at 4:38
    
does it works for you. –  Avinash Raj Nov 11 '13 at 4:39
    
i'm not try i except cmd mode –  APK Nov 11 '13 at 4:44
    
not work could not unmount /dev/sda1 because mount point is root '\' –  APK Nov 11 '13 at 4:51
    
you cannot unmount a root partition.try gparted live disk to make partitions on root. –  Avinash Raj Nov 11 '13 at 4:56

To change partitions they must not be mounted. I don't know whether fdisk will still work after unmounting /dev/sda1X, so I recommend the following solution:

Create a backup of your important data before doing this. Partitioning may harm existing partitions.

  1. Boot your Live Ubuntu (the one on your installation media)
  2. Open GParted (if not working: Alt+F2 -> sudo gparted)
  3. Change size of /dev/sdb1 (Actual device name may differ, just search the correct one)
  4. Create new partition
  5. Commit changes (may take a while)
  6. reboot
share|improve this answer
    
I except COMMAND mode to change –  APK Nov 11 '13 at 4:41

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.