Всем привет! Работаю из под 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: 0xb79a942b
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 320 2570368+ 83 Linux
/dev/sdc2 321 391 570307+ 82 Linux swap / Solaris
Command (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, 294912
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
This 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.
Перевод этой ошибки мне ничего не прояснил.