Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have three directories I would like to mount when the system boots up. I tried to add them in the fstab but I am having alot of trouble. The system keeps telling me that it is write-protected mounting read-only.
Out of desperation I set each of the original directories to root:root and 777. But that didn't help.
When I wait and do this from a terminal as root I have no problem.
One other unrelated curiosity that started well before all of this.
When booting I see
FATAL : ERROR acpi-cpufreq (lib/moduless/2.6.28-1.2798.fc6/kernel/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.ho) no such device.
Cpufreq controls throttling the processor, so it's primarily for laptops. That message should just mean cpufreq couldn't find a cpu that it can work with.
The other problem I'm afraid I don't know about. I've seen it before, on a PCLinuxOS .92 load, but I never fixed it before I changed distros.
What are /var/www/html, /fileserver/ftp and /fileserver/Projects?
Are they just directories that you want a link, or shortcut if you will, to in home directory?? If so I don't think you can do that. Reading the fstab man page here it appears the first parameter in fstab needs to either be a block device, i.e. /dev/hda2 or an NFS filesystem sitting on a server.
Are you sure the /fileserver lines shouldn't be something like "fileserver:/ftp" instead of "/fileserver/ftp"??
If you just want a link to /var/www/html/ in your home directory use 'ln -s <src> <dest>', i.e. 'ln -s /var/www/html ~/WebServer'
Thanks Somnium, I go the acpi_cpufreq resolved I found a thread on another board talking about something similar that cleared up when he updated his kernel. I did that this evening and I am flying high with out the error.
Micky, I am still working on the mounting issue. I originally tried the softlink but I have chroot enabled on my ftpserver and I wanted to be able to access those locations from ftp. In that scenario the only thing I have found thus far is a bind.
You asked what are /var/....
from mount:
/dev/hdb1 on /fileserver ext3
/dev/hda2 on /var ext3
/var/www/html ofcourse is my Web directory
/fileserver/ftp is the root directory for the FTP Server
/fileserver/Projects is a directory I setup to store all of the software or graphics projects I work on.
And once I figure out how to do this properly I was going to setup a directory off of /fileserver for documents.
Well it took a little bit of time but I found it. To bind from one dir to another from fstab
Quote:
/original_location /new_location bind bind 0 0
Notice the bind in the spot for type. I found this in someones Jan 2003 change log. Google is a good thing! You just may have to dig for a little while.
Hey fotoguy,
I almost understand about the mounting points being correct. But is there something wrong with the way that I did the bind for those directories? If there is I have no qualms with changing it. I am no guru, I just know enough to be dangerous.
Hey fotoguy,
I almost understand about the mounting points being correct. But is there something wrong with the way that I did the bind for those directories? If there is I have no qualms with changing it. I am no guru, I just know enough to be dangerous.
OK I can see now what you are doing by your fstab, mounting a directory to another directory. Unfortunately I have never used bind in the fstab before, so I cannot say where this is the right or wrong way to go about it, nor have I mount two directories together.
But since your having read/write errors, when you mount to directories you now have permissions on both directories to contend with, plus mounting options that can also effect read/write on files and directories.
Since only root can create directories on the root filessystem /fileserver will have root as owner and group, and user john will be owner and what ever the group is that he is part of.
While root has complete control of the system, even the normal user
permissions can effect root. Since devices are usually owned by root, and the mount points are owned by root there is normally no problems with mounting. But now your trying to mount to a normal users home directory, the permissions difference maybe causing mount to mount only as read-only.
Actually everything is working since I added the bind type.
I had root add a subdirectory under "/fileserver" and then did a chown to the user on that subdirectory. So everything is golden now. Thanks for your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.