LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   problem with fstab (https://www.linuxquestions.org/questions/linux-hardware-18/problem-with-fstab-731216/)

Mogli 06-07-2009 04:00 AM

problem with fstab
 
Hello friends I am working on Fedora 10...

In my system there two vfat drives. Their default mounting point is /media/.... But I want to mount them in different directory. I tried to edit /etc/fstab. But it not showing my drives in that file. it means there is another file which manages these drives.

/etc/fstab content is:
PHP Code:

[root@OS sharath]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Fri Apr 10 06:20:53 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=14a1fbc4-2e3c-40a6-a4d8-f3ba25c2dbd2 /                       ext3    defaults        1 1
UUID
=497721b2-7431-4919-9cde-64837782a807 /home                   ext3    defaults        1 2
tmpfs                   
/dev/shm                tmpfs   defaults        0 0
devpts                  
/dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   
/sys                    sysfs   defaults        0 0
proc                    
/proc                   proc    defaults        0 0
UUID
=7729c199-169f-4fc6-92b7-606f2b5e066b swap                    swap    defaults        0 0 

Please help me to solve it...
Thanks in advance....

camorri 06-07-2009 04:56 AM

If you want to change the mount point of a partition, you need to do two things.

Make a new mount point. This is simply a empty folder where you want the partition mounted.

The second is to edit the fstab file as root, and change the mount point there. Then run as root the mount command.

What you have posted does not show any vfat partitions. Could you post them?

David the H. 06-07-2009 05:09 AM

Since there's nothing in fstab, your drives are probably being controlled by your system's automounting system. Automounting is usually designed for usb flash-drive type devices, and dynamically creates and destroys mountpoints under /media. Nowadays fstab is mostly used for larger, permanently mounted drives and network shares.

Distros use different kinds of automounting systems, and I don't know how Fedora does it (heck, I'm not even sure how Debian does it :)). But usually, if you put a line for the drive in fstab then it will override the automounter. But if you don't want to consider these "permanent" drives, you'll have to research how to change Fedora's automounting settings.

Mogli 06-07-2009 12:32 PM

Thanks David the H,
This is the information what I want,

If anybody know, how automount working in fedora, please let me know...

Mogli 06-07-2009 03:35 PM

Hello friends,
In fedora, drive ICONs on desktop are default. Suppose I don't want drive icons on desktop or I want to rename that drive on desktop, how to do it.........????

John VV 06-08-2009 01:11 AM

to get ride of the icons use fstab to mount them
fstab will override the "automount"
for example for a Fat32 ( ick i dislike that format-- it was good in 1995)
-- i am assuming that the two partitions are on the FIRST drive and that it has MS Windows ? on it
and that you have made the two folders ( fat1,fat2)

------------ fstab ------------
Code:

??? stuff ???
sysfs                  /sys                    sysfs  defaults        0 0
proc                    /proc                  proc    defaults        0 0
UUID=7729c199-169f-4fc6-92b7-606f2b5e066b swap                    swap    defaults        0 0 
/dev/sda2    /mnt/fat1          vfat        defaults        0 0 
/dev/sda3    /mnt/fat2          vfat        defaults        0 0 


Mogli 06-08-2009 01:50 PM

Thank you very much it is working well.....


All times are GMT -5. The time now is 06:46 AM.