Happy FOSS

Opensource, Technology, Programming & Computer Science

Meaningful mount point names

I renamed mount points from the usual conventions of hda1 hda2 etc.
If one has to make changes about the mount point changes in /etc/fstab file.
To edit this file, one has to be root.

Before, my mount points used to be
/mnt/hda5 for /dev/hda5
/mnt/hda4 for /dev/hda4

Now they are more meaningful like
/mnt/dev for /dev/hda5
/mnt/backup for /dev/hda4

The fstab file looks like below
# /etc/fstab: static file system information.
proc /proc proc defaults 0 0
/dev/hda6 / ext3 errors=remount-ro 0 1
/dev/hda7 /home ext3 defaults 0 2
/dev/hda3 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hda1 /mnt/hda1 ext3 rw 0 0
/dev/hda5 /mnt/dev ext3 rw 0 0
/dev/hda4 /mnt/backup ext3 rw 0 0

Once the editing the file is done. Just execute the following commands to umount and mount the partitions. make sure to save and close all applications before executing the below commands.
sudo /etc/init.d/umountfs stop
sudo /etc/init.d/mountall.sh

December 6, 2009 Posted by | FOSS, Linux | , , , | Leave a comment