Bootable USB using GRUB

I have successfully boot Linux (Damn Small Linux) from my USB stick (iPod shuffle). I'm using GRUB boot loader instead of SYSLINUX, because more advanced features in GRUB.


0
Copy required *stage* to /mnt/ipod/boot/grub and setup /mnt/ipod/boot/grub/menu.lst
Contents of my menu.lst:

color magenta/blue black/magenta

timeout 50

default 0

title Linux

kernel (hd0,0)/boot/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 nomce noapic quiet BOOT_IMAGE=knoppix

initrd (hd0,0)/boot/minirt24.gz


These are the tricky steps:

1
grub-install --root-directory=/mnt/ipod --recheck /dev/sda

2
vi /mnt/ipod/boot/grub/device.map
Change the contents to:

(fd0) /dev/fd0

(hd0) /dev/sda

3
grub-install --root-directory=/mnt/ipod /dev/sda

4
grub-install --root-directory=/mnt/ipod /dev/sda1




NOTES:
change /mnt/ipod to your usb mount point
change /dev/sda to /dev/sdb if detected as sdb

Comments

Superbiji said…
Restore your firmware using ipod updater
before that make sure ipod mounted to E:
(probably cdrom using drive E:)
Anonymous said…
This comment has been removed by a blog administrator.

Popular posts from this blog

Optimize SSD on Linux

Manually clean up zimbra zmcat/zmcpustat exploit

Ports to allow for whatsapp call