Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
U201413497 opened this issue Jul 23, 2024 · 1 comment
Open

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

U201413497 opened this issue Jul 23, 2024 · 1 comment

Comments

@U201413497
Copy link

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

@bin456789
Copy link
Owner

没有这个功能
不过,运行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//'

失联了当我没说

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants