LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2011, 01:20 AM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
uninitialized harddisk


One linux machine suddenly shows insert boot disk and press enter. So I think grub may be corrupted, as the hdd is detected in the BIOS. So now I insert the dvd and goto rescue mode. Now it shows the harddisk is uninitialized and wipe out all data iif initialized.

It is centos 5.3 ,what could I do now ?
 
Old 01-18-2011, 01:37 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

There's a big difference between a corrupt grub and a disk showing as not initialized. If you think your grub is corrupt then you can try to reinstall it from the LiveCD by mounting the disk, /dev and /proc and enter in a chroot environment to execute grub-install, like this:
Code:
mkdir /adirectory_to_mount_your_disk
mount /dev/<yourdisk> /adirectory_to_mount_your_disk (find out with fdisk -l)
mount --bind /dev /adirectory_to_mount_your_disk/dev
mount --bind /proc /adirectory_to_mount_your_disk/proc
chroot /adirectory_to_mount_your_disk
grub-install --recheck /dev/<yourdisk>
If that fails, then try to mount the disk normally when booted from LiveCD and copy the contents you need to USB/NFS/... and reinstall. When you're unable to mount the disk then you might have a hardware failure.

Kind regards,

Eric
 
1 members found this post helpful.
Old 01-18-2011, 07:59 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Yes it was a hardware failure.
 
Old 01-18-2011, 08:02 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Glad you found the cause of your problem, hopefully you were able to recover important data.

Kind regards,

Eric
 
Old 01-19-2011, 03:19 AM   #5
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by EricTRA View Post
Hello,

Glad you found the cause of your problem, hopefully you were able to recover important data.

Kind regards,

Eric
No, sir. I was unable to recover data. And I had already backup of my data. Thanks.
 
  


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
[SOLVED] Use of uninitialized value in pattern match (m//) koshihaku Linux - Newbie 2 08-10-2010 01:07 PM
[SOLVED] Perl: Uninitialized value in pack CoderMan Programming 2 12-21-2009 06:55 PM
STL String: Uninitialized or some null value Ephracis Programming 9 03-04-2008 01:27 PM
cricket - uninitialized value in script imanassypov Linux - Networking 0 03-21-2006 09:19 AM
Test uninitialized variable AMMullan Programming 6 02-12-2004 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 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