|
From: Bruce S. <bw...@ar...> - 2003-10-10 17:10:34
|
> >I'm building a server out of Linux for the first time. > >What's the best way to mount a local hard drive on DL? > >I can't just add a entry for the HDD in fstab to mount > >it under /var since /var gets mounted elsewhere, can I? > > http://www.devil-linux.org/newdoc/ch01s04.html > Everything is prepared to use LVM and pre-defined mount points. Before reading this email, I tried the following: fdisk /dev/hdb mkreiserfs /dev/hdb1 mount /dev/hdb1 /mnt cd /mnt ; tar xjpf /config/var.tar.bz2 mv var/* . ; rmdir var echo "/dev/hdb1 /var reiserfs rw 0 0" >> /etc/fstab cd; umount /mnt shutdown -r 0 And it worked! I wasn't sure it would work since /var is a symlink, but that didn't matter. It mounted my HDD in /shm/var and works fine! > >Speaking of custom things like this, someone ask about > >a "rc.local" where a user could put their own commands > >to be run on boot. This sounds like a good idea to me. > >(beats putting commands in my firewall.rules scripts > >like I've been doing :) > > > >Is a "rc.local" the place for the mounting a HDD at /var ? > > As Diego wrote in his email, just add *your* custom script. > Take /etc/init.d/skeleton as the base. Yeah, but that's a pain, just to add a boot command or two. I recommend we add a empty "/etc/init.d/rc.local" file that gets run at the end of all the startup scripts. (or one before the end, if grsecurity has to be the very last one) Do you care if I add it? - BS |