Mounting devices

From Alessandro's Wiki

/etc/fstab

  • in Linux/Unix system the most important file containing informations about partitions, hard disks and all drives is /etc/fstab


  • some options:
    • relatime
    • errors=remount-ro
    • auto
    • defaults
    • ro
    • rw
    • users
    • gid=
    • uid=

mount

  • the command called without parameters will show the current mounted partitions:
mount 
  • to do a mount action, specify:
    mount -t "filesystem type" device destination-directory
  • to mount an ext2 partition (run as root), tiao
mount  -t ext2 /dev/sdb5 /mnt/disk2
  • to mount an ntfs partition (run as root), tiao