ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] IA: остерегайтесь нового grub!
@ 2006-08-06 16:56 Konstantin A. Lepikhov
  2006-08-06 18:03 ` Sergey Vlasov
  2006-08-06 20:59 ` thresh
  0 siblings, 2 replies; 6+ messages in thread
From: Konstantin A. Lepikhov @ 2006-08-06 16:56 UTC (permalink / raw)
  To: ALT Linux Sisyphus List

[-- Attachment #1: Type: text/plain, Size: 3744 bytes --]

Hi!

Пламенный привет мантейнеру syslinux и grub! Мало того, что он угробил
первый пакет, теперь разломал и второй - grub-install перестал осмысленно
работать и что-то ставить:

$ cat /proc/partitions
major minor  #blocks  name

   8     0  293036184 sda
   8     1     240943 sda1
   8     2     996030 sda2
   8     3  291796627 sda3
   8    16  293036184 sdb
   8    17     240943 sdb1
   8    18     996030 sdb2
   8    19  291796627 sdb3
   9     7  291796544 md7
 253     0  291796627 dm-0
 253     1  291796627 dm-1
 253     2   68157440 dm-2
 253     3   68157439 dm-3
 253     4    5242880 dm-4
 253     5    5242879 dm-5
 253     6    5242880 dm-6
 253     7    5242879 dm-7
 253     8  157286400 dm-8
 253     9  157286399 dm-9
 253    10     240943 dm-10
 253    11     996030 dm-11
 253    12     240943 dm-12
 253    13     996030 dm-13

$ cat /boot/grub/device.map 
(hd0)   /dev/sda
(hd1)   /dev/sdb

$ l /boot/grub/
total 1035
drwx------ 3 root root   1024 Aug  6 16:59 ../
drwxr-xr-x 2 root root   1024 Aug  6 02:43 ./
-rw-r--r-- 1 root root    197 Aug  6 02:43 default
-rw------- 1 root root    275 Aug  6 02:40 menu.lst
-rw------- 1 root root    416 Aug  6 02:40 menu.lst.old
-rw-r--r-- 1 root root     30 Aug  4 17:28 device.map
-rw-r--r-- 1 root root 139784 Aug  4 17:19 stage2
lrwxrwxrwx 1 root root      8 Aug  4 17:18 grub.conf -> menu.lst
-rw-r--r-- 1 root root   7424 May 31 21:45 e2fs_stage1_5
-rw-r--r-- 1 root root   7296 May 31 21:45 fat_stage1_5
-rw-r--r-- 1 root root   6592 May 31 21:45 ffs_stage1_5
-rw-r--r-- 1 root root   6560 May 31 21:45 iso9660_stage1_5
-rw-r--r-- 1 root root   8032 May 31 21:45 jfs_stage1_5
-rw-r--r-- 1 root root   6720 May 31 21:45 minix_stage1_5
-rw-r--r-- 1 root root  43432 May 31 21:45 reiser4_stage1_5
-rw-r--r-- 1 root root   9056 May 31 21:45 reiserfs_stage1_5
-rw-r--r-- 1 root root    512 May 31 21:45 stage1
-rw-r--r-- 1 root root 139784 May 31 21:45 stage2_eltorito
-rw-r--r-- 1 root root   6912 May 31 21:45 ufs2_stage1_5
-rw-r--r-- 1 root root   6112 May 31 21:45 vstafs_stage1_5
-rw-r--r-- 1 root root   8744 May 31 21:45 xfs_stage1_5
-rw-r--r-- 1 root root 213672 May 31 21:45 nbgrub
-rw-r--r-- 1 root root 214696 May 31 21:45 pxegrub
-rw-r--r-- 1 root root 214248 May 31 21:45 stage2.netboot

$ grub-install hd0
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
Unknown partition table signature
...

    GNU GRUB  version 0.97  (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,0)
 Filesystem type is ext2fs, partition type 0xfd
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/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  15 sectors are embedded.
succeeded
 Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage /boot/grub/menu.lst"... failed
 Error 15: File not found
grub> quit

(hd0,0)/boot/grub/stage действительно нет, и где его искать непонятно.

PS А вот lilo ставится на тот диск без звука.

-- 
WBR et al.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [sisyphus] IA: остерегайтесь нового grub!
  2006-08-06 16:56 [sisyphus] IA: остерегайтесь нового grub! Konstantin A. Lepikhov
@ 2006-08-06 18:03 ` Sergey Vlasov
  2006-08-06 18:05   ` Konstantin A. Lepikhov
  2006-08-06 20:59 ` thresh
  1 sibling, 1 reply; 6+ messages in thread
From: Sergey Vlasov @ 2006-08-06 18:03 UTC (permalink / raw)
  To: ALT Linux Sisyphus List

[-- Attachment #1: Type: text/plain, Size: 1707 bytes --]

On Sun, Aug 06, 2006 at 08:56:20PM +0400, Konstantin A. Lepikhov wrote:
> Пламенный привет мантейнеру syslinux и grub! Мало того, что он угробил
> первый пакет, теперь разломал и второй - grub-install перестал осмысленно
> работать и что-то ставить:

У меня работает нормально, но со старым /boot/grub/install.sh:

grub --device-map=/boot/grub/device.map --batch <<EOF
install (hd0,0)/grub/stage1 d (hd0,0) (hd0,0)/grub/stage2 p (hd0,0)/grub/menu.lst
quit
EOF

[...]
> grub> root (hd0,0)
>  Filesystem type is ext2fs, partition type 0xfd
> 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/e2fs_stage1_5" exists... yes
>  Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  15 sectors are embedded.
> succeeded
>  Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage /boot/grub/menu.lst"... failed
>  Error 15: File not found

Хм, действительно не работает, но только при setup ... (hd0); если
ставить на (hd0,0) - встаёт нормально.

Вызов install руками (не через setup) тоже работает.

> grub> quit
> 
> (hd0,0)/boot/grub/stage действительно нет, и где его искать непонятно.

Должно быть (hd0,0)/boot/grub/stage2; где портится эта строка -
непонятно.  Проблема исчезает после добавления в spec строк:

%set_gcc_version 2.96
%remove_optflags -mtune=.*

Т.е., налицо кривой код, несовместимый с gcc4 (впрочем, весьма
вероятно, что и с 2.96 он работает только из-за большого везения).

Также на грустные мысли наводит:

$ grep 'warning: ' grub-0.97-alt2.log | wc -l
2020

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [sisyphus] IA: остерегайтесь нового grub!
  2006-08-06 18:03 ` Sergey Vlasov
@ 2006-08-06 18:05   ` Konstantin A. Lepikhov
  2006-08-06 18:29     ` Konstantin A. Lepikhov
  0 siblings, 1 reply; 6+ messages in thread
From: Konstantin A. Lepikhov @ 2006-08-06 18:05 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

Hi Sergey!

Sunday 06, at 10:03:18 PM you wrote:

<skip>
> Т.е., налицо кривой код, несовместимый с gcc4 (впрочем, весьма
> вероятно, что и с 2.96 он работает только из-за большого везения).
> 
> Также на грустные мысли наводит:
> 
> $ grep 'warning: ' grub-0.97-alt2.log | wc -l
> 2020
а что в федоре? :) Неужели grub RIP.

-- 
WBR et al.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [sisyphus] IA: остерегайтесь нового grub!
  2006-08-06 18:05   ` Konstantin A. Lepikhov
@ 2006-08-06 18:29     ` Konstantin A. Lepikhov
  0 siblings, 0 replies; 6+ messages in thread
From: Konstantin A. Lepikhov @ 2006-08-06 18:29 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

Hi!

Sunday 06, at 10:05:06 PM you wrote:

> Hi Sergey!
> 
> Sunday 06, at 10:03:18 PM you wrote:
> 
> <skip>
> > Т.е., налицо кривой код, несовместимый с gcc4 (впрочем, весьма
> > вероятно, что и с 2.96 он работает только из-за большого везения).
> > 
> > Также на грустные мысли наводит:
> > 
> > $ grep 'warning: ' grub-0.97-alt2.log | wc -l
> > 2020
> а что в федоре? :) Неужели grub RIP.
смотрю патчи в mandriva - там есть и grub-0.97-gcc4_warnings.patch и
grub-0.95-special-device-names.patch побольше и вообще они его gcc3.3
собирают. + Наш .spec наводит на грустные мысли - похоже это простая и
неправильная переделка версии из suse.

-- 
WBR et al.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [sisyphus] IA: остерегайтесь нового grub!
  2006-08-06 16:56 [sisyphus] IA: остерегайтесь нового grub! Konstantin A. Lepikhov
  2006-08-06 18:03 ` Sergey Vlasov
@ 2006-08-06 20:59 ` thresh
  2006-08-07  8:42   ` Sergey Vlasov
  1 sibling, 1 reply; 6+ messages in thread
From: thresh @ 2006-08-06 20:59 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

On Sun, Aug 06, 2006 at 08:56:20PM +0400, Konstantin A. Lepikhov wrote:
> Hi!
> 
> Пламенный привет мантейнеру syslinux и grub! Мало того, что он угробил
> первый пакет, теперь разломал и второй - grub-install перестал осмысленно
> работать и что-то ставить:
> 
>     GNU GRUB  version 0.97  (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,0)
>  Filesystem type is ext2fs, partition type 0xfd
> 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/e2fs_stage1_5" exists... yes
>  Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  15 sectors are embedded.
> succeeded
>  Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage /boot/grub/menu.lst"... failed
>  Error 15: File not found
> grub> quit
> 
> (hd0,0)/boot/grub/stage действительно нет, и где его искать непонятно.

строка, очевидно, неверная.

нарвался на то же самое, надо было /boot убить везде в строке install.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [sisyphus] IA: остерегайтесь нового grub!
  2006-08-06 20:59 ` thresh
@ 2006-08-07  8:42   ` Sergey Vlasov
  0 siblings, 0 replies; 6+ messages in thread
From: Sergey Vlasov @ 2006-08-07  8:42 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 1536 bytes --]

On Mon, Aug 07, 2006 at 12:59:13AM +0400, thresh wrote:
> On Sun, Aug 06, 2006 at 08:56:20PM +0400, Konstantin A. Lepikhov wrote:
> > Hi!
> > 
> > Пламенный привет мантейнеру syslinux и grub! Мало того, что он угробил
> > первый пакет, теперь разломал и второй - grub-install перестал осмысленно
> > работать и что-то ставить:
> > 
> >     GNU GRUB  version 0.97  (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,0)
> >  Filesystem type is ext2fs, partition type 0xfd
> > 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/e2fs_stage1_5" exists... yes
> >  Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  15 sectors are embedded.
> > succeeded
> >  Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage /boot/grub/menu.lst"... failed
> >  Error 15: File not found
> > grub> quit
> > 
> > (hd0,0)/boot/grub/stage действительно нет, и где его искать непонятно.
> 
> строка, очевидно, неверная.
> 
> нарвался на то же самое, надо было /boot убить везде в строке install.

/boot - это совсем не то же самое, и должно было работать за счёт
симлинка /boot/boot, входящего в пакет grub.

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-07  8:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-06 16:56 [sisyphus] IA: остерегайтесь нового grub! Konstantin A. Lepikhov
2006-08-06 18:03 ` Sergey Vlasov
2006-08-06 18:05   ` Konstantin A. Lepikhov
2006-08-06 18:29     ` Konstantin A. Lepikhov
2006-08-06 20:59 ` thresh
2006-08-07  8:42   ` Sergey Vlasov

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