LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 02-04-2007, 02:20 PM   #1
mistere29
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Error trying to resize NTFS partition with Gparted


I was planning to install ubuntu on my box to dual
boot with XP. I need to resize my drive, so i used gparted. I got this an error message about file errors causing it to fail. Ran chkdsk a few times but still haven't been able to resize. here are the latest error messages.

GParted 0.2.5

Resize /dev/hda2 from 69.51 GiB to 35.00 GiB ( ERROR )

check filesystem on /dev/hda2 for errors and (if possible) fix them ( SUCCES )

ntfsresize -P -i -f -v /dev/hda2

ntfsresize v1.12.1 (libntfs 8:1:0)
Using locale 'en_US.UTF-8'.
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 74636190208 bytes (74637 MB)
Current device size: 74636190720 bytes (74637 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 14665 MB (19.6%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 3286 MB 0
Multi-Record : 62095 MB 28802
$MFTMirr : 37319 MB 1
Compressed : 64060 MB 5154
Ordinary : 74637 MB 61151
You might resize at 14664663040 bytes or 14665 MB (freeing 59972 MB).
Please make a test run using both the -n and -s options before real resizing!
resize the filesystem ( ERROR )

run simulation ( SUCCES )

ntfsresize -P --force --force /dev/hda2 -s 37572739072 --no-action

ntfsresize v1.12.1 (libntfs 8:1:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 74636190208 bytes (74637 MB)
Current device size: 74636190720 bytes (74637 MB)
New volume size : 37572735488 bytes (37573 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 14665 MB (19.6%)
Collecting resizing constraints ...
Needed relocations : 2051964 (8405 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Relocating needed data ...
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
The read-only test run ended successfully.
resize the filesystem ( ERROR )

ntfsresize -P --force --force /dev/hda2 -s 37572739072

ntfsresize v1.12.1 (libntfs 8:1:0)
ERROR(95): Opening '/dev/hda2' as NTFS failed: Operation not supported
The NTFS journal file is unclean. Please shutdown Windows properly before
using this software! Note, if you have run chkdsk previously then boot
Windows again which will automatically initialize the journal correctly.
check filesystem on /dev/hda2 for errors and (if possible) fix them ( SUCCES )

ntfsresize -P -i -f -v /dev/hda2

ntfsresize v1.12.1 (libntfs 8:1:0)
Using locale 'en_US.UTF-8'.
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 74636190208 bytes (74637 MB)
Current device size: 74636190720 bytes (74637 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 14665 MB (19.6%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 3286 MB 0
Multi-Record : 62095 MB 28802
$MFTMirr : 37319 MB 1
Compressed : 64060 MB 5154
Ordinary : 74637 MB 61151
You might resize at 14664663040 bytes or 14665 MB (freeing 59972 MB).
Please make a test run using both the -n and -s options before real resizing!
grow filesystem to fill the partition ( ERROR )

run simulation ( SUCCES )

ntfsresize -P --force --force /dev/hda2 --no-action

ntfsresize v1.12.1 (libntfs 8:1:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 74636190208 bytes (74637 MB)
Current device size: 74636190720 bytes (74637 MB)
New volume size : 74636186112 bytes (74637 MB)
Nothing to do: NTFS volume size is already OK.
grow filesystem to fill the partition ( ERROR )

ntfsresize -P --force --force /dev/hda2

ntfsresize v1.12.1 (libntfs 8:1:0)
ERROR(95): Opening '/dev/hda2' as NTFS failed: Operation not supported
The NTFS journal file is unclean. Please shutdown Windows properly before
using this software! Note, if you have run chkdsk previously then boot
Windows again which will automatically initialize the journal correctly.
check filesystem on /dev/hda2 for errors and (if possible) fix them ( SUCCES )

ntfsresize -P -i -f -v /dev/hda2

ntfsresize v1.12.1 (libntfs 8:1:0)
Using locale 'en_US.UTF-8'.
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 74636190208 bytes (74637 MB)
Current device size: 74636190720 bytes (74637 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 14665 MB (19.6%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 3286 MB 0
Multi-Record : 62095 MB 28802
$MFTMirr : 37319 MB 1
Compressed : 64060 MB 5154
Ordinary : 74637 MB 61151
You might resize at 14664663040 bytes or 14665 MB (freeing 59972 MB).
Please make a test run using both the -n and -s options before real resizing!
 
Old 02-04-2007, 03:48 PM   #2
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
Bottom line: you may be out of luck as far as resizing goes, especially if you've been running WinXP on this particular partition for a few years; I had this exact same issue about 2 weeks ago and was unable to resolve it. I found some suggestions regarding disabling WinXP automated restoration points (I'm guessing here on the terminology) and also regarding disabling WinXP drive compression, but they were mostly in reference to using Partition Magic 8.0, and they didn't work for me. You might want to look those up just in case, though (I don't recall and didn't save the urls, unfortunately)

One thing to note - I WAS able to use GParted to resize a WinXP NTFS partition on a brand-new Dell laptop, so I assume the problem lies (for me, at least) in something XP does after it's been running on the same drive for a while...

Good Luck.

Last edited by pnellesen; 02-04-2007 at 03:52 PM.
 
Old 02-04-2007, 04:05 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I too have been able to resize NTFS using GParted, but only on systems that were relatively fresh. Did you de-frag the drive first?

Over the years, I have learned that a Windows system in regular use develops gremlins over time. Many have reported that they recommend re-installing once per year. I have found this to be a good practice--at least with win2k.
 
Old 02-04-2007, 04:23 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Another potential issue are "special" files like hidden system
stuff by Nortons tools that are slapped at the far rear end of
a partition .... I had problems with my bosses NTFS until I
removed Norton Desktop (I think that was what he had installed).


Cheers,
Tink
 
Old 02-04-2007, 04:40 PM   #5
SilverMermaid
LQ Newbie
 
Registered: Jan 2007
Location: UK
Posts: 4

Rep: Reputation: 0
I know this is an Open Source Software forum but I found the best way to defrag my hard disk properly was to use a commercial program called PerfectDisk. I've had my laptop for about four years now and PerfectDisk showed there were files scattered all over the hard disk (despite regularly defragging with Norton Speed Disk). So I suspected that using GParted would have caused problems with the files located at the end of the disk. It did a brilliant job and you can download a thirty day trial. Since I shall be dual-booting Win Xp and my chosen Linux distro (eventually) I suspect I may well be purchasing PerfectDisk just to keep the pesky messy NTFS partition in check.

SilverMermaid.
 
Old 02-05-2007, 07:29 AM   #6
mistere29
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
I didn't defragment, after doing a disk cleanup, XP said i didn't need to defragment. I guess i should have done it anyway.

Anyway, after running enough disk checks i somehow managed to resize the partiton, but that caused problems. Norton go back couldn't operate after that. Goback completely co-opts the boot process, so with that not working, I couldn't boot up. I used the XP setup CD to recreate the MBR, and that got around Goback. I got the windows splash page, but then a message that it couldn't find autochck. Then the system resarts.

Well the good news is i can boot to ubuntu now, so i still have a computer.

Last edited by mistere29; 02-05-2007 at 07:32 AM.
 
Old 06-14-2009, 05:20 PM   #7
StarsAreAlsoFire
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Verified

I was running into this error on a 300GB Raptor that I wanted to split in half. The existing Win XP install was using about 50GB on the disc.

Ran PerfectDisk 'Merge Freespace' with 'Aggressive FreeSpace Combining' flag on, rebooted into GParted and the proper magic happened.

There were some files on the end of the disk that windows defrag just didn't feel like moving I guess. No idea what the files actually were.

I don't use hibernate or pagefiles, so had no hiberfile.sys or pagefile.sys. I'd done a full defrag before the first failed attempt(s) at GParted.


Quote:
Originally Posted by SilverMermaid View Post
I know this is an Open Source Software forum but I found the best way to defrag my hard disk properly was to use a commercial program called PerfectDisk. I've had my laptop for about four years now and PerfectDisk showed there were files scattered all over the hard disk (despite regularly defragging with Norton Speed Disk). So I suspected that using GParted would have caused problems with the files located at the end of the disk. It did a brilliant job and you can download a thirty day trial. Since I shall be dual-booting Win Xp and my chosen Linux distro (eventually) I suspect I may well be purchasing PerfectDisk just to keep the pesky messy NTFS partition in check.

SilverMermaid.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't qtparted resize my NTFS partition? xri Linux - Hardware 15 01-28-2007 07:07 AM
error resizing NTFS partition with gParted live CD Nived87 Linux - Newbie 5 05-29-2006 01:53 AM
Unable to Resize NTFS partition with 4 different partition editors Alexandrian Linux - Newbie 11 05-19-2006 06:09 PM
ntfs resize - xp partition - files in the way jonnycarlos Linux - Software 3 02-28-2004 09:41 PM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 05:38 AM


All times are GMT -5. The time now is 08:37 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration