EXT3: fdisk: type 63 # mkfs -c -t ext3 -T largefile4 /dev/hda1 (-c: clean bad blocks) (-T largefile4: one i-node per 4MB (other: 'news' and 'largefile')) # fsck.ext3 -f -y /dev/hda1 (force, yes) elargissement: fdisk: suppr + creat + maximize # resize2fs /dev/hda1 1024s (1024 blocks de 512 octets) # resize2fs /dev/hda1 100G (100 Giga octets) # man tune2fs (options interessantes) # tune2fs -l /dev/hda1 (liste opts sur le fs) # tune2fs -c 30 /dev/hda1 (max mounts before check) # tune2fs -e remount-ro /dev/hda1 (set remount-ro on error) # tune2fs -g wheel /dev/hda1 (group wheel will own reserved blocks) # tune2fs -u root /dev/hda1 (user root will own reserved blocks) # tune2fs -r 256 /dev/hda1 (keeps 256 reserved blocks when full) # tune2fs -m 1 /dev/hda1 (keeps 1% when full) # tune2fs -i 1m (one month between two fsck) # tune2fs -j /dev/hda1 (creates journal) # tune2fs -L "boot" (set a label) # tune2fs -o ext_attr,acl,user_xattr (set default mount opts) # tune2fs -O dir_index (B-tree directory indexation) # tune2fs -O sparse_super (sparse superblocks) # tune2fs -U time (generate UUID from date) # dumpe2fs /dev/hda1 (display infos) # e2label /dev/hda1 "boot" (set a label) XFS: création: # mkfs -c -t xfs -d /dev/hda1 (-c: clean bad blocks) ou # mkfs.xfs -b size=1024 -d size=1024000 -l size=589824 -f /dev/hda2 (voir details dans 'man mkfs.xfs') # mount -t xfs /dev/hda2 /mnt/data # xfs_check /dev/hda2 (le fsck.xfs est inpoérant) # xfs_admin /dev/hda2 > label home :writing all SBs :new label = "home" > quit snapshots: # xfs_freeze -f home (freeze (simili-RO) pour backups) # xfs_freeze -u home (retablissement RW) fichier vide: # xfs_mkfile 10M fichier eq à: # dd if=/dev/zero of=fichier seek=10485760 bs=1 count=1 # xfs_ncheck /dev/hda2 ('ls' des i-nodes) elargissement: fdisk: suppr + creat + maximize # xfs_growfs -d /home (sur partition montée) NFS: (wajig install nfs-kernel-server) # man exports # man nfs poste1# cat /etc/exports /home *.localdomain(rw,no_root_squash) /music *(ro,async,insecure,all_squash) poste2# mount -t nfs poste1:/music /usr/share/music SAMBA: (partage windows) [global] workgroup = MAISON server string = %h (Samba, Linux) dns proxy = no security = user encrypt passwords = true passdb backend = tdbsam guest obey pam restrictions = yes guest account = nobody invalid users = root unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n * Retype\snew\sUNIX\spassword:* %n\n . [Share] path = /home/ben/Share comment = Documents partagés de Benoît available = yes browseable = yes public = yes writable = yes guest ok = yes