Mount a device in linux
Devices can be easily mounted in linux using mount command. Lets check how to do it. First, open the terminal and list the devices using fdisk command. Like below:
Above command will list the connected devices like /dev/sda1, /dev/sda1 and so on. Then if you want to mount any one of the device, say /dev/sda2, you have to give the mount command as following:
The device is mounted in the directory /mnt/ . You can mount the device in any directory just like /mnt/
fdisk –l
Above command will list the connected devices like /dev/sda1, /dev/sda1 and so on. Then if you want to mount any one of the device, say /dev/sda2, you have to give the mount command as following:
mount /dev/sda2 /mnt/
The device is mounted in the directory /mnt/ . You can mount the device in any directory just like /mnt/
Comments (0)