<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><br></div><div dir="ltr"><blockquote type="cite">On Aug 10, 2020, at 10:43, Dan Chen <seven.steps@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 9, 2020, 14:04 nacho Lariguet <<a href="mailto:lariguet@gmail.com">lariguet@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ie: the "label:" field shown under the "diskid:" one with disklabel64<br>
<br>
It seems there is no switch (maybe -l) on disklabel64 (when using -w) to label a slice. <br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">I believe you want to specify the pack id. Please check with: </div><div dir="auto"><br></div><div dir="auto">disklabel -w -n your_disk auto 'your_label'</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>
</div></blockquote><br><div>Yes, disklabel(8) currently has no option to add/modify the packid (i.e. label name) of a slice. At the moment, one need to dump the current label, modify the ‘label:’ field, and then write back.</div><div><br></div><div>It’s on my todo list for some time to update disklabel(8) to better do this job, since we are using it in the installer images.</div><div><br></div><div>Regards,</div><div>Aaron</div></body></html>