Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I added the following line to the /etc/rc.local and now it works
Code:
>cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Mount all mounts that are not already mounted at boot process (CIFS mounts)
mount -a
exit 0
But I don't like it as it is just a fix for something that should already work.
I checked dmesg log, but I just don't see anything suspicious.
You are mounting the partitions in the wrong order. You are mounting /home on pass 2 and you are mounting /home/someuser/mnt/download on pass 0. When you try to mount /home/someuser/mnt/download /home has not been mounted yet so it is impossible to mount /home/someuser/mnt/download.
mount -a works because at that point /home has already been mounted and /home/someuser/mnt/download can be mounted.
Add a pass number of 3 to the /home/bob/mnt/download and it should work without needing the mount -a
I tried your suggestion, but it does not have any effect at all. It still doesn't mount at boot.
I also don't understand about "passing order" at boot time you were talking about. A fstab manual says
Quote:
The fifth field, (fs_freq), is used for these filesystems by the dump(8) command to determine which filesystems need to be dumped. If the fifth field is not present, a value of zero is
returned and dump will assume that the filesystem does not need to be dumped.
The sixth field, (fs_passno), is used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time. The root filesystem should be specified with a
fs_passno of 1, and other filesystems should have a fs_passno of 2. Filesystems within a drive will be checked sequentially, but filesystems on different drives will be checked at the
same time to utilize parallelism available in the hardware. If the sixth field is not present or zero, a value of zero is returned and fsck will assume that the filesystem does not
need to be checked.
So I don't see any meaning of last two fields used in boot order. One is used by dump and the other by fsck utility which just checks the disk integrity.
I tried your suggestion, but it does not have any effect at all. It still doesn't mount at boot.
I also don't understand about "passing order" at boot time you were talking about. A fstab manual says
So I don't see any meaning of last two fields used in boot order. One is used by dump and the other by fsck utility which just checks the disk integrity.
Regards,
Mount tries to mount every entry in fstab simultaneously. That won't work when the mounts are dependent on each other. So the last number groups mounts into the order in which to mount. You need to mount /, /home, and /home/bob/mnt/download in that order. Your original fstab said to mount / and /home/bob/mnt/download simultaneously and then mount /home later. By changing the /home/bob/mnt/download to pass 3 then you should mount /, /home, and /home/bob/mnt/download in that order.
That was definitely a problem with your fstab. If fstab still doesn't work then there must be some additional problem that I don't see.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.