失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > 备份Ubuntu12.04 并制作成iso安装文件

备份Ubuntu12.04 并制作成iso安装文件

时间:2024-07-14 04:27:24

相关推荐

备份Ubuntu12.04 并制作成iso安装文件

用Remastersys定制自己的Ubuntu安装光盘

这两天因为要做Ubuntu的平台移植,一直在给自己电脑上的Ubuntu系统装各种软件,其间几次将内核破坏,导致不得不重装系统,经过几次痛苦的等待,痛定思痛,决定试一试能不能将自己的Ubuntu系统定制好,制作成安装光盘。

经过在CSDN的一番寻找,终于找到了我要的方法,哈哈。在这里非常感谢软件的原作者,也是很佩服他,Remastersys是由他一个人写成的。

本方法主要是依靠名为Remastersys的工具,当然,据我猜测,写出这个软件的大神也是根据Ubuntu官网上那一堆我看不懂的英文讲解做的,赶脚自己水平可以的同学直接去看官网介绍(/community/InstallCDCustomization?action=show&redirect=InstallCDCustomizationHowTo)。

#下载密钥

sudo su

wget -O - /ubuntu/remastersys.gpg.key | apt-key add -

代码:#添加源

sudo echo 'deb /ubuntu precise main' >> /etc/apt/sources.list

代码:#安装命令行、前端

sudo apt-get update --fix-missing

sudo apt-get install remastersys

sudo apt-get install remastersys-gtk

下面是步骤详解:

0. /ubuntu 下载remastersys.gpg.key, 然后sudo apt-key add remastersys.gpg.key

1.运行终端,将deb/ubuntuprecise main加入到软件源中(/etc/apt/source.list)

2.apt-get update一下,然后install remastersys;

3.sudo remastersys;

4.sudo remasstersy dist cdfs,然后要耐心等待,这里千万不要乱操作;

5.sudo remastersys dist iso filename.iso,这里filename自己输入替代。

大功告成!在/home/remastersys中就可以找到你要制作的光盘镜像了~

另附:remastersys命令详解:

remastersys的语法: sudo remastersys backup|clean|dist [cdfs|iso] [filename.iso]

1)将你的系统备份制成一个live cd/dvd sudo remastersys backup

2) 将你的系统备份制成一个live cd/dvd其名叫 custom.iso 的ISO文件.

sudo remastersys backup custom.iso

3)清除由remastersys产生的临时文件 sudo remastersys clean

4) 产生一个可发布又包括你的个人资料的 livecd/dvd

sudo remastersys dist

5) 产生一个只有档案系统的可发布的 livecd/dvd

sudo remastersys dist cdfs

6) 为了产生一个可发布又包括你的个人资料的 livecd/dvd 其名叫 custom.iso的ISO文件:

sudo remastersys dist iso custom.iso

1;添加源;

The Remastersys repository needs to be added to your /etc/apt/sources.list

sudo vi /etc/apt/sources.list或

sudo gedit / etc / apt / sources.list (Ubuntu)

Paste the following into the sources.list:

# Remastersys

deb http://www.remastersys.klikit-/repository remastersys/

Save and exit the file.

2,升级

Update the source list using the following command

sudo apt-get update

Install remastersys using the following command

3;安装 remastersys

sudo apt-get install remastersys

This will complete the installation

4;使用软件

Using Remastersys

In order to learn how you can use remastersys, run

sudo remastersys

5;选择生成ISO文件的地址

remastersys Syntax

sudo remastersys backup|clean|dist [cdfs|iso] [filename.iso]

6;开始制作UBUNTU D的ISO文件

remastersys Examples

1) to make a livecd/dvd backup of your system

sudo remastersys backup

2) to make a livecd/dvd backup and call the iso custom.iso

sudo remastersys backup custom.iso

3) to clean up temporary files of remastersys

sudo remastersys clean

4) to make a distributable livecd/dvd of your system

sudo remastersys dist

5) to make a distributable livecd/dvd filesystem only

sudo remastersys dist cdfs

6) to make a distributable iso named custom.iso but only if the cdfs is already present

sudo remastersys dist iso custom.iso

cdfs and iso options should only be used if you wish to modify something on the cd before the iso is created. An example of this would be to modify the isolinux portion of the livecd/dvd

Creating An ISO Image

To create an iso image of your installation, simply run

sudo remastersys dist

This will create an iso image called customdist.iso in the /home/remastersys directory. The dist option makes that your personal folder (e.g. /home/ruchi) will not be included in the iso image. You might have to insert your Ubuntu installation CD during the process.

This is how the end of the process looks:

[...]

92.16% done, estimate finish Wed DEC 28 15:31:25

93.39% done, estimate finish Wed DEC 28 15:31:25

94.62% done, estimate finish Wed DEC 28 15:31:24

95.85% done, estimate finish Wed DEC 28 15:31:24

97.08% done, estimate finish Wed DEC 28 15:31:25

98.31% done, estimate finish Wed DEC 28 15:31:25

99.54% done, estimate finish Wed DEC 28 15:31:25

Total translation table size: 2048

Total rockridge attributes bytes: 3950

Total directory bytes: 9094

Path table size(bytes): 54

Max brk space used 0

406890 extents written (794 MB)

/home/remastersys/customdist.iso is ready to be burned or tested in a virtual machine.

Check the size and if it is larger than 700MB you will need to burn it to a dvd

796M /home/remastersys/customdist.iso

Clean Up

After you’ve burnt the iso image onto a CD/DVD, you can run

sudo remastersys clean

to remove all temporary file created during the iso generation as well as the /home/remastersys directory.

然后在你保存的目录下找到ISO 文件,验证MD5后可以刻盘,以后就不用那么辛苦升级,安装软件和设置系统了。

如果觉得《备份Ubuntu12.04 并制作成iso安装文件》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。