1

Topic: Problems expanding boot partition with bad sectors.

Hey guys,
I have a problem expanding my boot partition with gparted.
Gparted says my boot partition /dev/sda1 has at least 2 bad sectors. So i followed the instructions running chkdsk f r and booting twice. I tried this a few times but the problem is still remaining.
I have enough free space to expand my partition to 30011mb but gparted doesnt work because of this problem.
So i tried the bad sectors option in ntfsresize.
ntfsresize -s30011M --bad-sectors /dev/sda1
No i get a list with the cluster volume and other info, BUT also an error 'New size cant be bigger than the device size. If you want to enlarge NTFS then first enlarge the device size by e.g. fdisk.'
Now I have no idea how to proceed. Can someone help me?

2

Re: Problems expanding boot partition with bad sectors.

Mig387, thank you for creating a separate post.  I deleted your other post which was appended to a another long thread.

Currently GParted prevents changes to disks with bad sectors to minimize the chance of loss of data.

If you wish to proceed, you can try to first enlarge the partition using fdisk, and then try the command that you identified in your post to grow the NTFS file system.

3

Re: Problems expanding boot partition with bad sectors.

Okay, thank you for your quick answer. So I can use the badsectors command after enlarging the partition with fdisk ?

fdisk is very tricky and difficult for my skills. So may you help me telling me the right commands I must use in fdisk please?

4

Re: Problems expanding boot partition with bad sectors.

You might take a look at the following link for guidance:

Howto: Use ntfsresize+fdisk to resize a partition with bad sectors