update-grub sets root= non-deterministic device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using wubi rev 197 I installed Ubuntu 10.10 from Windows XP.
Hard drives and partitions:
2 hard drives (one PATA 160GB, one SATA 500GB)
disk 0 (PATA): Primary partition C: , NTFS, over the entire disk
disk 1 (SATA): Primary partition E: , NTFS , 450 GB, the rest is unpartitioned
Windows XP installed on C:
Steps:
- downloaded wubi 197
- installed Ubuntu 10.10 on disk E:
- reboot into Ubuntu
- the installation is finished
- another reboot into ubuntu
...
Then I did an update ( apt-get upgrade) and after that I got the "/host/
It turns out the grub configuration changed from
set root='(hd1,msdos1)'
to
set root='(hd0,msdos1)'
and
linux /boot/vmlinuz-
to
linux /boot/vmlinuz-
As the same error is printed for unclean NTFS (see bug 226622) and that Ubuntu leaves the NTFS partionion in unclean state after each shutdown (bug 733816), I first thought this is an issue with unclean FS...
affects: | ubuntu → grub2 (Ubuntu) |
After the mentioned update there were nmoreupdates detected by Update Manager.
I installed them and now the grub.cfg again has the correct hd1 entry and sdb1.
But it still does not boot each time.
The problem is, that there are 3 "scsi" devices: sda, sdb and sdc.
And the naming is not deterministic. I guess it depends on detection time.
Sometimes hd0 (as seen by BIOS, which is always stable) is named sda, sometimes sdb and even sdc.
Same with hd1 and the other (not hard drive) device.
This just brings back the old, known problem of "relying on a particular detection order of devices is ... not reliable".
There were many solutions proposed: UUID, devlabel, etc...
Please advise (if you check the amount of issues I reported just today, you'll guess I am on the edge of deleting Ubuntu from my PC. For good.)