snipt

Ctrl+h for KB shortcuts

Batchfile

Bootable USB drive

1
2
3
4
5
6
syslinux -m -a Z:
mkdir Z:\boot\syslinux
cp mboot.c32 Z:\boot\syslinux\mboot.c32
cd libcom32.c32 Z:\boot\syslinux\libcom32.c32
echo "DEFAULT mboot.c32 /kernel" > Z:\boot\syslinux\syslinux.cfg
cp kernel Z:\kernel
https://snipt.net/embed/2a71f7027ec1759ba089631ff8757859/
https://snipt.net/raw/2a71f7027ec1759ba089631ff8757859/
2a71f7027ec1759ba089631ff8757859
bat
Batchfile
6
2016-09-25T08:17:46
True
False
False
/api/public/snipt/97527/
bootable-usb-drive
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>syslinux -m -a Z: </span><span id="L-2"><a name="L-2"></a>mkdir Z:\boot\syslinux </span><span id="L-3"><a name="L-3"></a>cp mboot.c<span class="m">32</span> Z:\boot\syslinux\mboot.c<span class="m">32</span> </span><span id="L-4"><a name="L-4"></a><span class="k">cd</span> libcom<span class="m">32</span>.c<span class="m">32</span> Z:\boot\syslinux\libcom<span class="m">32</span>.c<span class="m">32</span> </span><span id="L-5"><a name="L-5"></a><span class="k">echo</span> <span class="s2">&quot;DEFAULT mboot.c32 /kernel&quot;</span> <span class="p">&gt;</span> <span class="n">Z</span>:\boot\syslinux\syslinux.cfg </span><span id="L-6"><a name="L-6"></a>cp kernel Z:\kernel </span></pre></div> </td></tr></table>
bootable, syslinux, usb

Text only

WriteProtect usb

1
2
3
4
REG QUERY HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies /s
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies /v WriteProtect /t REG_DWORD /d 1
REG DELETE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies /f 
https://snipt.net/embed/a1763542e65c3e39ca0272887b802e1f/
https://snipt.net/raw/a1763542e65c3e39ca0272887b802e1f/
a1763542e65c3e39ca0272887b802e1f
text
Text only
4
2016-09-24T20:23:25
True
False
False
/api/public/snipt/27900/
writeprotect-usb
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>REG QUERY HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies /s </span><span id="L-2"><a name="L-2"></a>REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies </span><span id="L-3"><a name="L-3"></a>REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies /v WriteProtect /t REG_DWORD /d 1 </span><span id="L-4"><a name="L-4"></a>REG DELETE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies /f </span></pre></div> </td></tr></table>
usb, writeprotect, writeprotectusb
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.