TShopping

 找回密碼
 註冊
搜索
查看: 3451|回復: 3
打印 上一主題 下一主題

[CentOS] Linux攻略 用Ghost備份Linux系統的方法

[複製鏈接]
跳轉到指定樓層
1#
發表於 2008-11-2 20:53:18 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
 
Push to Facebook
工具: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就算大功告成了。

 

臉書網友討論
2#
發表於 2013-11-7 01:14:54 | 只看該作者
回個帖子支持一下!

版主招募中

3#
發表於 2013-11-7 01:14:54 | 只看該作者
支持~~頂頂~~~  


*滑块验证:
您需要登錄後才可以回帖 登錄 | 註冊 |

本版積分規則



Archiver|手機版|小黑屋|免責聲明|TShopping

GMT+8, 2024-4-27 04:46 , Processed in 0.043258 second(s), 18 queries .

本論壇言論純屬發表者個人意見,與 TShopping綜合論壇 立場無關 如有意見侵犯了您的權益 請寫信聯絡我們。

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表