Hi
EDIT
See post 3 pls, this method is now obsolete, replaced by wiki entry
I have an optical drive but thought I would test my puny skills using grub2 "isofrom" and other such tricks. I could not find a recent grub2 wiki/forum post that successfully boots TC so here is how I did it.
Leaping ahead, I could not get bootcode "cde" or live=cde to land
My assumptions include: you have root powers at your host Linux distro that uses grub2
---you have wired internet
---your optical drive is missing or not working.
---you know other options for persistence as per wiki or IRC or forum.
---There is some trivia below to show what I tried to get the loopback working
1) Use root powers to create an /etc/grub.d/40_custom entry that looks like this
---you can add other boot codes
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "TC hard-drive" {
insmod loopback
set isofile=/boot/tc/tc.iso
loopback loop (hd0,msdos1)$isofile
linux (loop)/boot/vmlinuz tce=sda2 opt=sda2 waitusb=5 showapps
initrd (loop)/boot/core.gz
}
menuentry "TC first-run" {
insmod loopback
set isofile=/boot/tc/tc.iso
loopback loop (hd0,msdos1)$isofile
linux (loop)/boot/vmlinuz waitusb=5 cde tce=sda2 opt=sda2
initrd (loop)/boot/core.gz
}
NOTE there is one blank line at end of file in above quote.
Create a script I called my "load-script" with contents ....done as non-root
#!/bin/sh
tce-load -wi Xlibs
tce-load -wi Xprogs
tce-load -wi Xvesa
tce-load -wi fltk-1.10
tce-load -wi wbar
tce-load -wi flwm_topside
run
chmod 666 load-script
Above is my work-a-round as I could not get cde to load.
2) Use web browser or wget command to download the TinyCore-current.iso
Use root powers to create a new folder structure at your /boot so its called
/boot/tc
move and rename the iso into that folder and call it tc.iso so it matches our grub entry then run
update-grub
cat /boot/grub/grub.cfg
(to check new entry landed)
reboot
3) Obviously change your partitions and file names to suit your distro. I elected to have tce and opt on my partition.
(hd0,msdos1)$isofile is an absolute pathway and has no gaps (spaces)
4) On reboot, choose the first-run menuentry
it boots to console.
Stay as tc user, open terminal and
cd /mnt/sda2
sh load-script
sudo reboot
5) On reboot, now choose "hard-drive" entry
If you are lucky, TC now boots correctly