Originally Posted by
darkod
When chroot-ing you mount a partition at /mnt/boot ONLY if you have a separate /boot partition in your installation. if you don't, skip that line (command).
Thanks, darkod, for the tip. I overlooked the part of the instructions in the guide which said that I only need to mount /boot separately if I have a separate parition. I kept this in mind as I loaded my chroot live environment moments ago.
Originally Posted by
fantab
I once had a similar issue. I knew I had to chroot from Ubuntu LiveDVD/USB and I was all set to go for it, just when I got an idea. From my LiveUSB I mounted my Ubuntu "/" partition by just clicking on it from launcher. Then I opened Nautilus/"FILES" with sudo, I guess and replaced my backup grub file in the appropriate directory and rebooted. And guess what, it worked. No update-grub, nothing.
I just can't remember whether I used Sudo or root to open nautilus... I hope you can figure it out.
My two cents...
Up to this point I haven’t tried this yet. I am trying this now. Here is the output of my commands:
Code:
ubuntu@ubuntu:/mnt/etc/default$ sudo rm grub
ubuntu@ubuntu:/mnt/etc/default$ cp grub.bak29April2013 grub
cp: cannot create regular file `grub': Permission denied
ubuntu@ubuntu:/mnt/etc/default$ sudo cp grub.bak29April2013 grub
ubuntu@ubuntu:/mnt/etc/default$ grub-install --recheck /dev/sda
mkdir: cannot create directory `/boot/grub/i386-pc': Permission denied
ubuntu@ubuntu:/mnt/etc/default$ sudo grub-install --recheck /dev/sda
Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting.
ubuntu@ubuntu:/mnt/etc/default$
That last line saying that installation is impossible is strange. This is the first time I encountered it. Here is one further command and it’s output:
Code:
ubuntu@ubuntu:/mnt/etc/default$ sudo update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of /cow.
ubuntu@ubuntu:/mnt/etc/default$
Again, this is strange. What is this error message saying? I googled it and discovered that it has something to do with my chroot.
I hope this works. I am rebooting now. If restoring the original grub file doesn’t solve my problem, then I will be back to try some of the things oldfred shared.
Bookmarks