Difference between revisions of "Mounting devices"

From Alessandro's Wiki
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== /etc/fstab ==
== /etc/fstab ==


Line 6: Line 4:




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


== mount ==
== mount ==


* this command will show the current mounted partitions:
* the command called without parameters will show the current mounted partitions:
 
  mount  
  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 attach a partition to the unix filesystem this could be a command '''(as root)'''
* to mount an ntfs partition ''(run as root)'', [[tiao]]
 
mount  -t ext2      /dev/sdb5 /mnt/disk2
 
''verbe'' ''part type'' ''from'' ''to''

Latest revision as of 19:42, 14 April 2011

/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