LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2017, 12:34 AM   #1
Moeman
LQ Newbie
 
Registered: Dec 2016
Posts: 15

Rep: Reputation: Disabled
Help repairing GRUB bootloader please?


Hi, I'm about to repair my GRUB bootloader as I speak using the Boot Repair tool in Ubuntu. So far I have typed the following into the terminal to get the tool:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

At a certain point the Boot Repair tool told me to enter into the terminal:

sudo chroot "/mnt/boot-sav/sdc3" apt-get install -y --force-yes grub-pc

But the problem is later on I get the message"

Running in chroot, ignoring request.
Processing triggers for ureadahead (0.100.0-19) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.

Thanks.

Edit: Well I just removed the "--force-yes" part of the command and I managed to get it to work. Still, I wouldn't mind getting some explanation about it as I literally know nothing about Linux.

Last edited by Moeman; 07-31-2017 at 01:14 AM.
 
Old 07-31-2017, 02:30 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
have no idea why you want to chroot into your system if it is running just run the run the sudo grub-install /dev/sda if that is the drive you boot from. to the device you want. then run sudo grub-mkconfig -o /boot/grub2/grub.cfg or

grab your live cd boot it and do a. it will read your drives and . omg ubuntu makes it seem so hard. Grub rescue tools all that crap.
if in a live cd make sure you grub-mkconfig -o path/to/device/boot/grub2/grub.cfg
if you still have your grub folder on your system no need to grub-mkconfig.
the grub probe will look for grubs. ubuntu makes it so confusing.
pop a live cd in and use the boot a partiton option and then run grub-install.
 
Old 07-31-2017, 02:38 AM   #3
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 664

Rep: Reputation: 190Reputation: 190
I agree with Drakeo that Ubuntu makes things seem more difficult than they are.

And can you clarify your current setup including whether or not you are chrooted into your system?

Are you running a live cd right now trying to repair?
 
Old 07-31-2017, 02:45 AM   #4
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 664

Rep: Reputation: 190Reputation: 190
Ubuntu is having you use a PPA which is a nonstandard repository and adding it to your tools then running that tool. The
Code:
 sudo chroot "/mnt/boot-sav/sdc3" apt-get install -y --force-yes grub-pc
command seems to indicate you are running a live cd and it is repairing boot, indicated by the "chroot" and that paths are prefixed with /mnt.

The
Code:
 W: --force-yes is deprecated, use one of the options starting with --allow instead.
indicates that you are being advised to use a deprecated (meaning no longer supported) command argument and then indicates of the new proper way to do what "--force-yes" used to do.

Last edited by TheEzekielProject; 07-31-2017 at 02:48 AM.
 
Old 07-31-2017, 09:49 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,431

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
When you are having boot problems with Grub and have the boot repair tool, your best option is to NOT try to repair but to run with the option to Create Bootinfo Summary and post a link to it here. That way, people with more knowledge will be able to review the output and give you some advice.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
repairing grub pice856 Linux - Newbie 4 08-15-2007 05:40 AM
repairing grub pice856 LinuxQuestions.org Member Intro 1 08-02-2007 06:53 AM
repairing GRUB/bootloader for Suse 8.2 gherb Linux - Newbie 19 01-16-2006 04:18 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
Need help repairing GRUB! Please! DJSpaceMouse Linux - Software 19 05-27-2003 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration