把当前使用的ubuntu804制作成livecd/usb,提供工具下载(更新)
-
- 帖子: 279
- 注册时间: 2007-03-31 12:56
是不是一定要在linux的文件系统下使用啊,就是说这个文件只有在ext2,3,reisefs,xfs等文件系统上使用啊。因为我当时分区时,只分了两个区,一个/,一个swap。不想因为这个再去分一个去吧。yaska 写了:请在linux分区制作。很多文件有权限的。jerro 写了:这个软件很好,我一直都在烦恼,就是重装之后无法保存先前的设置的问题。但还是有个问题需要请教一下。
为什么不行呢??在解压的时候就提示说有什么关联部队,然后制作的时候干脆说没有权限,可我是用sudo的阿。
还有我能不能将这个软件放在fat32的分区,然后再制作?因为fat32的分区我需要mount,那么他制作的时候会不会把这部分都加进去呢?
Another pic for the untar processing.
制作的时候,会略过/media 和/mnt。 因为一般分区都是挂载这里的。
还有就是如果我把它解压到linux下,再在linux下备份的话,会出现什么情况?
-
- 帖子: 279
- 注册时间: 2007-03-31 12:56
lz再帮我看看,我制作出来的好像不行
我制作出来的iso文件只有9M,肯定是不对了。下面是我的制作过程,帮我分析一下。先谢谢了!
xxxxxxx:/mnt/prayaya-live$ sudo ./main.sh
/lib/modules/2.6.24-17-generic/ubuntu/fs/aufs/aufs.ko
**********制作initrd.img**********
rm: missing operand
Try `rm --help' for more information.
:: Clean up. [DONE]
:: Copy base files. [DONE]
:: Create necessery directory and nodes. [DONE]
:: Add modules. [DONE]
:: Generate image(cpio).27430 blocks
[DONE]
:: Clean up. [DONE]
**********准备工作**********
**********清理系统**********
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libldap2
The following packages will be REMOVED:
libldap2
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 389kB disk space will be freed.
(Reading database ... 100353 files and directories currently installed.)
Removing libldap2 ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree
Reading state information... Done
**********建临时目录,复制HOME和/var目录**********
rm: cannot remove `tmp_dir': No such file or directory
cp: cannot stat `/home/jerro/.gvfs': Permission denied
安装prayaya-upstart
安装其他
安装colinux支持
**********开始制作iso,按任意键继续,按ctrl+c取消!**********
./main.sh: line 103: mksquashfs: command not found
I: -input-charset not specified, using utf-8 (detected in locale settings)
Size of boot image is 4 sectors -> No emulation
Total translation table size: 2048
Total rockridge attributes bytes: 3976
Total directory bytes: 8192
Path table size(bytes): 56
Max brk space used 0
4600 extents written (8 MB)
All Operations Done
Your new ISO is located in: /mnt/prayaya-live/Prayaya_LiveSystem-8.04-20080522.iso
开始时间 --> Thu May 22 22:57:06 CST 2008
结束时间 --> Thu May 22 22:57:06 CST 2008
**********清理工作**********
**********大功告成,推荐使用kvm来测试livecd**********
xxxxxxx:/mnt/prayaya-live$ sudo ./main.sh
/lib/modules/2.6.24-17-generic/ubuntu/fs/aufs/aufs.ko
**********制作initrd.img**********
rm: missing operand
Try `rm --help' for more information.
:: Clean up. [DONE]
:: Copy base files. [DONE]
:: Create necessery directory and nodes. [DONE]
:: Add modules. [DONE]
:: Generate image(cpio).27430 blocks
[DONE]
:: Clean up. [DONE]
**********准备工作**********
**********清理系统**********
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libldap2
The following packages will be REMOVED:
libldap2
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 389kB disk space will be freed.
(Reading database ... 100353 files and directories currently installed.)
Removing libldap2 ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Reading package lists... Done
Building dependency tree
Reading state information... Done
**********建临时目录,复制HOME和/var目录**********
rm: cannot remove `tmp_dir': No such file or directory
cp: cannot stat `/home/jerro/.gvfs': Permission denied
安装prayaya-upstart
安装其他
安装colinux支持
**********开始制作iso,按任意键继续,按ctrl+c取消!**********
./main.sh: line 103: mksquashfs: command not found
I: -input-charset not specified, using utf-8 (detected in locale settings)
Size of boot image is 4 sectors -> No emulation
Total translation table size: 2048
Total rockridge attributes bytes: 3976
Total directory bytes: 8192
Path table size(bytes): 56
Max brk space used 0
4600 extents written (8 MB)
All Operations Done
Your new ISO is located in: /mnt/prayaya-live/Prayaya_LiveSystem-8.04-20080522.iso
开始时间 --> Thu May 22 22:57:06 CST 2008
结束时间 --> Thu May 22 22:57:06 CST 2008
**********清理工作**********
**********大功告成,推荐使用kvm来测试livecd**********
- yaska
- 帖子: 1169
- 注册时间: 2007-10-28 21:35
-
- 帖子: 279
- 注册时间: 2007-03-31 12:56
- yaska
- 帖子: 1169
- 注册时间: 2007-10-28 21:35
- yaska
- 帖子: 1169
- 注册时间: 2007-10-28 21:35
只要了解系统的文件结构,linux不用动不动就重装的。要改掉windows"一重启,二重装的陋习“啊, 哈哈jerro 写了:期待你的新版本,很不错,我打算重新装系统再来一次。
可以修改iso里面的文件系统,然后再重新打包, 避免重复劳动,浪费时间,按下列操作:
1.解压文件系统映像
代码: 全选
$mkdir test extract-cd
$sudo mount xxxxx.iso test -o loop
$sudo cp test/* extract-cd -rp
$sudo unsquashfs extract-cd/casper/prayayay.bs
2. 进入系统
代码: 全选
sudo cp /etc/resolv.conf squashfs-root/etc/
$ sudo chroot squashfs-root
这时候就可以像进入另外一个系统一样操作了。更新,安装,删除软件等等
代码: 全选
$sudo apt-get update
$sudo apt-get install ***
$sudo apt-get --purge remove ****
3 修改完之后,重新制作成iso。
代码: 全选
$sudo ./build-iso.sh -c extract -s squashfs_root -mrt
代码: 全选
$sudo mksquashfs squashfs_root extract-cd/casper/prayayay.bs -noappend
$sudo ./build-iso.sh -c extract -mt

- momova
- 帖子: 3381
- 注册时间: 2007-07-11 21:43
- 系统: archlinux
- 来自: 东江边
- yaska
- 帖子: 1169
- 注册时间: 2007-10-28 21:35
这个工具没有必要用gui。momova 写了:有没有在窗子系统下制作UBUNTU-USB系统的工具呢?
把livecd装到u盘,prayaya有一个工具,类似fedora的iso-to-disk。
http://www.inlsd.org/forum/viewtopic.php?t=313
注册才能看得到。