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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-04-2007, 02:20 PM
|
#1
|
|
LQ Newbie
Registered: Jan 2007
Posts: 3
Rep:
|
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!
|
|
|
|
02-04-2007, 03:48 PM
|
#2
|
|
Member
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371
Rep:
|
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.
|
|
|
|
02-04-2007, 04:05 PM
|
#3
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
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.
|
|
|
|
02-04-2007, 04:23 PM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,916
|
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
|
|
|
|
02-04-2007, 04:40 PM
|
#5
|
|
LQ Newbie
Registered: Jan 2007
Location: UK
Posts: 4
Rep:
|
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.
|
|
|
|
02-05-2007, 07:29 AM
|
#6
|
|
LQ Newbie
Registered: Jan 2007
Posts: 3
Original Poster
Rep:
|
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.
|
|
|
|
06-14-2009, 05:20 PM
|
#7
|
|
LQ Newbie
Registered: Jun 2009
Posts: 1
Rep:
|
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
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.
|
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:53 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|