LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Gparted says I have bad sectors in windows partition after deleting things (http://www.linuxquestions.org/questions/linux-general-1/gparted-says-i-have-bad-sectors-in-windows-partition-after-deleting-things-841470/)

silvyus_06 10-30-2010 10:06 PM

Gparted says I have bad sectors in windows partition after deleting things
 
Ok.
So here is what I did:
I have a 230GB hard drive wich I don't know it's name.
I have a 207GB windows vista partition and the rest of it is for linux (Ubuntu).
Today I decided giving it all space to Ubuntu Linux ,but didn't want to lose all my data from the windows partition.
I thought that by deleting all things except the folder with my data and leaving enough space to shrink and make enough room for another partition to put my data folder.
The logic is that i could then format that partition wich previously was windows and use it all for ubuntu without losing data.
After having ubuntu installed i could copy my data folder to /home and then delete the previous partition and make /home bigger.


The problem is that after i freed the space,when using Gparted to shrink it says that the partition has bad sectors or the filesystem has problems and so it can't do some operations.

What could have went wrong?

It told me to do chkdisk but as i deleted all the windows files and i can't boot into it anymore.I used the vista dvd to do that.I rebooted 2 times as it says and after that when trying again nothing changed.
I tried to use ntfsresize with the --bad-sectors argument and also the -f argument but it's useless.At the end it says it won't do anything until the ntfs filesystem get repaired.
Or it says it is too risky to continue

Is there any way i could do some superforce command to resize it without losing data?


Please don't tell me to put it on an external storage cause i have like 70GB of datas to save...no i don't have an external hardrive

FOR Admins : I know the thread that you created says anything that includes Windows or Microsoft should go to general,but i'm asking for some linux command to do that.

syg00 10-30-2010 10:33 PM

NTFS is a Microsoft proprietary filesystem. They keep its inner workings secret. Hence you must do the chkdsk from Windows - did you actually runs chkdsk or not ?.
Quote:

Is there any way i could do some superforce command to resize it without losing data?
No - a "superforce command" would probably only superscrew it up instead of only (hopefully) partially as it is now.

Only solution I can see is go get another disk and see if you can copy your data off - even that may be impossible, depending on how bad things are.

TobiSGD 10-30-2010 10:35 PM

At first, if you resize partitions, your data is in danger, there is no absolutely safe way to do that. Chances are low to loose data, but there is a chance that it happens. A backup is really recommended (as always, not only if you do dangerous tasks). Second, if GParted reports bad sectors I would test the drive. You can use the Hitachi Drive Fitness Test for this, it is free available and will test drives from any vendor. If it reports a failure, your drive will die.

silvyus_06 10-31-2010 12:01 AM

Quote:

Originally Posted by syg00 (Post 4144643)
NTFS is a Microsoft proprietary filesystem. They keep its inner workings secret. Hence you must do the chkdsk from Windows - did you actually runs chkdsk or not ?.No - a "superforce command" would probably only superscrew it up instead of only (hopefully) partially as it is now.

Only solution I can see is go get another disk and see if you can copy your data off - even that may be impossible, depending on how bad things are.

yes , i did run the chkdsk and rebooted 2 times , as gparted tells me to.
the only thing is that i used the cmd from the windows vista recovery disc to navigate and do the check from there,because i can't boot in windows any more

@ TobiSGD I undestand my data is in danger,and i also understand a backup is very good.but also i need to accept i am 13 and i don't have money of my own to buy some external storage solution :).
The thing is that gparted only reports the bad sector on the windows partition after i deleted those files...and all the other partitions are alright with no error on them.
The hitachi fitness test i will do it tomorrow because now i don't have blank cds
thank you for the responses.
any other clues ?

hughetorrance 10-31-2010 09:22 AM

You should have moved your data to safety first before attempting any fundamental changes... you can try to access your Vista with tools on the UBCD or Parted magic,perhaps phtorec or testdisc will find it,then you can move it into the Ubuntu system,also try and see if the Ubuntu live CD can access it and transfer your data to it.

ps you may need a lot of patience and persistence.

silvyus_06 11-01-2010 06:31 PM

nautilus sees free space on the partition and also can access with no problem the files...i can even copy from it to my ubuntu partition , but just a little amount cause i don't have space on my ubuntu...
it is not that bad... any ways thanks for all the responses..i will see what i can do from the recovery disc of vista that i have.. i will update if there's anything new..
i repeat.. nautilus sees free space on the partition but gparted reports it is full and it can't resize it....
i'm now downloading ubcd and will see what happens ....
by the way... is possible to make bootable usb of UBCD using ubuntu make startup disk tool ?

syg00 11-01-2010 07:40 PM

Quote:

Originally Posted by silvyus_06 (Post 4146255)
.. nautilus sees free space on the partition but gparted reports it is full and it can't resize it....

Just because there is space in the partition doesn't mean it is re-sizable. NTFS uses the end of the partition to store (nominally "unmovable") data - primarily a pointer to the backup MFT. This can be accommodated so long as there are no errors on the (NTFS) filesystem.
If there are errors, they must be fixed by chkdsk. All the linux tools call the same ntfsprogs tools as a backend to massage NTFS. If they filesystem appears broken, the Linux tools will not resize the filesystem. End of story.

Go find a mate with a big hard disk you can borrow for a while. Copy the data off, reformat the bad filesystem, then copy it back.

silvyus_06 11-02-2010 05:54 PM

thank you..
i'll be backing up to dvds ..many.. i was just trying to avoid that.
thread can be closed.


All times are GMT -5. The time now is 07:14 AM.