Chinaunix首页 | 论坛 | 博客
  • 博客访问: 570212
  • 博文数量: 826
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 5015
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 18:09
文章分类

全部博文(826)

文章存档

2011年(1)

2008年(825)

我的朋友

分类: LINUX

2008-08-22 18:13:33

 
工具:ghost.exeimagefile(最小而完整的系统所作出来的image文件).
Ghostlinux主要几个步骤:
1、bootfromcd
2、restoreredhatimageintoharddisk
3、definemajorharddiskspaceasreiserfspartition
4、update/etc/lilo.confandexecutelilo–vupdatethe/etc/fstab
5、cpall/filesinto/reiser(themountpartitionreiserfspartition)
6、reboot,,ok!!!

每步的详细操作:
一、bootfromcd
二、restorewithghost
selectdestinationdriveandmakesurethenewandoldsizesarethesame.
(wewanttousethefreespaceforreiserfslater)
ghost过程应该很快,然后reboot,别忘了取出光盘。
按提示config系统查找到的硬件。
三、definenewpartitionwithfdisk
#fdisk/dev/had
command(mforhelp):p查看分区情况。
Command(mforhelp):ndefineanewpartition.
1,2分区都已经用了,我们选3,
firstcylinderandlastcylinder都按default,也就是用了其它的剩余空间。
确认他的ID是83,,83对应的是liunx,ID等于的5对应为extend,82对应为linuxswap。
在按p查看一下分区表的情况。这时应该添加了/dev/hda3了。
之后#sync;sync;sync;reboot

然后#mkreiserfs/dev/hda3
系统会提示attention:alldatawillbeloston‘/dev/hda3‘!(y/n)选y继续
initializingjourna10%..20%………100%
syncing…….

四、update/etc/lilo.confandexecutelilo–vupdatethe/etc/fstab

修改lilo.conf
#vi/etc/lilo.conf
change“root=/dev/hda1“to“root=/dev/hda3“
#lilo-v-v

修改fstab
#vi/etc/fstab
把第一行注释掉,然后加入
“/dev/hda3/reiserfsdefault11“
保存退出。


五、cpall/filesinto/reiser(themountpartitionreiserfspartition)

#mkdir/reiser
#mount–treiserfs/devhda3/reiser
#cp-a-x//reiser
这步需要点时间,可以出去抽两根烟在回来。

Cp完成后
#sync;sync;sync;reboot

这样系统的ghost就算大功告成了。

阅读(199) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~