I'm so sorry haven't been able to reply. But really, if you have time you should study more on how to CHROOT.
Simply put, CHROOT, is just mounting your whole system to a folder and going inside that folder and have your little private space in there to install, run commands, apart from what is running in your current LOGIN desktop.
Here, I pasted a simple CHROOT'ing example:
Code:
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). Please note that the
Live CD must be the same as the system you are fixing - either 32-bit or
64-bit (if not then the chroot will fail).
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 /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
7. Chroot into your normal system device:
sudo chroot /mnt
8. If there is no /boot/grub/grub.cfg or it's not correct, create one using
update-grub
9. Reinstall GRUB 2:
*
Substitute the correct device - sda, sdb, etc. Do not specify a
partition number.
grub-install /dev/sdX
10.
Verify the install (use the correct device, for example sda. Do not specify a
partition): sudo grub-install --recheck /dev/sdX
11.
Exit chroot: CTRL-D on keyboard
12. Unmount virtual filesystems:
sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
* If you mounted a separate /boot partition:
sudo umount /mnt/boot
13. Unmount the LiveCD's /usr directory:
sudo umount /mnt/usr
14. Unmount last device:
sudo umount /mnt
15. 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
It's taken from here: https://help.ubuntu.com/community/Gr...0from%20LiveCD - when a user wants to FIX GRUB, just pay attention to METHOD #3 - And ignore all the rest of technojabber.
I've looked on this myself when I was studying and messing with my GRUB. It helped me a lot to understand what CHROOT is all about when I was on the udevadm problem.
Hope you find it useful.
Bookmarks