From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <42094715.2060404@altlinux.ru> Date: Wed, 09 Feb 2005 02:11:17 +0300 From: Alexey Rusakov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050202 Thunderbird/1.0 Mnenhy/0.7 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ALT Linux Sisyphus discussion list Subject: Re: [sisyphus] grub vs. udev References: <42088809.2090504@altlinux.ru> <20050208105546.GI10142@pyro.hopawar.private.net> <20050208121850.GC24459@master.mivlgu.local> <20050208124047.GJ10142@pyro.hopawar.private.net> In-Reply-To: <20050208124047.GJ10142@pyro.hopawar.private.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2005 23:11:18 -0000 Archived-At: List-Archive: 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