Question about GRUB

If none of the more specific forums is the right place to ask

Question about GRUB

Postby uthappam » 2018-02-14 18:10

My computer ran Debian 9 until, some weeks ago, I made space for a separate partition and put Linux Mint in it. Both distributions ran well. Today, Mint refuses to boot while Debian is running as always. I now plan to wipe out Mint and turn my system back into a Debian-only one. I understand that GRUB must be edited but I do not know how to do that. The file /etc/default/grub in Debian is:

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

Mint comes up as the first option and Debian is the fourth. Perhaps I should list my partitions.

sda1 is /
sda2 is extended
sda5 is swap
sda6 is /home
sda7 contains Linux Mint.
uthappam
 
Posts: 208
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Question about GRUB

Postby wizard10000 » 2018-02-14 18:16

Remove or wipe the Mint partition and then in Debian, run update-grub as root. Should remove the Mint entry all by itself :)

Good luck -
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1299
Joined: 2011-05-09 20:02
Location: everywhere i go, there i am!

Re: Question about GRUB

Postby uthappam » 2018-02-14 18:45

Thank you.
uthappam
 
Posts: 208
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Question about GRUB

Postby uthappam » 2018-02-14 19:12

It didn't work, Wizard. Rebooting stopped with "error: no such partition". Luckily the CD from which I had installed Debian has a rescue option which re-installs GRUB.
uthappam
 
Posts: 208
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Question about GRUB

Postby sunrat » 2018-02-14 21:24

Sounds like you were booting from Mint's GRUB. You could alternatively have booted Debian with boot select menu and run
Code: Select all
grub-install /dev/sda && update-grub
assuming GRUB was installed to MBR. No external media necessary! ;)
You could even have run that from Debian before removing Mint.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2495
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Question about GRUB

Postby uthappam » 2018-02-14 21:37

Sunrat, I ought to have specified that I rebooted after Mint had been removed.

Thank you for making me aware of grub-install.
uthappam
 
Posts: 208
Joined: 2010-01-01 17:14
Location: Delhi, India


Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable