[sisyphus] IA: остерегайтесь нового grub!

Konstantin A. Lepikhov lakostis на anti-leasure.ru
Вс Авг 6 20:56:20 MSD 2006


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.altlinux.org/pipermail/sisyphus/attachments/20060806/0ed4aae7/attachment.bin 


Подробная информация о списке рассылки Sisyphus