Monday, January 11, 2010

Auto Mounting Partitions in UBUNTU 9.04 at startup

In the root directory there is file called fstab in etc directory.This file is responsible for mounting various partitions in to your OS. By editing this we can mount all sorts of partitions, whether it be windows partition or linux .

  1. Applications ->Accessories -> Terminal
  2. Type "sudo gedit /etc/fstab ".Hit enter.
  3. Now a text file opens. We have to add some lines to this file . For mounting a partition we need to create a folder for that . Let us create a folder called vol1 (you can give any name) in /media.
  4. Now find the partition which you have to mount. Let us mount /dev/had5 .For mounting this line to the fstab file " /dev/hda1 /media/vol1 vfat defaults 0 0 "
  5. Then save the changes you made to this file and close this .
  6. Now you may restart your system and will find your partition getting mounted at the start up.
  7. In a similar way you can mount all partitions . You will have to create separate folders for each partitions .If you want to mount ntfs filesystem replace vfat by ntfs. Also replace hda1 with your partition.


0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | coupon codes