linux ghost视频教程,Linux攻略 用Ghost备份Linux系统的方法

工具:.exe image file ( 最小而完整的系统所作出来的image文件 ).

Ghost 主要几个步骤:

1、 boot from cd

2、 restore redhat image into hard disk

3、 define major hard disk space as reiserfs partition

4、 update /etc/lilo.conf and execute lilo –v update the /etc/fstab

5、 cp all / files into /reiser ( the mount partition reiserfs partition )

6、 reboot ,,ok!!!

每步的详细操作:

一、 boot from cd

二、 restore with ghost

select destination drive and make sure the new and old sizes are the same.

(we want to use the free space for reiserfs later )

ghost过程应该很快,然后reboot,别忘了取出光盘。

按提示config系统查找到的硬件。

三、 define new partition with fdisk

# fdisk /dev/had

command ( m for help) : p 查看分区情况。

Command ( m for help ) : n define a new partition .

1 , 2 分区都已经用了,我们选 3 ,

first cylinder and last cylinder 都按 default , 也就是用了其它的剩余空间。

确认他的ID 是83 ,,83对应的是liunx,ID 等于的5对应为extend , 82对应为linux swap 。

在按p查看一下分区表的情况。这时应该添加了/dev/hda3 了。

之后 # sync;sync;sync;reboot

然后 # mkreiserfs / dev / hda3

系统会提示attention : all data will be lost on ‘ / dev/ hda3 ‘ !(y /n ) 选 y 继续

initializing journa 10% ..20 % ………100%

syncing …….

四、update /etc/lilo.conf and execute lilo –v update the /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 / reiserfs default 1 1 “

保存退出。

五、cp all / files into /reiser ( the mount partition reiserfs partition )

# mkdir /reiser

# mount –t reiserfs /devhda3 /reiser

# cp -a -x / /reiser

这步需要点时间,可以出去抽两根烟在回来。

Cp 完成后

# sync ; sync ; sync ; reboot

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值