[SOLVED] Gparted says I have bad sectors in windows partition after deleting things
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390
Rep:
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.
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.
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.
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390
Original Poster
Rep:
Quote:
Originally Posted by syg00
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 ?
Last edited by silvyus_06; 10-31-2010 at 12:17 AM.
Reason: i reforumulated a little ...
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459
Rep:
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.
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390
Original Poster
Rep:
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 ?
.. 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.