共计 3510 个字符,预计需要花费 9 分钟才能阅读完成。
仅适用于 debian 和 ubuntu,只需要在脚本的 preseed.cfg 里加一句:
复制代码 就可以把根目录的文件系统改成 btrfs,同理可以改成 xfs 什么的。 我加的具体位置:
复制代码 |
网友回复:
注册 : debian: -d 11 ubuntu: -u 20.04 cent: -c 7
无神通 : 谢谢分享技术贴
无神通 : 萌咖脚本会创建大约内存大小的 swap,修改哪里能去掉这个设置
心上人 : 支持技术贴!
ken08: 个人小鸡没必要用 btrfs,影响性能
zxxx: 能不能给我说下,这个脚本各种参数怎么设置的?比如怎么选系统,设置密码,改端口,一气呵成。完整的。
Tip: 同样是那个位置添加分区,下面代码供参考:d-i partman-auto/disk string d-i partman-auto/method string regular d-i partman-auto/expert_recipe string boot-root :: 40 50 200 ext4 $primary{} $bootable{} method{format} format{} use_filesystem{} filesystem{ext4} mountpoint{/boot} . 500 1000 -1 ext4 $primary{} method{ format} format{} use_filesystem{} filesystem{ext4} mountpoint{/} . 64 512 200% linux-swap method{swap} format{} . d-i partman-partitioning/confirm_write_new_label boolean true d-i partman-auto/choose_recipe select boot-root d-i partman/choose_partition select finish d-i partman/confirm boolean true d-i partman/confirm_nooverwrite boolean true d-i partman/default_filesystem string ext4 d-i partman/mount_style select uuid 复制代码
菜单 : 修改 swap 就不是一两行的事了,要改的话也就是 partman 这块地方了。
取个什么名好呢 : https://superuser.com/questions/458672/ubuntu-preseed-use-whole-disk-space-but-no-swap d-i partman-basicfilesystems/no_swap boolean false d-i partman-auto/expert_recipe string myroot :: 1000 50 -1 ext4 $primary{} $bootable{} method{format} format{} use_filesystem{} filesystem{ext4} mountpoint{/} . d-i partman-auto/choose_recipe select myroot 复制代码 d-i partman-basicfilesystems/no_swap boolean false — 禁止警告消息复制代码 d-i partman-auto/expert_recipe string myroot :: 1000 50 -1 ext4 … 至少 1G 的分区复制代码
无神通 : DebianInstallerPreseed https://wiki.debian.org/DebianInstaller/Preseed Contents of the preconfiguration file (for bullseye) https://www.debian.org/releases/stable/amd64/apbs04.en.html
注册 : 完全懵逼啊,大佬。我说的是萌咖的脚本,好像加参数,就能设置密码。改端口的。那个比较简单。
注册 : 的确降低性能,但 btrfs 可以开 zstd 压缩,可以节省很多空间,某些场景性能反而更高了。还有,有些大盘鸡老挂 EXT4 容易损坏,换 XFS 或者 btrfs 可以好点。
菜单 : 密码可以通过命令行设置,端口还不知道怎么弄
无神通 : bash <(wget –no-check-certificate -qO- ‘https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh’) -d 11 -v 64 -p “ 密码 ” -port “ 端口 ” 复制代码 我就找到这个,debian 11 的。但我如果想 d 其他系统,我就不知道咋弄了
zxxx: debian: -d 11 ubuntu: -u 20.04 cent: -c 7
菜单 : 老哥厉害厉害。如果是 Windows 呢?怎么弄。
无神通 : windows 没有自带的,要自己找其他人做好的包再 -dd “http://….”
菜单 : 是两个字母 d?跟直链就行了吧?
无神通 : 厉害了 之前研究过改 xfs
菜单 : 试试这个 腾讯轻量 Debian 11 系统 DD Windows 2022 https://hostloc.com/thread-1004553-1-1.html (出处: 全球主机交流论坛)
注册 : 牛掰看不懂
注册 : 大佬啊。请问 mfslinux 是干啥的?我直接用萌咖的脚本,替换你的直链,可以吗?https://dl.lamp.sh/vhd/zh-cn_win2022.xz 这个
刚刚好先生 : mfslinux 就是个运行在 RAM 中的 Linux 吧,具体我不懂。直接替换链接应该是可以的。要搞清是 BIOS 或者 UEFI 启动,对应不同的镜像。
菜单 : 大佬的镜像是哪个?我有个 vir 的小鸡,想 d 下
zxxx: 我都是用秋水的 适用于 UEFI 启动的多个 Windows 系统 DD 镜像 https://teddysun.com/656.html 分别是:1. Windows Server 2012 R2 Datacenter 2. Windows Server 2016 Datacenter (build: 14393.5006) 3. Windows Server 2019 Datacenter (build: 17763.2686) 4. Windows Server 2022 Datacenter (build: 20348.587) 5. Windows 10 Enterprise LTSC (build: 19044.1288) 6. Windows 11 Pro for Workstations 21H2 (build: 22000.194) 适用于 BIOS 启动的 Windows Server 2022 Datacenter DD 镜像 https://teddysun.com/629.html 适用于 BIOS 启动的 Windows 11 Pro for Workstations 21H2 DD 镜像 https://teddysun.com/642.html 适用于 BIOS 启动的 Windows 10 Enterprise LTSC DD 镜像 https://teddysun.com/640.html 适用于 BIOS 启动的 Windows Server 2019/2016/2012R2 Datacenter DD 镜像 分别是:1. Windows Server 2019 Datacenter(Build: 17763.2686)2. Windows Server 2016 Datacenter(Build: 14393.5006)3. Windows Server 2012 R2 Datacenter
菜单 : 膜拜大佬,神仙知道的就是多。。。