
when using a USB key, figure out the right cflags and USE flags(optimized for size, rather than speed..) and just mount /usr/portage and /usr/tmp/portage on a harddrive that would be used just to build that system..ben_h wrote:Now, mkfoofs and mount the appropriate partitions at /foo/bar (and then /foo/bar/boot, etcetera for whatever else you desire). But, you most probably don't want to compile on the USB device, for space reasons, and you definitely don't want to redownload all those tarballs. So,Then, chroot into the new tree withCode: Select all
cd /foo/bar mkdir mnt/tarpit mkdir mnt/compile mount -o bind [your host system's DISTDIR path] mnt/tarpit mount -o bind [your host system's PORTAGE_TMPDIR path] mnt/compileAfter that, just follow the install instructions from the appropriate point (that is, directly after the chroot command), but make sure you setCode: Select all
chroot /foo/bar /bin/bashCode: Select all
DISTDIR=/mnt/tarpit PORTAGE_TMPDIR=/mnt/compile

Do you still have the download for flonix, as they have removed the downloads and apparently are going commercial now. :-/ (btw, the old homepage is gone, flonix resides atgringo wrote:Yes, a great job was done with flonix. Have tried it and it´s very impressive !
Code: Select all
Scompatto zipslack in the device.
For the moment I make the boot with mine bootdisk (see download/bootdisk.img)
I create an initrd file of 300k (boot image file, I believe -- lb):
dd if=/dev/zero of=initrd bs=300k count=1
Then format it (the boot image -- lb) to ext2:
mke2fs -F - m0 initrd
I mount in loop device (not sure if there should be a space before the 'o' --lb):
mount -t ext2 - o loop initrd /mnt
cd to /mnt and I create the directory structure:
cd /mnt; mkdir bin dev lib
I create in root (/) the file 'linuxrc' with the following content, making it eseguibile (writeable?? --lb):
<---- CUT HERE ---->
#!/bin/lash
echo "Loading usbcore module"
insmod /lib/usbcore.o
echo "Loading usb-uhci module"
insmod /lib/usb-uhci.o
echo "Loading usb-ohci module"
insmod /lib/usb-ohci.o
echo "Loading usb-storage module"
insmod /lib/usb-storage.o
echo "Wait 5 to initializing a drive"
sleep 5
<---- CUT HERE ---->
I create the console device (from within / --lb):
mknod dev/console c 5 1
I copy the modules in lib:
usbcore.o
usb-uhci.o
usb-ohci.o
usb-storage.o
I copy the binary of busybox (patched) and compiled with uClibc (see download/boot/busybox) in /bin and I create following link:
ln -s busybox echo
ln -s busybox insmod
ln -s busybox lash
ln -s busybox sleep
I take apart (translated from smonto?? --lb) the image and zip it:
gzip -9 initrd
I create the boot diskette:
fdformat /dev/fd0
mkdosfs -n STIXX -c /dev/fd0
syslinux /dev/fd0
I copy to the diskette:
vmlinuz
initrd.gz
syslinux.cfg
message.txt
F1.txt
These are mine:
syslinux.cfg:
<---- CUT HERE ---->
default vmlinuz initrd=initrd.gz root=/dev/sda1 vga=normal rw SLACK_KERNEL=bare.i
prompt 1
timeout 1200
display message.txt
F1 f1.txt
F2 message.txt
#
label ramdisk
kernel vmlinuz
append vmlinuz ramdisk_size=7000 root=/dev/fd0u1440 vga=normal rw SLACK_KERNEL=bare.i
#
label mount
kernel vmlinuz
append ramdisk_size=7000 ro SLACK_KERNEL=bare.i
#
label usb
kernel vmlinuz
append initrd=initrd.gz root=/dev/sda1 vga=normal rw SLACK_KERNEL=bare.i
<---- CUT HERE ---->
message.txt:
<---- CUT HERE ---->
.0C
88
,d ""
88
,adPPYba, MM88MMM 88 8b, ,d8 8b, ,d8
I8[ "" 88 88 `Y8, ,8P' `Y8, ,8P' ,--()
()-- `"Y8ba, 88 88 )888( )888( ---'-.-------|>
aa ]8I 88, 88 ,d8" "8b, ,d8" "8b, `--[]
`"YbbdP"' "Y888 88 8P' `Y8 8P' `Y8.07
To boot into the default USB device (/dev/sda1) just hit ENTER
Hit F1 for help
Log in as root, and change your password.
Take a look at swapfile.txt to extend the swap space.
Have fun :^)
<---- CUT HERE ---->
F1.txt:
<---- CUT HERE ---->
To boot the default device (/dev/sda1) just hit ENTER.
This is another example, like an USB Zip drive:
usb root=/dev/sda4 rw
If you want to boot from an IDE hard drive or IDE zip drive, try this:
mount root=/dev/hda1 rw
mount root=/dev/hdb4 rw
<---- CUT HERE ---->
After booting, I modify:
/etc/rc.d/rc.local
<---- CUT HERE ---->
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
if [ -r /tmp/nic ]; then
cat /tmp/nic
elif [ -r /var/lib/pcmcia/stab ]; then
cat /var/lib/pcmcia/stab
else
echo "NO CARD FOUND!"
fi
echo "Log in as root and remember to change your password"
<---- CUT HERE ---->
/etc/rc.d/rc.netdevice
<---- CUT HERE ---->
#!/bin/sh
echo "Probing for Network Cards"
rm -f /tmp/nic
for card in 3c59x acenic de4x5 dgrs eepro100 epic100 hp100 lance \
ne2k-pci olympic pcnet32 rcpci rtl8139 8139too 8139cp sktr tulip via-rhine \
yellowfin natsemi ; do
/sbin/modprobe $card 2> /dev/null
if [ $? = 0 ]; then
echo "A networking card using the $card.o module has been detected." > /tmp/nic
echo "$card" > /cardfound
break;
fi
done
if [ ! -r /cardfound ]; then
for card in depca ibmtr 3c501 3c503 3c505 3c507 3c509 3c515 ac3200 \
acenic at1700 cosa cs89x0 de4x5 de600 \
de620 e2100 eepro eexpress es3210 eth16i ewrk3 fmv18x hostess_sv11 \
hp-plus hp lne390 ne3210 ni5010 ni52 ni65 sb1000 sealevel smc-ultra \
smc-ultra32 smc9194 wd ; do
/sbin/modprobe $card 2> /dev/null
if [ $? = 0 ]; then
echo "A networking card using the $card.o module has been detected." > /tmp/nic
# echo "$card" > /cardfound
break
fi
done
fi
# if [ ! -r /cardfound ]; then
# echo "NO CARD DETECTED" > /tmp/nic
# fi
rm -f /cardfound
<---- CUT HERE ---->
/etc/lilo.conf
<---- CUT HERE ---->
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/sda
disk = /dev/sda
bios = 0x80
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
#change-rules
#reset
# Normal VGA console
vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
initrd = /boot/initrd.gz
root = /dev/sda1
label = stixx
read-write
# Linux bootable partition config ends
<---- CUT HERE ---->
/boot/boot_message.txt
<---- CUT HERE ---->
Welcome to the LILO Boot Loader!
Please enter the name of the partition you would like to boot
at the prompt below. The choices are:
stixx - stick linux!
<---- CUT HERE ---->
I copy vmlinuz to /boot and I can give 'lilo -v'.
Finally to the riavvio, if the bios supports the booting from Usb-hdd Usb-zip, it posts and and there you have it!
(best translation I could do in a short while, with google. see original doc at http://www.stixx.org/testi/bootdisk_howto.txt . I'd love to see a detailed natively English how-to for booting to linux from a usb-flash device. Any pointers?)well im still a bit of a newbie with linux and gentoo but with boot optionscohesion wrote:I have an ASUS A7V133-C motherboard and it has a "boot from removable device" menu in which you can choose either:Supposedly USB FDD and USB ZIP both work, but have to be configured on the Flash device differently.
- LS-120
- USB FDD
- USB ZIP
Well it sounds like you won't have that much work to do to surpass your friend then since linux has had usb support since kernel 2.2. USB 2.0 support is new, but guess what? USB 2.0 itself is pretty new.kaziya wrote: i also found out from a friend of mine who know a lot more about linux then ill ever know he was saying that 2.4 kernals lack support for usb so building and useing a 2.6 kernal would be ideal for a project like this for usb support.


Wow. This looks amazing. I'm going to try itoddjobz wrote:Hi,
Have you tried Flash Linux ?
(Gentoo distro designed to run on 256Mb memory keys?)
http://encryptec.net/
GPL/Free etc etc ..
Comes as a Live CD with a CD -> Key transfer script ...