[glug-t] [Bharathi] One Day One Command: mount

 One Day One Command :-
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

mount -- Mount/Attach a File System to a File Tree.

Summary :

All files accessible in a Unix system are arranged in one big tree,
the file hierarchy, rooted at /. These files can be spread out over
several devices. The mount command serves to attach the file system
found on some device to the big file tree.

Examples :

$ mount -- List all mounted FSs (FileSystem).

$ mount -l -- List all mounted FSs with Labels.

# mount -a -- Mount all entries in the /etc/fstab.

# mount /mnt/cdrom -- Mount known device to cdrom dir. Mount will find
the cdrom device (/dev/hdX) from /etc/fstab.

# mount /dev/hdd -- Mount device at the known place. Mount will find
the mount point (Ex. /mnt/cdrom) from /etc/fstab.

# mount -t ext2 /dev/hda2 /tmp/dir1 -- Mount a Linux partition at
/tmp/dir1.

# mount -t vfat -o rw,umask=3D0007 /dev/hda1 /mnt/C -- Mount Windows FAT
partition

# mount -o rw /dev/fd0 /mnt/floppy/ -t vfat -- Mount FAT format floppy
in Read and write mode.

# mount -t nfs 192.168.14.155:/home/one /home/one -- Mount NFS
partition, from a machine with particular IP, to /home/one dir.

# mount /tmp/fdimage /mnt/test1 -t msdos -o loop=3D/dev/loop3,blocksize=3D1=
024
-- Mount msdos Floppy disk image via loopback device.

# mount /tmp/cdimg.iso /mnt/test1 -t iso9660 -o loop=3D/dev/loop3,blocksize=
=3D1024
-- Mount a CD iso image via loopback device.

# mount --bind /mnt/cdrom /mnt/test1 -- Mount the /mnt/cdrom in
another location. So you can access in the FS in two places.

# mount -t tmpfs none /mnt/test1 -o rw,size=3D1m -- Mount a tmpFS

# mount -t tmpfs none /mnt/test1 -o remount,ro,size=3D1m -- Remount the
same partition with different permission.

# mount -t ntfs /dev/sda1 /mnt -- Mount a NTFS (Default - Read Only)

# umount /mnt/test1 -- Unmount the file system from /mnt/test1.

Read : man mount, fstab

Bye :)

--=20
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org=20
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze
---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts: