SSD

Solid State Disk

Migration

Neue Root-Platte in Debian: http://linuxfoo.de/wp/?p=890

cat /etc/init.d/geraldflash.sh

#!/bin/bash 
# Startscript fuer Server mit Flashdrive
#
   # /var/log subdirectories.
   mkdir -p /var/log/fsck
   mkdir -p /var/log/ksymoops
   mkdir -p /var/log/news
   mkdir -p /var/log/mail
   mkdir -p /var/log/apt
   mkdir -p /var/log/apache2
   mkdir -p /var/log/mysql
   
   # dummy logfiles
   touch /var/log/auth.log
   touch /var/log/messages
   touch /var/log/user.log
   touch /var/log/daemon.log
   touch /var/log/debug
   touch /var/log/dmesg
   touch /var/log/syslog
   touch /var/log/lpr.log
   touch /var/log/kern.log
   touch /var/log/mail.err
   touch /var/log/mail.info
   touch /var/log/mail.log
   touch /var/log/mail.warn

   # /var/tmp
   mkdir -p /var/tmp
   chmod 777 /var/tmp

   # Example for Cups
   if [ -f /usr/sbin/cupsd ] ; then
    mkdir -p /var/log/cups
   fi 

cat /etc/fstab

## /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda1       /               ext2    noatime,errors=remount-ro 0       1
#old cf-media: UUID=ab7881fd-229a-420b-a6bb-9ef45a91efee       /               ext2    noatime,errors=remount-ro 0       1
UUID=f825046f-0b8c-430b-9adc-ff2ab892be69 / ext4 noatime,nodiratime,discard,errors=remount-ro 0 1
#/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
tmpfs           /tmp           tmpfs   defaults,noatime                   0 0
tmpfs           /var/lock      tmpfs   defaults,noatime                   0 0
tmpfs           /var/log       tmpfs   defaults,noatime                   0 0
tmpfs           /var/run       tmpfs   defaults,noatime                   0 0
tmpfs           /var/tmp       tmpfs   defaults,noatime                   0 0 
#alt: UUID=36e893a9-1d15-479a-b5d8-48fe96d237a7 /var/Daten	ext3	auto,defaults,async	0	0
#UUID=c6acd2e6-56da-48d8-9b32-dfc3ace89ee8 /var/Daten	ext3	auto,defaults,async	0	0
#UUID=1fa069c4-fe41-4869-ae5c-8ca859f84f92 /var/www/webserver ext3 auto,defaults,async	1	0
UUID=c8cf64dc-15ac-4e1c-88e2-b9007eedb5a5 /var/www/webserver/wiki_stick ext2 auto,defaults,noatime	0	0
/dev/mapper/sda3_crypt	/root/backup	ext3	noauto,defaults			0	0
# for saving tv programm
UUID=15aa15d7-fb5a-46a7-819d-5330464431c2 /var/TV ext3 auto,defaults	0	0
#UUID=f95a6f60-b632-4481-9302-5108e5390851 /var/TV ext3 auto,defaults    0       0
#UUID=f95f6dac-08aa-4e42-be3b-d2534364f913 /var/TV2 ext3 auto,defaults   0	0
UUID=ab7881fd-229a-420b-a6bb-9ef45a91efee       /mnt/cf-media               ext2    noatime,errors=remount-ro 0       1