Всем привет! Работаю из под OpenSuSe 11.1, из архива распаковываю OpenSuSe 10.3.Делаю так:
Код
Подготовил новый диск (SCSI 0:3):Disk /dev/sdc: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb79a942bDevice Boot Start End Blocks Id System
/dev/sdc1 * 1 320 2570368+ 83 Linux
/dev/sdc2 321 391 570307+ 82 Linux swap / SolarisCommand (m for help): w
The partition table has been altered!Calling ioctl() to re-read partition table.
Syncing disks.# mkfs.ext3 /dev/sdc1
mke2fs 1.41.1 (01-Sep-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
160960 inodes, 642592 blocks
32129 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=658505728
20 block groups
32768 blocks per group, 32768 fragments per group
8048 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.Смонтировал диск:
# mount /dev/sdc1 /tmp/maket_system/Разлил из архива систему:
# duplicity --no-encryption --force -v 7 file:///house/maket_archive/ /tmp/maket_system/
Ставлю загрузчик:
# grub-install --recheck --root-directory=/tmp/maket_system /dev/sdc
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 0x83
grub> install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst
grub> quit# umount /tmp/maket_system/
# init 0
После этого подключил винчестер к другой виртуальной машине (SCSI 0:0) и попытался загрузиться. На экране появилось вот что:
Код
GRUB Loading Stage1.5.GRUB Loading, please wait...
Error 2
И все... Что я сделал не так?2 : Bad file or directory type
This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.
Перевод этой ошибки мне ничего не прояснил.
>[оверквотинг удален]
>
>[ 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 0x83
>grub> install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,0)/boot/grub/menu.lst
>grub> quitон настроился на hd0,0 , а не на hd3,0
>[оверквотинг удален]
>GRUB Loading, please wait...
>Error 2
>
>
>И все... Что я сделал не так?
>
>2 : Bad file or directory type
>This error is returned if a file requested is not a regular
>file, but something like a symbolic link, directory, or FIFO.
>Перевод этой ошибки мне ничего не прояснил.
Так правильно, так и надо. Винт куда он установился я потом подключаю как hd0,0, если быть точным то как SCSI 0:0.
>Так правильно, так и надо. Винт куда он установился я потом подключаю
>как hd0,0, если быть точным то как SCSI 0:0.немного не так выразился.
смотрите вывод, был перенастроен hd0,0 , то есть тот который и сейчас загрузочный, а не тот который хотели сделать загрузочным.
Тогда это странно, учитывая, что я использовал вот эту опцию:
--root-directory=/tmp/maket_system /dev/sdcТут вроде как четко указано, что ставить загрузчик на 3-ий винт.
А как в таком случае установить загрузчик?