Automounting the partition

# Automounting the partition
-----------------------------

# Create the partition. i.e. /dev/hda6 or Consider the windows partitions(fat32)and automount them.

mkdir /C
vi /etc/fstab

# Goto the E.O.F. and the entry for partition
/dev/hda1 /C auto defaults 1 2
:wq

# where
# 1 represents Dump Value(Dump is taken automatically on exit)
# 2 represents Filesystem check order which can be checked during boot process, by fsck
# Then reboot the machine

# Automounting by auto.master
------------------------------
# Make a partition and Create the mount point. i.e. hda11 on /mnt1

vi /etc/auto.master
# Goto the E.O.F. and add the entry like,
/mount /etc/auto.misc --timeout=30
:wq

vi /etc/auto.misc
# Goto the E.O.F. and add the entry like,
mnt1 --fstype=auto :/dev/hda11
:wq

chkconfig autofs on
service autofs restart
ls -l /mount/mnt1
OR
cd /mount/mnt1
ls -l

Comments

Popular Posts

Install and configure rsyslog Centralized logging server in CentOS

How to fix postfix/smtp Network is unreachable error

Could not join realm: Necessary packages are not installed: sssd-tools sssd libnss-sss libpam-sss adcli