By liran bh | 5/16/2016 | Linux Commands & Scripts

Useful mounting options

In Embedded linux development process it is very common to create a mount points from target to host and between hosts. some useful commands

mounting NFS file system:

the nfs server name is NFSSERVER and its IP address is:
the server directory is /opt/files and it is configured with permissions on the server (/etc/exports file). also the client added the server IP and name to its /etc/hosts file.

# mkdir /mnt/nfsserver
# mount -t nfs NFSSERVER:/opt/files /mnt/nfsserver

if you cant configure the server name on /etc/hosts file you should use the IP address:

#mount -t nfs /mnt/nfsserver

mounting Windows system

the windows workstation is WINWS with ip:
make sure SAMBA daemon(service) is running on your linux system - depends on your distribution.

# mkdir /mnt/windows
# mount -t smbfs -o username=winuser,password=pass // /mnt/windows


  • If you get an error try cifs instead of smbfs 
  • sometimes (IT reasons) it is working only with the server name (not IP address) and sometimes only with IP so try both if you have problems

Loop mount image file

# mount -o loop file.img /mnt/image

mount USB disk on key

# mount /dev/sda1 /mnt/usb

for more options and situations see man pages

{{CommentsModel.TotalCount}} Comments

Your Comment


Recent Stories

Top DiscoverSDK Experts

User photo
Ashton Torrence
Web and Windows developer
GUI | Web and 11 more
View Profile
User photo
Mendy Bennett
Experienced with Ad network & Ad servers.
Mobile | Ad Networks and 1 more
View Profile
User photo
Karen Fitzgerald
7 years in Cross-Platform development.
Mobile | Cross Platform Frameworks
View Profile
Show All

Compare Products

Select up to three two products to compare by clicking on the compare icon () of each product.


Now comparing:

{{product.ProductName | createSubstring:25}} X
Compare Now