Finding the UUID of a drive to mount on Linux

Tags:

$ <strong>tune2fs -l /dev/sdc2</strong>
tune2fs 1.35 (28-Feb-2004)
Filesystem volume name: root
Last mounted on:
Filesystem UUID: 7d99ac7d-9fc5-42ea-8f47-f2fb92b6b8de

...

and then in /etc/fstab you can specify a mount-point, for example:

UUID=7d99ac7d-9fc5-42ea-8f47-f2fb92b6b8de /home           ext4    defaults        0       2

Refresher on NFS exporting

Tags:

on the server, in /etc/exports:

`

/home/somedirectory * 192.168.1.0/24 * (no_root_squash,rw,nohide) `

then after editing /etc/exports, refresh the NFS server with:

`

/sbin/exportfs -a

`