sadm.magnus.pp.ru Заметки крошки-админа

19 June 2011

The file /boot/grub/stage1 not read correctly.

Filed under: Компьютеры и интернет — Tags: , — Magnus @ 14:11

Нужно было установить загрузчик на диск, но это не получилось сделать ни grub-install:

# grub-install /dev/sda
The file /boot/grub/stage1 not read correctly. 

ни grub:

# grub
grub> root (hd0,0)
 Filesystem type is ext3, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 15: File not found

grub> find /boot/grub/stage1

Error 15: File not found

При этом файл /boot/grub/stage1 имелся.

В интренет-поисках было обнаружено следующее:

"e2fsprogs ? 1.40.5 creates ext3 filesystems with 256 byte large inodes by default (in contrast to 128 byte used before), to accommodate for further ext4 related changes... Using any of these new features requires updating the bootsector of your system. Bootsectors written by "grub or earlier versions of "grub-gfxboot" are not able to boot or even access partitions using any of these new features!"

И действительно, оказалось раздел был отформатирован с 256-битными inode.

# tune2fs -l /dev/sdb1 | grep -i 'inode size'
Inode size:               256

Решение было одно - переформатировать раздел с 128-битными inode.

# mkfs.ext3 -I 128 /dev/sdb1

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress