drserver:dddatafromlivealpinelinux
差别
后一修订版 | 前一修订版 |
drserver:dddatafromlivealpinelinux [2018/09/25 10:46] – 创建 liujia | drserver:dddatafromlivealpinelinux [2018/10/10 20:16] (当前版本) – liujia |
---|
| |
4.wget -O- http://dl-cdn.alpinelinux.org/alpine/v3.8/releases/x86_64/alpine-minirootfs-3.8.0-x86_64.tar.gz|gzip -dc|tar xv # 下载 aplinelinux 文件包,解压 | 4.wget -O- http://dl-cdn.alpinelinux.org/alpine/v3.8/releases/x86_64/alpine-minirootfs-3.8.0-x86_64.tar.gz|gzip -dc|tar xv # 下载 aplinelinux 文件包,解压 |
| |
{{https://alioss.anqun.org/typecho/2018/09/25/063452277056688.png}} | {{https://alioss.anqun.org/typecho/2018/09/25/063452277056688.png}} |
| |
5.cp /etc/resolv.conf etc # 复制nameserver配置文件,这样可以以域名访问外网 | 5.cp /etc/resolv.conf etc # 复制nameserver配置文件,这样可以以域名访问外网 |
| |
6.mount --bind /dev /liveos/dev # 挂载 /liveos/dev,dd硬盘数据复制对象 | 6.<code>mount --bind /dev /liveos/dev</code> # 挂载 /liveos/dev,dd硬盘数据复制对象 |
| |
7.mount --bind /dev/pts /liveos/dev/pts # 挂载 /liveos/dev/pts | 7.<code>mount --bind /dev/pts /liveos/dev/pts</code> # 挂载 /liveos/dev/pts |
| |
8.mount --bind /proc /liveos/proc # 挂载 /liveos/proc | 8.<code>mount --bind /proc /liveos/proc</code> # 挂载 /liveos/proc |
| |
9.chroot . /bin/ash # chroot 到当前目录 | 9.chroot . /bin/ash # chroot 到当前目录 |
| |
11.reboot -f # 重启 | 11.reboot -f # 重启 |
| |
{{https://alioss.anqun.org/typecho/2018/09/25/063452182110148.png}} | {{https://alioss.anqun.org/typecho/2018/09/25/063452182110148.png}} |
| |
12.数据复制有效 | 12.数据复制有效 |
| |
{{https://alioss.anqun.org/typecho/2018/09/25/063463043126620.png}} | {{https://alioss.anqun.org/typecho/2018/09/25/063463043126620.png}} |
| |
drserver/dddatafromlivealpinelinux.txt · 最后更改: 2018/10/10 20:16 由 liujia