LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 915|回复: 1

关于修改GRUB?

[复制链接]
发表于 2003-8-14 22:49:36 | 显示全部楼层 |阅读模式
原来系统是装在计算机第二个IDE口上(hdc),mount了另外一块hda到/u01下面。
现在想把这两块硬盘的位置对调一下,hda->hdc,原来的hdc->hda,请问我该如何修改GRUB的配置?

当前硬盘配置和GRUB配置如下所示:

linux:/home/zhangleyi # fdisk -l

Disk /dev/hdc: 10.2 GB, 10262568960 bytes
16 heads, 63 sectors/track, 19885 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1        25     12568+  83  Linux
/dev/hdc2            26      2522   1258488   82  Linux swap
/dev/hdc3          2523     19885   8750952   83  Linux

Disk /dev/hda: 20.5 GB, 20576747520 bytes
255 heads, 63 sectors/track, 2501 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      2501  20089251   83  Linux

linux:/home/zhangleyi # more /etc/grub.conf
root (hd0,0)
install  --stage2=/boot/grub/stage2 /grub/stage1 d (hd0) /grub/stage2 0x8000 (hd0,0)/grub/menu.lst
quit


linux:/home/zhangleyi # more /boot/grub/menu.lst
# Modified by YaST2. Last modification on Sat Aug  2 09:56:00 2003


gfxmenu (hd1,0)/message
color white/blue black/light-gray
default 0
timeout 8

title linux
    kernel (hd1,0)/vmlinuz root=/dev/hdc3   vga=791 splash=silent
    initrd (hd1,0)/initrd

title floppy
    root (fd0)
    chainloader +1

title failsafe
    kernel (hd1,0)/vmlinuz.shipped root=/dev/hdc3 ide=nodma apm=off acpi=off vga=normal nosmp maxcpus=0 disableapic 3
    initrd (hd1,0)/initrd.shipped

linux:/home/zhangleyi #
 楼主| 发表于 2003-8-15 15:30:21 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表