LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-08-2009, 06:08 AM   #1
koja
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
Master Hard Disk Error after installing Ubuntu 8.10 - hard disk died


(Also posted here: Ubuntu Forums; please check there, too).

Hi people.

I'm a newbe to Linux and I need help.
Here is my problem...


In short: after installing Ubuntu on one WD 500 GB hard disk and after making mistake and pasting wrong code into Terminal:

Quote:
$ sudo su

$grub
$find /boot/grub/stage1

the command shows where grub is installed, e.g. (hd1,1)

$root (hd1,1)
$setup (hd1)
$quit
...my OTHER WD 500 GB hard disk that was also in the system (I guess it was "hd1") - died.

(The problem must be, I guess, I typed wrong code: "hd1,1" instead of "hd0,0".)


500 GB (NTFS) of data was on that other (non-Ubuntu) hard disk, and now I can not access it anymore. While booting, system gives "Hard Disk Error" warning and stops.


One again: I installed Ubuntu od one hard disk and at the end of instalation I pasted wrong code for GRUB, giving address of another hard disk. Now that other hard disk has error and will not work.


Can anybody help, please? I'd appreciate it very much!
Thanks.


Detailed explanation follows...
 
Old 04-08-2009, 06:09 AM   #2
koja
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Hard Disk Died after installing Ubuntu - detailed explanation

DETAILED EXPLANATION:





1. Had Ubuntu Live (8.10) running and was so excited that I decided to install it to hard disk (at midnight).


2. Read 2 tutorials, followed them, and everything went fine.

On one 500 GB drive (Western Digital, WDC WD5000AAKS) I deleted the first (and smaller) partition (32 GB) and made 3 new partitions: "/" (25 GB, ext3), "swap" (3 GB), "home" (4 GB, ext3). The rest (about 450 GB) was NTFS, filled with data.


3. Tutorial (language is not English, but pictures are important) is here: Tutorial with pictures.


4. My problems started with or after last 2 steps of instalation:

a) I clicked ADVANCED button shown here or here, and...

b) ...before I would click RESTART NOW (shown here and here ...

...I decided NOT TO WAIT any longer - since it was already late night and I wanted to "do it right" the first time and not to reboot several times (like with Windows) - so instead of only restarting PC (as offered at the end of instalation), I did the following:

I copied the code from here: putting GRUB in place where it belongs.


Why did I do it? It's not that much important, but - for the curious - I thought I would prevent rebooting or something, I thought I was very smart, and it was late and I was not thinking rationaly.

Quote:
$ sudo su

$grub
$find /boot/grub/stage1

the command shows where grub is installed, e.g. (hd1,1)

$root (hd1,1)
$setup (hd1)
$quit
The problem is I typed wrong code: "hd1,1" instead of "hd0,0".
(I simply copied the "hd1,1" code from tutorial, even thought the answer I received from Terminal was "hd0,0".)


After that I restarted PC.


To my surprize WINDOWS booted - not Ubuntu as I expected, and I saw ONE HARD DISK LESS in my list of hard drives (actually two partitions less, both on the same hard disk).

Started Partition Magic and receiven info that one hard drive has "bad partiton" (I'm almost sure that's what I read).

At that time I thought the problem was with the hard drive where I installed Ubuntu (500 GB hard drive that had 3 new Linux partitons and one 450 GB NTFS partiton.

I rebooted ... and rebooted ... and rebooted ... and started receiving "Third Masted Hard Disk Error".

After disconnecting one by one disks, I realized the problem is not with the hard drive I installed Ubuntu on, but with other WD 500 GB hard drive (I have 2 same disks in PC).

It seems it is the one where wrong code pointed to (hd1,1).
(Not sure, but there is simply no other explanation.)

So now my PC refuses to boot if this hard is connected to system; it stops at the beginning of boot process and gives information that there is a "Hard Disk Error", or says

Ultra DMA Mode-5, S.M.A.R.T. Capable but Disabled

or, sometimes, it boots Hiren Boot.

Hiren Boot, or these WD tools, gave me info that disc is disconnected (the best), or there is no disc at all (worst scenario).


I can not access my WD 500 GB hard drive that has 2 or 3 NTFS partitions that are filled with data. No WIndows was installed on that disc, only data.
 
Old 04-08-2009, 06:26 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think the problem is simply that you set up your computer to boot from the second hard drive which doesn't have an operating system or the second stage grub files needed to continue booting. You can boot up with a live distro, rescue disk or the install disk and fix it by reinstalling grub to boot from the first hard drive.

From the grub shell, you can manually enter the lines for the kernel and initrd file locations and then enter "boot" on the third line to boot up to your installed system. Now with your Linux system running, simply reinstall grub properly.
You can also reinstall the MBR from the grub shell directly if you wish.
 
Old 04-13-2009, 08:44 AM   #4
koja
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
jschiwal, thank you for your reply.

Could you, please, elaborate your post? I.e., please give me step by step guide, or link to a thread where I can understand what you are talking about. I am Linux newbie, so your explanation is far beyond my current knowledge.

..

I hope your explanation will help me, as well as others browsing internet for Linux/Ubuntu help.

..

p.s.
In my case it seems the problem is more serious: I can not access my hard drive at all. System sees it, but then stops booting, or continue to boot - but somehow disconnects this hard drive so that I can not access it later. But if I manage to access it, then I will apply your method.

Thanks once again.
 
  


Reply

Tags
boot, dead, error, ext3, grub, harddisk, master, mbr, ntfs, partition, reiserfs, ubuntu, wd



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
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
Installing Ubuntu onto a hard disk image DJ747 Linux - Desktop 0 11-07-2006 04:52 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
linux can't see my hard disk on secondary master csvke Linux - Hardware 6 03-19-2004 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:29 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
Open Source Consulting | Domain Registration