LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 10-18-2007, 01:44 PM   #1
Hairulfr
Member
 
Registered: Aug 2005
Location: Denmark
Posts: 46

Rep: Reputation: 15
Broke NTFS drive installing GRUB- Now BRICKED


Hello

did the biannual windows reinstall and lost bootmanager GRUB of course. Upon doing grub-install /dev/sdb1 (wrong drive, it seems :S) I broke my NTFS drive (I have several drives, one for files one for os, and i broke the file one). Now it is unreadable both by LINUX and Windows.

Anyone have any ideas? I've tried using the supergrub tool to restore, but I don't really know how it works. Is there any way to undo this damage? I realize formatting it is an option and then recovering all files, but I don't trust that it will work.
 
Old 10-19-2007, 07:39 AM   #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
Quote:
grub-install /dev/sdb1
This overwrites the boot-sector record of the partition. If this was NTFS - erk !!!
Try fixboot from recovery console from the Windoze CD. Might work, might not.
Grub can overwrite several sectors, and fixboot doesn't always repair them all.

Else you're probably up for a re-install - of at least the system; DLLs, exe's ... that sort of thing.
 
Old 10-24-2007, 10:11 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i thought the mbr was the first 64 kb of a disk.

how does messing with that make the rest of the disk un-readable ?

if anything it should be able to be used for storage but not booting.

what am i missing ?
 
Old 10-25-2007, 09:23 AM   #4
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Quote:
how does messing with that make the rest of the disk un-readable ?
You're right, messing the MBR shouldn't have any impact on the partitions, but in this case GRUB wasn't installed in the MBR, but on a partition :
Quote:
grub-install /dev/sdb1
And that does mess up a partition...

Serafean
 
Old 11-05-2007, 12:04 AM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Moved: This thread is more suitable in General and has been moved accordingly to help your thread/question get the exposure it deserves.

Mod Note: As this is more of a Windows-related question I'm moving it to General
 
Old 11-05-2007, 08:54 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by schneidz View Post
i thought the mbr was the first 64 kb of a disk.

how does messing with that make the rest of the disk un-readable ?

if anything it should be able to be used for storage but not booting.

what am i missing ?
The MBR is the first 512 bytes of the drive--AKA sector #0
The first 512 bytes of a partition is sometime called the boot sector.

Regardless of what boot code is in the MBR, windows also has boot code in the boot sector of its partition. So putting GRUB there stops Windows from booting.

Typically, the first partition does not start until sector 63. Sectors 1-62 can contain boot code but are often just empty.
 
Old 11-05-2007, 02:29 PM   #7
PatrickMay16
Member
 
Registered: Apr 2005
Location: London, England.
Distribution: Debian oldstable
Posts: 56

Rep: Reputation: 53
I don't know much about grub. But I can tell you something that might help you get your files back.
Look up "photorec". This is a useful tool indeed. You may be able to recover your data.
 
Old 11-07-2007, 11:53 AM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by pixellany View Post
The MBR is the first 512 bytes of the drive--AKA sector #0
The first 512 bytes of a partition is sometime called the boot sector.

Regardless of what boot code is in the MBR, windows also has boot code in the boot sector of its partition. So putting GRUB there stops Windows from booting.

Typically, the first partition does not start until sector 63. Sectors 1-62 can contain boot code but are often just empty.
thanks for the explanation, but i am still lost on how hacking the mbr/ boot sectors can brick a hard drive. i know he can no longer boot into windows but how does that make the partitions un-mountable in linux ?
 
Old 11-14-2007, 10:54 AM   #9
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
hi, i have the same situation here: http://www.linuxquestions.org/questi...0/#post2958726

but it is not bricked; maybe we have different definitions of what bricked is ?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing slackware from a ntfs drive. bijit1709 Slackware - Installation 3 06-30-2007 06:00 AM
Partitioner broke NTFS on resize. What now? whereverjustice Linux - General 4 08-28-2006 10:45 AM
LXer: Bricked! Or, How to Resurrect a Dead Linksys WRT54G LXer Syndicated Linux News 0 07-13-2006 07:21 PM
Grub will not load SCSI NTFS drive animation101 Fedora 3 07-13-2006 02:32 PM
After installing Fedora 5, NTFS partition on drive is unrecognizable RossT Linux - Newbie 4 06-11-2006 12:02 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 12:22 AM.

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