Categories
Info

The mount Command

Here some basic uses of mount command I am writing this since more 50% of my traffic is coming from key word mount -t vfat…..

mount command is used to mount file system in linux so that can is accessible for read and write (only possible for root as far as i know., to mount with write permissions for users you have to enter specific lines in the /etc/fstab file) operations.

Remember every thing in linux is treated as a file, be it a floppy or directory or a file system How to mount a floppy

$mount /dev/fd0 /mnt/floppy

how to mount a cdrom

$mount /dev/cdrom /mnt/cdrom

how to mount a vfat or fat32 partition

$mount -t vfat /dev/vfat-partition /mnt/folder_in_which_you_want_to_mount_it

& how to see the parition number? enter the following command

$fdisk -l

or

$/sbin/fdisk -l

and you will see the partitions listed see here everything is a directory. if you enter

$mount all

all partitions will be mounted according to the details given in the fstab for mounting ntfs partitions you have to download ntfs-3g drives (they also support write acces :) and use the following command to mount ntfs drives

$mount -t ntfs-3g /dev/your-ntfs-partition /mnt/folder_in_which_you_want_to_mount_it

if you want your ntfs partition to be mounted on boot add the following lines to /etc/fstab file

/dev/sda1 /mnt/windows ntfs-3g defaults 0 0

If you want your fat32 partition to be mounted during boot refer this

Please refer mount manual for more information…