Thursday, January 25, 2007

Mount

Objectives
  1. what is ---> unix commands whatis bc
  2. Apropos --- > "
  3. Which --------> To locate the file eg which wvdial
  4. man --------> Help
  5. Who , W ---> Two are use to identify loggers
  6. tty , chvt --- > ttty telterminal , chvt -- > change teltype terminal ... chvt1 to chvt 2
  7. uname -----> known ur machine above all use uname -r to know ur kernel version
  8. cal --------> Calculator
  9. bc --------> "
  10. echo $path pwd , cd , mkdir , cat --> to Create a file System , tput whois
dd Commands is used for dumpdisk
How can we mount the file ?
If u are machine is dual boot u can mount filesystem ( windows ) , For example
if u need to mount hda1 , u just create a directory in /home or /mnt .. This /mnt is used for mount directory
mount /dev/hda1 /mnt/cdrive
To be permant in ur linux , Use fstab or misc .So when system is booting this directory automatically mount . We can use misc directory for mounting
first we need to edit auto.master and auto.misc ok ,
vi /etc/auto.master
# $Id: auto.master,v 1.3 2003/09/29 08:22:35 raven Exp $
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
/misc /etc/auto.misc --timeout=3 --- Uncomment The # ,default is 60 sec change to 3 sec
#/misc /etc/auto.misc
#/net /etc/auto.net
Nest Step is to edit aut.misc /etc/auto.misc
# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd
windows -fstype=vfat :/dev/hdb5 ###--- add ur directory name and file system and ur file number
------------------------------- Start the service /etc/init.d/autofs restart ---------------------- It's over
When u want to view the directory go to cd /misc/ from the dir /misc type cd windows u can see ur file ..
It automatically unmount when u quite from that directory .. In my exp it's better than Fstab Try it
----------------------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment

Powered By Blogger