1

Topic: resizing hdd IBM notebook: error

I used qpart succesfully for changing partition sizes recently. Now i want to do the same for the hard drive of my wife's notebook. This is a ibm r31 notebook. i want to resize the main partition and then create a logical drive. after setting al the necessary steps and applying, I get an error when it starts checking the filesystem. I was wondering if this has something to do with the fact that its an ibm notebook and the harddrive is protected or something like that. is there a solution for this so i can create a logical drive on this partition where i can store documents and other personal files?

this is what the /root/dvrs.dat file reports:

    .==========================.
    |    Fixed Disk 1: hda     |
    '=========================='

    Model name : ata-IC25N020ATCS04-0_CSH206D9CG6NBF
    Disk ID = 0x7a497a49

    Start = 0
    End   = 39070079
    Total Size  = 39070080 (512 Byte blocks)
    Total Size  = 20003880960 (Bytes)

       _______ 
      |_==|==_|
      ~~~~~~~~~
    Physical Data :

    cylinders = 2584
    heads     = 240
    sectors   = 63
    blocks/cylinder = 15120
    bytes/cylinder  = 7741440

      ___  ___ 
     /   \/   \
     \___/\___/
    Partition(s) :

    .------.
    | hda1 |
    '------'
    Part.ID = 0x07 < HPFS/NTFS  >
    Volume Name = IBM_PRELOAD

    Start   = 63
     End     = 36711359
    Size    = 36711297 (512 Byte blocks)
    Size    = 18796184064 (Bytes)

    .------.
    | hda2 |
    '------'
    Part.ID = 0x1c < Hidden W95 FAT32 (LBA)>
    Volume Name = IBM_SERVICE

    Start   = 36711360
     End     = 39070079
    Size    = 2358720 (512 Byte blocks)
    Size    = 1207664640 (Bytes)

    Unallocated Slack = 0 (512 Byte blocks)
    Unallocated Slack = 0 (Bytes)

I want to resize the hda1 partition and create another logical partition the space that will come available because of the resizing.

2

Re: resizing hdd IBM notebook: error

What is the text of the error message?

3 (edited by DutchArjo 2009-12-26 14:35:01)

Re: resizing hdd IBM notebook: error

this is the error:

GParted 0.3.9

Libparted 1.8.8

Shrink /dev/hda1 from 17.51 GiB to 11.84 GiB  00:00:26    ( ERROR )
         
calibrate /dev/hda1  00:00:03    ( SUCCESS )
         
path: /dev/hda1
start: 63
end: 36711359
size: 36711297 (17.51 GiB)
calculate new size and position of /dev/hda1  00:00:01    ( SUCCESS )
         
requested start: 63
requested end: 24836489
requested size: 24836427 (11.84 GiB)
new start: 63
new end: 24836489
new size: 24836427 (11.84 GiB)
check filesystem on /dev/hda1 for errors and (if possible) fix them  00:00:04    ( SUCCESS )
         
ntfsresize -P -i -f -v /dev/hda1
         
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 18796184064 bytes (18797 MB)
Current device size: 18796184064 bytes (18797 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 12570 MB (66.9%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 11748 MB 0
Multi-Record : 16358 MB 30708
$MFTMirr : 9399 MB 1
Compressed : 16368 MB 40891
Ordinary : 16368 MB 32781
You might resize at 12569092096 bytes or 12570 MB (freeing 6227 MB).
Please make a test run using both the -n and -s options before real resizing!
shrink filesystem  00:00:14    ( ERROR )
         
run simulation  00:00:14    ( ERROR )
         
ntfsresize -P --force --force /dev/hda1 -s 12716250623 --no-action
         
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 18796184064 bytes (18797 MB)
Current device size: 18796184064 bytes (18797 MB)
New volume size : 12716245504 bytes (12717 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 12570 MB (66.9%)
Collecting resizing constraints ...
Needed relocations : 460085 (1885 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 (1152 > 1024), not yet supported!
Please try to free less space.
check filesystem on /dev/hda1 for errors and (if possible) fix them  00:00:04    ( SUCCESS )
         
ntfsresize -P -i -f -v /dev/hda1
         
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 18796184064 bytes (18797 MB)
Current device size: 18796184064 bytes (18797 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 12570 MB (66.9%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 11748 MB 0
Multi-Record : 16358 MB 30708
$MFTMirr : 9399 MB 1
Compressed : 16368 MB 40891
Ordinary : 16368 MB 32781
You might resize at 12569092096 bytes or 12570 MB (freeing 6227 MB).
Please make a test run using both the -n and -s options before real resizing!
grow filesystem to fill the partition  00:00:00    ( SUCCESS )
         
run simulation  00:00:00    ( SUCCESS )
         
ntfsresize -P --force --force /dev/hda1 --no-action
         
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 18796184064 bytes (18797 MB)
Current device size: 18796184064 bytes (18797 MB)
New volume size : 18796179968 bytes (18797 MB)
Nothing to do: NTFS volume size is already OK.
real resize  00:00:00    ( SUCCESS )
         
ntfsresize -P --force --force /dev/hda1
         
ntfsresize v2.0.0 (libntfs 10:0:0)
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 18796184064 bytes (18797 MB)
Current device size: 18796184064 bytes (18797 MB)
New volume size : 18796179968 bytes (18797 MB)
Nothing to do: NTFS volume size is already OK.

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

Create Extended Partition #1 (extended, 5.66 GiB) on /dev/hda

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

Create Logical Partition #2 (ntfs, 5.66 GiB) on /dev/hda

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

4

Re: resizing hdd IBM notebook: error

From the log file it appears that the ntfsresize command is experiencing the following difficulty:

ERROR: Extended record needed (1152 > 1024), not yet supported!

To work around this problem you could try to defragment your file system from within Windows and then run chkdsk /f /r from within windows.

More information can be found in the "How can I improve my ability to shrink an NTFS partition?" question in the GParted FAQ.

5

Re: resizing hdd IBM notebook: error

I don't if it's relevant, but I had the same error message from ntfsresize on an older HP machine. But the underlying problem was something different: a change in the disk geometry caused by an earlier step.

What is the output of

sfdisk -gG /dev/hda

If the two lines report different values then you may have this problem.