![]() |
![]() |
![]() |
![]() |
![]() |
RemiX diskless can boot from USB stick. If you choice 'SETUP' at boot time, you can also install system to other disks, working in live system. This the install script:
usb-install.sh
#!/bin/sh REMIX_PATH="/remixusb" if [ $# -eq 1 ] ; then echo " --------------------------------------------------- You selected $1 device to install remixUSB filesystem. Warning ! All data in selected device will be LOST " echo -n "type 'okay' to proceed : " read NNN if [ "a$NNN" = "aokay" ] ; then REMIX_TGZ=`ls -1 remiX-thinclient-*` echo $REMIX_TGZ mkfs.ext2 $1 mkdir USB_TEMP_MOUNTPOINT mount $1 USB_TEMP_MOUNTPOINT IS_USB_MOUNTED=`mount | grep USB_TEMP_MOUNTPOINT` if [ "a$IS_USB_MOUNTED" = "a" ] ; then echo "Error: $1 device not mounted in USB_TEMP_MOUNTPOINT ... exit" exit fi echo "Copying files ..." mkdir -p ./USB_TEMP_MOUNTPOINT$REMIX_PATH tar -C ./USB_TEMP_MOUNTPOINT$REMIX_PATH -xzplf $REMIX_TGZ echo "It's important to choice right device for LILO, now ..." echo "current device is $1." echo -n "Select device where LILO will be installed : " read BOOT_DEVICE if [ "a$BOOT_DEVICE" = "a" ] ; then BOOT_DEVICE=$1 fi echo echo "flushing disk cache before install Lilo ... please wait ..." echo " # LILO configuration file # generated by remix # # Start LILO global section boot = $BOOT_DEVICE map=/boot/map #message=/boot/message #message = /boot/graphical compact # faster, but won't work on all systems. prompt large-memory timeout = 50 vga = 788 bitmap=/boot/lilo-remix.bmp bmp-colors= 15,0,0;0,15,15 bmp-table= 478p,219p,1,15 bmp-timer= 575p,445p,0,15,15 # End LILO global section # Linux bootable partition config begins image = /boot/linux label = Desktop1 initrd=/boot/initrd_ram.img read-write # Non-UMSDOS filesystems should be mounted read-only for checking append = \"CUSTOM=/dev/hda1 load_ramdisk=1 ramdisk_size=8192 prompt_ramdisk=0 root=/dev/ram rw apm=off splash=silent\" image = /boot/linux label = Desktop2 initrd=/boot/initrd_ram.img read-write # Non-UMSDOS filesystems should be mounted read-only for checking append = \"CUSTOM=/dev/hda1 CONFIG=2 load_ramdisk=1 ramdisk_size=8192 prompt_ramdisk=0 root=/dev/ram rw apm=off splash=silent\" image = /boot/linux password=mypass label = SETUP initrd=/boot/initrd_ram.img read-write # Non-UMSDOS filesystems should be mounted read-only for checking append = \"load_ramdisk=1 ramdisk_size=8192 prompt_ramdisk=0 root=/dev/ram rw apm=off splash=verbose\" " > ./USB_TEMP_MOUNTPOINT$REMIX_PATH/etc/lilo.conf lilo -P ignore -r ./USB_TEMP_MOUNTPOINT$REMIX_PATH umount USB_TEMP_MOUNTPOINT rmdir USB_TEMP_MOUNTPOINT fi else echo " This script install remixUSB filesystem to USB-Stick or HD ... Pay attention: all data in selected device will be lost. Usage: Install.sh /dev/device_to_install " fi