Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-22-2006, 10:23 AM   #1
Robert Diggs
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Rep: Reputation: 15
How to edit Fstab

Yo, yo, yo,

I would like to edit my fstab file so that I can have a 30GB Vfat partition mount at boot time. I believe I have the command that I'm supposed to put in there so it mounts every time. that is:

/dev/hda7 /mnt/osshare vfat defaults 0 0

Am I correct with that text to go into the fstab file? If I'm not, what is the correct text to put in there, and how am I able to save the edited file? I tried editing it and then saving it, but my permission was denied. I believe I have to be logged in as SU, but do I edit this in Shell or is there a way to do it through the text editor as a Superuser. I guess my problem is logging in as one.

Thanks in advance,

Old 12-22-2006, 10:33 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741
Your entry for fstab looks fine--assuming that you have created the mount point (directory) "/mnt/osshare"

The best and easiest way to do all this is in a terminal:
su           (to take on root powers)
mkdir /mnt/osshare    (to make the mount point, if it is not already there)
nano /etc/fstab    (substitue your favorite editor for nano)
.....edit the file and save....
mount /mnt/osshare   (once you have an fstab entry you can mount manually using either the mount point OR the device name---i.e. mount /dev/hda7 will do the same thing)
Old 12-22-2006, 10:47 AM   #3
Robert Diggs
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Original Poster
Rep: Reputation: 15
Gracias Senor. I will try this when I get home. You've been a ton of help.



p.s. Will this show up as a dev in my computer or do I have to go to /mnt/osshare/.... to view the files that are on the VFAT drive? I'm assuming that i'll have to go to /mnt/osshare/.... to view files.

Last edited by Robert Diggs; 12-22-2006 at 10:56 AM.


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
can't edit /etc/fstab....please help expat Linux - Software 32 10-26-2006 02:48 PM
How do I edit /etc/fstab? linusownsme Linux - Software 9 03-05-2005 12:30 PM
Help me edit my fstab Slovak Slackware 3 11-26-2004 11:12 AM
edit fstab - what i ve to do ? thinkdifferent Linux - Newbie 4 12-23-2003 05:20 PM
edit fstab LinuxOG Linux - Distributions 2 09-01-2003 11:27 AM > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration