LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-30-2018, 08:20 PM   #1
lolboy
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Rep: Reputation: Disabled
Windows missing from grub


Hello guys, im new around here and well i need a little help
So i reinstalled windows and then deepin just dissapeared from the grub , so i did my work and i got it back in the grub, however now windows is missing and i dont know what to do! I tried update-grub but didnt worked for me, what can i do about this?
 
Old 04-30-2018, 09:34 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,361
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
Because Windows thinks it is the once and future operating system and there are no others, it overwrote your bootloader.

Could you describe exactly what steps you followed when you ran update-grub? Having more context will better enable us to help you.

Oh, and welcome to LQ.
 
Old 05-01-2018, 01:28 AM   #3
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
You have to install os-prober package if you want to add windows to grub menu. Do you have it installed? And mount windows partition before running update-grub.
 
Old 05-01-2018, 07:08 AM   #4
lolboy
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Teufel View Post
You have to install os-prober package if you want to add windows to grub menu. Do you have it installed? And mount windows partition before running update-grub.
os-prober is already installed and returns me nothing and windows partition it says already mounted
 
Old 05-01-2018, 07:11 AM   #5
lolboy
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Because Windows thinks it is the once and future operating system and there are no others, it overwrote your bootloader.

Could you describe exactly what steps you followed when you ran update-grub? Having more context will better enable us to help you.

Oh, and welcome to LQ.
Thanks

well when i saw that windows was missing from the grub, the only thing i did was trying the update-grub command and the menu entry with the comand /etc/grub.d/40_custom and i tried to update again , but didnt worked
 
Old 05-01-2018, 12:14 PM   #6
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
os-prober (did you ran it as root?) should return something like this:
Code:
# os-prober 
/dev/sda1:Gentoo Base System release 2.4.1:Gentoo:linux
/dev/sda3:Windows 7:Windows:chain
/dev/sdb1:Windows 10:Windows1:chain
May be your os-prober is broken?

Anyway you could compose a menu entry for Windows by hand and put it to grub.cfg
Something like this:

Code:
menuentry 'Windows 10 SDB1' {
        insmod part_msdos
        insmod ntfs
        set root='hd1,msdos1'
        parttool ${root} hidden-
        drivemap -s (hd0) ${root}
        chainloader +1
}
 
Old 05-01-2018, 01:23 PM   #7
lolboy
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by Teufel View Post
os-prober (did you ran it as root?) should return something like this:
Code:
# os-prober 
/dev/sda1:Gentoo Base System release 2.4.1:Gentoo:linux
/dev/sda3:Windows 7:Windows:chain
/dev/sdb1:Windows 10:Windows1:chain
May be your os-prober is broken?

Anyway you could compose a menu entry for Windows by hand and put it to grub.cfg
Something like this:

Code:
menuentry 'Windows 10 SDB1' {
        insmod part_msdos
        insmod ntfs
        set root='hd1,msdos1'
        parttool ${root} hidden-
        drivemap -s (hd0) ${root}
        chainloader +1
}
Thank you , worked!Now show the option Deepin and windows, But now when i enter deepin it shows a message like this
mount / dev / sda3 partition to be read only
the windows disks will not be able to read and write normally check "Enable fast startup" in shutdown settings.

restore steps to access windows disk normally
1 reboot to enter windows
2 select restart
3 reboot and enter deepin

what can i do? and thanks for helping me
 
Old 05-01-2018, 06:16 PM   #8
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Could you post here your hard drive partitions layout?
Windows boot entry I posted above - it's works for mine partitions scheme, in your case 'hd1,msdos1' should differs.
 
Old 05-01-2018, 07:31 PM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
to disable fastboot boot windows, settings, power settings, what does the power button do, Change settings that are currently unavailable, shutdown setting, turn off fastboot
 
Old 05-01-2018, 07:31 PM   #10
lolboy
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Teufel View Post
Could you post here your hard drive partitions layout?
Windows boot entry I posted above - it's works for mine partitions scheme, in your case 'hd1,msdos1' should differs.
Click image for larger version

Name:	Deepin Screenshot_20180501211017.png
Views:	110
Size:	159.7 KB
ID:	27546

its on portuguese , but i think you can understand or have a idea
 
Old 05-01-2018, 08:10 PM   #11
lolboy
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
to disable fastboot boot windows, settings, power settings, what does the power button do, Change settings that are currently unavailable, shutdown setting, turn off fastboot
I turned fast boot off but still the same thing :/
 
Old 05-02-2018, 04:32 AM   #12
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
What is the /dev/sda2 partition? Is it a windows boot partition?
And how does exactly looks your menuentry for Windows? Please post it.
 
  


Reply



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
[SOLVED] Grub, Ubuntu, Debian, Windows, Oh my!! Grub can't find Windows partitions crs17 Linux - General 3 05-22-2012 08:13 AM
[SOLVED] Windows Grub missing sattarkf Linux - Newbie 7 03-22-2011 08:18 AM
Grub option missing after formating Windows ajeesh.tr Linux - Newbie 3 02-25-2011 01:59 AM
grub overwrote lilo multiboot, missing one boot in Grub rl23455 Linux - Newbie 1 12-09-2007 01:50 PM
Missing Grub nmsuaussie Linux - Laptop and Netbook 1 05-14-2007 11:31 AM

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

All times are GMT -5. The time now is 03:00 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