LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 02:20 AM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,356

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, 02:37 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
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, 08:59 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,356

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

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hello,

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

Kind regards,

Eric
 
Old 01-19-2011, 04:19 AM   #5
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,356

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


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


All times are GMT -5. The time now is 08:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration