工具:ghost.exe image file ( 最小而完整的系统所作出来的image文件 ).
Ghost linux主要几个步骤:
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就算大功告成了。 linux下的ghost
由于linux在用ghost克隆后因为硬盘位的关系,会无法直接启动,开机显示grub丢失,此时需要手工进行修复。
步骤如下:
下载grub for dos 文件包,刻录至光盘。在克隆后的系统用光盘启动,然后插入此grub光盘。运行:
Grub
在出现的界面中选择linux进入单用户模式:
按 e
输入 空格 single
按 b
进入linux系统后运行:
Grub
Grub>root (hd0,5)
//这里注意你的linux系统盘所接IDE接口及分区关系
Grub>setup (hd0)
然后正常启动即可。
ghost linux系统详细步骤
转载请注明出处:服务器评测 » ghost linux系统详细步骤
相关推荐
- 129 美元/月双 E5-2620 v2 + 128GB RAM + 2x1TB SSD + 2TB 备份 + 1Gbps @ 100TB 限时优惠!
- DARKVPS – 便宜的裸机 RDP – 4vCPU-128vCPU – 防挂起 – 可续订 – 43💥 美元起
- PLiKhost:便宜且可靠的印度尼西亚(IIX)专用服务器 – 雅加达
- 优惠从 62 美元/月起 |32GB DDR3 内存 |10 TB 带宽 |印度位置
- *▌E3 服务器 30 美元/月起 ▌ Ryzen 9900X 99 美元/月 ▌10Gbps 不限流量 229 美元/月 ▌
- 本周优惠:加利福尼亚州洛杉矶的 AMD Ryzen 7600 仅需 69 美元/月 |NetDynamics 有限责任公司
- nonameHosts -10% 销售 : Xeon 24 vCPU : 8-256GB RAM : SSD: NO-LIMIT BW : LT/NL 位置
- *便宜的专用服务器 ★ 起价@ $28/M ★ 12TB磁盘促销 ★ IPMI ★ 双RAM & XFER!