1

Topic: Error trying to create a ext3 partition for linux install from NTFS di

Hi,

I am relatively new to linux, but I have a laptop I am trying to install linux on which has a corrupted Windows installation (it will not boot). I am attempting to create an ext3 partition so I can install linux and keep the computer useable, but I don't want to completely wipe the Windows partition either, in case someone comes along who can fix it. So I am trying to use gparted to take some of the space from the NTFS and turn it to ext3. However, early into the repartition, I run into an error...something about Windows being shut down properly.

Does anyone have any advice? I am at a loss for what to do...I have used gparted a few times in the past and have never had a problem.

Thanks for helping,

Ross


Here is what the error details are:




GParted 0.3.6

Libparted 1.7.1

Shrink /dev/hda2 from 18.59 GiB to 12.50 GiB  00:40    ( ERROR )
        
calibrate /dev/hda2  00:00    ( SUCCESS )
        
path: /dev/hda2
start: 64260
end: 39054014
size: 38989755 (18.59 GiB)
calculate new size and position of /dev/hda2  00:00    ( SUCCESS )
        
requested start: 64260
requested end: 26282339
requested size: 26218080 (12.50 GiB)
new start: 64260
new end: 26282339
new size: 26218080 (12.50 GiB)
check filesystem on /dev/hda2 for errors and (if possible) fix them  00:10    ( SUCCESS )
        
ntfsresize -P -i -f -v /dev/hda2
        
ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 19962753536 bytes (19963 MB)
Current device size: 19962754560 bytes (19963 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 12992 MB (65.1%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 19649 MB 0
Multi-Record : 19929 MB 62515
$MFTMirr : 9982 MB 1
Compressed : 19953 MB 56435
Ordinary : 19963 MB 27301
You might resize at 12991926272 bytes or 12992 MB (freeing 6971 MB).
Please make a test run using both the -n and -s options before real resizing!
shrink filesystem  00:17    ( ERROR )
        
run simulation  00:17    ( ERROR )
        
ntfsresize -P --force --force /dev/hda2 -s 13423656959 --no-action
        
ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 19962753536 bytes (19963 MB)
Current device size: 19962754560 bytes (19963 MB)
New volume size : 13423649280 bytes (13424 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 12992 MB (65.1%)
Collecting resizing constraints ...
Needed relocations : 846687 (3469 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Relocating needed data ...
ERROR: Extended record needed (1032 > 1024), not yet supported!
Please try to free less space.
check filesystem on /dev/hda2 for errors and (if possible) fix them  00:12    ( SUCCESS )
        
ntfsresize -P -i -f -v /dev/hda2
        
ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 19962753536 bytes (19963 MB)
Current device size: 19962754560 bytes (19963 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 12992 MB (65.1%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 19649 MB 0
Multi-Record : 19929 MB 62515
$MFTMirr : 9982 MB 1
Compressed : 19953 MB 56435
Ordinary : 19963 MB 27301
You might resize at 12991926272 bytes or 12992 MB (freeing 6971 MB).
Please make a test run using both the -n and -s options before real resizing!
grow filesystem to fill the partition  00:00    ( ERROR )
        
run simulation  00:00    ( SUCCESS )
        
ntfsresize -P --force --force /dev/hda2 --no-action
        
ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/hda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 19962753536 bytes (19963 MB)
Current device size: 19962754560 bytes (19963 MB)
New volume size : 19962749440 bytes (19963 MB)
Nothing to do: NTFS volume size is already OK.
real resize  00:00    ( ERROR )
        
ntfsresize -P --force --force /dev/hda2
        
ntfsresize v1.13.1 (libntfs 9:0: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.

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

Create Primary Partition #1 (ext3, 6.10 GiB) on /dev/hda

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

2

Re: Error trying to create a ext3 partition for linux install from NTFS di

Near the bottom of the error details, the message suggests that you boot into Windows and then shut it down cleanly (e.g., don't just hit the power switch).  After that you should be able to perform the resize operation.

After resizing a bootable NTFS partition, it is advisable to boot back into windows a couple of times.

3

Re: Error trying to create a ext3 partition for linux install from NTFS di

I ended up just writing the whole thing over because I came to the conclusion that the Windows install was unsalvageable anyway, and I didn't have the original installation disk. Windows /would not boot/, so it was impossible for me to boot into windows and shut it down cleanly.

Thanks for your help though.

4

Re: Error trying to create a ext3 partition for linux install from NTFS di

In case you want to save/recover files from that ntfs partition, you can try to access if from some live Linux distro, like Knoppix.
Another possibility is to use the "photorec" revocery tool from the "testdisk" live cd.
To save a damaged mswindows installation is very hard without any install cd.

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