1

Topic: Resizing Windows 7 partition, can't increase

I upgraded my harddrive from a 160GB to a 1TB drive. I cloned it over and I am trying to add the extra space to my C: drive. It is listed under /dev/sda2 Windows7_OS and is NTFS. It is 140.97GB. I have 664.07GB of unallocated space which I want to add to sda2. However when I try to resize the partition, it says free space preceding and following is zero and I am unable to increase the size of the partition.

I don't have any errors or exclamations, why would I not be able to expand this partition?

Thanks any assistance.

2

Re: Resizing Windows 7 partition, can't increase

Would you be able to provide the output from the following two commands?

sudo fdisk -l -u

where one of the options is a lower case "L" and not the number one.

sudo parted /path-to-your-device unit s print

where /path-to-your-device is something like /dev/sda.

3

Re: Resizing Windows 7 partition, can't increase

sudo fdisk provides the following;

Disk /dev/sda: 960.2 GB, 960197124096 bytes
240 heads, 63 sectors/track, 124033 cylinders, total 1875385008 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: 0xf6f5436e

Device         Boot            Start              End         Blocks            Id             System
/dev/sda1       *                  63     131060159     65530048+      7             HPFS/NTFS/exFAT
Partition 1 does not start on physical sector boundary.
/dev/sda2                131060160    426686399     147813120      7             HPFS/NTFS/exFAT
/dev/sda3                426686400    482738959       28026280      7             HPFS/NTFS/exFAT



sudo parted output is as follows:

Model: ATA Crucial_CT960M50  (scsi)
Disk /dev/sda:  1875385008s
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number          Start                End              Size               Type         File System        Flags
1                    63s              131060159s   131060097s   Primary      NTFS                boot
2                    131060160s  426686399s   295626240s   Primary      NTFS             
3                    426686400s  482738959s   56052560s     Primary      NTFS




I hope this information shows something useful.






gedakc wrote:

Would you be able to provide the output from the following two commands?

sudo fdisk -l -u

where one of the options is a lower case "L" and not the number one.

sudo parted /path-to-your-device unit s print

where /path-to-your-device is something like /dev/sda.

4

Re: Resizing Windows 7 partition, can't increase

I see that there are 3 partitions on the hard drive. The 140GB partition is the second, so the unallocated space isn't located just after /dev/sda2.
To be able to resize /dev/sda2 you have to move /dev/sda3 to the right, perhaps at the end of the disk space.
Partitions 2 and 3 are aligned to the physical sectors (8 sector multiples). First partition isn't fully aligned but if it isn't your main operating system, perhaps you don't have to change it.

The sum of the 3 partitions gives like something 235 GiB. This means that the original drive was a 250 GB model, if all three come from the same old hard drive.

*** It is highly recommended to backup any important files before doing resize/move operations. ***