[sisyphus] grub vs. udev
Alexey Rusakov
=?iso-8859-1?q?ktirf_=CE=C1_altlinux=2Eru?=
Ср Фев 9 02:11:17 MSK 2005
Alexey Morozov wrote:
>On Tue, Feb 08, 2005 at 03:18:50PM +0300, Sergey Vlasov wrote:
>
>
>>>>/dev/discs/disc0/disc does not have any corresponding BIOS drive.
>>>>
>>>>Это баг или я что-то делаю неправильно?
>>>>
>>>>
>>>Вы недочитали документацию на груб. /boot/grub/device.map или как-то так.
>>>
>>>
>>Если бы... Это пишет не сам grub, а именно скрипт grub-install - там
>>какая-то навороченная логика (причём далеко не только для Linux), которая
>>не работает с такими именами устройств.
>>
>>
>Сергей, все там нормально:
>
>[root на pyro alex]# vim /boot/grub/device.map
>[root на pyro alex]# grub-install '(hd0)'
>Installation finished. No error reported.
>This is the contents of the device map /boot/grub/device.map.
>Check if this is correct or not. If any of the lines is incorrect,
>fix it and re-run the script `grub-install'.
>
>(fd0) /dev/fd0
>(hd0) /dev/discs/disc0/disc
>[root на pyro alex]# grub-install /dev/discs/disc0/disc
>Installation finished. No error reported.
>This is the contents of the device map /boot/grub/device.map.
>Check if this is correct or not. If any of the lines is incorrect,
>fix it and re-run the script `grub-install'.
>
>(fd0) /dev/fd0
>(hd0) /dev/discs/disc0/disc
>[root на pyro alex]# _
>
>
>
>>Кстати, сам grub справляется с такой конфигурацией нормально, а при
>>создании нового device.map вписывает туда имена в виде /dev/hda.
>>
>>
>Это он неправ :-)
>
>
М-да. Пугает меня его поведение. Если ввести grub-install '(hd0)', то,
ясное дело, всё шоколадно, без сучка без задоринки (пишет про unknown
partition type, но там ntfs, простим)
С (hd0) /dev/hda в device.map grub-install /dev/whatever он не делает
ничего, пишет упоминавшуюся строку: не знаю, мол, про
/dev/discs/disc0/disc. А вот если в device.map прописать
/dev/discs/disc0/disc... В примере /dev/hda, но с /dev/discs/disc0/disc
вывод тот же.
# grub-install /dev/hda
expr: нечисловой аргумент
Unknown partition table signature
[...skipped...]
Unknown partition table signature
GNU GRUB version 0.95 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0,9)
Filesystem type is reiserfs, partition type 0x83
grub> setup --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd0,)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
Running "embed /boot/grub/reiserfs_stage1_5 (hd0,9)"... failed (this is
not fatal)
Running "embed /boot/grub/reiserfs_stage1_5 (hd0,9)"... failed (this is
not fatal)
Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0,9)
/boot/grub/stage2 p /boot/grub/menu.lst "... failed
Error 22: No such partition
grub> quit
"Что это, Бэримор?!" (c) То есть я подозреваю, что он пытается
(неудачно) прописать загрузочную запись в /dev/hda9, ой, извините, в
/dev/discs/disc0/part9, но почему?!
--
Alexey "Ktirf" Rusakov
Подробная информация о списке рассылки Sisyphus