|
发表于 2006-4-23 13:47:06
|
显示全部楼层
[quote:2a35a44866="39duban"]谢谢楼上两位
我的grub
# grub.conf generated by MagicInstaller.
# Note that you do not have to rerun grub after making changes to this file.
default=1
timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
title windows XP
rootnoverify (hd0,0)
chainloader +1
title MagicLinux
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Graphics Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 5 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Console Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 3 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Single Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 1 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
fstab
/dev/hda8 / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdc /mnt/cdrom iso9660,udf iocharset=cp936,noauto,user,kudzu,ro,exec 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hda1 /mnt/hda1 vfat ,umask=0,exec 0 0
/dev/hda5 /mnt/hda5 vfat ,umask=0,exec 0 0
/dev/hda6 /mnt/hda6 vfat ,umask=0,exec 0 0
/dev/hda7 /mnt/hda7 vfat ,umask=0,exec 0 0
要是修改的话是不是把grub里的magiclinux hda都+1,和fstab的/dev/hda8 +1就行?[/quote]
那样的话改成
grub如下:7改成8
# grub.conf generated by MagicInstaller.
# Note that you do not have to rerun grub after making changes to this file.
default=1
timeout=10
splashimage=(hd0,8)/boot/grub/splash.xpm.gz
title windows XP
rootnoverify (hd0,0)
chainloader +1
title MagicLinux
root (hd0,8)
kernel /boot/vmlinuz-2.6.15.3 ro root=/dev/hda9 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
fstab修改如下,
/dev/ hda9 / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdc /mnt/cdrom iso9660,udf iocharset=cp936,noauto,user,kudzu,ro,exec 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hda1 /mnt/hda1 vfat ,umask=0,exec 0 0
/dev/hda5 /mnt/hda5 vfat ,umask=0,exec 0 0
/dev/hda6 /mnt/hda6 vfat ,umask=0,exec 0 0
/dev/hda7 /mnt/hda7 vfat ,umask=0,exec 0 0
#加上swap文件自动挂载
swap文件的路径 none swap defaults 0 0
例如你的swap文件在/myswap(swap文件的创建请看其它贴子)
就是
/myswap none swap defaults 0 0 |
|