[mdlug] Flakey hard drive
R. Kannan
rkannan at peoplepc.com
Mon Aug 20 09:34:23 EDT 2007
It looked like the /etc/mtab was leftover from the last successful reboot which had ended in the system hang because of the disk failure. The partitions were not cleanly unmounted. Note that I had to change the mtab after copying it. To use your example,
cp /etc/mtab /mnt/restore/etc/.
vi /mnt/restore/etc # To change "/mnt/restore" to "/" in all the mounted partitions and save
chroot /mnt/restore
grub-install /dev/hda
Thanks
-----Original Message-----
>From: "Carl T. Miller" <millerc at cantonpl.org>
>Sent: Aug 20, 2007 9:19 AM
>To: MDLUG's Main discussion list <mdlug at mdlug.org>
>Subject: Re: [mdlug] Flakey hard drive
>
>R. Kannan wrote:
>> Nevermind. I cheated the system by copying the new mtab from /etc to
>> /<new_root_dir/etc/mtab and could get grub-install to update the MBR.
>
>Thanks for posting this. I'll update my own notes about
>how to reinstall grub. I've gone through this process
>twice and didn't need to copy the running mtab to the
>old filesystem. Not sure why you needed to do this, since
>you were in a chrooted environment.
>
>c
>
>
>_______________________________________________
>mdlug mailing list
>mdlug at mdlug.org
>http://mdlug.org/mailman/listinfo/mdlug
________________________________________
PeoplePC Online
A better way to Internet
http://www.peoplepc.com
More information about the mdlug
mailing list