|
发表于 2005-2-19 00:00:18
|
显示全部楼层
不可能不行的。
我是在空白分区上这样如下步骤安装的:
假定空白分区是/dev/hda1,为根目录,用pqmagic(dos/windows)创建或用fdisk(linux)创建,文件系统为ext2。
用LiveCD启动,在空白分区上复制文件,将grub安装到mbr。过程如下:
首先mount分区到一个目录,进入这个目录。然后
#mkdir boot
#cd boot
#mkdir grub
#cd grub
#cp -a /filepath/allfiles . 把所有需要文件拷到/boot/grub目录下
#grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.95 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
grub> quit
然后复制内核到boot目录下,修改grub.conf文件,就可以了。
启动后内核可以加载到init执行前。
然后建立其他目录,复制其他必须的文件,进行设置,就是一个系统了。 |
|