by DarkSoul_DST » Thu Apr 22, 2010 10:04 pm
After a lot of looking and trying different things.Seems like there is a lot of ways to to it .The way I did it that worked is listed below.
METHOD 3 - CHROOT
This method of installation uses the chroot command to gain access to the broken system's files. Once the chroot command is issued, the LiveCD treats the broken system's / as its own. Commands run in a chroot environment will affect the broken systems filesystems and not those of the LiveCD.
1. Boot to the LiveCD Desktop (Ubuntu 9.10 or later).
2.
Open a terminal - Applications, Accessories, Terminal.
3. Determine your normal system partition - (the switch is a lowercase "L")
sudo fdisk -l
* If you aren't sure, run
df -Th. Look for the correct disk size and ext3 or ext4 format.
4. Mount your normal system partition:
* Substitute the correct partition: sda1, sdb5, etc.
sudo mount /dev/sdXX /mnt # Example: sudo mount /dev/sda1 /mnt
5.
Only if you have a separate boot partition:
* sdYY is the /boot partition designation (for example sdb3)
*
sudo mount /dev/sdYY /mnt/boot
6. Mount the critical virtual filesystems:
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
7. To ensure that only the grub utilities from the LiveCD get executed, mount /usr
sudo mount --bind /usr/ /mnt/usr
8. Chroot into your normal system device:
sudo chroot /mnt
9. If there is no /boot/grub/grub.cfg or it's not correct, create one using
update-grub
10. Reinstall GRUB 2:
*
Substitute the correct device - sda, sdb, etc. Do not specify a partition number.
grub-install /dev/sdX
11.
Verify the install (use the correct device, for example sda. Do not specify a partition): sudo grub-install --recheck /dev/sdX
12.
Exit chroot: CTRL-D on keyboard
13. Unmount virtual filesystems:
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
* If you mounted a separate /boot partition:
sudo umount /mnt/boot
14. Unmount the LiveCD's /usr directory:
sudo umount /mnt/usr
15. Unmount last device:
sudo umount /mnt
16. Reboot.
sudo reboot
Post-Restoration Commands
Once the user can boot to a working system, try to determine why the system failed to boot. The following commands may prove useful in locating and/or fixing the problem.
*
To refresh the available devices and settings in /boot/grub/grub.cfg
o
sudo update-grub
To look for the bootloader location.
o
grub-probe -t device /boot/grub
To install GRUB 2 to the sdX partition's MBR (sda, sdb, etc.)
o
sudo grub-install /dev/sdX
To recheck the installation. (sda, sdb, etc.)
o
sudo grub-install --recheck /dev/sdX
MotherBoard Asrock Alive NF7G-HD720p Rev5.0 NVIDIA® GeForce 7050 / nForce 630A MCP Chipsets
XFX ATI Radeon HD 4350 1 GB Graphics Card HD435XZAH2
Disabled Integrated NVIDIA® GeForce7 Series (NV44) DX9.0 VGA, Pixel Shader 3.0, Max. shared memory 256MB
NVIDIA® PureVideo™ Ready
RAM Mushkin Enhanced Blackline 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 800 (PC2 6400)
CPU AMD Athlon 64 X2 5000+ Brisbane 2.6GHz Socket AM2 65W Dual-Core Black Edition Processor Model ADO5000DSWOF
HARDDRIVE Western Digital Caviar Blue WD5000AAJS 500GB 7200 RPM SATA 3.0Gb/s
OS UE2.5 64 bit
OS UE2.6 64 bit