You are not logged in.

#1 2016-11-05 07:22:48

linux_user
50/50 it's a spam account
Registered: 2016-11-04
Posts: 484

[Solved] How do I install os-prober and fix dual boot issues?

I have installed Bunsenlabs after installing Win 7, however I do not see Win 7 in the grub.

Note: All commands are run as root.

update-grub

results in the following,

Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
done

I tried using

os-prober

to find Windows, however it doesn't seem to be installed.

-bash: os-prober: command not found

So I tried installing it,

aptitude install os-prober

but it results in the following,

No candidate version found for os-prober 
No candidate version found for os-prober
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

Any help is appreciated.



SOLUTION==============================
Make sure that the repository lists are correct with main, contrib and non-free components., if not edit it. Then use the following commands.

apt update
aptitude install os-prober

Last edited by linux_user (2016-12-25 05:45:30)


"Blind faith to authority is the greatest enemy of truth."

Offline

#2 2016-11-05 09:30:52

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,086
Website

Re: [Solved] How do I install os-prober and fix dual boot issues?

Looks like you are missing the main jessie repositories.

What is the output of:

apt-cache policy

Also, is Windows installed in UEFI mode?

If you don't know then please post the output of:

sudo parted -l

Offline

#3 2016-11-05 11:41:22

linux_user
50/50 it's a spam account
Registered: 2016-11-04
Posts: 484

Re: [Solved] How do I install os-prober and fix dual boot issues?

Here's the output for apt-cache policy

	Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://httpredir.debian.org/debian/ jessie-backports/non-free Translation-en
 500 http://httpredir.debian.org/debian/ jessie-backports/main Translation-en
 500 http://httpredir.debian.org/debian/ jessie-backports/contrib Translation-en
 100 http://httpredir.debian.org/debian/ jessie-backports/non-free amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=non-free
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian/ jessie-backports/contrib amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=contrib
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian/ jessie-backports/main amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
     origin httpredir.debian.org
 500 http://pkg.bunsenlabs.org/debian/ bunsen-hydrogen/main amd64 Packages
     release o=bunsenlabs,n=bunsen-hydrogen,l=bunsenlabs,c=main
     origin pkg.bunsenlabs.org
 100 http://pkg.bunsenlabs.org/debian/ jessie-backports/main amd64 Packages
     release o=bunsenlabs,n=jessie-backports,l=bunsenlabs,c=main
     origin pkg.bunsenlabs.org
 500 http://ftp.cn.debian.org/debian/ jessie/main Translation-en
 500 http://ftp.cn.debian.org/debian/ jessie/main amd64 Packages
     release v=8.6,o=Debian,a=stable,n=jessie,l=Debian,c=main
     origin ftp.cn.debian.org

The output for parted -l

Model: ATA WDC WD5000LPVT-1 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  525MB   524MB   primary   ntfs
 2      525MB   53.7GB  53.2GB  primary   ntfs
 3      53.7GB  64.4GB  10.7GB  primary   ext4            boot
 4      64.4GB  500GB   436GB   extended
 5      64.4GB  68.7GB  4294MB  logical   linux-swap(v1)
 6      68.7GB  500GB   431GB   logical   ntfs


Model: TOSHIBA External USB 3.0 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  2000GB  2000GB  primary  ntfs         boot

I reckon that Windows in installed in BIOS mode, but how do you find it out from the above output?

Follow up on my original question:
I installed os-prober by including its repositories in the sourced.list file and then,

apt update
aptitude install os-prober

I then, probed other OSes, updated my grub and now I am able to boot to Windows. However any light on the above outputs will be appreciated.


"Blind faith to authority is the greatest enemy of truth."

Offline

#4 2016-11-05 11:51:52

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,086
Website

Re: [Solved] How do I install os-prober and fix dual boot issues?

Here's the output for apt-cache policy

That is not the full output, please don't crop stuff like that.

It seems to show the jessie repositories -- the main component at least, I presume that contrib & non-free were in the section you cropped out?

At any rate, os-prober is in main and so should have been installable...
hmm

I installed os-prober by including its repositories in the sourced.list file

Can you please elaborate on this?

What is the full output of `apt-cache policy` now?

Offline

#5 2016-11-05 11:54:35

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,086
Website

Re: [Solved] How do I install os-prober and fix dual boot issues?

I reckon that Windows in installed in BIOS mode, but how do you find it out from the above output?

If there is an EFI system partition present on the drive then Windows will be installed in UEFI mode.

Your drive does not have such a partition and so Windows must be installed in non-UEFI mode.

Offline

#6 2016-11-05 12:47:22

linux_user
50/50 it's a spam account
Registered: 2016-11-04
Posts: 484

Re: [Solved] How do I install os-prober and fix dual boot issues?

Sorry about the crop, that was unintentional, probably a mistake while copying..

Here's the output, This is the output after I installed os-prober and fixed grub. Sorry, I did that before you had replied to my post, hence.

root@linux:~# apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://httpredir.debian.org/debian/ jessie-backports/non-free Translation-en
 500 http://httpredir.debian.org/debian/ jessie-backports/main Translation-en
 500 http://httpredir.debian.org/debian/ jessie-backports/contrib Translation-en
 100 http://httpredir.debian.org/debian/ jessie-backports/non-free amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=non-free
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian/ jessie-backports/contrib amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=contrib
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian/ jessie-backports/main amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
     origin httpredir.debian.org
 500 http://pkg.bunsenlabs.org/debian/ bunsen-hydrogen/main amd64 Packages
     release o=bunsenlabs,n=bunsen-hydrogen,l=bunsenlabs,c=main
     origin pkg.bunsenlabs.org
 100 http://pkg.bunsenlabs.org/debian/ jessie-backports/main amd64 Packages
     release o=bunsenlabs,n=jessie-backports,l=bunsenlabs,c=main
     origin pkg.bunsenlabs.org
 500 http://ftp.cn.debian.org/debian/ jessie/main Translation-en
 500 http://ftp.cn.debian.org/debian/ jessie/main amd64 Packages
     release v=8.6,o=Debian,a=stable,n=jessie,l=Debian,c=main
     origin ftp.cn.debian.org
Pinned packages:
root@linux:~# 

I went to official os-prober download page and as described there, added the line

deb http://ftp.cn.debian.org/debian jessie main

to the sources.list file (sorry typo earlier). Then,

apt update
aptitude install os-prober

Last edited by linux_user (2016-11-05 12:48:02)


"Blind faith to authority is the greatest enemy of truth."

Offline

#7 2016-11-05 12:53:25

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,086
Website

Re: [Solved] How do I install os-prober and fix dual boot issues?

Sorry, I did that before you had replied to my post, hence.

Ah, I see, thanks for the explanation.

So it seems that you did not have the main Debian jessie repositories -- did you select a mirror during the installation process?

You may also wish to add the contrib & non-free components to the added Debian jessie source line, as per https://wiki.debian.org/SourcesList#Exa … urces.list

More critically, you seem to be missing the Debian Security repositories -- these should be added ASAP.

Use this command to edit your sources:

sudo apt edit-sources

Be sure to update the package database afterwards:

sudo apt update

Offline

#8 2016-11-05 13:38:03

linux_user
50/50 it's a spam account
Registered: 2016-11-04
Posts: 484

Re: [Solved] How do I install os-prober and fix dual boot issues?

Head_on_a_Stick wrote:

So it seems that you did not have the main Debian jessie repositories -- did you select a mirror during the installation process?

No, I didn't select any mirror during the installation. I couldn't connect to the internet at that point. That explains why the main repositories weren't installed.

Head_on_a_Stick wrote:

You may also wish to add the contrib & non-free components to the added Debian jessie source line, as per https://wiki.debian.org/SourcesList#Exa … urces.list

After the installation I ran bl-welcome to update all these, however I faced some error while adding contrib and non-free components. Therefore I continued typing n at the prompt.

Head_on_a_Stick wrote:

More critically, you seem to be missing the Debian Security repositories -- these should be added ASAP.


Use this command to edit your sources:

sudo apt edit-sources

Be sure to update the package database afterwards:

sudo apt update

This is how my current sources.list look when I edit it using nano,

# 

# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Bin$

# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Bin$

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/ jessie/updates main contrib non-free
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.cn.debian.org/debian jessie main 

Will uncommenting some lines as the following do?

# 

# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Bin$

# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Bin$

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.cn.debian.org/debian jessie main 

Last edited by linux_user (2016-11-05 13:39:18)


"Blind faith to authority is the greatest enemy of truth."

Offline

#9 2016-11-05 13:43:27

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,086
Website

Re: [Solved] How do I install os-prober and fix dual boot issues?

Will uncommenting some lines as the following do?

Yes but you don't need the "deb-src" line unless you want to patch the Security fixes (unlikely).

As I mentioned (and perhaps this may be relevant to your other thread), contrib & non-free may also be needed for a fully functioning desktop.

You also seem to need "jessie-updates", please refer to the example sources.list to which I linked in my earlier post.

Offline

#10 2016-11-05 13:51:14

linux_user
50/50 it's a spam account
Registered: 2016-11-04
Posts: 484

Re: [Solved] How do I install os-prober and fix dual boot issues?

As far as I understand, jessie main, jessie-updates and jessie/updates are three different repositories.

This is how my sources.list look now.

deb http://httpredir.debian.org/debian jessie main contrib non-free
deb-src http://httpredir.debian.org/debian jessie main contrib non-free

deb http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb-src http://httpredir.debian.org/debian jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

Am I missing any other security repositories?


"Blind faith to authority is the greatest enemy of truth."

Offline

#11 2016-11-05 13:55:53

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,086
Website

Re: [Solved] How do I install os-prober and fix dual boot issues?

Am I missing any other security repositories?

No, that all looks fine now smile

Remember to upgrade your system:

sudo apt update && sudo apt upgrade

Check the final output for any "Packages left unupgraded" (or so) and use `sudo apt-get dist-upgrade` if there are any, firefox-esr needs this special treatment (and maybe some other packages as well).

Offline

#12 2016-11-05 14:02:12

linux_user
50/50 it's a spam account
Registered: 2016-11-04
Posts: 484

Re: [Solved] How do I install os-prober and fix dual boot issues?

Yes, I just finished updating. dpkg was interrupted. It asked me to correct the problem manually.

dpkg --configure -a

Will be upgrading as soon as it finishes.

I will check for packages left unupgraded, but what does dist-upgrade do? Alright.. found it here....http://askubuntu.com/questions/81585/what-is-dist-upgrade-and-why-does-it-upgrade-more-than-upgrade

Thanks a lot for you help... You have been really really helpfull.. Getting deeper into linux... hence so many question! smile

Last edited by linux_user (2016-11-05 14:05:01)


"Blind faith to authority is the greatest enemy of truth."

Offline

#13 2016-11-06 19:36:13

linux_user
50/50 it's a spam account
Registered: 2016-11-04
Posts: 484

Re: [Solved] How do I install os-prober and fix dual boot issues?

How do I mark/tag this as solved?


"Blind faith to authority is the greatest enemy of truth."

Offline

#14 2016-11-06 21:21:30

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,629

Re: [Solved] How do I install os-prober and fix dual boot issues?

Edit your original post and add [SOLVED] at the begining of the title.

Last edited by PackRat (2016-11-06 21:23:02)


You must unlearn what you have learned.
    -- yoda

Offline

Board footer

Powered by FluxBB