1 |
=== On Wed, 06/30, waltdnes@××××××××.org wrote: === |
2 |
> able to modify a CD boot image get Gentoo to boot from a |
3 |
> USB stick. |
4 |
=== |
5 |
|
6 |
I have done that. Here's basically what I did. |
7 |
|
8 |
#!/bin/sh |
9 |
|
10 |
ISO=/home/ftp/pub/install/install-amd64-minimal-20081213.iso |
11 |
|
12 |
mkdosfs -F 32 /dev/sdc1 |
13 |
dd if=/usr/share/syslinux/mbr.bin of=/dev/sdc || exit |
14 |
mount -o loop,ro -t iso9660 $ISO /mnt/iso || exit |
15 |
mount -t vfat /dev/sdc1 /mnt/media1 || exit |
16 |
cp -r /mnt/iso/* /mnt/media1 || exit |
17 |
sync |
18 |
mv /mnt/media1/isolinux/* /mnt/media1 |
19 |
mv /mnt/media1/isolinux.cfg /mnt/media1/syslinux.cfg |
20 |
rm -rf /mnt/media1/isolinux* |
21 |
mv /mnt/media1/memtest86 /mnt/media1/memtest |
22 |
|
23 |
umount /mnt/iso |
24 |
#vim /mnt/media1/syslinux.cfg |
25 |
sed -i -e "s:cdroot:cdroot slowusb:" \ |
26 |
-e "s:kernel memtest86:kernel memtest:" /mnt/media1/syslinux.cfg |
27 |
|
28 |
umount /mnt/media1 |
29 |
syslinux /dev/sdc1 |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
-- Keith Dart |
35 |
|
36 |
-- |
37 |
|
38 |
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
39 |
Keith Dart <keith@×××××××××.biz> |
40 |
public key: ID: 19017044 |
41 |
<http://www.dartworks.biz/> |
42 |
===================================================================== |