skips /dev/sda

Bug #520776 reported by mmlb
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
os-prober (Ubuntu)
New
Undecided
Unassigned
Nominated for Maverick by ToniTC

Bug Description

Binary package hint: os-prober

lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10

apt-cache policy os-prober
os-prober:
  Installed: 1.35
  Candidate: 1.35
  Version table:
 *** 1.35 0
        500 http://www.gtlib.gatech.edu karmic/main Packages
        100 /var/lib/dpkg/status

I expected os-prober to search all my hard drives for bootable partitions

os-prober seems to not check /dev/sda the disk that has Ubuntu, Windows XP, and the boot loader.

So os-prober would originally detect and install Windows just fine. Did an update a couple of days ago, and just noticed that I couldn't boot into Windows. I have had this problem before, and it only got so annoying now that I am filling a bug.

I edited /usr/bin/os-prober with the following that starts on line # 105:

for partition in $(partitions); do
    echo $partition #<------------- This was me
    if ! mapped=$(mapdevfs $partition); then
        log "Device '$partition' does not exist; skipping"
        continue
    fi

When I ran `sudo os-prober` I get
/dev/sdb1
/dev/sdb2
/dev/sdc1

Later I hard coded `echo /dev/sda1` in the function partions() and all is right with the world, sort of....

Revision history for this message
Sven Roederer (sven-roederer) wrote :

Same here with "/dev/sda1" & "/dev/sda2" (Bug #662242) and hardcoding also fixes it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.