Go Back   Flash Flash Revolution > General Discussion > Chit Chat

Reply
 
Thread Tools Display Modes
Old 04-9-2012, 07:18 PM   #1
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Hard drive crashed -- need advice

Windows 7 64-bit Acer laptop decided to randomly spaz on me. It hangs on the "Starting Windows" animation, BSOD's if I try Safe Mode, and hangs on the green loading bar if I try the Repair option or use a Windows 7 CD.

I can boot into my Ubuntu partition OK (which is tiny but still) so I am not convinced that something's borked with the physical drive. I think one of the boot sectors got ****ed.

However, I'm not aware of any good CD's I should use to boot with that'll let me repair any potentially damaged disk sectors or whatever. Advice?
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 07:26 PM   #2
fido123
FFR Player
 
fido123's Avatar
 
Join Date: Sep 2005
Age: 32
Posts: 4,245
Default Re: Hard drive crashed -- need advice

If part of a disk is damaged it's damage and can't be repaired. If a boot sector got screwed you wouldn't see any "Starting Windows" at all. Other parts of your Windows system may be on damaged sectors but it might be another issue. See if you can take out your drive and put it in another computer and see if it'll boot in there to rule out everything but data corruption or a bad sector. To rule out the prior back up all your data and reformat. If it doesn't work after that you need a new hardrive. You can weed out data corruption at any time with a reformat. Also when you're reformatting actually press the "Format" button on the installer.

Also how long ago did you get this hardrive?

Last edited by fido123; 04-9-2012 at 07:29 PM..
fido123 is offline   Reply With Quote
Old 04-9-2012, 07:28 PM   #3
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: Hard drive crashed -- need advice

What I mean is that I think some of the files were corrupted and need repairing, that's all. I don't have another laptop to try the hard drives with. In the past I was able to run a checkdisk and that fixed the problem, but now I can't boot into my windows 7 CD to do the repair.
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 07:42 PM   #4
UserNameGoesHere
FFR Veteran
FFR Veteran
 
UserNameGoesHere's Avatar
 
Join Date: May 2008
Posts: 1,114
Send a message via AIM to UserNameGoesHere
Default Re: Hard drive crashed -- need advice

Okay I don't think you mean what you wrote. If your hard drive head crashed it would be inoperable, in a click-of-death sort of way, which is apparently not the case.

In Ubuntu, go to System, Administration, Disk Utility. Click on your hard drive in the list. Run the S.M.A.R.T. self-tests on it. If it's coming up with bad sectors, there is some amount of "buffer" room on the drive set aside for that and you're "okay" but really should be thinking about replacing it if that's the case. Beyond that "buffer" though you'll start having more serious problems.

If your drive is a Seagate or Maxtor I would highly recommend purchasing and replacing it with a better drive (for example Western Digital, Hitachi, Toshiba).

If you can access your data from within Ubuntu, go ahead and burn backup disks of your data or back it up to another hard drive (only the files you want to keep).

If the drive itself isn't bad and it's only in software, your best bet is to restore from backup media or, if you don't have that, wipe the drive and reinstall Windows/everything from scratch (and if you don't have the media to do this you're kind of SOL).

Had one Seagate click-of-death on me. Another with only very light use and not that old with bad sectors. Meanwhile my Western Digitals which have had much use and quite some age still going strong, zero bad sectors even.
__________________
Quote:
Originally Posted by Crashfan3 View Post
Man, what would we do without bored rednecks?
[SIGPIC][/SIGPIC]
UserNameGoesHere is offline   Reply With Quote
Old 04-9-2012, 07:44 PM   #5
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: Hard drive crashed -- need advice

It's a separate partition (and as far as I know I can't see my Windows partition through Ubuntu, but then again I am an Ubuntu noob)
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 07:51 PM   #6
UserNameGoesHere
FFR Veteran
FFR Veteran
 
UserNameGoesHere's Avatar
 
Join Date: May 2008
Posts: 1,114
Send a message via AIM to UserNameGoesHere
Default Re: Hard drive crashed -- need advice

You should be able to see/read NTFS (what WindowsXP, Vista, and 7 use) from within Ubuntu. I would not recommend writing to it (not safe), but reading from it (for example, to copy files off it) is safe. Try opening nautlius (or open a command prompt and type "nautilus" without the quotes and press enter. Applications -> Accessories -> Terminal for the command prompt.

It browses much like Windows Explorer would on Windows. There you can click on stuff, even Ctrl-C to copy and Ctrl-V to paste elsewhere/etc...

I just read where you apparently have your Windows 7 disk but can't boot off that disk though? ... That's an entirely different problem from anything dealing with your hard drive. You may have to change boot order in your BIOS or might have to press a certain button to boot off DVD.
__________________
Quote:
Originally Posted by Crashfan3 View Post
Man, what would we do without bored rednecks?
[SIGPIC][/SIGPIC]
UserNameGoesHere is offline   Reply With Quote
Old 04-9-2012, 07:51 PM   #7
who_cares973
FFR Player
 
who_cares973's Avatar
 
Join Date: Aug 2006
Location: :U
Age: 35
Posts: 15,407
Send a message via AIM to who_cares973 Send a message via MSN to who_cares973 Send a message via Yahoo to who_cares973 Send a message via Skype™ to who_cares973
Default Re: Hard drive crashed -- need advice

You should be able to see everything on your windows partition via ubuntu
__________________
who_cares973 is offline   Reply With Quote
Old 04-9-2012, 07:51 PM   #8
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: Hard drive crashed -- need advice

Quote:
Originally Posted by UserNameGoesHere View Post
In Ubuntu, go to System, Administration, Disk Utility. Click on your hard drive in the list. Run the S.M.A.R.T. self-tests on it. If it's coming up with bad sectors, there is some amount of "buffer" room on the drive set aside for that and you're "okay" but really should be thinking about replacing it if that's the case. Beyond that "buffer" though you'll start having more serious problems.
SMART Status: Disk has a few bad sectors (green light).

When I run the test: 1 bad sector.

ERROR ID 197: Current Pending Sector Count: Number of sectors waiting to be remapped. If the sector waiting to be remapped it subsequently written or read successfully, this value is decreased and the sector is not remapped. Read errors on the sector will nto remap the sector, it will only be remapped on a failed write attempt.


wtf?
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 07:53 PM   #9
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: Hard drive crashed -- need advice

Quote:
Originally Posted by UserNameGoesHere View Post
I just read where you apparently have your Windows 7 disk but can't boot off that disk though? ... That's an entirely different problem from anything dealing with your hard drive. You may have to change boot order in your BIOS or might have to press a certain button to boot off DVD.
I can change boot order fine. What I mean is that when I run off the CD, it says "Loading Windows files" or whatever and then goes to this screen with the green loading bar, where it just kinda sits there forever. Same thing it does when I try to use the Repair utility from within the boot procedure sans CD.
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 08:05 PM   #10
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: Hard drive crashed -- need advice

Trying

sudo touch /forcefsck
sudo reboot
Ok that seemed to check the wrong partition, lol.
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 08:12 PM   #11
UserNameGoesHere
FFR Veteran
FFR Veteran
 
UserNameGoesHere's Avatar
 
Join Date: May 2008
Posts: 1,114
Send a message via AIM to UserNameGoesHere
Default Re: Hard drive crashed -- need advice

Do you have a bootable thumb drive? Or a thumb drive you can use? (2GB should be fine).

Put the thumb drive in, then within Ubuntu go System, Administration, Startup Disk Creator and you should be able to make the thumb drive bootable with your version of Ubuntu on that.

Boot off the thumb drive (You may have to enable booting off USB thumb drives in your BIOS or may need to set it higher in the boot order). Once in Ubuntu zero-out your hard drive, stick your Windows 7 install disk in the tray, close that, shutdown Ubuntu, remove the stick, boot 'er up and hopefully Windows 7 will be able to install now (You lose all previous data doing this though)

To zero-out your hard drive from within Ubuntu you'll need to know what device file it is, which unfortunately can vary. The Disk Utility from earlier should tell you what device it is (for example mine is /dev/sda but yours could be /dev/hda /dev/sdb etc...) The number after is the partition so /dev/sda1 would be a partition within /dev/sda.

To zero-out /dev/sda for example (and you need to replace with what it really was) you can run this from a command prompt

sudo su -
dd if=/dev/zero of=/dev/sda bs=1M

To zero-out just a single partition instead of the whole drive (for example just sda1 and not all of sda) you could do this instead but replace with the correct drive identifier and partition number.

sudo su -
dd if=/dev/zero of=/dev/sda1 bs=1M

-edit-
oh and it will appear to be doing nothing but it's zeroing your drive. It just can take a long time. Hours even. Let it do its thing and trust that it is doing its thing. Unfortunately you get no confirmation until it's done -- and only confirmation is you get to type text in your command prompt again (yay). So it'll seem like it is "hung" but it isn't.

-edit-
back up all data (for example burn to DVDs) before zeroing out your drive though or you potentially lose it forever. Zeroing out the drive is to give Windows 7 a "clean" hard drive to install to. If repair options aren't working, sometimes a full reinstall is the only answer.

-edit-
oh yeah, and once you've zero'd out your drive, run the S.M.A.R.T. tests on it again and see if that one sector got successfully remapped (it should). If not, then I don't know what to tell ya. And you may want to just stick another drive in there and reinstall to it instead.
__________________
Quote:
Originally Posted by Crashfan3 View Post
Man, what would we do without bored rednecks?
[SIGPIC][/SIGPIC]

Last edited by UserNameGoesHere; 04-9-2012 at 08:20 PM..
UserNameGoesHere is offline   Reply With Quote
Old 04-9-2012, 08:15 PM   #12
fido123
FFR Player
 
fido123's Avatar
 
Join Date: Sep 2005
Age: 32
Posts: 4,245
Default Re: Hard drive crashed -- need advice

Quote:
Originally Posted by Reincarnate View Post
Trying

sudo touch /forcefsck
sudo reboot
Ok that seemed to check the wrong partition, lol.
Code:
sudo -i
apt-get install ntfsfix
ln -s /usr/bin/ntfsfix /usr/sbin/fsck.ntfs
ln -s /usr/bin/ntfsfix /usr/sbin/fsck.ntfs-3g
fdisk -l
fdisk should return the appropriate information as to where your Windows partition is mapped out too. It's the only NTFS partition. If for some reason that doesn't work use the blkid command on /dev/sda(1-4) or /dev/sdb etc. You can see all these easily with:

Code:
ls /dev/sd*
After you've done all things prior and know which partition is your Windows partition execute:

Code:
ntfsfix /dev/sd??
Where '??' is the rest of your partition map.



Also to escape root privileges from 'sudo -i' just execute 'logout'.
fido123 is offline   Reply With Quote
Old 04-9-2012, 08:16 PM   #13
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: Hard drive crashed -- need advice

I'm actually creating a bootable LiveCD as we speak -- it won't let me **** with the main drive since it's in use, so I'm going to try operating outside the drive first.

And no I don't want to lose my data that's already there... trying to repair shit if I can
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 08:19 PM   #14
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: Hard drive crashed -- need advice

Quote:
Originally Posted by fido123 View Post
Code:
sudo -i
apt-get install ntfsfix
ln -s /usr/bin/ntfsfix /usr/sbin/fsck.ntfs
ln -s /usr/bin/ntfsfix /usr/sbin/fsck.ntfs-3g
fdisk -l
/dev/sda1 is a Hidden NTFS WinRe (start 2048 end 27650047) blocks 13824000
/dev/sda2 (boot * selected here) is a HPFS/NTFS/exFAT (start 27650048 end 27854847) blocks 102400
/dev/sda3 is a HPFS/NTFS/exFAT (start 27854848 end 976771071) blocks 474458112
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 08:20 PM   #15
fido123
FFR Player
 
fido123's Avatar
 
Join Date: Sep 2005
Age: 32
Posts: 4,245
Default Re: Hard drive crashed -- need advice

Quote:
Originally Posted by UserNameGoesHere View Post
sudo su -
The root account by default is disabled in Ubuntu and Ubuntu variants. The proper command is 'sudo -i'. This goes for anything with sudo installed on it when root is disabled or you just want to avoid logging into root.

Also correct me if I'm wrong but I don't understand how this will help at all. All this will do is destroy his partition table, file-systems, and data. As far as I know it doesn't matter what garbage is on a hardrive, file-systems typically don't give a crap about anything they didn't write themselves.


Quote:
Originally Posted by Reincarnate View Post
/dev/sda1 is a Hidden NTFS WinRe (start 2048 end 27650047) blocks 13824000
/dev/sda2 (boot * selected here) is a HPFS/NTFS/exFAT (start 27650048 end 27854847) blocks 102400
/dev/sda3 is a HPFS/NTFS/exFAT (start 27854848 end 976771071) blocks 474458112
How was your partitioning scheme? Is one of those a recovery partition, one of them is where you store your OS, and the other is where you cram all your data so it's not lost in reformats? Anyways now that I look at it it doesn't really matter. /dev/sda2 seems to be your boot partition but I have a feeling that's just Windows Boot Loader. Better be safe than sorry and just run the following command:

Code:
ntfsfix /dev/sda1 && echo "sda1" && ntfsfix /dev/sda2 && echo "sda2" && ntfsfix /dev/sda3 && echo "SUCCESS"
That whole thing is one command. Will tell you when it's done each one to give you some piece of mind that it's not frozen or w/e. Overall I'd say /dev/sda3 is your most likely candidate.

Last edited by fido123; 04-9-2012 at 08:25 PM..
fido123 is offline   Reply With Quote
Old 04-9-2012, 08:25 PM   #16
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: Hard drive crashed -- need advice

Picture of the above for clarity: http://i.imgur.com/CktrJ.png

And I'm not sure. I think one is the recovery, and I think sda3 is the main windows partition or something (most number of blocks/start end/etc)
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 08:30 PM   #17
UserNameGoesHere
FFR Veteran
FFR Veteran
 
UserNameGoesHere's Avatar
 
Join Date: May 2008
Posts: 1,114
Send a message via AIM to UserNameGoesHere
Default Re: Hard drive crashed -- need advice

Quote:
Originally Posted by fido123 View Post
The root account by default is disabled in Ubuntu and Ubuntu variants. The proper command is 'sudo -i'. This goes for anything with sudo installed on it when root is disabled or you just want to avoid logging into root.

Also correct me if I'm wrong but I don't understand how this will help at all. All this will do is destroy his partition table, file-systems, and data. As far as I know it doesn't matter what garbage is on a hardrive, file-systems typically don't give a crap about anything they didn't write themselves.
'sudo -i' it is then Thank you for that. Basically whatever'll get you superuser on your machine.

And if you can somehow repair it, go for it. My instructions are under the assumption that all repair attempts end in failure and your only option is zero the disk and try installing "from scratch".

And Reincarnate, by all means take all of this into consideration/etc... And thank you fido123 for adding helpful information as well.

-edit-

As far as how it will help out, Windows may be choking up because of the data that's there being corrupted, yet still recognizable by Windows so it tries to use it, fails. Vs. if you zero it, Windows will see that as "blank hard disk data" won't be choking up on it. Windows does lots of stupid stuff sometimes (Like WindowsXP failing to install correctly if you have a card reader installed -- so you have to remove the card reader, install WindowsXP, then install the card reader, as one particular example)

Another example of stupid stuff Windows does. Move a file on Windows? .. it makes a new file, copies byte for byte, then marks the old for deletion. Vs. the more sane UNIX/Linux way of just moving a file pointer on disk if you move a file.
__________________
Quote:
Originally Posted by Crashfan3 View Post
Man, what would we do without bored rednecks?
[SIGPIC][/SIGPIC]

Last edited by UserNameGoesHere; 04-9-2012 at 08:40 PM..
UserNameGoesHere is offline   Reply With Quote
Old 04-9-2012, 08:43 PM   #18
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: Hard drive crashed -- need advice

How do I zero that one bad sector?
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 08:47 PM   #19
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: Hard drive crashed -- need advice

Quote:
Originally Posted by fido123 View Post
The root account by default is disabled in Ubuntu and Ubuntu variants. The proper command is 'sudo -i'. This goes for anything with sudo installed on it when root is disabled or you just want to avoid logging into root.

Also correct me if I'm wrong but I don't understand how this will help at all. All this will do is destroy his partition table, file-systems, and data. As far as I know it doesn't matter what garbage is on a hardrive, file-systems typically don't give a crap about anything they didn't write themselves.




How was your partitioning scheme? Is one of those a recovery partition, one of them is where you store your OS, and the other is where you cram all your data so it's not lost in reformats? Anyways now that I look at it it doesn't really matter. /dev/sda2 seems to be your boot partition but I have a feeling that's just Windows Boot Loader. Better be safe than sorry and just run the following command:

Code:
ntfsfix /dev/sda1 && echo "sda1" && ntfsfix /dev/sda2 && echo "sda2" && ntfsfix /dev/sda3 && echo "SUCCESS"
That whole thing is one command. Will tell you when it's done each one to give you some piece of mind that it's not frozen or w/e. Overall I'd say /dev/sda3 is your most likely candidate.
"Volume is corrupt. You should run chkdsk."
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 08:49 PM   #20
Reincarnate
x'); DROP TABLE FFR;--
Retired StaffFFR Veteran
 
Reincarnate's Avatar
 
Join Date: Nov 2010
Posts: 6,332
Default Re: Hard drive crashed -- need advice

Is there any damn way to simply run chkdsk on this effin drive without trying to invoke Windows 7 which doesn't like to load?
Reincarnate is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump



All times are GMT -5. The time now is 08:55 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution