URN Logo
UNIX Resources » Linux » China Linux Forum » Linux 安装与入门 » 16 » 将linux硬盘ghost到另一颗去
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
将linux硬盘ghost到另一颗去
Author: dadzz    Posted: 2006-02-21 09:50    Length: 3,233 byte(s)
[Original] [Print] [Top]
不明白?欢迎到 linux论坛 (http://bbs.linuxmine.com) 参加讨论!

  要将linux完完全全的备份到另一颗抽取式硬盘,如果linux挂了,可以立刻升上来备援!!
  由于对于linux 是ext3的格式,andy想到了几种方式..
  1. 使用tar
  2. 使用cp
  3. 使用dd
  4. 使用cpio
  5. 使用ghost

  试了半天,发现利用ghost的方式是最方便的,但之前听前辈说,ghost似乎没有支持ext3的格式,再苦寻半天及重复测试之后发现, 使用ghost 7.5以上版本即可。
  方式如下:
  1. 使用ghost Disk to Disk将原本的/dev/hda ghost到 /dev/hdb
  2. 将原来的/dev/hda取下(不是bios disable就好哦..),并将hdb设成master(也就是hda)
  3. 使用Linux install开机片开机,选择rescue
  4. 如果是ext2格式..以下面方式..

  EXT2
  When the file system is EXT2, use the following steps to recover the
partition. These steps have resolved this problem in at least one instance:
  1. Start the computer from the linux installation CD.
  2. Type:

linux recover

3. Respond to the prompts for language and location.
4. Type:
lilo -r /mnt/sysimage -C /etc/lilo.conf -v
exit
5. Remove the CD and restart the computer.
  The computer starts into the linux partition.
  如果是ext3依下面方式..
  Symantec Ghost 7.5, EXT3
  When the file system is EXT3, use the following steps to recover the partition.
  NOTE: Only Symantec Ghost 7.5 supports the EXT3 file system. If you use a
Ghost version other than Symantec Ghost 7.5 with EXT3, the following information
is provided as a convenience only, and Symantec does not provide technical support
for using Ghost in this manner.
  1. Start the computer from the linux installation CD.
  2. Use the option linux Rescue.
  3. Type the following at the Rescue Command Prompt:
  e2fsck /dev/hda1
  In this command line, hda represents the first IDE hard drive in the computer
and the "1" represents the first partition to repair.
  4. If you see the message "Superblock has a bad ext3 journal (inode8).
Clear <y>?" press Y. You will see the message: "* * * ext3 journal has
been deleted - file system is now ext2 only * * * . "
  5. Type:
    tune2fs -j /dev/hda1
    You will see the message "Creating journal inode: done . This file
system will be checked every . . . days".
  6. Repeat steps 3 for each EXT3 partition on the computer.
  7. Type: exit
  8. Remove the CD and restart the computer.
    The computer starts into the linux partition.
  5. 一切ok后, mount /dev/hda 到/mnt
  6. chroot /mnt
  7. 重建lilo
  /etc/lilo -v -v -v
  如果是使用grub的请执行/sbi/grub-install即可。
  一切ok。



不明白?欢迎到 linux论坛 (http://bbs.linuxmine.com) 参加讨论!
[Original] [Print] [Top]
« Previous thread
关于虚拟机下rh9的转换运行模式
Linux 安装与入门
16
Next thread »
Linux可以完全控制每个用户的私人文件保证其它用户打不开吗?比如FC4下
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
备案序号: 京ICP备05006143    webmaster: webmaster@unixresources.net
This page created on 2008-07-17 02:17:38, cost 0.046869993209839 ms.