bin456789 / reinstall

一键DD/重装脚本 (One-click reinstall OS on VPS)
GNU General Public License v3.0
2.88k stars 478 forks source link

指定重装硬盘使用什么参数呢? #122

Open U201413497 opened 4 months ago

U201413497 commented 4 months ago

服务器有硬盘2个,sda和sdb,如何指定重装到哪一个硬盘,增加哪个参数呢?

bin456789 commented 4 months ago

没有这个功能 不过,运行reinstall.sh后,最后会显示 custom.cfg 或者 grub.cfg 的路径和内容 将 extra_main_disk=xxx 改成sdb的 id,或许可以实现 硬盘id 这样获取

fdisk -l /dev/sdb | grep 'Disk identifier' | awk '{print $NF}' | sed 's/0x//'

失联了当我没说

legolaslx commented 2 weeks ago

Can you tell me where to add "extra_main_disk=xxx"?

bin456789 commented 2 weeks ago

After running reinstall.sh, the path either custom.cfg or grub.cfg will show. edit that file. Don't expect it to work successfully.