Popular
Latest Articles
- How to Secure your Cisco Router
- Creating CLI Views on a Cisco Router
- Configuring TACACS+ on a Cisco Router
- How to enable SDM on your router
- Build a Samba Server on Redhat / CentOS
- How to set the Time / Date and Timezone in CentOS
- How to install SSH on Solaris 10 x86
- ESX4 - How do I turn on/off a Virtual Machine from the command line ?
UNIX - Mounting a partition in Linux
Monday, 18 August 2008 21:14
In order to mount a hard drive we need to add an entry to the file /etc/fstab. This entry will allow us to not lose our drive mounting after a system reboot.
/dev/sdb1 /mypartition ext3 defaults 0 0
Then to action the changes run the following command,root@server:/# mount -a
Finally check that the drive is now mounted..
root@server:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 8.8G 3.5G 4.9G 42% /
/dev/sdb1 182G 104G 69G 61% /mypartition
We have 16 guests online