cutetfriend 发表于 2003-5-27 12:12:53

Linux核心支持ntfs后, 如何编辑grub? 详情请看

各位大虾,

按照以下流程1~9操作后, 如何编辑grub?本人以grub启动, 不是lilo:

在有些情况下,系统需要访问本地NTFS分区上的数据,也可能需要访问网络上NTFS
文件格式的数据。而使用mount -t挂载文件系统时,系统报告不支持NTFS错误。
  这是由于缺省情况下,Linux核心不支持NTFS文件系统。所以,客户需要重新链接核
心。
1、以root身份登录系统,运行startx,进入X Windows。
2、打开一个终端窗口,#cd /usr/src/linux,进入源文件目录。
3、#make xconfig,出现一个“Linux Kernel Configuration”窗口。
4、单击“Filesystems”按钮,其中会发现两行与NTFS文件系统相关,“NTFS filesys
tem support(read only)”和“NTFS read-write support(DANGEROUS)”,当前都设为
“n”。
5、根据需要,将相应设置由“n”改为“y”,一般为安全起见,只设置只读选项即可。

6、单击“Main Menu”按钮,退回主界面,单击“Save and Exit”按钮,退回到终端窗
口。
7、运行下列命令,重新生成核心文件:
#make dep
#make clean
#make zImage(注:如果生成核心较大,请用bzImage)
#make modules
#make modules_install

8、#cp /usr/src/linux-[版本号]/arch/i386/boot/bzImage /boot
9、#mkinitrd /boot/initrd-[版本号]ntfs.img [版本号]
10、#vi /etc/lilo.conf,编辑文件,加入下面内容
image=/boot/bzImage
label=ntfs
initrd=/boot/initrd-[版本号]ntfs.img
read-only
root=/dev/sda1
11、#lilo -v,使lilo文件生效。
12、重启机器,在“boot:”提示符下键入“ntfs”,即可进入支持NTFS文件格式的linux系统。

请详细描述步骤10中grub的编辑, 非常感谢!!!!!!!!

Dragonfly 发表于 2003-5-27 22:12:41

1) #make zImage(注:如果生成核心较大,请用bzImage) always use bzImage here

2) for grub, u only follow the normal step for recompiling kernel, nothing special, many post here answer u question.
页: [1]
查看完整版本: Linux核心支持ntfs后, 如何编辑grub? 详情请看