Installing Debian from a USB stick

This commit is contained in:
Ian Gulliver
2019-04-21 17:08:58 +00:00
parent 7b40fa4abb
commit a334fd299b
5 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<!--# set var="title" value="Installing Debian from a USB stick" -->
<!--# set var="date" value="February 6, 2006" -->
<!--# include file="include/top.html" -->
<p>Credit to <a href="http://lists.debian.org/debian-boot/2004/09/msg01722.html">dilinger</a> for this one.</p>
<p>Partition the USB stick (some come unpartitioned and expect you to mount the full device; that wont work here). Make the partition bootable, type Linux (0×83).</p>
<p>Well assume the device node for the partition is /dev/sda1 from here on.</p>
<pre><code>mkfs.ext3 -m 0 /dev/sda1
mount /dev/sda1 /mnt
grub-install root-directory=/mnt /dev/sda
mkdir -p /mnt/boot/grub
</code></pre>
<p>Save <a href="files/menu.lst">menu.lst</a> into /mnt/boot/grub/</p>
<p>Save the appropriate vmlinuz and initrd.gz files and an install ISO into /mnt/</p>
<p>If you dont have these already, try <a href="http://http.us.debian.org/debian/dists/sarge/main/installer-i386/current//images/hd-media/2.6/">here</a> and <a href="http://debian.osuosl.org/debian-cdimage/current/i386/iso-cd/">here</a> (use the “netinst” or “businesscard” ISO images unless you have a good reason to need the whole image and a > 512MiB flash drive).</p>
<pre><code>umount /mnt
</code></pre>
<p>Thats it!</p>
<!--# include file="include/bottom.html" -->

10
files/menu.lst Normal file
View File

@@ -0,0 +1,10 @@
default 0
timeout 5
color cyan/blue white/blue
title Debian Installer
root (hd0,0)
kernel /vmlinuz ramdisk_size=10000 root=/dev/rd/0 init=/linuxrc devfs=mount,dall rw
initrd /initrd.gz
savedefault
boot

View File

@@ -40,6 +40,7 @@
<li>2009-Sep-11: <a href="2009-09-11-confusing-bind-with-cnames.html">Confusing BIND with CNAMEs</a></li> <li>2009-Sep-11: <a href="2009-09-11-confusing-bind-with-cnames.html">Confusing BIND with CNAMEs</a></li>
<li>2009-Feb-19: <a href="2019-02-19-the-odd-case-of-my-mugging.html">The odd case of my mugging</a></li> <li>2009-Feb-19: <a href="2019-02-19-the-odd-case-of-my-mugging.html">The odd case of my mugging</a></li>
<li>2009-Feb-03: <a href="2009-02-03-5-packet-tcp-connection.html">5-packet TCP connection?</a></li> <li>2009-Feb-03: <a href="2009-02-03-5-packet-tcp-connection.html">5-packet TCP connection?</a></li>
<li>2006-Feb-06: <a href="2006-02-06-installing-debian-from-a-usb-stick.html">Installing Debian from a USB stick</a></li>
<li>2006-Feb-02: <a href="2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html">Rebooting Linux when it doesnt feel like it</a></li> <li>2006-Feb-02: <a href="2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html">Rebooting Linux when it doesnt feel like it</a></li>
<li>2006-Jan-25: <a href="2006-01-25-new-mysql-toys.html">New MySQL toys</a></li> <li>2006-Jan-25: <a href="2006-01-25-new-mysql-toys.html">New MySQL toys</a></li>
<li>2006-Jan-24: <a href="2006-01-24-finally-sane-mysql-clustering.html">Finally, sane MySQL clustering</a></li> <li>2006-Jan-24: <a href="2006-01-24-finally-sane-mysql-clustering.html">Finally, sane MySQL clustering</a></li>

View File

@@ -0,0 +1,27 @@
<!--# set var="title" value="Installing Debian from a USB stick" -->
<!--# set var="date" value="February 6, 2006" -->
<!--# include file="include/top.html" -->
Credit to [dilinger](http://lists.debian.org/debian-boot/2004/09/msg01722.html) for this one.
Partition the USB stick (some come unpartitioned and expect you to mount the full device; that wont work here). Make the partition bootable, type Linux (0×83).
Well assume the device node for the partition is /dev/sda1 from here on.
mkfs.ext3 -m 0 /dev/sda1
mount /dev/sda1 /mnt
grub-install root-directory=/mnt /dev/sda
mkdir -p /mnt/boot/grub
Save [menu.lst](files/menu.lst) into /mnt/boot/grub/
Save the appropriate vmlinuz and initrd.gz files and an install ISO into /mnt/
If you dont have these already, try [here](http://http.us.debian.org/debian/dists/sarge/main/installer-i386/current//images/hd-media/2.6/) and [here](http://debian.osuosl.org/debian-cdimage/current/i386/iso-cd/) (use the “netinst” or “businesscard” ISO images unless you have a good reason to need the whole image and a > 512MiB flash drive).
umount /mnt
Thats it!
<!--# include file="include/bottom.html" -->

View File

@@ -39,6 +39,7 @@
1. 2009-Sep-11: [Confusing BIND with CNAMEs](2009-09-11-confusing-bind-with-cnames.html) 1. 2009-Sep-11: [Confusing BIND with CNAMEs](2009-09-11-confusing-bind-with-cnames.html)
1. 2009-Feb-19: [The odd case of my mugging](2019-02-19-the-odd-case-of-my-mugging.html) 1. 2009-Feb-19: [The odd case of my mugging](2019-02-19-the-odd-case-of-my-mugging.html)
1. 2009-Feb-03: [5-packet TCP connection?](2009-02-03-5-packet-tcp-connection.html) 1. 2009-Feb-03: [5-packet TCP connection?](2009-02-03-5-packet-tcp-connection.html)
1. 2006-Feb-06: [Installing Debian from a USB stick](2006-02-06-installing-debian-from-a-usb-stick.html)
1. 2006-Feb-02: [Rebooting Linux when it doesnt feel like it](2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html) 1. 2006-Feb-02: [Rebooting Linux when it doesnt feel like it](2006-02-02-rebooting-linux-when-it-doesnt-feel-like-it.html)
1. 2006-Jan-25: [New MySQL toys](2006-01-25-new-mysql-toys.html) 1. 2006-Jan-25: [New MySQL toys](2006-01-25-new-mysql-toys.html)
1. 2006-Jan-24: [Finally, sane MySQL clustering](2006-01-24-finally-sane-mysql-clustering.html) 1. 2006-Jan-24: [Finally, sane MySQL clustering](2006-01-24-finally-sane-mysql-clustering.html)