Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Question about GRUB

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Question about GRUB

#1 Post by uthappam »

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: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Question about GRUB

#2 Post by uthappam »

Thank you.

uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Question about GRUB

#3 Post by uthappam »

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.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: Question about GRUB

#4 Post by sunrat »

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!

uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Question about GRUB

#5 Post by uthappam »

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

Thank you for making me aware of grub-install.

Post Reply