Re: mount error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Helmut Hullen wrote:
Hallo, Bruce,

Du meintest am 07.09.14:

I have a user that complains that mount is giving an incorrect error
message under some circumstances.  For instance if mtab is symlinked
to /proc/self/mounts the command and /run is not in fstab:

$ mount /run

returns an error message:

    mount: /run: No such file or directory

However if mtab is a regular file, the error message is:

    mount: can't find /run in /etc/fstab

It would be appropriate if both situations could return the 2nd
message.

There's no need to put the device into a special line in "/etc/fstab".

         mount /dev/sdxn /run

should always work, with the appropriate values for x and n.

Unless your script does not know what x or n are in advance.

Actually I followed up my original post and said the it was invalid.

  -- Bruce
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux