Quicklinks

EndUser

Test/Virtualisaton


Installieren

Kernel - Tuning

Network

Display / Pads

Bock Devices

Printer

USB-Devices

BenutzerSW

Server

Install Notes

General/Hints

anoyances.org

Collection of installation & troublshooting info related to my linux (debian/mint/ubuntu) installations

Blockdevices i.a.

als SWAP-Device

https://help.ubuntu.com/community/SwapFaq

Der Swap wird für Hibernate - Suspend to Disk gebraucht (Ubuntu: für hibernate muss swap Partitin sein, nicht File)
Es gibt eine Anleitung (für Debian) um Hibernate mit Swap Datei.

  sudo dd if=/dev/zero of=/mnt/512Mb.swap bs=1M count=512
     dd of=/mnt/512Mb.swap bs=1M seek=512 count=0  (nicht für Swap-File)
  fallocate -l 8G /././datei  (schneller, für Filesystem wie brtfs, ext3 u.a. nicht ntfs oder fat)

 sudo mkswap /mnt/512Mb.swap
 sudo swapon /mnt/512Mb.swap   (von Hand Swap beifügen)  []swapoff

in fstab:

 /mnt/512Mb.swap  none  swap  sw  0 0

Swap freigeben
Speicher muss aber genug gross sein, sonst Absturz

 sync ; sync ; sync ; swapoff -a && swapon -a
 sync ; sync ; sync ; echo 3 > /proc/sys/vm/drop_caches  (Speicher i.a. freigeben)

Troubles
z.B. viele HD-i/o (z.B. blockierend)

 htop
 top -> swap:
 free 
 cat /proc/meminfo  (zeig sehr viele Informationen über Memory-Belegung)
 cat /proc/swaps    (Prioriäten und device(s))
swappiness: 0=wenn möglich nicht swappen 100=agressiv swappen

cat /proc/sys/vm/swappiness

sudo sysctl vm.swappiness=10 (temporär, bis zum reboot)
gksudo gedit /etc/sysctl.conf (Konfig) -> vm.swappiness=10 (weniger Swap)

Disk-Optimierung

dma u.s.w.

 sudo hdparm -iv /dev/sdb (Settings)
 sudo hdparm -tT /dev/hda  (Performance)

rc-update add hdparm default (Resistent []Ubuntu?

Vorschlag für Protege M200
/sbin/hdparm -d1 -u1 -m16 -c3 /dev/hda

Change /dev/hda to dev/discs/disc0/disc or /dev/sda if needed
(ging allerdings nicht) jetziger Performance 20MB/S

Disk Analyse Struktur/Grösse/Blöcke

parted
fdisk
cfdisk

Disk Check und Analyse

USB-Sticks: http://usbmst.sourceforge.net/ - unter XP (Wine? [] ev. zu testen)

smartmontools - control and monitor storage systems using S.M.A.R.T.
smart-notifier - graphical hard disk health status notifier

sudo smartctl --all /dev/sda
badblocks -snv -o badblocks.map /dev/blah
fsck
testdisk - http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

ntfsfix (ntgsprogs) - Journal, kleinere Sachen

chkdsk (Win, Repair-Console) ev. von QEMU

fsecure: Scan falls Virenbefall (Win Partition)

ext3
fsck.ext3 -f -L badblocks.map /dev/blah

Space

Diskbereinigung
http://wiki.ubuntuusers.de/Festplattenbelegung
http://www.meinubuntu.de/2008/10/01/wie-finde-ich-dateien-wieder-die-loesung-ist-find/ (find)
du -h --max-depth=1 /var z.b. /var Verzeichnis
find /var -size +5000k | less alle über 5MB

Partitonen und Partiton Table

Edit Page - Page History - Printable View - Recent Changes - WikiHelp - SearchWiki
Page last modified on November 27, 2017, at 11:44 AM, visited:$PageCount