远程安装ubuntu时,发现机器无法识别网卡驱动,需要替换iso里的网卡驱动文件。但是发现即使什么都不修改,生成的iso文件也是无法启动的。
我制作的iso命令如下:
首先,解压iso文件:
xorriso -osirrox on -indev ./ubuntu-16.04.3-server-amd64.iso -extract / ./test > /dev/null
然后,不改变测试目录的内容。使用以下命令创建一个 iso 文件。
mkisofs -allow-limited-size -r -iso-level 3 -joliet-long -D -r -V "ubuntu-16.04.3-server-amd64.iso" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ./test.iso ./test
输出如下:
I: -input-charset not specified, using utf-8 (detected in locale settings)
Size of boot image is 4 sectors -> No emulation
2.31% done, estimate finish Thu Jan 31 11:43:07 2019
3.46% done, estimate finish Thu Jan 31 11:43:07 2019
4.62% done, estimate finish Thu Jan 31 11:43:07 2019
5.77% done, estimate finish Thu Jan 31 11:43:07 2019
6.93% done, estimate finish Thu Jan 31 11:43:07 2019
8.08% done, estimate finish Thu Jan 31 11:43:07 2019
9.23% done, estimate finish Thu Jan 31 11:43:07 2019
10.39% done, estimate finish Thu Jan 31 11:43:07 2019
11.54% done, estimate finish Thu Jan 31 11:43:07 2019
12.70% done, estimate finish Thu Jan 31 11:43:07 2019
13.85% done, estimate finish Thu Jan 31 11:43:07 2019
15.00% done, estimate finish Thu Jan 31 11:43:07 2019
16.16% done, estimate finish Thu Jan 31 11:43:07 2019
17.31% done, estimate finish Thu Jan 31 11:43:07 2019
18.47% done, estimate finish Thu Jan 31 11:43:07 2019
19.62% done, estimate finish Thu Jan 31 11:43:07 2019
20.77% done, estimate finish Thu Jan 31 11:43:07 2019
21.93% done, estimate finish Thu Jan 31 11:43:07 2019
23.08% done, estimate finish Thu Jan 31 11:43:07 2019
24.24% done, estimate finish Thu Jan 31 11:43:07 2019
25.39% done, estimate finish Thu Jan 31 11:43:07 2019
26.54% done, estimate finish Thu Jan 31 11:43:07 2019
27.70% done, estimate finish Thu Jan 31 11:43:07 2019
28.85% done, estimate finish Thu Jan 31 11:43:07 2019
30.01% done, estimate finish Thu Jan 31 11:43:07 2019
31.16% done, estimate finish Thu Jan 31 11:43:07 2019
32.31% done, estimate finish Thu Jan 31 11:43:07 2019
33.47% done, estimate finish Thu Jan 31 11:43:07 2019
34.62% done, estimate finish Thu Jan 31 11:43:07 2019
35.78% done, estimate finish Thu Jan 31 11:43:07 2019
36.93% done, estimate finish Thu Jan 31 11:43:07 2019
38.08% done, estimate finish Thu Jan 31 11:43:07 2019
39.24% done, estimate finish Thu Jan 31 11:43:07 2019
40.39% done, estimate finish Thu Jan 31 11:43:07 2019
41.54% done, estimate finish Thu Jan 31 11:43:07 2019
42.70% done, estimate finish Thu Jan 31 11:43:07 2019
43.85% done, estimate finish Thu Jan 31 11:43:07 2019
45.01% done, estimate finish Thu Jan 31 11:43:07 2019
46.16% done, estimate finish Thu Jan 31 11:43:07 2019
47.32% done, estimate finish Thu Jan 31 11:43:07 2019
48.47% done, estimate finish Thu Jan 31 11:43:07 2019
49.62% done, estimate finish Thu Jan 31 11:43:07 2019
50.78% done, estimate finish Thu Jan 31 11:43:07 2019
51.93% done, estimate finish Thu Jan 31 11:43:07 2019
53.09% done, estimate finish Thu Jan 31 11:43:07 2019
54.24% done, estimate finish Thu Jan 31 11:43:07 2019
55.39% done, estimate finish Thu Jan 31 11:43:07 2019
56.55% done, estimate finish Thu Jan 31 11:43:07 2019
57.70% done, estimate finish Thu Jan 31 11:43:07 2019
58.85% done, estimate finish Thu Jan 31 11:43:07 2019
60.01% done, estimate finish Thu Jan 31 11:43:07 2019
61.16% done, estimate finish Thu Jan 31 11:43:07 2019
62.32% done, estimate finish Thu Jan 31 11:43:07 2019
63.47% done, estimate finish Thu Jan 31 11:43:07 2019
64.62% done, estimate finish Thu Jan 31 11:43:07 2019
65.78% done, estimate finish Thu Jan 31 11:43:07 2019
66.93% done, estimate finish Thu Jan 31 11:43:07 2019
68.08% done, estimate finish Thu Jan 31 11:43:07 2019
69.24% done, estimate finish Thu Jan 31 11:43:07 2019
70.39% done, estimate finish Thu Jan 31 11:43:07 2019
71.55% done, estimate finish Thu Jan 31 11:43:07 2019
72.70% done, estimate finish Thu Jan 31 11:43:07 2019
73.85% done, estimate finish Thu Jan 31 11:43:07 2019
75.01% done, estimate finish Thu Jan 31 11:43:07 2019
76.16% done, estimate finish Thu Jan 31 11:43:07 2019
77.32% done, estimate finish Thu Jan 31 11:43:07 2019
78.47% done, estimate finish Thu Jan 31 11:43:07 2019
79.63% done, estimate finish Thu Jan 31 11:43:07 2019
80.78% done, estimate finish Thu Jan 31 11:43:07 2019
81.93% done, estimate finish Thu Jan 31 11:43:07 2019
83.09% done, estimate finish Thu Jan 31 11:43:07 2019
84.24% done, estimate finish Thu Jan 31 11:43:07 2019
85.39% done, estimate finish Thu Jan 31 11:43:07 2019
86.55% done, estimate finish Thu Jan 31 11:43:07 2019
87.70% done, estimate finish Thu Jan 31 11:43:07 2019
88.86% done, estimate finish Thu Jan 31 11:43:07 2019
90.01% done, estimate finish Thu Jan 31 11:43:07 2019
91.16% done, estimate finish Thu Jan 31 11:43:08 2019
92.32% done, estimate finish Thu Jan 31 11:43:08 2019
93.47% done, estimate finish Thu Jan 31 11:43:08 2019
94.63% done, estimate finish Thu Jan 31 11:43:08 2019
95.78% done, estimate finish Thu Jan 31 11:43:08 2019
96.93% done, estimate finish Thu Jan 31 11:43:08 2019
98.09% done, estimate finish Thu Jan 31 11:43:08 2019
99.24% done, estimate finish Thu Jan 31 11:43:08 2019
Total translation table size: 2048
Total rockridge attributes bytes: 404822
Total directory bytes: 2002944
Path table size(bytes): 16516
Max brk space used 3aa000
433290 extents written (846 MB)
ubuntu-16.04.3-server-amd64.iso
从官网下载,可以正常安装,但是无法test.iso
启动。
我查了很多资料,但没有发现任何有用的信息。
你能帮助我吗?或者还有其他命令可以制作可启动的 iso 文件吗?