Installing grml on usb stick
Peter <vmail <at> mycircuit.org>
2009-04-01 20:44:10 GMT
Hi
I wanted to suggest some minor modifications to the instructions
concerning the usb stick installation.
I found that in order to install grml-medium-2008.11 , I had to adjust
the lines in red. I also added some requirements
that might not be available , when your build environment is not grml (
I suppose $medium can be replaced with the other flavors but I have not
verified ):
aptitude install syslinux # syslinux 3.71
or later must be available on your GNU/Linux system
aptitude install dosfstools # to get mkfs.vfat
- Get the grml iso
- Mount the iso loopback (e.g.
mount -o loop grml_small_0.4.iso /mnt/grml-iso)
- Make FAT16 filesystem on the
usbstick (e.g. mkfs.vfat -F 32 /dev/sda1)
- Create a disklabel (e.g.
dosfslabel /dev/sda1 GRML)
- Mount the usbstick (e.g. mount
/dev/sda1 /mnt/external1)
- Copy everything to the usbstick
(e.g. cp -r /mnt/grml-iso/* /mnt/external1).
- Move all files from
/mnt/external1/boot/isolinux/ (mv /mnt/external1/boot/isolinux/*
/mnt/external1)
and the files linux26 and the minirt.gz (since
grml1.1: initrd.gz!) from the directory named like the grml-flavour
(/boot/grml, /boot/grmlmedium, /boot/grml64,...) to root of usb-stick
in /mnt/external1, mv isolinux.cfg to
syslinux.cfg #I am not sure if this is
required, though
- the files
linux26 and initrd.gz must remain in boot/grmlmedium # this is what is
said in syslinux.cfg
- Umount the usbstick and the
grml-iso
- Run syslinux on the usbstick
(e.g. syslinux /dev/sda1)
- Check if the usbstick has an
valid
mbr, else dd if=mbr.bin of=/dev/sda (mbr.bin is in the syslinux
package, usually installed in /usr/lib/syslinux/mbr.bin)
- may need to set the bootable
flag using parted (or fdisk)
disk layout:
/mnt/external1:
addons
f1
..
isolinux
isolinux.bin
syslinux.cfg
ldlinux.sys
live/
filesystem.module
grml-medium.squashfs
boot/grmlmedium
initrd.gz
linux26
Pleases let me know , if I am wrong of if there are better ways to do
that ( I know, there is grml2usb, but I want to be sure to understand
what's going on)
Thanks
Peter
<div>
Hi<br>
I wanted to suggest some minor modifications to the instructions
concerning the usb stick installation.<br>
I found that in order to install grml-medium-2008.11 , I had to adjust
the lines in red. I also added some requirements
that might not be available , when your build environment is not grml (
I suppose $medium can be replaced with the other flavors but I have not
verified ):<br><br><p>aptitude install syslinux # <a href="http://clonezilla.org/clonezilla-live/liveusb.php">syslinux 3.71
or later must be available on your GNU/Linux system</a><br></p>
<p>aptitude install dosfstools # to get mkfs.vfat</p>
<div class="level2">
<ul>
<li class="level1"><span class="li"> Get the grml iso</span></li>
<li class="level1"><span class="li"> Mount the iso loopback (e.g.
mount -o loop grml_small_0.4.iso /mnt/grml-iso)</span></li>
<li class="level1"><span class="li"> Make FAT16 filesystem on the
usbstick (e.g. mkfs.vfat -F 32 /dev/sda1)</span></li>
<li class="level1"><span class="li"> Create a disklabel (e.g.
dosfslabel /dev/sda1 GRML)</span></li>
<li class="level1"><span class="li"> Mount the usbstick (e.g. mount
/dev/sda1 /mnt/external1)</span></li>
<li class="level1"><span class="li"> Copy everything to the usbstick
(e.g. cp -r /mnt/grml-iso/* /mnt/external1).</span></li>
<li class="level1"><span class="li"> Move all files from
/mnt/external1/boot/isolinux/ (mv /mnt/external1/boot/isolinux/*
/mnt/external1)</span></li>
</ul>
<span class="li">and the files linux26 and the minirt.gz (since
grml1.1: initrd.gz!) from the directory named like the grml-flavour
(/boot/grml, /boot/grmlmedium, /boot/grml64,...) to root of usb-stick</span>
<p> in /mnt/external1, mv isolinux.cfg to
syslinux.cfg #<a href="http://www.livecd.ethz.ch/usbdisk.html">I am not sure if this is
required, though</a><br></p>
<ul>
<li class="level1"><span class="li">the files
linux26 and initrd.gz must remain in boot/grmlmedium # this is what is
said in syslinux.cfg<br></span></li>
<li class="level1"><span class="li"> Umount the usbstick and the
grml-iso</span></li>
<li class="level1"><span class="li"> Run syslinux on the usbstick
(e.g. syslinux /dev/sda1)</span></li>
<li class="level1"><span class="li"> Check if the usbstick has an
valid
mbr, else dd if=mbr.bin of=/dev/sda (mbr.bin is in the syslinux
package, usually installed in /usr/lib/syslinux/mbr.bin)</span></li>
<li class="level1"><span class="li"> may need to set the bootable
flag using parted (or fdisk)</span></li>
</ul>
</div>
<p>disk layout:</p>
/mnt/external1:
addons
f1
..
isolinux
isolinux.bin
syslinux.cfg
ldlinux.sys
live/
filesystem.module
grml-medium.squashfs
boot/grmlmedium
initrd.gz
linux26
<br>
Pleases let me know , if I am wrong of if there are better ways to do
that ( I know, there is grml2usb, but I want to be sure to understand
what's going on)<br><br>
Thanks<br>
Peter<br>
</div>