Linux: mount command

Use the following code as an example:

mount -t ext2 /dev/sdb5 /mnt/rep
mount -t ntfs /dev/sdc5 /mnt/usb1

#for FreeAgent:
mount -t ntfs /dev/sdd1 /mnt/usb2
#for Western Digital:
mount -t ntfs /dev/sdc1 /mnt/usb2

Other useful commands:

[root@K8H6B1 nista]# cat /etc/fstab
# Entry for /dev/sda1 :
UUID=f9520053-cac5-4085-9da4-1eac2e9374e1 / ext4 relatime 1 1
# Entry for /dev/sda6 :
UUID=4c38870d-373e-4582-8160-bfd39e801494 /home ext4 relatime 1 2
/dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=e54254da-913e-492e-9a0e-ff01b55ba509 swap swap defaults 0 0

[root@K8H6B1 nista]# cat /etc/mtab
/dev/sda1 / ext4 rw,relatime 0 0
none /proc proc rw 0 0
/dev/sda6 /home ext4 rw,relatime 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
/dev/sdb5 /mnt/rep ext2 rw 0 0
gvfs-fuse-daemon /root/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev 0 0


Leave a Reply