LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2014, 03:11 PM   #1
engkemo2002
LQ Newbie
 
Registered: Feb 2014
Posts: 9

Rep: Reputation: Disabled
boot sector is lost !


Hi All,

I need your help please regarding the following problem :
I was about to install Linux Suse10 on a HP machine, and sombody adviced me to delete the boot sector by running this command : "dd if=/dev/zero of=/dev/cciss/c1d0 bs=1024 count=1000" while beening on rescue system from live DC.
I think it was a big mistake, as just after running this command systel is not booting anymore and just displaying the following error message " no botable drive in table ...".
What I need now is to recrate again this boot sector and enable a normal boot on HDD again. (kowing that hard disk has been repalced just before this problem).

Thank you in advance.
engkemo.
 
Old 02-22-2014, 07:58 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,160

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
The command you ran overwrote the first 1000 sectors of your disk with zeros. This destroyed more than your boot sector. It also wiped out much, if not all, of your partition table. So, basically, if you had anything on the disk, it's no longer there. (I hope that you can inflict some just retribution on whomever it was that suggested that you do this.)

Hopefully you had nothing you wanted on that drive.

Typically, HP systems are shipped with a Windows operating system installed, and a separate "rescue" system. The "rescue" system is, I believe, at the high-address end of the drive, and the NT file system keeps a copy of the file layout in that area. But, without the partition table, it would be difficult to access either of those.)

If you would be satisfied to have only SUSE 10 on the drive, just install it from the DVD and let it use the whole drive. (Note that the current version of SUSE is OpenSUsE 11.1, available for download here.)

If you were intending to set up a dual-boot system with whatever was already on your hard drive, and need to recover that, let us know. But it may not be possible to do a full recovery.
 
Old 02-22-2014, 08:13 PM   #3
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,884

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
If you are able to restore the partition table using testdisk, then you can re-install grub or whatever bootloader you use. However, this may not be likely.

Whoever told you to wipe the MBR and also told you to wipe much more than 512 bytes probably did not mean well.

Last edited by metaschima; 02-22-2014 at 08:16 PM.
 
Old 02-22-2014, 08:30 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,233

Rep: Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283
OpenSUSE is actually at 13.1 - see here. Of course the OP may be talking about SLE[SD].
 
Old 02-22-2014, 08:33 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 13,004

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Welcome to LinuxQuestions

So the question is what are you trying to accomplish. If you knew you were going to erase the master boot record then you would expect it not to boot. Are you trying to install SuSE as the sole operating system or a dual boot?

The MBR and partition table are the first 512 bytes assuming it isn't gpt. The command actually overwrote the first 1Mb of the drive. Without knowing how the drive was partition we can not say what data was lost.
 
Old 02-23-2014, 10:32 AM   #6
engkemo2002
LQ Newbie
 
Registered: Feb 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Many Thanks to all of you for your answers.

In fact, All what I need is to only restore the boot secotr (I think it should be "/dev/cciss/c1d0"), in order to enable machine (HP proliant server) to boot normally with future restarts.
no worries about data as this disk is a new one that replaced a faulty one, so it was allready empty.
I have live CD for Suse10 (must install this one).
what do you suggest me just to install the system (with correct boot sector mapping...).
if need to install GRUB or MBR, is doable via the system CD that I have ? how?

Thanks
engkemo
 
Old 02-23-2014, 10:46 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 13,004

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
A new disk is typically blank so it will not be bootable until you actually load an operating system. All you need to to do is install SuSE and select grub to be installed to the MBR.
 
Old 02-23-2014, 10:55 AM   #8
engkemo2002
LQ Newbie
 
Registered: Feb 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Have to mention that its not a dual-systems platform, only suse 10 need to beinstalled here...
 
Old 02-23-2014, 11:04 AM   #9
engkemo2002
LQ Newbie
 
Registered: Feb 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
installation allready done

Quote:
Originally Posted by michaelk View Post
A new disk is typically blank so it will not be bootable until you actually load an operating system. All you need to to do is install SuSE and select grub to be installed to the MBR.
Thanks ,
But I tried allready a new installation and problem still persisting, when I try to boot from disk after installation
got the error : "no bootable drive found on table ....."

install system it again ?
no need to modify /boot/grub/menu.lst manually via rescue system for exmaple ?

Rgds,
engkemo
 
Old 02-23-2014, 11:20 AM   #10
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,884

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Install the bootloader again.
 
Old 02-23-2014, 12:37 PM   #11
engkemo2002
LQ Newbie
 
Registered: Feb 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Smile GRUB Installation

Quote:
Originally Posted by metaschima View Post
Install the bootloader again.
Ok Thanks,
Install bootloader you mean "GRUB", could you please tell me how to do it for SuSe10? (I mean please provide detailed procedure)
here are the options that I have from CD : (please see attached snap shot).

Thanks again for your answer.

Rgds,
engkemo.
Attached Thumbnails
Click image for larger version

Name:	CD options.JPG
Views:	8
Size:	30.5 KB
ID:	14804  
 
Old 02-23-2014, 01:30 PM   #12
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,884

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
See the bootloader section:
http://www.dedoimedo.com/computers/o...e-install.html
Install the bootloader (GRUB) to MBR.
 
1 members found this post helpful.
Old 02-23-2014, 01:55 PM   #13
engkemo2002
LQ Newbie
 
Registered: Feb 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thanks will try it by tomorrow and keep you informed.
 
Old 02-23-2014, 02:10 PM   #14
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 403

Rep: Reputation: 113Reputation: 113
Hello engkemo,

So, just to clarify, you went somewhere else and described this problem and you we're given a command to wipe the boot sector. If that is the case (and you've mentioned there that your disk is new) then please rest assure that it wasn't a really bad advice. I'm guessing that there we're no errors thrown when you did that, right? If there was one it's important to mention it here.

Now, back to your problem..
First, ensure that when installing Suse you select to install GRUB (the bootloader) on the MBR (Master Boot Record).
If afterwards, this doesn't work then your problem might go deeper. Your computer might actually not be configured to boot from SCSI (/dev/cciss/* is a SCSI that if I'm not mistaken). You should options in BIOS or a special SCSI menu for that.
 
Old 02-23-2014, 02:14 PM   #15
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 403

Rep: Reputation: 113Reputation: 113
Btw, I found this: http://nozell.com/blog/2004/05/08/so...oliant-server/
I think it describes your problem..
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Boot sector of installed Vector Linux doesn't have a boot signature ic_torres Linux - Newbie 6 02-15-2011 04:24 PM
Want to use Windows Boot Loader - Install to Boot Sector of Linux Partition? Xenarios Linux - Newbie 7 07-30-2010 03:41 AM
Lost sector in my HD oddvar Linux - Hardware 2 09-12-2007 01:40 AM
Lost boot sector of HDD Boby General 2 04-28-2005 11:12 AM
Boot Sector on dual boot PC. Remove Mandrake and replace with FreeBSD Phin666 *BSD 1 10-30-2004 05:02 PM


All times are GMT -5. The time now is 05:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration