04-9-2012, 07:18 PM | #1 |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
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? |
04-9-2012, 07:26 PM | #2 |
FFR Player
Join Date: Sep 2005
Age: 32
Posts: 4,245
|
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.. |
04-9-2012, 07:28 PM | #3 |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
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.
|
04-9-2012, 07:42 PM | #4 |
FFR Veteran
|
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. |
04-9-2012, 07:44 PM | #5 |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
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)
|
04-9-2012, 07:51 PM | #6 |
FFR Veteran
|
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. |
04-9-2012, 07:51 PM | #7 |
FFR Player
|
Re: Hard drive crashed -- need advice
You should be able to see everything on your windows partition via ubuntu
__________________
|
04-9-2012, 07:51 PM | #8 | |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
Re: Hard drive crashed -- need advice
Quote:
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? |
|
04-9-2012, 07:53 PM | #9 | |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
Re: Hard drive crashed -- need advice
Quote:
|
|
04-9-2012, 08:05 PM | #10 |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
Re: Hard drive crashed -- need advice
Trying
sudo touch /forcefsck sudo reboot Ok that seemed to check the wrong partition, lol. |
04-9-2012, 08:12 PM | #11 |
FFR Veteran
|
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.
__________________
[SIGPIC][/SIGPIC] Last edited by UserNameGoesHere; 04-9-2012 at 08:20 PM.. |
04-9-2012, 08:15 PM | #12 | |
FFR Player
Join Date: Sep 2005
Age: 32
Posts: 4,245
|
Re: Hard drive crashed -- need advice
Quote:
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 Code:
ls /dev/sd* Code:
ntfsfix /dev/sd?? Also to escape root privileges from 'sudo -i' just execute 'logout'. |
|
04-9-2012, 08:16 PM | #13 |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
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 |
04-9-2012, 08:19 PM | #14 | |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
Re: Hard drive crashed -- need advice
Quote:
/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 |
|
04-9-2012, 08:20 PM | #15 | |
FFR Player
Join Date: Sep 2005
Age: 32
Posts: 4,245
|
Re: Hard drive crashed -- need advice
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:
Code:
ntfsfix /dev/sda1 && echo "sda1" && ntfsfix /dev/sda2 && echo "sda2" && ntfsfix /dev/sda3 && echo "SUCCESS" Last edited by fido123; 04-9-2012 at 08:25 PM.. |
|
04-9-2012, 08:25 PM | #16 |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
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) |
04-9-2012, 08:30 PM | #17 | |
FFR Veteran
|
Re: Hard drive crashed -- need advice
Quote:
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.
__________________
[SIGPIC][/SIGPIC] Last edited by UserNameGoesHere; 04-9-2012 at 08:40 PM.. |
|
04-9-2012, 08:43 PM | #18 |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
Re: Hard drive crashed -- need advice
How do I zero that one bad sector?
|
04-9-2012, 08:47 PM | #19 | |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
Re: Hard drive crashed -- need advice
Quote:
|
|
04-9-2012, 08:49 PM | #20 |
x'); DROP TABLE FFR;--
Join Date: Nov 2010
Posts: 6,332
|
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?
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|