LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-07-2009, 04:00 AM   #1
Mogli
Member
 
Registered: Jun 2008
Posts: 41

Rep: Reputation: 15
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....

Last edited by Mogli; 06-07-2009 at 04:01 AM.
 
Old 06-07-2009, 04:56 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
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?
 
Old 06-07-2009, 05:09 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.
 
Old 06-07-2009, 12:32 PM   #4
Mogli
Member
 
Registered: Jun 2008
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks David the H,
This is the information what I want,

If anybody know, how automount working in fedora, please let me know...
 
Old 06-07-2009, 03:35 PM   #5
Mogli
Member
 
Registered: Jun 2008
Posts: 41

Original Poster
Rep: Reputation: 15
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.........????
 
Old 06-08-2009, 01:11 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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  
 
Old 06-08-2009, 01:50 PM   #7
Mogli
Member
 
Registered: Jun 2008
Posts: 41

Original Poster
Rep: Reputation: 15
Thank you very much it is working well.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab problem Complicated Disaster Linux - Software 2 07-13-2008 09:53 AM
[SOLVED] fstab problem unkie888 Linux - Software 5 08-10-2007 12:16 PM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
fstab problem kponenation Slackware 3 05-22-2006 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration