Added "Change a FS-LABEL" tip
[grml-tips.git] / grml_tips
index 29fa996..1ed3439 100644 (file)
--- a/grml_tips
+++ b/grml_tips
@@ -1758,6 +1758,8 @@ Start X and lock console via exiting:
 -- 
 Which process is writing to disk and/or causes the disk to spin up?
 
+First of all use lsof to check what's going on. Does not help? ->
+
 # echo 1 > /proc/sys/vm/block_dump
 
 The command sets a sysctl to cause the kernel to log all disk
@@ -2097,6 +2099,30 @@ reiserfs without vol_id:
 reiser4 without vol_id:
 # debugfs.reiser4 /dev/sda1 | grep label
 -- 
+Change a FS-LABEL:
+
+swap:
+# mkswap -L $LABEL /dev/sda1
+
+ext2/ext3:
+# e2label /dev/sda1 $LABEL
+
+reiserfs:
+# reiserfstune -l $LABEL /dev/sda1
+
+jfs:
+# jfs_tune -L $LABEL /dev/sda1
+
+xfs:
+# xfs_admin -L $LABEL /dev/sda1
+
+fat/vfat:
+# echo 'drive i: file="/dev/sda1"' >> ~/.mtoolsrc
+# mlabel -s i:$LABEL
+
+ntfs:
+# ntfslabel /dev/sda1 /dev/sda1
+-- 
 Disable pdiffs feature of APT:
 
 Permanent: