* [Comm] GRUB to floppy
@ 2004-07-16 8:19 php-coder
2004-07-16 10:49 ` Sergey Vlasov
0 siblings, 1 reply; 2+ messages in thread
From: php-coder @ 2004-07-16 8:19 UTC (permalink / raw)
To: community
0000100101011110100100101::16.07.2004::0110001001001000100111100100010
Привет, Linuxоиды!
Прочитал эту статью (http://www.opennet.ru/base/sys/grub_info.txt.html)
и решил попробовать GRUB. Все делал как написано в статье, а именно:
Пытаюсь записать grub на дискетку:
$ sudo grub
grub> root (fd0)
Filesystem type is fat, using whole disk
grub> setup (fd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 15: File not found
$ ls -l /boot/grub G stage
-rw-r--r-- 1 root root 8.2K Фев 7 2003 e2fs_stage1_5
-rw-r--r-- 1 root root 8.0K Фев 7 2003 fat_stage1_5
-rw-r--r-- 1 root root 7.3K Фев 7 2003 ffs_stage1_5
-rw-r--r-- 1 root root 9.0K Фев 7 2003 jfs_stage1_5
-rw-r--r-- 1 root root 7.5K Фев 7 2003 minix_stage1_5
-rw-r--r-- 1 root root 10K Фев 7 2003 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 Фев 7 2003 stage1
-rw-r--r-- 1 root root 103K Фев 7 2003 stage2
-rw-r--r-- 1 root root 7.0K Фев 7 2003 vstafs_stage1_5
-rw-r--r-- 1 root root 9.8K Фев 7 2003 xfs_stage1_5
Почему же он не находит stage1 ???
Ладно, тогда пытаюсь по другому сделать это:
$ dd if=/boot/grub/stage1 of=/dev/floppy bs=512 count=1
$ dd if=/boot/grub/stage2 of=/dev/floppy bs=512 seek=1
Гружусь с дискеты и вижу: GRUB Loading stage2Read Error
Через некоторое время вычитал в еще одной статье новый способ:
$ grub-install /dev/fd0
The file /boot/grub/stage1 not read correctly.
Почему у меня не получается? Где ошибка?! Дискета вроде нормальная я ее
форматировал при помощи kfloppy и на ней не было бэд-блоков. Может
сам stage1 "плохой"??
Заранее спасибо!
--
С уважением, php-coder (mailto:php-coder[at]ngs[dot]ru)
Registered Linux User #327594
ALT Linux Master 2.2
010010010010010001010101100::Linux RuleZz!::10001001000100010001000111
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Comm] GRUB to floppy
2004-07-16 8:19 [Comm] GRUB to floppy php-coder
@ 2004-07-16 10:49 ` Sergey Vlasov
0 siblings, 0 replies; 2+ messages in thread
From: Sergey Vlasov @ 2004-07-16 10:49 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]
On Fri, Jul 16, 2004 at 03:19:01PM +0700, php-coder wrote:
> Прочитал эту статью (http://www.opennet.ru/base/sys/grub_info.txt.html)
> и решил попробовать GRUB. Все делал как написано в статье, а именно:
>
> Пытаюсь записать grub на дискетку:
> $ sudo grub
> grub> root (fd0)
> Filesystem type is fat, using whole disk
>
> grub> setup (fd0)
> Checking if "/boot/grub/stage1" exists... no
> Checking if "/grub/stage1" exists... no
>
> Error 15: File not found
Файлы stage1 и stage2 нужно было сначала скопировать на дискету. Для
GRUB корнем является раздел, заданный командой root.
> Ладно, тогда пытаюсь по другому сделать это:
> $ dd if=/boot/grub/stage1 of=/dev/floppy bs=512 count=1
> $ dd if=/boot/grub/stage2 of=/dev/floppy bs=512 seek=1
>
> Гружусь с дискеты и вижу: GRUB Loading stage2Read Error
Файл /boot/grub/stage2 при установке GRUB изменяется (в первый сектор
прописывается таблица секторов, где расположена остальная часть
stage2; stage1 использует эту информацию для загрузки). Для такого
способа установки GRUB на дискету нужно достать оригинальный файл
stage2 из пакета.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-16 10:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-16 8:19 [Comm] GRUB to floppy php-coder
2004-07-16 10:49 ` Sergey Vlasov
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git