You are Here:
Linux Lite 4.4 RC1 has been released. See the Release Announcements section for more information.



[SOLVED] Trouble with GRUB re-installation

Author (Read 12934 times)

0 Members and 2 Guests are viewing this topic.

[SOLVED] Trouble with GRUB re-installation
« on: November 14, 2015, 01:16:25 PM »
 

antenor

  • New to Forums
  • *
  • 23
    Posts
  • Country: gr
  • Reputation: 2
  • Linux Lite Member

  • CPU: Intel Core i3 M370 2.4GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Integrated Graphics Controller
Hello all,

I have Windows on sda1 and 2, Lite /, swap and /home on sda3, 5 and 6 and left some unallocated space for experimentation! I installed
there recently a few distros to see what they got in real installation because in VB, apart from being slow, I have to use scroll bars.
In order to avoid troubles with GRUB conflicts I installed each fresh installed distro's GRUB on each one's / and over them all I tried to re-install
Lite's GRUB (please, feel free to laugh!!!). Everything was going according to plan in the terminal, up to the final command "sudo update-grub"
where instead of a glorious boot menu with all the OS listed, I found myself in front of a black screen!
I boot in the live mode trying to mount Lite's / and re-install GRUB, where I see in the terminal that everything is where it supposed to be although
unmounted and as soon as I give the commands "sudo grub-install...." and "sudo update-grub" in the end, it turns back "grub-install: error:
failed to get canonical path of '/cow'
What are the proper commands to fix this and what did I do wrong?

Thank you in advance!  :)



Last Edit: November 16, 2015, 10:48:48 AM by antenor
 


Re: [SOLVED] Trouble with GRUB re-installation
« Reply #1 on: November 16, 2015, 06:58:57 AM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1095
    Posts
  • Country: us
  • Reputation: 323
  • Linux Lite Member

  • Linux Lite: 3.2 64bit

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
In order to avoid troubles with GRUB conflicts I installed each fresh installed distro's GRUB on each one's / and over them all I tried to re-install
Lite's GRUB


If you installed (grub) boot loader for other distros to their respective root partitions, then all you needed to do is boot back into LL afterwards and run this command to add them to LL grub's boot menu:
Code: [Select]
sudo update-grub]Because of modifications made to LL's grub configuration, trying to boot LL from the grub of a different distro ends up being extremely difficult.  Therefore always a good idea to leave LL's grub in charge of booting the machine (which is what you were trying to do).  In your case, you didn't need to try installing LL's grub to each distro's root partition afterwards (if that's what you were doing) and that ended up just causing problems.

Now, to get LL booting again, boot from live LL disk and follow instructions below in a terminal.  Each line below needs to be entered separately and in the order shown.   [Note: anywhere you see "XY" or "X", change that to the correct drive letter ("X") and partition number ("Y") for your LL root partition.]

Code: [Select]
sudo mount /dev/sdXY /mnt
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub
exit
for i in /sys /proc /dev/pts /dev; do sudo umount /mnt$i; done
sudo umount /mnt
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #2 on: November 16, 2015, 08:36:05 AM »
 

antenor

  • New to Forums
  • *
  • 23
    Posts
  • Country: gr
  • Reputation: 2
  • Linux Lite Member

  • CPU: Intel Core i3 M370 2.4GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Integrated Graphics Controller
Hello gold_finger,

I can't thank you enough for your immediate and complete reply! I only have to ask you
a) do I type everything you wrote me in my terminal (including "for i", "do", "done", "exit"
and b) don't I have to mount back all of the partitions one by one?

Thank you very much!!!  :)
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #3 on: November 16, 2015, 08:58:52 AM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1095
    Posts
  • Country: us
  • Reputation: 323
  • Linux Lite Member

  • Linux Lite: 3.2 64bit

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
a) do I type everything you wrote me in my terminal (including "for i", "do", "done", "exit"

Yes.  Do all lines (one at a time) exactly as shown.  (Just need to change /dev/sdXY to whatever your LL root partition is; and /dev/sdX to whatever correct drive letter is.  If not sure which is root partition, run sudo blkid -c /dev/null and look for it in the output.


b) don't I have to mount back all of the partitions one by one?

First command mounts the root partition to the "live" DVD/USB environment.  Last command unmounts it when you're done re-installing grub.  After that shutdown computer and remove live DVD.  Reboot and your installed LL on the hard drive should now boot properly.  If you've got other distros on the drive, they will show-up on the grub boot menu too.

No need to remount anything in live environment if that is what you were asking.  No need to mount any partitions other than the LL root partition to the live environment to repair grub booting.  Only exception to that would be if you had a separate "/boot" partition; but I'm assuming that's not the case because you didn't say you had one.  (If you didn't explicitly create one when you first installed LL, then you don't have one and the boot files are on the root partition.)
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #4 on: November 16, 2015, 09:17:04 AM »
 

antenor

  • New to Forums
  • *
  • 23
    Posts
  • Country: gr
  • Reputation: 2
  • Linux Lite Member

  • CPU: Intel Core i3 M370 2.4GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Integrated Graphics Controller
Thank you again for your assistance!
I am trying it right away and will send
you feedback!!!  :) :)
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #5 on: November 16, 2015, 10:45:55 AM »
 

antenor

  • New to Forums
  • *
  • 23
    Posts
  • Country: gr
  • Reputation: 2
  • Linux Lite Member

  • CPU: Intel Core i3 M370 2.4GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Integrated Graphics Controller
Thank you so very much dude,

I got my computer back and running extra super!!!!!
You are so excellent!!!  :) :) :) :) :) :) :) :) :) :)
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #6 on: November 16, 2015, 01:31:08 PM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1095
    Posts
  • Country: us
  • Reputation: 323
  • Linux Lite Member

  • Linux Lite: 3.2 64bit

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
Glad everything worked out.  Welcome to Linux Lite.
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #7 on: November 16, 2015, 03:32:12 PM »
 

antenor

  • New to Forums
  • *
  • 23
    Posts
  • Country: gr
  • Reputation: 2
  • Linux Lite Member

  • CPU: Intel Core i3 M370 2.4GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Integrated Graphics Controller
With guys like you to support and welcome me I think I will stay here forever!
One thing though is for sure : as soon as I return to Greece I am going to see
how can I send you a donation!!! :D :D :D
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #8 on: November 16, 2015, 05:32:44 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 6611
    Posts
  • Country: nz
  • Reputation: 601
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
With guys like you to support and welcome me I think I will stay here forever!
One thing though is for sure : as soon as I return to Greece I am going to see
how can I send you a donation!!! :D :D :D

Send it to gold_finger, he is awesome!
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #9 on: November 18, 2015, 10:22:49 AM »
 

antenor

  • New to Forums
  • *
  • 23
    Posts
  • Country: gr
  • Reputation: 2
  • Linux Lite Member

  • CPU: Intel Core i3 M370 2.4GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Integrated Graphics Controller
Could you make this a bit easier for me? (the donation thing)
I mean send me instructions or a guiding link maybe about it.
All I know is I have to get a credit card and sign in to paypal.
Sorry for asking all these but I am new to everything I guess!
Thank you!  :) :)
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #10 on: November 19, 2015, 11:49:28 AM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1095
    Posts
  • Country: us
  • Reputation: 323
  • Linux Lite Member

  • Linux Lite: 3.2 64bit

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
Linux Lite home page has a "Donate" link on it.  Here is direct link:  https://www.linuxliteos.com/donate.html
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #11 on: November 19, 2015, 01:26:15 PM »
 

antenor

  • New to Forums
  • *
  • 23
    Posts
  • Country: gr
  • Reputation: 2
  • Linux Lite Member

  • CPU: Intel Core i3 M370 2.4GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Integrated Graphics Controller
Thanks a lot for your reply my friend!

Yes, one can easily see the link you sent me, it's on our front page anyway! But I could find in there
nothing but guiding to sign in to paypal and donators' names but don't bother, it's because I have never
used paypal before I guess.
As soon as I get this ready (the credit card thing) and still have some problem I will let you know!

Thanks again for your care.  :) :)
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #12 on: November 19, 2015, 04:11:57 PM »
 

Wirezfree

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1482
    Posts
  • Country: gb
  • Reputation: 404
  • Linux Lite "Advocate"

  • Linux Lite: 2.8 64bit

  • CPU: i7-4790S

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD4600 (Integrated)
@gold_finger

Sorry for jumping on the thread, but it is on topic, I'm just about to do a "dual boot" with Windows7 for a friend.

Currently Win7 is the only OS installed, with bios in legacy mode, and it's in a single partition on the disk#1
I want to add LL, If I do the "something else" install, to have it on the 2nd partition on the 1st disk, when I get to the boot loader choice
I assume I say do it to that partition, rather than the MBR.??, and LL will then add it to the Grub during install..?


I will use "something else" so I can create the separate / on disk#1 and /home /swap on disk#2

Many Thanks
Upgrades WIP 2.6 to 2.8 - (6 X 2.6 to 2.8 completed on: 20/02/16 All O.K )
Linux Lite 3.0 Humming on a ASRock N3070 Mobo ~ btrfs RAID 10 Install on 4 Disks :)

Computers Early days:
ZX Spectrum(1982) , HP-150 MS-DOS(1983) , Amstrad CPC464(1984) ,  BBC Micro B+64(1985) , My First PC HP-Vectra(1987)
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #13 on: November 19, 2015, 04:59:16 PM »
 

firenice03

  • Rockin' the FREE World
  • Platinum Level Poster
  • **********
  • 1056
    Posts
  • Country: us
  • Reputation: 205
  • Linux Lite Member

  • Linux Lite: 4.2 64bit

  • CPU: Atom X5/AMD Phenom II X2

  • MEMORY: 8Gb

  • VIDEO CARD: Intel//AMD/ATI RS880
@Wirezfree...
Not 100% on the swap, but I think /swap is typically created on its own partition by default..
I just did a dual with Win7 and set a separate partition for /home.. Real easy  ;D , the /home folder resides where it normally would and did not require mounting...

Some specifics are here:
https://www.linuxliteos.com/forums/introductions/hello-and-system-req-for-lite/msg18916/#msg18916
LL 3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express
LL 4.2 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL 4.2 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
RETIRED LL 2.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA
Running Linux Lite since LL2.2
 

Re: [SOLVED] Trouble with GRUB re-installation
« Reply #14 on: November 19, 2015, 05:12:40 PM »
 

antenor

  • New to Forums
  • *
  • 23
    Posts
  • Country: gr
  • Reputation: 2
  • Linux Lite Member

  • CPU: Intel Core i3 M370 2.4GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel Integrated Graphics Controller
What I did on my machine is GRUB installation on the MBR and my Windows 7 had no
problem at all with that, no conflicts at all.
It is just that on the GRUB booting list Lite comes first - of course, since it is the Linux
bootloader - and Windows second.
There are some limitations on the MBR partitioningn system which I am sure you already
know.

Happy tinkering!  :) :)
 


Tags:
 


Linux Lite 4.4 RC1 has been released. See the Release Announcements section for more information.