Saturday, 21 June 2014

Fstab notes

Coupla handy fstab commands for the next time a hard drive blows up.


To list UUIDs of attached drives:
sudo blkid

To list all drives attached to the system:
sudo fdisk -l
(that's a lowercase L, not a one)

To edit fstab:
gksu gedit /etc/fstab

To enact changes you've just made to fstab:
sudo mount -a

To see what devices are currently mounted (will include stuff other than drives)
mount