LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 01-31-2013, 10:09 PM   #1
rmknox
Member
 
Registered: May 2010
Posts: 351

Rep: Reputation: 29
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 01-31-2013, 11:27 PM   #2
kedarp
Member
 
Registered: Jul 2012
Location: Pune, India
Distribution: Mageia 4
Posts: 182

Rep: Reputation: 22
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, 02:48 AM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,669

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

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

then add to fstab
------
/dev/sda3 /mnt/fat.drive vfat defaults 1 2
-----

however
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, 09:34 AM   #4
rmknox
Member
 
Registered: May 2010
Posts: 351

Original Poster
Rep: Reputation: 29
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
Quote:
---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 media.sh 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 09:39 AM.
 
Old 02-01-2013, 10:59 PM   #5
rmknox
Member
 
Registered: May 2010
Posts: 351

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

Thanks

Dick
 
  


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


All times are GMT -5. The time now is 09:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration