PDA

View Full Version : shrink 300 gb ext 3 drive



akbarrkhan
October 10th, 2013, 09:34 PM
i just installed 12.04 and forgot to shrink it before formating in to ext3,

and now my ubuntu is installed in the 300 GB drive

and i dont have much space left for my data as c is used for win8 almost full and also D is full

so how can i shrink the ext3 volume so that ubuntu installation wont be disturbed and then extend my D drive

i have both ubuntu as well as win8 so any method that i can do this

ersatzsplatt
October 11th, 2013, 12:41 AM
look at using gparted. that is used to shrink your partition(s).

heir4c
October 11th, 2013, 01:32 AM
Use the live-cd/usb where you find gparted via the 'Dash'

akbarrkhan
October 11th, 2013, 02:17 PM
gparted did work and i have now 260 GB unallocated space
but i cannot extend my C and D drive that is in ntfs format, and i cannot make another drive as it says that if u make another drive it will turn your hard drive in to dynamic and then you cannot install another OS, so how can i extend my D drive and use this unallocated space ?

sudodus
October 11th, 2013, 02:33 PM
You can make a partition of the unallocated space with the same gparted (booted from the live drive). And I think gparted can create a reasonably good ntfs file system. I would prefer to do it with Windows, but since it insists on dynamic partitions, you must use gparted and let Windows check the file system before starting to use it.

oldfred
October 11th, 2013, 05:44 PM
If Windows is suggesting dynamic partitions you may have reached the 4 primary partition limit? Did you not install Ubuntu in a logical partition inside an extended partition?
If not you may have to use gparted to move partitions. I generally do not like moving as it can be slow and any interruption or power failure may corrupt hard drive. Or good backups required. It usually works and becuase it usually works we often skip the backup and that is the one time a power failure occurs.

Or you may be able to convert a primary partition to a logical partition. But all logical partitions have to be in one extended partition and other partition rules must apply.

To convert a partition from primary to logical, at least one free (unallocated) sector must exist between the partition and the one that precedes it.
Fixparts - Repair broken partition tables (not overlapping issues) & delete Stray gpt data from MBR drives
http://ubuntuforums.org/showthread.php?t=1667614&p=10367957#post10367957
http://ubuntuforums.org/showthread.php?t=1705325
http://www.rodsbooks.com/fixparts/
First backup partition table, use your drive for sdX or sda, sdb etc.
sudo sfdisk -d /dev/sdX > parts.txt