RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

mount

Article Index
1. Name
2. Synopsis
3. Frequently used options
4. Examples

1. Name

mount [man page] - mount a file system

2. Synopsis

mount [-lhV]

mount -a [-fFnrsvw] [-t vfstype] [-O optlist]
mount [-fnrsvw] [-o options [,...]] device | dir
mount [-fnrsvw] [-t vfstype] [-o options] device dir

3. Frequently used options

-t     vfstype The  argument following the -t is 
used to indicate the file system type.The file 
system types which are  currently  supported 
include:adfs,  affs,  autofs,  coda, coherent, 
cramfs, devpts, efs, ext, ext2, ext3, hfs, hpfs,
iso9660,  jfs,  minix,  msdos, ncpfs,  nfs,  
nfs4, ntfs, proc, qnx4, ramfs, reiserfs, romfs,
smbfs, sysv, tmpfs, udf, ufs, umsdos, usbfs,
vfat,  xenix,  xfs, xiafs.
-o     Options are specified with a -o flag
followed by a  comma  separated  string of options. 

4. Examples

Check your partitions with command:

fdisk -l 

Lets mount our /dev/sdb1 disk partition with ext3 filesystem to mount point /mnt/sdb1:

mkdir /mnt/sdb1
mount -t ext3 /dev/sdb1 /mnt/sdb1

mount disk partition with ext3 filesystem
we can now use -o remount option to remount it with read only permitions only:

mount -o remount,ro /dev/sdb1 

re-mount disk partition with ext3 filesystem read-only
To mount it back with read & write permitions:

mount -o remount,rw /dev/sdb1 

re-mount disk partition with ext3 filesystem write

With mount command we can mount all kinds of filesystem. For example to mount ISO image we can do:

mount -t iso9660 myiso.iso /mnt/cdrom -o loop 

ISO image is now available from /mnt/cdrom direcotry.

Share this linux post:

Submit mount in Delicious Submit mount in Digg Submit mount in FaceBook Submit mount in Google Bookmarks Submit mount in Stumbleupon Submit mount in Technorati Submit mount in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download