Mounting a LinuxLink Classic Root Filesystem

Under Linux, mounting filesystems of any type is performed with the mount command. Even if you are intending to copy the RFS to flash, you probably want to mount it via NFS first.

After you boot Linux on your target and log in, issue the following commands:

# mkdir <mount_point> 
# mount <server_ip>:<export_dir> <mount_point>

where:

  • <server_ip> is the IP address of the NFS server (generally your host)
  • <export_dir> is the full path to the directory that contains the RFS
  • <mount_point> is the name of the directory in your target filesystem. The RFS will appear in this directory after it is mounted. By convention, it is created as a subdirectory of /mnt.

Note

The <mount_point> directory must exist before you give the mount command, or the mount command will fail.

For more information on mount options, type man mount or mount --help on the command line.

In the following example, the server IP address is 122.0.0.10 and the RFS is contained in /opt/timesys/linux/6.2/mipsisa32r2-std/rfs.

# mkdir /mnt/nfs
# mount 122.0.0.10:/opt/timesys/linux/6.2/mipsisa32r2-std/rfs /mnt/nfs

The DHCP and NFS services must be reconfigured and restarted on your host, as described in Configuring a Linux Host System and Configuring a Windows/Cygwin Host System. Make sure the new IP address is included in your /etc/exports file, and change the directory in the /etc/dhcpd.conf file to the new <export_dir>. You can then access the <mount_dir> after you boot your target; in the previous example, you would use the cd /mnt/nfs command.