LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 10-30-2010, 10:06 PM   #1
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
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.
 
Old 10-30-2010, 10:33 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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.
 
Old 10-30-2010, 10:35 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 10-31-2010, 12:01 AM   #4
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by syg00 View Post
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 ...
 
Old 10-31-2010, 09:22 AM   #5
hughetorrance
Member
 
Registered: Aug 2009
Location: London North West
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459

Rep: Reputation: 59
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.
 
Old 11-01-2010, 06:31 PM   #6
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Original Poster
Rep: Reputation: 50
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 ?
 
Old 11-01-2010, 07:40 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by silvyus_06 View Post
.. 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.

Last edited by syg00; 11-01-2010 at 07:41 PM.
 
Old 11-02-2010, 05:54 PM   #8
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Original Poster
Rep: Reputation: 50
thank you..
i'll be backing up to dvds ..many.. i was just trying to avoid that.
thread can be closed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition unmounting/deleting issues with GParted Ubuntu 9.04 Thikr Linux - Newbie 8 02-17-2010 01:07 PM
Isolate bad sectors on an ext3 partition? Cinematography Linux - Hardware 4 05-04-2007 03:31 PM
Bad Sectors on Linux Partition svoltmer Linux - Newbie 1 08-06-2004 10:45 PM
Windows partition has bad sectors. Will 'dd' work in place of low level format? gkneller Linux - Software 5 02-26-2004 11:35 PM
bad sectors in windows partition okok Linux - Hardware 1 05-12-2002 08:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration