ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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).
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.
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.
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?
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).
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.