4 Replies - 692 Views - Last Post: 05 June 2012 - 03:07 AM

#1 Autocrat  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 4
  • View blog
  • Posts: 307
  • Joined: 27-September 09

Can't resize EXTENDED NTFS drive

Posted 05 June 2012 - 02:18 AM

I want to install Ubuntu on my laptop. Currently, it has one PRIMARY NTFS and one EXTENDED NTFS. The EXTENDED NTFS contains three drives, all three of which are NTFS. I deleted the last drive but the freed space still does not show up in Ubuntu's install menu. The free space is still part of the EXTENDED NTFS. I cannot create the root and swap.

How to I release the freed space from the EXTENDED NTFS? I can't even resize this extended partition with GParted. It stops and does not even give any output information.

Is This A Good Question/Topic? 0
  • +

Replies To: Can't resize EXTENDED NTFS drive

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5322
  • View blog
  • Posts: 27,232
  • Joined: 10-May 07

Re: Can't resize EXTENDED NTFS drive

Posted 05 June 2012 - 02:21 AM

Start Gparted under sudo, unmount the extended partition. Resize the NTFS partition to make it smaller. Mount & then unmount the extended partition. Now resize the NTFS partition, & you should be able to make it larger.

I ran into this when I first started doing data backups from NTFS drives. I don't know why this is, but NTFS isn't exactly forthcoming with it's inner workings.

Best of luck.
Was This Post Helpful? 0
  • +
  • -

#3 Autocrat  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 4
  • View blog
  • Posts: 307
  • Joined: 27-September 09

Re: Can't resize EXTENDED NTFS drive

Posted 05 June 2012 - 02:58 AM

None of the drives was mounted so no need to unmount them before resizing. However, I tried the sudo gparted suggestion. Still can't resize

Here's a screenshot to show my HD configuration. The sda4 is actually an extended partition with three sub drives. I don't know why it doesn't show a hierarchy of those drives under sda4:

Attached Image

Here's also the details that were output from gparted:

GParted 0.11.0 --enable-libparted-dmraid

Libparted 2.3
Shrink /dev/sda4 from 197.99 GiB to 162.00 GiB  00:00:01    ( ERROR )
     	
calibrate /dev/sda4  00:00:00    ( SUCCESS )
     	
path: /dev/sda4
start: 209,922,048
end: 625,140,399
size: 415,218,352 (197.99 GiB)
check file system on /dev/sda4 for errors and (if possible) fix them  00:00:01    ( SUCCESS )
     	
ntfsresize -P -i -f -v /dev/sda4
     	
ntfsresize v2012.1.15AR.1 (libntfs-3g)
Device name : /dev/sda4
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 85899342336 bytes (85900 MB)
Current device size: 85899345920 bytes (85900 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 29552 MB (34.4%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 3236 MB 0
$MFTMirr : 1 MB 1
Sparse : 17397 MB 67
Ordinary : 39837 MB 14195
You might resize at 29551181824 bytes or 29552 MB (freeing 56348 MB).
Please make a test run using both the -n and -s options before real resizing!
shrink file system  00:00:00    ( ERROR )
     	
run simulation  00:00:00    ( ERROR )
     	
ntfsresize -P --force --force /dev/sda4 -s 173946175487 --no-action
     	
ntfsresize v2012.1.15AR.1 (libntfs-3g)
Device name : /dev/sda4
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 85899342336 bytes (85900 MB)
Current device size: 85899345920 bytes (85900 MB)
New volume size : 173946167808 bytes (173947 MB)
ERROR: New size can't be bigger than the device size.
If you want to enlarge NTFS then first enlarge the device size by e.g. fdisk.

========================================
Create Extended Partition #1 (extended, 35.99 GiB) on /dev/sda

========================================



If we resize an extended partition, isn't it like resizing three partitions all at once?

This post has been edited by Autocrat: 05 June 2012 - 03:00 AM

Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5322
  • View blog
  • Posts: 27,232
  • Joined: 10-May 07

Re: Can't resize EXTENDED NTFS drive

Posted 05 June 2012 - 03:01 AM

When you first plug in the drive, before you mount it, does the output from dmesg show any errors? Also do you have to use force -o with mount to mount the drive? The NTFS file system maybe jacked up on the drive. Try fixing it with chkdsk on Windows. There is (to my knowledge) no alternative tool for Linux to fix corrupt NTFS partitions.

If you don't need the data, you could always format the drive with Gparted, & partition it.
Was This Post Helpful? 0
  • +
  • -

#5 Autocrat  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 4
  • View blog
  • Posts: 307
  • Joined: 27-September 09

Re: Can't resize EXTENDED NTFS drive

Posted 05 June 2012 - 03:07 AM

I think I am getting to it. See the last lines of the GParted output.

Current volume size: 85899342336 bytes (85900 MB)
Current device size: 85899345920 bytes (85900 MB)
New volume size : 173946167808 bytes (173947 MB)
ERROR: New size can't be bigger than the device size.
If you want to enlarge NTFS then first enlarge the device size by e.g. fdisk.


I am trying to resize the sda4 from 197 GB to 162 GB. sda4 contains three drives, the first two are 80 GB and the third is 37 GB. 80 GB can be roughly taken as 85900 MB (see the output). GParted is trying to resize one of the two 80 GB disks instead of the whole extended partition as a whole.

This is the point. Then it should show me each of the logical drives separately. Obviously, each of the three volumes are smaller than the target size of the shrunken extended partition.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1