skips /dev/sda
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-prober (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
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://
100 /var/lib/
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....
Same here with "/dev/sda1" & "/dev/sda2" (Bug #662242) and hardcoding also fixes it.