Personal tools

Difference between revisions of "Mount"

From MohidWiki

Jump to: navigation, search
 
m (1 revision)
(No difference)

Revision as of 11:38, 3 December 2008

Mount allows to setup USB drives, floppy drives, zip drives etc ...

Permanent mount

To permanently mount partitions one should edit the /etc/fstab file as root. Here's a sample /etc/fstab file:

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda6       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda7       none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

# my NTFS Windows XP partition
/dev/hda1       /mnt/WinXP      ntfs        ro,defaults             0 0

# my files partition shared by windows and linux
/dev/hda5       /mnt/shared     vfat        umask=000               0 0

Example

> mount -t vfat /dev/sda5 /mnt/fathdd

mounts a fat32 partition.

> mount -a

calls fstab without the need for rebooting the system.

External References