HD Install :: Mounting /dev/hdaX at boot time...
I will give that a go soon...
I can't see a frugal install being good on a computer that 166mhz and 64megs of ram... that is going to be running apache, mysql, php, xmms and icecast without upgrading the ram...
Unless there is a trick to making it take up no extra ram for being a frugal install.
EDIT: Also maybe a wiki page on Frugal installs? I don't even know exactly what they are other than they are like running DSL off the CD.
in your boot line (grub or lilo) add the nofstab code and your fstab will remain persistent so any changes you make manually will last. The fstab gets rebuilt everytime unless you put in the nofstab. You could also put it in bootlocal.sh as mount commands but using the nofstab will stop all changes to your fstab file from being lost.
EDIT: almost forgot that you need to tell the system when to mount the partitions.
One of my lines in fstab is:
/dev/hda7 /home ext2 defaults,users,exec 0 2
If there was a 0 where the 2 is at the end it would not get mounted automatically at boot up. The 2 tells it in which order to mount the partition. 1 is used for the root partition which looks like this on my install:
/dev/hda6 / ext2 defaults,errors=remount-ro 0 1
Yours would look something like:
/dev/hda2 /mnt/hda2 ext2 defaults,users,exec 0 2
/dev/hda3 /mnt/hda3 ext2 defaults,users,exec 0 2
or
/dev/hda2 /mnt/hda2 ext2 defaults,users,exec 0 2
/dev/hda3 /mnt/hda3 ext2 defaults,users,exec 0 3
Oh I see, So I need to set that last number to 2 and I shouldn't have any more issues with that? You, my sir, are a genius! (I mean that honestly, not sarcastically.)
Well, after some more indepth research, turns out brianw is wrong about the last number being the mount order... that number is the order that fsck is ran on the partitions.
http://humbug.org.au/talks/fstab/fstab_man.txt
I was looking through the scripts in /etc/rcS.d and I didn't see anywhere that mount -a is mentioned (the command to mount all the of the drives to the points specified in /etc/fstab) so it is looking like I will have to add a script to that directory to make it work...
Sorry about that. I know everything works for me and I have no problems at startup. You could try putting a single line in /opt/bootlocal.sh:
mount -a
mounts all devices in fstab, this should solve your problem.
In my palying around with my HD install I must have made other changes to make it work and didn't realize (must have the mount -a in somewhere else). Thanks for the correction, constructive critisism helps us all learn.
EDIT: found my mount -a. Stuck it in knoppix-autoconfig to work with the nofstab code (did it when I added a code to not regenerate ld.so.cache and modules.dep unless I explicitely request it on bootup and forgot all about it).
Next Page...
original here.