On Friday 07 December 2012 15:58:53 Dick O wrote:
> Op woensdag 5 december 2012 16:11:42 UTC+1 schreef Stealth het volgende:
> > Very great idea ! Unfortunately no spin-down is a significant
> > restrictionfor an usual usage
> Maybe it's an option to install those packages on a usb flashdrive to avoid
> the lack of spin-down?
All packages have to be installed in the same filesystem.
Of course it is possible to have several install locations, but that is not
going to be an Alt-F feature.
So, if anybody wants to avoid disk spindown problems with *any* *running*
package, it must specify as the install location a USB pen filesystem.
Beware that some packages services might do heavy writes to the USB, such as
updating databases, shortening the USB pen life.
It is possible, by using a few commands, to transfer a current Alt-F package
installation from one place to another.
A tentative, untested approach follows, please report back success or in-
success.
Start to stop all services, preferably after a reboot, to avoid possible
problems.
Use 'rcall status' to make sure that all services are stopped. Some services,
that use kernel modules that can't be unloaded, can't be fully "stopped"; so
these have to be boot disabled before the reboot.
---8<-------------
#!/bin/sh
new=/mnt/sdc1 # replace with new Alt-F root fs location
curr=$(readlink -f /Alt-F)
if ! mountpoint -q $new; then
echo "NO, $new has to be a filesystem mountpoint"
exit 1
fi
if test -d $new/Alt-F; then
echo "NO, $new/Alt-F already exists"
exit 1
fi
if ! aufs.sh -u; then
echo "NO, /Alt-F still in use"
exit 1
fi
if ! cp -a $curr $new; then
echo "NO, copy failed"
rm -rf $new/Alt-F
exit 1
fi
mv $curr/Alt-F $curr/Alt-F-orig
rm /Alt-F
ln -sf $new/Alt-F /Alt-F
aufs.sh -m
echo "YES, succeed"
--->8---------
But this is going out of topic now...