<div dir="ltr"><div dir="ltr">When you attach a volume to your instance, the volume name for AWS EC2 is &quot;<font face="monospace, monospace"><b>/dev/sdf</b></font>&quot;, but the instance OS itself will probably assign a different volume name. <div><br></div><div>You can read more about it here:</div><div><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html</a><br></div><div><br></div><div>But for the NetBSD amis, the correct mapping isn&#39;t shown at that link.</div><div>If you look at <font face="monospace, monospace"><b>dmesg(8)</b></font> after you mount the volume, you&#39;ll see what it gets mounted as<b><font face="monospace, monospace">.</font></b></div><div><b><font face="monospace, monospace"><br></font></b></div>Like the Professor mentioned in the last class, you&#39;ll also want to write to the entire disk, which is partition &quot;<font face="monospace, monospace"><b>d</b></font>&quot;.</div><div dir="ltr"><br></div><div>Hope this helps,</div><div>Rob</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 6, 2019 at 12:47 PM Yuchen Zeng &lt;<a href="mailto:yzeng10@stevens.edu">yzeng10@stevens.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div id="gmail-m_-6635696753490503265divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0px;margin-bottom:0px">Did anyone else meet the same problem? I attached a volume on an instance as /dev/sdf, but when I use command <span>tar cf - / |ssh -o stricthostkeychecking=no %s root@instanceDNS &quot;dd of=/dev/sdf&quot;.it can only write into <span>/dev/xbd1a
 rather than /dev/sdf. What should I do?</span></span></p>
</div>
</div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b>Robert Herley</b><div>Computer Science &#39;19 | Stevens Institute of Technology </div><div>(631) 896-7161 | <a href="http://www.robherley.xyz" target="_blank">www.robherley.xyz</a></div></div></div></div></div></div></div>