LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin
User Name
Password
Linux Deepin This forum is for the discussion of Linux Deepin.

Notices


Reply
  Search this Thread
Old 04-12-2015, 04:32 AM   #1
sehemy
LQ Newbie
 
Registered: Apr 2015
Posts: 1

Rep: Reputation: Disabled
restore deepin bootloader after installing another linux


Hi , I'm new to deepin and it works great but ,
I've just installed another linux distribution Today alongside with deepin which overridden the default sweet boot loader theme of deepin , so how to get it back without re-installing the whole OS ?

thanks
 
Old 04-13-2015, 01:01 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Not familiar with Deepin but as it is based on Debian, I think you should boot up your Deepin system & run:
Code:
# apt-get install os-prober
# grub-install --target=i386-pc --recheck /dev/sdX
# grub-mkconfig -o /boot/grub/grub.cfg
Replace "X" (in "/dev/sdX") with the drive letter assigned to your main drive (use `lsblk` to list all attached drives & their sizes).

You should probably backup your MBR (to a file called "mbr.bak", located in your current working directory) before doing this:
Code:
# dd if=/dev/sdX of=mbr.bak bs=512 count=1
If everything goes wrong, you can restore it (from a live system) using:
Code:
# dd if=mbr.bak of=/dev/sdX bs=512 count=1
All of this is assuming you are not booting in EFI-mode.

You should check that you do not have any files under /sys/firmware/efi before you follow these instructions.

If you do have files in that directory, post back here for further advice

Last edited by Head_on_a_Stick; 04-13-2015 at 01:03 PM. Reason: typo
 
Old 04-30-2015, 05:48 AM   #3
marccc
LQ Newbie
 
Registered: Feb 2015
Posts: 7

Rep: Reputation: Disabled
wondering, did this work with deepin?
 
Old 07-15-2016, 02:31 PM   #4
michael diemer
Member
 
Registered: Jul 2016
Location: Maine, USA
Distribution: Bodhi 6, Debian 11 LXDE
Posts: 158

Rep: Reputation: Disabled
In case anyone is still wondering about this, I tried this and it worked:

sudo update-grub

then

sudo grub-install /dev/sda

Substitute sdb, sdg etc as needed. Whichever partition Deepin is on.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux deepin 2014 not installing !!!!! tech4anurag Linux Deepin 5 10-26-2014 09:08 PM
LXer: Linux Deepin needs your help with the Deepin Localization Project LXer Syndicated Linux News 0 12-02-2013 10:41 PM
LXer: Restore the Windows bootloader to MBR after dual-booting with Linux LXer Syndicated Linux News 0 03-10-2012 06:30 PM
how to restore linux bootloader after windows installation. jainforall Linux - Newbie 3 12-08-2008 03:00 AM
Remove Linux, Restore WINXP Bootloader costasm Linux - General 2 07-31-2004 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Deepin

All times are GMT -5. The time now is 02:55 PM.

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