[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:26387] GRUB
- From: Taketoshi Sano <kgh12351@xxxxxxxxxxx>
- Subject: [debian-users:26387] GRUB
- Date: Sat, 13 Jan 2001 23:31:54 +0900
- X-dispatcher: imput version 991025(IM133)
- X-fingerprint: DA 00 13 8C 49 BB 60 BE A4 54 3D AF 2E CE 28 DD
- X-ml-info: If you have a question, send e-mail with the body "help" (without quotes) to the address debian-users-ctl@debian.or.jp; help=<mailto:debian-users-ctl@debian.or.jp?body=help>
- X-ml-name: debian-users
- X-mlserver: fml [fml 3.0pl#17]; post only (only members can post)
- Message-id: <y5a1yu7y1im.fsf@xxxxxxxxxxxxxxxxxxxx>
- X-mail-count: 26387
- User-agent: Semi-gnus/6.10.12 SEMI/1.12.1 ([JR] Nonoichi) FLIM/1.12.7 (Yþzaki) Emacs/20.7 (i386-debian-linux-gnu) MULE/4.0 (HANANOEN)
ä½é‡Žï¼ 浜æ¾ã§ã™ã€‚
# ã“ã“æ•°æ—¥ã€ãƒ¡ãƒ¼ãƒ«ãŒæµã‚Œã¦ã“ãªã„よã†ãªã®ã§ãƒã‚¿æŒ¯ã‚Šã€‚
昨日ã®æ™©ã€åˆã‚㦠grub を使ã£ã¦ã¿ã¾ã—ãŸã€‚
最åˆã€èµ·å‹•ãƒ•ãƒãƒƒãƒ”ーを作る時㫠info ã«æ›¸ã„ã¦ã‚ã‚‹ stage1 ã§ã¯ãªã
(ã“ã£ã¡ã®ã»ã†ãŒã„ã„ã‹ãªã¨æ€ã£ã¦) stage1_lba ã‚’ stage2 ã¨çµ„ã¿åˆã‚ã›ã¦
使ã£ã¦ã—ã¾ã„ã€"LBA error" ã¨ã‹è¡¨ç¤ºã•ã‚Œã¦æ¢ã¾ã£ã¦ã—ã¾ã£ãŸã®ã§ã™ãŒã€
説明ã©ãŠã‚Šã« stage1 㨠stage2 を使ã£ãŸã‚‰ã¡ã‚ƒã‚“㨠grub shell ãŒ
èµ·å‹•ã—ã¦ã€12MB ã® HDD ã®ã©ã“ã‹ã‚‰ã§ã‚‚ Linux ã‚’ boot ã§ãã¾ã—ãŸã€‚
ãã®ã‚ã¨ã€MBR ã§ã¯ãªãパーティションã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã€ã¨ã„ã†ã®ã‚’
ã‚„ã£ã¦ã¿ã‚ˆã†ã¨ã—ãŸã®ã§ã™ãŒã€stage1_lba 㯠512byte ãªã®ã§ã„ã„ã¨
ã—ã¦ã‚‚ e2fs_stage1_5 㯠7kB ãらã„ã‚ã‚‹ã®ã§ã€ãƒã‚§ãƒƒã‚¯ã«ä½¿ã£ã¦ã„ãŸ
hda10 ã®å…ˆé ã« stage1_lba ã«ç¶šã‘㦠dd ã§æ›¸ã込んã らã€hda10 ã®
ext2fs を壊ã—ã¦ã—ã¾ã„ã¾ã—㟠^^;;
ã¾ã‚ã€ã‚‚ã¨ã‚‚㨠hda10 ã¯ãƒ¡ã‚¤ãƒ³ã®ã‚·ã‚¹ãƒ†ãƒ ã˜ã‚ƒãªãã€8GB 越㈠boot ã®
ãƒã‚§ãƒƒã‚¯ã®ãŸã‚ã« hda1 ã® rescue システムをコピーã—ã¦ã‚ã£ãŸã‚‚ã®
ãªã®ã§ã€ãã‚Œã»ã©å¤§ããªå•é¡Œã§ã¯ç„¡ã„ã®ã§ã™ãŒã€ãã†ã¯ã„ã£ã¦ã‚‚自分ã®
ミスã§å£Šã—ã¦ã—ã¾ã£ãŸã“ã¨ã«ã¯é•ã„ãªã„ã®ã§ã¡ã‚‡ã£ã¨æ‚”ã—ã„ã§ã™ã。
ã§ã€æ°—ã‚’å–ã‚Šç›´ã—㦠hda10 ã®ã‚µã‚¤ã‚ºã‚’ã¡ã‚‡ã£ã¨æ¸›ã‚‰ã—㦠hda11 ã®
ã‚¹ãƒ¯ãƒƒãƒ—é ˜åŸŸã‚’ã™ã“ã—å‰ã«ç§»å‹•ã•ã›ã€grub を入れるãŸã‚ã®é ˜åŸŸã¨ã—ã¦
hda12 ã‚’æ–°è¨ã—ã¦ã€ãã“ã«å…ˆé ã‹ã‚‰ stage1_lba 㨠e2fs_stage1_5 ã‚’
入れã€grub ã®ãƒ•ãƒãƒƒãƒ”ーã‹ã‚‰èµ·å‹•ã—ã¦
install (hd0,11)+1 (hd0,11) (hd0,11)1+20 (hd0,9)/boot/grub/stage2 p
を実行ã—ã¦ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ãŸã¨ã“ã‚ã€ã¨ã‚Šã‚ãˆãš MBR ã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ãŸ
extipl ã‹ã‚‰ hda12 ã®é ˜åŸŸã‚’é¸æŠžã—㦠grub ã® shell ã‚’ãƒãƒ¼ãƒ‰ã—ã€
ãã“ã‹ã‚‰ hda1, hda3, hda5, hda10 ã®å„ Linux ã‚’èµ·å‹•ã§ãã¾ã—ãŸã€‚
試ã—ã« hda3 ã® 2.0.38 ã‚‚ boot ã—ã¦ã¿ã¾ã—ãŸãŒã€å•é¡Œç„¡ã•ãã†ã§ã™ã€‚
ã‚ã€ã‚‚ã¡ã‚ã‚“ install ã®å‰ã« hda10 ã® /boot/grub ã« stage2 ã‚’
ç½®ã„ã¦ã‚ã‚Šã¾ã™ã€‚ã‚ã¨ã€æœ€åˆèµ·å‹•ã—ã¦ã¿ãŸå¾Œã§ã€hda10 ã® /boot/grub ã«
サンプル㮠menu.lst を編集ã—ã¦å…¥ã‚Œã¦ã¿ãŸã¨ã“ã‚ã€èµ·å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã®
表示ã¨ã€ãã“ã‹ã‚‰é¸æŠžã—ã¦ã®èµ·å‹•ã‚‚å¯èƒ½ã§ã—ãŸã€‚
ã‚‚ã—ã‹ã—ã¦ã€ã‚ã‚Œã§ã™ã‹ã。stage1_5 を使ã‚ãšã«
install (hd0,9)/boot/grub/stage1_lba (hd0,9) (hd0,9)/boot/grub/stage2 p
ã¨ã‹ã‚„ã‚Œã°æœ€åˆã‹ã‚‰ hda10 を壊ã™ã“ã¨ã‚‚ç„¡ãインストールã§ããŸã®ã‹ãªã€‚
ãŸã¶ã‚“ stage1_5 を使ã‚ãªã„å ´åˆã¯ stage2 ã®å ´æ‰€ (セクターä½ç½®) ãŒ
移動ã—ãŸå ´åˆã« grub ã®å†ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ãŒå¿…è¦ã«ãªã‚‹ (stage1_5 を使ãˆã°
ãŠãらãä¸è¦) ã¨æ€ã†ã®ã§ã™ãŒã€stage2 を入れæ›ãˆã‚‹æ™‚ã¯ãŸã¶ã‚“ stage1 ã‚‚
stage1_5 も全部入れæ›ãˆã‚‹ã ã‚ã†ã‹ã‚‰ã€é–“é•ãˆã¦ stage2 を消ã—ã¦ã—ã¾ã£ãŸ
時以外㯠stage2 ã ã‘移動ã™ã‚‹ã£ã¦ã“ã¨ã‚‚ç„¡ã„ã ã‚ã†ã—ã€ãã‚Œã§ã‚‚ã„ã„ã®ã‹ã‚‚
ã—ã‚Œãªã„。
誰㋠grub ã‚’ MBR ã§ã¯ãªãパーティションã®å…ˆé ã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«
ã—ã¦ã‚‹ã£ã¦æ–¹ã„らã£ã—ゃã„ã¾ã™ ?
「将æ¥ã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ©ã§ã¯ grub を使ãŠã†ã€ã¨ã„ã†è©±ãŒ debian-boot ã§
ã‚ã£ãŸã‚ã‚Šã«ã€ã¾ã 「やるãž!ã€ã£ã¦äººãŒã„ãªã„ã¿ãŸã„ã ã—ã€ãªã‚“ã‹
Joey Hess ã®ã‚„ã£ã¦ã‚‹ debian-installer ã§ã‚‚ lilo ã§ã‚„ã£ã¦ã¿ã‚‹ã¨
ã„ã†äººãŒã„ã¦ã€ã“ã®ã¾ã¾ã„ã㨠LILO ã«ãªã£ã¦ã—ã¾ã„ãã†ãªã‚“ã§
liloconfig ã¿ãŸã„ãªæ„Ÿã˜ã§ grubconfig ã¨ã‹ grub-installer ã¨ã‹
ãã†ã„ã†ãƒ„ールを作ã£ã¦ã¿ãŸã»ã†ãŒã„ã„ã‹ãªã€ã¨ã€‚
# ã‚“ã§ã€ã§ãれ㰠extipl ã¨çµ„ã¿åˆã‚ã›ã¦ MBR ã«ã¯ extiplã€
# Linux パーティションã«ã¯ grub ã¨ã„ã†æ§‹æˆã‚’æ案ã—ãŸã„ãªã€ã¨ã‹ã€‚
ã§ã¯ã€‚
--
# (ã‚ãŸã—ã®ãŠã†ã¡ã¯æµœæ¾å¸‚ã€ã€Œå¤œã®ãŠè“åã€ã§æœ‰åã•ã€‚)
<kgh12351@xxxxxxxxxxx> : Taketoshi Sano (ä½é‡Žã€€æ¦ä¿Š)