1. Login as root by running from a terminal
su
followed by typing the root password.
2. Create a directory in your /mnt folder. This can be done by running
mkdir /mnt/X
where X is the name of the directory where the fat32 partition will be mounted.
3. Run
fdisk -l
and note the name of the device file for the FAT32 partition. Lets say the device file name is found to be /dev/Y.
4. Open the file /etc/fstab in any text editor.
5. On a new line at the bottom of the file, add the line
/dev/Y /mnt/X vfat users,owner,ro,umask=000 0 0
where Y is the partition number of the Fat32 partition and X is the name of the directory you created in step 2. Note that this will allow ALL users READ ONLY access to the disk. To allow Read and Write access to ALL users, change the ro to rw. If you want only root to have Read and Write access (while other users have READ ONLY access), change the ro to rw and umask=000 to umask=022.
6. Save and quit the file /etc/fstab
7. Then run
mount -a
and your hard disk will be mounted and will stay mounted after reboot.
|