Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 01-31-2013, 11:09 PM   #1
Registered: May 2010
Posts: 354

Rep: Reputation: 34
fstab and fedora 17

If I put an entry in fstab should fedora 17 mount a partition for me at boot time?

I see a number of traditional things have changed in recent fedora's.

I put this line in fstab and it is not mounting my partition

/dev/sda3 /media vfat defaults 1 2

do I have an error?
Old 02-01-2013, 12:27 AM   #2
Registered: Jul 2012
Distribution: Ubuntu
Posts: 193
Blog Entries: 3

Rep: Reputation: 23
First of all create a folder in /media like 'new' and use it /media/new.

Run the command -

# mount -a

and see if it gives any errors.
1 members found this post helpful.
Old 02-01-2013, 03:48 AM   #3
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,893

Rep: Reputation: Disabled
you can not mount a partition directly to " / "
SELinux will stop it

that is a fat ? what ? fat32 partition ?

add a folder to /mnt ( mnt IS the preferred place in fedora )
the /media folder is used for AUTO mounting of dvd's , cd's usb-drives,...

su -
mkdir /mnt/
cd /mnt
chown ????:users
------ note replace ???? with YOUR user name !!! ------

then add to fstab
/dev/sda3 /mnt/ vfat defaults 1 2

that partition should auto mount and be in the left window on Nautilus
listed a a partition by it's size
1 members found this post helpful.
Old 02-01-2013, 10:34 AM   #4
Registered: May 2010
Posts: 354

Original Poster
Rep: Reputation: 34
Thanks for the ideas

My question was motivated by the following

I note that Fedora no longer uses /media instead it uses /run/media

when I manually mount /dev/sda3 /media it works just fine

if i then type mount it re[plies
---snip ---
/dev/sda3 on /media type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro)
I previously had that command (mount /dev/sda3 /media) in a file named located in /etc/profile.d and it mounted at boot & login time
but it also tried to mount whenever i used terminal

thus i'm not so concerned with the directory where i do it even though the directory i selected is somewhat unconventional

my question is more like "does f17 still use /etc/fstab and do i have the correct syntax"

Last edited by rmknox; 02-01-2013 at 10:39 AM.
Old 02-01-2013, 11:59 PM   #5
Registered: May 2010
Posts: 354

Original Poster
Rep: Reputation: 34
Took your advice - added TwentyGig under media - changed fstab to mount there and it does.
Problem solved




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
Editing /etc/fstab in Fedora 8 Dailan Fedora 3 06-24-2008 09:24 PM
Fedora 7 and using cifs in fstab? powellbob424 Linux - General 11 06-16-2007 09:20 PM
fstab with upgrade to fedora 5 rik_cross Fedora 5 07-25-2006 05:11 AM
Fedora 4 fstab dchaug Linux - Software 3 04-03-2006 10:27 PM
fstab-sync Fedora Core 3 doralsoral Linux - Software 3 02-02-2005 08:03 PM

All times are GMT -5. The time now is 12:26 PM.

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