Ext3 for RHEL 5 and ext4 for RHEL 6.
When mount command is invoked without any arguments it referes to the /etc/mtab filesystem.
ext3 filesystem supports journaling, where as ext2 does not.
fsck is a front end tool for e2fsck.
Use the df -k command, which shows only mounted filesystems but has the big advantage of giving you the mount points too.
The mkfs command is used to create the filesystem.
This can be used to change the size of an ext2 or ext3 filesystem.
fsck (file system check) is used to maintain file system consistency.
The umount command is used.
No user permission which is a system account in all the machines having normal user level privileges unless no_root_squash or any other permission specification is not provided on the share.
The fuser command is used.
Read only for the first time but once you change it to read write then from next time onward it will be read write.
Separate partitions improve performance by keeping data together which reduces the disk head seek.
It contains a list of all the mounted directories or partitions on the system.
Change the /etc/fstab to specify ext3 for desired filesystem(s)
Create the ext3 journal on the ext2 filesystem(s) as:
# tune2fs -j
If the kernel needs to have access to the ext3 module at boot time, create a new initial ramdisk as:
# mkinitrd /boot/initrd-.img
NFS sharing is done between linux to Linux where Samba sharing can be done between Linux-Linux and Linux-windows
Steps involved in setting up swap partition:
Use mount command without arguments.
Use the fdisk -l command to view all the mounted and unmounted filesystems available on your system.
# fuser -km mnt_point
Boot into single user mode and make the necessary corrections inside fstab
This utility is used to to examine and debug an ext2 filesystem. This can also be used to manually verify the inode integrity and an aid to recover data.
chattr command changes the file attributes.
# fuser -v mnt_point
With the help of e2label command a filesystem label can be written into the superblock of ext2/ext3 filesystem.
Eg:- #e2label /dev/hda3 datadisk3
Will create a label of datadisk3 on the filesystem on partition /dev/hda3.
Create a file as:
# dd if=/dev/zero of=swapfile bs=512 count=N
(Where N is the file size in KB)
Run the mkswap to create signature
Activate the swap file with swapon command (OR) initialize it in the startup
script /etc/rc.d/rc.local
Reinitializes the kernel's in memory copy of the partition table.
When the system boots, the rc.sysinit script runs the fsck on any filesystems marked for checking in /etc/fstab file. If any of these filesystems are markes as dirty or have data in the journal, fsck will attempt to repair them. If it succeeds, the filesystems will be mounted and boot process continues, else rc.sysinit will run sulogin and will report that fsck needs to be run manually.
lvextend -L +1G /dev/VolGroup/LogVol1
This will extend the partition size by +1 GB
resize2fs /dev/VolGroup/LogVol1
Ext3
Ext4
The maximum number of partitions supported by Linux kernel is:
# e2lable /dev/hdb2
Swap space is supplement to system RAM.
lsattr command displays file attributes
This is used to modify the filesystem attributes (Like converting ext2 to ext3).
This file is referenced each time the system boots to create the desired filesystem hierarchy.
Swap partition is a feature used in Linux which uses the space allocated to it from the physical hard drive and is utilized by te system when RAM memory goes full.
Provides a dump of file system information to standard out (Console). Can be redirected to a file.
Mount command is used.