Mounts a file system in Acronis Linux
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 a device to the big file tree. Conversely, the umount (Acronis Linux Command) will detach it back.
The standard form of the mount command is the following:
mount -t type device dir
This tells the kernel to attach the file system found on the device (which is of type type) at the dir directory. The previous contents (if any), owner and mode of dir become invisible, and as long as this file system remains mounted, the pathname dir refers to the file system root on the device.
mount [flags] DEVICE NODE [-o options,more-options]
Mount a file system. Autodetection of file system type requires the /proc filesystem to be already mounted.
- -a: Mount all filesystems in fstab
- -f: "Fake" - Add entry to mount table but do not mount it
- -n: Do not write a mount table entry
- -o option: One of many file system options, listed below
- -r: Mount the file system in read-only
- -t fs-type: Specify the file system type
- -w: Mount for reading and writing (default)
Options for use with the -o flag:
- async/sync: Writes are asynchronous/synchronous
- atime/noatime: Enable/disable updates to inode access times
- dev/nodev: Allow/disallow use of special device files
- exec/noexec: Allow/disallow use of executable files
- loop: Mounts a file via loop device
- suid/nosuid: Allow/disallow set-user-id-root programs
- remount: Remount a mounted file system changing its flags
- ro/rw: Mount for read-only / read-write
There are even more flags that are specific to each file system. You will have to see the written documentation for those file systems.
/dev/hda3 on / type minix (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)
$ mount /dev/fd0 /mnt -t msdos -o ro
(!) Please also note that you can mount network share using the mount command:
# mount -t cifs -o usename=<username>,password=<password> //hostname/sharename <mount point>
Please make sure that you have the network set up before running the above command. If you have a DHCP server running, you can use the following command to get an IP address from DHCP server:
# asamba dhcp -n
See also Acronis Linux Commands.