注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

itoedr的it学苑

记录从IT文盲学到专家的历程

 
 
 

日志

 
 

【转载】定制自己的Ubuntu光盘(remastersys工具使用)  

2014-08-26 13:50:48|  分类: linux-backup |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
1.安装remastersys
# sudo vim /etc/apt/sources.list
增加 以下URL到sources中
deb http://www.remastersys.com/ubuntu oneiric main
# sudo apt-get update;apt-get install remastersys;

2.查看是否安装成功
# sudo remastersys

3.生成系统安装必需文件(此过程有点长,请不要断电)
# sudo remastersys dist cdfs
Creating the cd filesystem only
Distribution Mode Selected
Enabling remastersys-firstboot
 Adding system startup for /etc/init.d/remastersys-firstboot ...
   /etc/rc0.d/K20remastersys-firstboot -> ../init.d/remastersys-firstboot
   /etc/rc1.d/K20remastersys-firstboot -> ../init.d/remastersys-firstboot
   /etc/rc6.d/K20remastersys-firstboot -> ../init.d/remastersys-firstboot
   /etc/rc2.d/S20remastersys-firstboot -> ../init.d/remastersys-firstboot
   /etc/rc3.d/S20remastersys-firstboot -> ../init.d/remastersys-firstboot
   /etc/rc4.d/S20remastersys-firstboot -> ../init.d/remastersys-firstboot
   /etc/rc5.d/S20remastersys-firstboot -> ../init.d/remastersys-firstboot
Checking filesystem type of the Working Folder
/home/remastersys/remastersys is on a ext4 filesystem
Making sure popularity contest is not installed
Installing the Ubiquity GTK frontend
Checking if the /home/remastersys/remastersys folder has been created
Creating /home/remastersys/remastersys folder tree
Creating /home/remastersys/remastersys/ISOTMP folder tree
Copying /var and /etc to temp area and excluding extra files  ... this will take a while so be patient
Cleaning up files not needed for the live in /home/remastersys/remastersys/dummysys
Cleaning up passwd, group, shadow and gshadow files for the live system
Making sure adduser and autologin functions of casper are set properly
Copying memtest86+ for the live system
Creating isolinux setup for the live system
Checking the ARCH of the system and setting the README.diskdefines file
Creating filesystem.manifest and filesystem.manifest-desktop
Creating the casper.conf file.
Checking and setting user-setup-apply for the live system
Setting up casper and ubiquity options for dist mode
Creating a new initial ramdisk for the live system
Copying your kernel and initrd for the livecd
Creating filesystem.squashfs   ... this will take a while so be patient
Adding stage 1 files/folders that the livecd requires
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on /home/remastersys/remastersys/ISOTMP/casper/filesystem.squashfs, block size 1048576.
[===========================================/] 13997/13997 100%

Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 1048576
        compressed data, compressed metadata, compressed fragments, compressed xattrs
        duplicates are not removed
Filesystem size 219506.36 Kbytes (214.36 Mbytes)
        33.13% of uncompressed filesystem size (662581.57 Kbytes)
Inode table size 165830 bytes (161.94 Kbytes)
        31.19% of uncompressed inode table size (531669 bytes)
Directory table size 147463 bytes (144.01 Kbytes)
        32.08% of uncompressed directory table size (459707 bytes)
No duplicate files removed
Number of inodes 15382
Number of files 13542
Number of fragments 109
Number of symbolic links  1113
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 727
Number of ids (unique uids + gids) 23
Number of uids 11
        root (0)
        lp (7)
        avahi-autoipd (105)
        man (6)
        colord (113)
        libuuid (100)
        syslog (101)
        lightdm (112)
        woozon (1000)
        speech-dispatcher (110)
        statd (117)
Number of gids 18
        root (0)
        dip (30)
        lp (7)
        fuse (105)
        ssl-cert (107)
        whoopsie (116)
        avahi-autoipd (113)
        colord (121)
        libuuid (101)
        lightdm (118)
        mlocate (110)
        nogroup (65534)
        sambashare (124)
        staff (50)
        syslog (104)
        mail (8)
        crontab (103)
        adm (4)
Adding stage 2 files/folders that the livecd requires
Found a valid exportable SQUASHFS superblock on /home/remastersys/remastersys/ISOTMP/casper/filesystem.squashfs.
        Compression used gzip
        Inodes are compressed
        Data is compressed
        Fragments are compressed
        Xattrs are compressed
        Fragments are present in the filesystem
        Always_use_fragments option is specified
        Duplicates are not removed
        Xattrs are stored
        Filesystem size 219506.36 Kbytes (214.36 Mbytes)
        Block size 1048576
        Number of fragments 109
        Number of inodes 15382
        Number of ids 23

Parallel mksquashfs: Using 8 processors
Scanning existing filesystem...
Read existing filesystem, 15381 inodes scanned
Appending to existing 4.0 filesystem on /home/remastersys/remastersys/ISOTMP/casper/filesystem.squashfs, block size 1048576
All -b, -noI, -noD, -noF, -noX, no-duplicates, no-fragments, -always-use-fragments,
-exportable and -comp options ignored

If appending is not wanted, please re-run with -noappend specified!

No recovery data option specified.
Skipping saving recovery file.

[========================================/] 146478/146478 100%

Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 1048576
        compressed data, compressed metadata, compressed fragments, compressed xattrs
        duplicates are not removed
Filesystem size 2592087.62 Kbytes (2531.34 Mbytes)
        38.87% of uncompressed filesystem size (6669364.11 Kbytes)
Inode table size 2346331 bytes (2291.34 Kbytes)
        26.16% of uncompressed inode table size (8969523 bytes)
Directory table size 2317238 bytes (2262.93 Kbytes)
        41.30% of uncompressed directory table size (5610840 bytes)
Xattr table size 42 bytes (0.04 Kbytes)
        52.50% of uncompressed xattr table size (80 bytes)
No duplicate files removed
Number of inodes 235231
Number of files 168675
Number of fragments 3372
Number of symbolic links  42914
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 23642
Number of ids (unique uids + gids) 29
Number of uids 11
        root (0)
        lp (7)
        avahi-autoipd (105)
        man (6)
        colord (113)
        libuuid (100)
        syslog (101)
        lightdm (112)
        woozon (1000)
        speech-dispatcher (110)
        statd (117)
Number of gids 26
        root (0)
        dip (30)
        lp (7)
        fuse (105)
        ssl-cert (107)
        whoopsie (116)
        avahi-autoipd (113)
        colord (121)
        libuuid (101)
        utempter (112)
        lightdm (118)
        woozon (1000)
        mlocate (110)
        nogroup (65534)
        sambashare (124)
        staff (50)
        syslog (104)
        mail (8)
        crontab (103)
        adm (4)
        shadow (42)
        tty (5)
        lpadmin (108)
        ssh (111)
        messagebus (106)
        utmp (43)
Updating the remastersys.log
Removing the ubiquity frontend as it has been included and is not needed on the normal system
Calculating the installed filesystem size for the installer
Removing remastersys-firstboot from system startup
 Removing any system startup links for /etc/init.d/remastersys-firstboot ...
   /etc/rc0.d/K20remastersys-firstboot
   /etc/rc1.d/K20remastersys-firstboot
   /etc/rc2.d/S20remastersys-firstboot
   /etc/rc3.d/S20remastersys-firstboot
   /etc/rc4.d/S20remastersys-firstboot
   /etc/rc5.d/S20remastersys-firstboot
   /etc/rc6.d/K20remastersys-firstboot

4.生成你的ISO - /home/remastersys/remastersys/my_ubuntu.iso
# sudo remastersys dist iso my_ubuntu.iso

Creating the iso file only
Distribution Mode Selected
Making disk compatible with Ubuntu Startup Disk Creator.
Creating md5sum.txt for the livecd/dvd
Creating my_ubuntu.iso in /home/remastersys/remastersys
Creating my_ubuntu.iso.md5 in /home/remastersys/remastersys
/home/remastersys/remastersys/my_ubuntu.iso which is 2.6G in size is ready to be burned or tested in a virtual machine.

5.清除安装用的临时文件
sudo remastersys clean 


6.其他命令
 1)sudo remastersys backup             //备份当前系统并制成一个live cd/dvd 
 2)sudo remastersys backup myback.iso  系统备份到myback.iso. 
 4)sudo remastersys dist               产生一个可发布(包含个人文档)的 livecd/dvd 
 5)sudo remastersys dist cdfs          产生一个纯净的可发布的 livecd/dvd 
 6)sudo remastersys dist iso mubuntu.iso 产生一个可发布(包含个人文档)的 livecd/dvd(mubuntu.iso)
  评论这张
 
阅读(330)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017