|
我不打算扩根分区了,但还有一个问题,新的空间是在我linux系统之前的硬盘位置上。该怎么修改fstab和grub,还需要注意些什么呢?
我的分区情况:
Device Boot Start End Blocks Id System ###XP
/dev/sda1 * 1 1958 15727603+ 7 HPFS/NTFS
/dev/sda2 1959 19456 140552685 f W95 Ext'd (LBA) c盘
/dev/sda5 1959 3916 15727603+ 7 HPFS/NTFS d
/dev/sda6 3917 6527 20972826 7 HPFS/NTFS e
/dev/sda7 6528 11749 41945683+ 7 HPFS/NTFS f
/dev/sda8 11750 16318 36700461 7 HPFS/NTFS g
在这个位置有刚从sda8中分出来的10G未用空间,还没格式化成ext3,如果格式化之后,以前的sda9应该变成sda10,该怎么改fstab和grub呢,还有grub。
/dev/sda9 17624 19195 12627058+ 83 Linux /
/dev/sda10 19196 19456 2096451 82 Linux swap / Solaris
我现在的fstab:
LABEL=/ / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda10 swap swap defaults 0 0
/dev/sda5 /mnt/windows_d ntfs umask=000,nls=utf8
/dev/sda8 /mnt/windows_g ntfs umask=000,nls=utf8
/dev/sda6 /mnt/windows_e ntfs umask=000,nls=utf8
/dev/sda7 /mnt/windows_f ntfs umask=000,nls=utf8
以前根目录那并没有标出-sda9,那现在根分区那用不用改成
LABEL=/-sda10 / ext3 defaults 1 1
swap是不是要改成sda11
LABEL=SWAP-sda11 swap swap defaults 0 0
对于grub 的menu如下
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,8)###这改成hd0,9
# kernel /boot/vmlinuz-version ro root=/dev/sda9 ###改成sda10
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,8)/boot/grub/splash.xpm.gz###(hd0,8)改成(hd0,9)
hiddenmenu
title Fedora (2.6.23.1-10.fc7)
root (hd0,8)###(hd0,8)改成(hd0,9)
kernel /boot/vmlinuz-2.6.23.1-10.fc7 ro root=LABEL=/ acpi=off noapic rhgb quiet
initrd /boot/initrd-2.6.23.1-10.fc7.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
这样改了之后是不是可以格式化那个分区了,然后重启就可以了吗??谢谢!! |
|