Linux Grundlagen

Netzwerkcontroller finden:
lspci

partition erstellen:
fdisk /dev/sdb
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition’s system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

hersteller von usb-stick feststellen oder festellen von ob der usb sdb ist oder sdc:
dmesg

unmounten von part.1:
umount /dev/sdb1

part. 1 formatieren zu ext3
mkfs.ext3 /dev/sdb1

mount zu usb1 ordner
mount /dev/sdb1 usb1

treiber suche für fat32:
apt-cache search vfat32

install fat32 treiber
apt-get install dosfstools

part. 2 formatieren zu fat32
mkfs -t vfat /dev/sdb2

mount zu usb2:
mount /dev/sdb2 usb2

Überprüfung mit dem befehl mount:
debian:/home/wifi# mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)

/dev/sdc1 on /home/wifi/usb1 type ext3 (rw)
/dev/sdc2 on /home/wifi/usb2 type vfat (rw)

oder

mit der befehl df -h
Dateisystem          Größe Benut  Verf Ben% Eingehängt auf
/dev/sda1             5,7G  3,2G  2,2G  60% /
tmpfs                 258M     0  258M   0% /lib/init/rw
udev                   10M  688K  9,4M   7% /dev
tmpfs                 258M     0  258M   0% /dev/shm

/dev/sdc1             1,8G   35M  1,7G   3% /home/wifi/usb1
/dev/sdc2             2,0G  4,0K  2,0G   1% /home/wifi/usb2

Verzeichnis größe herausfinden:
du -sh /usr/local/*

ergebniss:
4,0K    /usr/local/bin
4,0K    /usr/local/etc
4,0K    /usr/local/games
4,0K    /usr/local/include
12K    /usr/local/lib
0    /usr/local/man
4,0K    /usr/local/sbin
88K    /usr/local/share
4,0K    /usr/local/src

Heraushängen von part.1

umount /dev/sdb1
oder
umount /dev/sdc1

Datenträgerprüfung:
fsck /dev/sdb1

Ergebniss:
fsck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
/dev/sdb1: sauber, 11/118320 Dateien, 16334/472492 Blöcke

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • Google Buzz
  • Live
  • MySpace
  • PDF
  • RSS
  • MisterWong
  • MisterWong.DE

Leave a Reply

Name (required) Mail (will not be published) (required) Website

*

members login

categories

archives