Salut,
moi j'arrive a faire tourner cette distrib depuis le disque dur mais en chargeant tout en ram.
Donc identique a un live mais plus rapide.
Pour ceux que ca interresse voici le script modifié
#!/bin/bash
# Batch file to create bootable disk including IDE hard disk and USB device
# usage: make_disk.sh /dev/sda1
# "/dev/sda1" must be a partition which has been formated with ext file type
# WARNING! boot sector of the device will be OVERWRITTEN!
# author: Tomas M. <http://www.linux-live.org>
# modified by jordan and joy, Linpus INC. 2006
# usage
if [ "$1" = "" ]; then
echo "usage: $0 partition_device"
echo "example: $0 /dev/sda1"
exit 1
fi
# set environment variables
PART="$1"
BOOT="`echo \"$PART\" | sed -r \"s/[0-9]+\\\$//\"`"
DEVNUM=`echo $1 | cut -b 9-11`
ID=`expr $DEVNUM - 1`
# mount the given partition
TMPDIR=/mnt/makedisk_mount$$
echo "Mounting $PART to $TMPDIR..."
mkdir -p $TMPDIR
mount "$PART" $TMPDIR
if [ $? -ne 0 ]; then
echo "Mount partition $1 failed, Please check it."
echo "exit."
exit 1;
fi
# copy data to the given partition
echo "Copying files..."
cp -R /boot/* "$TMPDIR"
if [ $? -ne 0 ]; then exit 1; fi
sync
umount $TMPDIR
mount -t ext3 "$PART" $TMPDIR
# write grub conf file
echo "Setting up boot sector in $BOOT..."
echo "
default=0
timeout=0
splashimage=(hd0,$ID)/boot/grub/splash.xpm.gz
hiddenmenu
title Linpus Linux Lite
rootnoverify (hd0,$ID)
kernel /boot/bzImage root=/dev/ram0 rw init=linuxrc probeusb
initrd /boot/initrd.gz
title Linpus Linux Lite(rescue)
rootnoverify (hd0,$ID)
kernel /boot/bzImage root=/dev/ram0 rw init=linuxrc probeusb rescue
initrd /boot/initrd.gz
" >$TMPDIR/boot/grub/grub.conf
# make grub device map
echo "(hd0) $BOOT" >$TMPDIR/boot/grub/device.map
# install grub
if [ -f /usr/sbin/grub ] ; then
GRUB_COMMAND=/usr/sbin/grub
elif [ -f /usr/bin/grub ] ; then
GRUB_COMMAND=/usr/bin/grub
elif [ -f /bin/grub ] ; then
GRUB_COMMAND=/bin/grub
elif [ -f /sbin/grub ] ; then
GRUB_COMMAND=/sbin/grub
else
echo "No grub command, system is existing..."
exit 1
fi
$GRUB_COMMAND --no-floppy --batch --device-map=$TMPDIR/boot/grub/device.map << EOT
root (hd0,0)
setup (hd0)
quit
EOT
if [ $? -ne 0 ]; then exit 1; fi
# finish
umount $TMPDIR
rmdir $TMPDIR
# enjoy it
echo "Successfully installed in $1"
@+