Can 'tfind/mntin/etc/fstab error solution

Source: Internet
Author: User
I am still busy with botron recently. I encountered the above problem during nfs mounting today. Cantfind/mntin/etc/fstab when I'm executing the mount-t192.168.1.50:/tftpboot/arm/mnt-onolock command. Then I change the mount point, and the error becomes the mount point cantfind. Let's talk about how to solve the problem first. In/etc/fstab

I am still busy with botron recently. I encountered the above problem during nfs mounting today.

Can't find/mnt in/etc/fstab

When I run the mount-t 192.168.1.50:/tftpboot/arm/mnt-o nolock command.

Then I change the mount point, and the error becomes the mount point cant find.

Let's talk about how to solve the problem first.

Add the following sentence under/etc/fstab:

192.168.1.50:/tftpboot/arm mnt nfs ULTS 0 0

The above is the directory to be mounted on your host.

Let me explain it.

I have mounted nfs many times, focusing on whether the development board host can be pinged and whether the host nfs server is installed.

I have also thought about why I sometimes mount it to/mnt, or mount it to/home. However

If you encounter any problems, you will not go into detail. But now I think the reason why the original nfs mounting was successful may be in the root file system

Mount-a, a command in/etc/init. d/rcS, is related to mount all.

Mount-a means to mount all the items in the fstab directory. My file system has two commands.

None/tmp ramfs defaults 0 0

None/var ramfs defaults 0 0

These two statements are not found out. my understanding is:

The file format of the none directory mounted to/tmp is ramfs configured as ULTS ults, but none should refer to any Directory. there is no theoretical basis here, just a conjecture.

Interestingly, I don't even know why the original nfs mounting is good. If a friend knows this. Thank you very much for leaving me a message.

I spoke a few digression words and then the above questions.

Who will determine where nfs is mounted? What is the form of mounting?

/Etc/fstab

Let's take a look at the fstab directory.

Fstab (/etc/fstab) is an important configuration file in Linux. It contains detailed information about the file system and storage devices mounted at startup.

This statement clearly states that fstab is dedicated to developing the Mount mode and information.

Let's give an example.

This is the fstab file on my machine:
LABEL = // ext3 defaults 1 1
LABEL =/boot1/boot ext3 defaults 1 2
Tmpfs/dev/shm tmpfs defaults 0 0
Devpts/dev/pts devpts gid = 5, mode = 620 0 0
Sysfs/sys sysfs defaults 0 0
Proc/proc defaults 00
LABEL = SWAP-sda11 swap defaults 0 0
/Dev/sda6/mnt/winE vfat defaults 0 0
/Dev/sda8/mnt/winG ntfs defaults 0 0

The first column is the file system to be mounted, storage devices, or directories to be mounted.

The second column is the mount point.

The third column is the file system or partition type (in fact, the partition type is the file system)

The fourth column is the form of mounting, such

Rw read/write auto mounting Ro read-only and other parameters.

However, the most common one is ULTS ults.

ULTS is a combination of rw, suid, dev, exec, auto, nouser, and async.

Column 5 is the "dump" option, which specifies whether to allow the backup program to dump the backup file system. if the value is 0, the file system is ignored, and if the value is 1, the file system is backed up.
Column 6 is the fsck option, indicating the sequence in which the fsck program checks the file system. 0 is ignored.
'/Etc/fstab' has several functions:

Determines which media is automatically mounted at startup;

Specifies the options and loading points for each media mount;

The system is used to mount several virtual file systems.

Mount media at startup

By default, all media listed in 'fstab' will be mounted at startup. If an error occurs in a media set, 'mount' displays the error message and continues the next object. Note that this is also valid for network media such as NFS or SMB sharing. If you want to cancel automatic mounting at startup, you must provide the 'noauto' option for the corresponding entry in '/etc/fstab.

Specify mounting options and loading points

The 'mount' command has two options: General options and special options for the file system.

Special options are applicable to specific file systems. If you provide a special option for an entry in 'fstab ',(For example, umask = 0 for Windows FAT file system)Only the media of the corresponding file system can be mounted through this entry. If you want to mount the media of another file system, either set the option or create a separate entry.

It is advantageous to specify the loading point. you can omit the file name of the device when mounting/detaching.

MountMount_point

In '/etc/fstab', find the entry of the corresponding loading point and mount it according to the preset settings.


 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.