grub-mkconfig fails to recognize valid hard drive name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-prober (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: grub2
When I execute sudo grub-mkconfig -o grub.cfg from /boot/grub, I get the following output:
Generating grub.cfg ...
Found Debian background: moreblue-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
ls: cannot access /media/My: No such file or directory
Found Windows Vista (loader) on /dev/sda1
Found Windows Vista (loader) on /dev/sda3
done
The line "ls: cannot access /media/My: No such file or directory" caught my attention since in my system I have an attached external USB hard drive named "My Book" (no quotes). I currently do not have any operating system on this drive, but it is possible that someday I might have. If this were to occur, then grub-mkconfig would not correctly detect the hard drive as having an operating system on it. I traced this failure to grub-mkconfig calling "/usr/bin/
/dev/sda1:Windows Vista (loader)
/dev/sda3:Windows Vista (loader)
ls: cannot access /media/My: No such file or directory
1. lsb_release -rd
Description: Ubuntu karmic (development branch)
Release: 9.10
2. apt-cache policy grub2
grub2:
Installed: (none)
Candidate: 1.97~beta4-1ubuntu1
Version table:
1.
500 http://
3. When generating the grub2 grub,cfg file, it looks for available operating systems on all attached disks. Since my external USB hard drive has a "space" in it turn calls "/usr/lib/
/dev/sda1:Windows Vista (loader)
/dev/sda3:Windows Vista (loader)
ls: cannot access /media/My: No such file or directory
1. lsb_release -rd
Description: Ubuntu karmic (development branch)
Release: 9.10
2. apt-cache policy grub2
grub2:
Installed: (none)
Candidate: 1.97~beta4-1ubuntu1
Version table:
1.
500 http://
3. When generating the grub2 grub,cfg file, it looks for available operating systems on all attached disks. Since my external USB hard drive has a "space" in its name "My Book", the detetion of an operating system fails for this drive, and consequently, all such drives that have a space in the name.
ProblemType: Bug
Architecture: amd64
Date: Fri Oct 16 13:57:35 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: grub2 (not installed)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: grub2
Uname: Linux 2.6.31-14-generic x86_64
affects: | grub2 (Ubuntu) → os-prober (Ubuntu) |
See also https:/ /bugs.launchpad .net/ubuntu/ +source/ os-prober/ +bug/433910