[Solved] Resizing NTFS Partition with errors

Posts: 9
Hi, I have the unfortunate situation of a hard disk with bad sectors, these showed up when I tried to resize my NTFS (WinXP) partition. I believe they're from a Partition Magic resizing gone bad (even though I've since completely wiped out that partition and reinstalled Windows). Anyway, GParted didn't want to resize because of these bad sectors, and recommended I run the chkdsk command under Windows and reboot. This I did, but still got the errors. Upon looking closer, I saw that the ntfsresize command needed to be run with the -b option. I did this manually, and successfully resized to 10240 MB (10 GB). BUT, now GParted shows the disk still at 20 GB, and says 15 GB are full! What to do??? When I ran the ntfsresize command it mentioned something about using fdisk to reduce the size of the partition, but I didn't understand.
As you can guess, I'm pretty much a newbie to command line stuff, I'm not afraid of it but if directing me to use such please give complete directions.
Thanks
pb

Well, I managed to get the
Posts: 9
Well, I managed to get the partition resized using fdisk, here are the commands I used (from another page I found):
# fdisk /dev/hda
Command (m for help): p
Command (m for help): d
Partition number (1-4): 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (8-3648, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (8-3648, default 3648): +10240M
Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): 7
Changed system type of partition 1 to 7 (HPFS/NTFS)
Command (m for help): a
Partition number (1-4): 1
Command (m for help): p
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1246 10008463+ 7 HPFS/NTFS
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Command (m for help):q
Just thought this might be useful for someone else, searching though the forums...
pb
By the way, when I use the
Posts: 9
By the way, when I use the 'check' command in parted I get the message:
Maybe this might give someone a clue what's going on...