brianw
Group: Members
Posts: 245
Joined: Sep. 2005 |
|
Posted: July 31 2006,01:54 |
|
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
|