Sub*_*bho 5 disk-image cloning
我最近将安装的 13.04 升级到 13.10。我的朋友看到了这个并且想安装Ubuntu。
有什么方法可以从我当前的安装生成安装 CD,而无需下载 ISO,以便我们可以在我朋友的计算机上进行安装?
dd1)您可以像这样克隆/镜像驱动器。
dd if=/dev/sda of=/dev/sdb
Run Code Online (Sandbox Code Playgroud)
2)另一种选择Clonezilla
用法示例:
dd命令相同)3)基于dpkg和rsync全新安装的其他可能性,如下所示。由于硬件/用户信息/密码,可能更可取,正如其他答案中所示。
创建当前包的文本文件,如下所示(此处):
sudo -i # starts a root session
# ... run whatever commands you need to mount the safe storage device ...
dpkg --get-selections > /<path to safe storage device>/dpkg-selections
# records a list of installed packages into the file named after the > sign.
# ... now run commands you need to safely unmount the storage device ...
<ctrl-D> # end the root session.
Run Code Online (Sandbox Code Playgroud)
将由此创建的文件移动到朋友的计算机上并运行以下命令:
sudo -i # starts a root session.
# ... commands to mount the storage device ...
dpkg --set-selections < /<path to safe storage device>/dpkg-selections
# sets the list of packages to install from the list kept previously
apt-get dselect-upgrade # actually installs the packages.
# ... now unmount the device ...
<ctrl-D> # end the root session
Run Code Online (Sandbox Code Playgroud)