Go Back   Flash Flash Revolution > General Discussion > Chit Chat
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 04-9-2012, 08:49 PM   #21
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

I'm not sure there is an easy way to do that. If you knew exactly what sector it was, in theory you could also use dd to zero just that individual sector. The problem is how do you find exactly which sector you need to zero?

It still wouldn't fix your Windows problem though (but may allow that bad sector to be remapped successfully, since it'd count as a write operation).

If you knew what sector you'd do something like (after becoming superuser, assuming sda is your drive, and assuming 512 bytes per sector)

dd if=/dev/zero of=/dev/sda seek=<numberofsectorstoskip> bs=512 count=1

Replace <numberofsectorstoskip> with some actual appropriate number (that's where finding the exact sector number comes in play which I don't know off the top of my head how you'd do that)
__________________
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 09:03 PM..
UserNameGoesHere is offline   Reply With Quote
Old 04-9-2012, 08:56 PM   #22
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

Times I wish I were a Linux nerd
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 09:01 PM   #23
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

Tried sudo fsck /dev/sda

"Bad magic number in super-block while trying to open /dev/sda

The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running an e2fsck with an alternate superblock:
e2fsck -b 8193 <device>"

To which I try sudo e2fsck -b 8193 /dev/sda and get the exact same message again.
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 09:12 PM   #24
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

Try running fsck.ntfs or fsck.ntfs-3g (which fido123 had you install) on /dev/sda1 /dev/sda2 and /dev/sda3 as appropriate.

Because it's apparently trying to check it as if it's an Ext2 filesystem which it's not -- it's NTFS. But also you're running it with /dev/sda (your hard drive) as the argument when you want /dev/sda1 /dev/sda2 or /dev/sda3 (the partitions, which are NTFS) as the argument.

Hope it helps.

And the e2fsck stuff is for Ext2 and Ext3 (and Ext4) filesystems only. Windows uses FAT, NTFS, exFAT filesystems (but typically is installed in NTFS). Ext2 and company are typically Linux filesystems.

So for example

sudo fsck.ntfs /dev/sda1
sudo fsck.ntfs /dev/sda2
sudo fsck.ntfs /dev/sda3
__________________
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 09:15 PM..
UserNameGoesHere is offline   Reply With Quote
Old 04-9-2012, 09:16 PM   #25
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

Tried using MagicParted or whatever it's called from an Ultimate Boot CD I just burned and attempted to use TestDisk to repair the boot/MFT of the partitions. Looks like it's partition 2 that's being a bitch (the boot partition) -- it throws a tantrum when I try to Repair MFT on that partition.

EDIT: OK, I'll try that out next. Should I do it from the liveCD or the native Wubi installation?
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 09:19 PM   #26
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

From the LiveCD definitely

-edit-
Also Linux isn't 100% compatible with NTFS .. which is why this kind of area is really gray/iffy. It can read it fine but manipulating it isn't exactly 100%. You may be able to get by with just overwriting the Windows 7 boot partition with zeros, then boot off the Windows 7 DVD, and repair the boot partition from there. Make backups first though! because yeah. Might lose stuff if this doesn't work.
__________________
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 09:23 PM..
UserNameGoesHere is offline   Reply With Quote
Old 04-9-2012, 09:27 PM   #27
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

For whatever reason it now won't let me use fsck.ntfs since I am on the liveCD... jesus christ
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 09:32 PM   #28
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 Reincarnate View Post
For whatever reason it now won't let me use fsck.ntfs since I am on the liveCD... jesus christ
D'oh. That makes sense because you installed it on the hard drive and it's probably not bundled with the LiveCD. You'll have to reinstall it while using the LiveCD (but once you reboot you lose it again of course).

Again, this probably won't fix it??? Go ahead and back up any important data you can still access NOW. Seriously.

Zero just the boot partition. Try the Windows 7 DVD. Try to repair the installation from there. It just may work. (Then again it may not)
__________________
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 09:33 PM.. Reason: spelling derps lol
UserNameGoesHere is offline   Reply With Quote
Old 04-9-2012, 09:43 PM   #29
andy-o24
Private Messages, please.
FFR Veteran
 
andy-o24's Avatar
 
Join Date: May 2006
Location: Central Indiana
Age: 30
Posts: 1,525
Send a message via Skype™ to andy-o24
Default Re: Hard drive crashed -- need advice

Suicide.

-o24
__________________
Quote:
Originally Posted by hi19hi19 View Post
Best strat: enjoy the game, play what you feel like when you feel like it. Don't think about what you are doing or why, enjoy the gameplay, the artistry behind the stepfile, and enjoy the music.

When the game isn't fun for you anymore, take a break. It's not a job, nobody here is professional and getting paid to play and force themselves to constantly improve... it's a game.

Quote:
Originally Posted by Shashakiro View Post
Yeah, FFR is addicting...I don't think I'll get bored with this game unless I somehow become the best at it, which won't happen.
andy-o24 is offline   Reply With Quote
Old 04-9-2012, 09:50 PM   #30
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

The windows 7 CD is useless unless I can fix this thing externally -- it literally doesn't even load the W7 CD into any menus I can use. It just hangs.

There isn't anything massively important on this laptop but I'd prefer to not have to redownload all my shit again
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 10:02 PM   #31
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

Your other option:

Buy a new internal hard drive and an external hard drive.

Save the data you want to save onto the external hard drive -- you can access it from within Linux to save it.

Remove your internal hard drive and replace with newer, better one. Install Windows 7 on that.

Copy over data from external hard drive back to your new Windows 7 installation. Programs need to be reinstalled but data files can be reused.

Have fun with hammer and bad hard drive.
__________________
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, 10:12 PM   #32
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

Now the boot manager is borked. Windows is such shit, but so is Ubuntu
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 10:14 PM   #33
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 I will just buy another laptop. This is ridiculous.
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 10:30 PM   #34
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 love how every single site online tells me that everything is solvable with the Windows 7 CD... and that doesn't even boot for me. Not even safe mode... nothing. Seriously stupid.
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 10:33 PM   #35
fido123
FFR Player
 
fido123's Avatar
 
Join Date: Sep 2005
Age: 32
Posts: 4,245
Default Re: Hard drive crashed -- need advice

Go on the live cd and run:

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
fsck.ntfs /dev/sda1 && echo "SDA1" && fsck.ntfs /dev/sda2 && echo "SDA2" && sck.ntfs /dev/sda3 && echo "DONE"
Also worst comes to worst buy a new laptop hardrive. Maybe even spring on a nice SSD and get cream yourself worthy speeds. Honestly though this problem is 100% fixable. You need to run everything but the last command to get ntfs support for fsck.

EDIT: You could probably just repartition your disk with fdisk to easily avoid the bad sector if you know exactly which one it is. That dd command UserNameGoesHere posted could quite probably be overwriting critical system data, although my solution requires a whole reinstall unless you have an external hardrive we could image your partition onto.

Last edited by fido123; 04-9-2012 at 10:39 PM..
fido123 is offline   Reply With Quote
Old 04-9-2012, 10:36 PM   #36
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 *should* be 100% fixable but... for whatever reason, everything I'm doing isn't fixing it.

I'll try your suggestion and edit this post shortly.
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 10:40 PM   #37
fido123
FFR Player
 
fido123's Avatar
 
Join Date: Sep 2005
Age: 32
Posts: 4,245
Default Re: Hard drive crashed -- need advice

Found an even better solution: http://ubuntuforums.org/showthread.php?t=1244058

If a command isn't working at first cause it's not found or something always try 'sudo apt-get install <package name>'. I have a good feeling you'll have to run:

Code:
sudo apt-get install ntfsresize
If you need help understanding what's going on in that thread let me know.



EDIT: Also in that thread the OP is already root. To obtain this use 'sudo -i' as mentioned before.

EDIT2: It seem's he's using a bootable CD called part-magic. It probably doesn't matter at all if you just install anything it's using. All it is, is a liveCD that has a bunch of 'apt-get's ran on it already to put it simply.

EDIT3: Also replace 'hda' with 'sda' from that guide. hda = PATA/IDE drives while sda = SATA.

Last edited by fido123; 04-9-2012 at 10:47 PM..
fido123 is offline   Reply With Quote
Old 04-9-2012, 10:41 PM   #38
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 not letting me install ntfsfix... "Unable to locate package ntfsfix" after doing "apt-get install ntfsfix"
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 10:42 PM   #39
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

That page doesn't apply to me because the OP is able to run CHKDSK whereas I can't do shit
Reincarnate is offline   Reply With Quote
Old 04-9-2012, 10:43 PM   #40
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 don't know where the bad sector is either or how to find it
Reincarnate is offline   Reply With Quote
Reply


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

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 04:25 AM.


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