ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Rusakov <ktirf@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] grub vs. udev
Date: Wed, 09 Feb 2005 02:11:17 +0300
Message-ID: <42094715.2060404@altlinux.ru> (raw)
In-Reply-To: <20050208124047.GJ10142@pyro.hopawar.private.net>

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


  reply	other threads:[~2005-02-08 23:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-08  9:36 Alexey Rusakov
2005-02-08 10:55 ` Alexey Morozov
2005-02-08 12:18   ` Sergey Vlasov
2005-02-08 12:40     ` Alexey Morozov
2005-02-08 23:11       ` Alexey Rusakov [this message]
2005-02-08 23:40         ` Alexey Rusakov
2005-02-09  9:57     ` Stanislav Ievlev
2005-02-09 12:21       ` Alexey Morozov
2005-02-09 12:31         ` Anton Farygin
2005-02-09 12:46         ` Sergey Vlasov
2005-02-10  9:02           ` [sisyphus] [JT]^[JT] " Alexey Morozov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42094715.2060404@altlinux.ru \
    --to=ktirf@altlinux.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git