mount /var from hd during booting & disable autologin
Daniel Baumann wrote:
> Damian Lubosch wrote:
>> I want to build a web-server which runs its system from CD (with "toram"
>> option) but stores its data on /var. Thus I need to exchange the live-cd
>> /var by my harddisk's /var during boot. I want to have persistent log
>> data and a persistent database, of course. I plan to using an
>> empty/prepared/just-for-this-purpose harddisk. I can even copy all
>> contents from the live-cd-var to hdd-var, no problem. I just want it to
>> take the hdd-var after one-time initialization.
> by FHS, you would store your document root in /srv/$whatever anyway, so
> i would rather mount your hdd partition as /srv, and not as /var.
I know. Debian usually uses /var/www which I do not really care. I can
even have the webserver pages (*.php) on the CD.
My biggest concern is to keep the database, logfiles, and a few other
files persistent. I thought, the easiest would be to have /var/ on the hdd.
I will try now to move the database and the logs to a different
directory which I will mount during the boot process.
I just thought that there would be a designed way for this.
>> The easiest way would be just to add to the auto-generated-fstab
>> /dev/sda1 /var auto 1 0 but I do not know where to add it.
> give me a few minutes for that, i'll fix something in svn and let you know.
Ok, Thanks, I am looking for it :-)
>> Other topic I am trying to "trick out" is the auto-login. I found in
>> Gmane's archives that it gets set in /etc/inittab. But where is it set?
>> I want a proper login please. (It'll be a server)
> use 'noautologin' boot-parameter in live-initramfs.
Exactly what I was looking for. Thank you!