LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   uninitialized harddisk (https://www.linuxquestions.org/questions/linux-newbie-8/uninitialized-harddisk-856975/)

divyashree 01-18-2011 01:20 AM

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 ?

EricTRA 01-18-2011 01:37 AM

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

divyashree 01-18-2011 07:59 AM

Yes it was a hardware failure.

EricTRA 01-18-2011 08:02 AM

Hello,

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

Kind regards,

Eric

divyashree 01-19-2011 03:19 AM

Quote:

Originally Posted by EricTRA (Post 4228706)
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.


All times are GMT -5. The time now is 07:44 PM.