![]() ![]() ![]() |
![]() ![]() |
dd |
Dient dem Kopieren von Datnblöcken, z.B. zum Sichern des Bootsektors einer Festplatte: root@sonne > dd if=/dev/hda of=/tmp/bootsektor bs=512 count=1 |
e2fsck |
Zur Reparatur des Linux-Dateisystems ext2 root@sonne > e2fsck /dev/hda3 |
fdformat | Diskette formatieren |
fdisk |
Dient der Partitionierung von Festplatten: root@sonne > fdisk /dev/hda Command (m for help): p Festplatte /dev/hda: 128 Köpfe, 63 Sektoren, 787 Zylinder Einheiten: Zylinder mit 8064 * 512 Bytes Gerät boot. Anfang Ende Blöcke Id Dateisystemtyp /dev/hda1 * 1 2 8032+ 83 Linux /dev/hda2 3 18 64512 82 Linux Swap /dev/hda3 19 787 3100608 83 Linux |
fsck |
Reparatur von Dateisystemen (xiaf, minix, ext2). fsck ist ein Frontend und ruft entsprechend dem Dateisystemtyp andere Programme auf. Per default versucht fsck den Typ anhand der /etc/fstab zu erkennen: root@sonne > fsck /dev/hda3 |
mkfifo | Erzeugt eine named pipe (FIFO-Datei) |
mkfs | Richtet ein Linux-Dateisystem ein, korrespondiert zu fsck |
mknod | Erstellt eine neue Device-Datei (FIFO, Block- oder Character-Device) |
mkswap |
Existierende Datei oder Partition als Swap-Bereich einrichten: root@sonne > dd if =/dev/zero of=/tmp/swapfile bs=1024 count=4096 4096+0 records in 4096+0 records out root@sonne > mkswap /tmp/swapfile 4096 root@sonne > swapon /tmp/swapfile |
mount | Einhängen eines Devices in ein Dateisystem (Beispiele). |
swapoff |
Deaktivieren eines Swap-Bereiches: root@sonne > swapoff /tmp/swapfile |
swapon | Aktivieren eines Swap-Bereiches, siehe mkswap |
tune2fs | Zur Modifizierung/Anzeige einiger Parameter des ext2 :
# Anzeige des Superblocks root@sonne> tune2fs -l /dev/hda4 tune2fs 1.17, 26-Oct-1999 for EXT2 FS 0.5b, 95/08/09 Filesystem volume name: <none> Last mounted on: /mnt/boot Filesystem UUID: 99c0ce4a-9e7d-11d3-86d7-b832bfd4e1f7 Filesystem magic number: 0xEF53 Filesystem revision #: 0 (original) Filesystem features: (none) Filesystem state: not clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 8016 Block count: 16033 Reserved block count: 801 Free blocks: 13365 Free inodes: 7983 First block: 1 Block size: 1024 Fragment size: 1024 Blocks per group: 8192 Fragments per group: 8192 Inodes per group: 4008 Inode blocks per group: 501 Last mount time: Thu Jan 13 10:05:45 2000 Last write time: Thu Jan 13 10:05:50 2000 Mount count: 7 Maximum mount count: 20 Last checked: Tue Jan 11 16:10:04 2000 Check interval: 15552000 (6 months) Next check after: Sun Jul 9 17:10:04 2000 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) # Setzen des Zählers "Mount count" auf 1 root@sonne> tune2fs -C 1 /dev/hda4 # Erhöhen von "Maximum Mount count" root@sonne> tune2fs -c 80 /dev/hda4 |
umount | Entfernen eines Devices aus einem Dateisystem. Aufrufsyntax: root@sonne> umount <Device> root@sonne> umount <Mountpoint> |
![]() ![]() ![]() |
![]() ![]() |