Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-07-2009, 11:45 AM   #1
Registered: Aug 2009
Location: Spain
Distribution: Debian stable, squeeze
Posts: 501

Rep: Reputation: 31
How can I execute fstab?

I am doing some experiments with fstab. And to see if ti works, I restart the computer. Can I execute fstab, so I can see if fstab mount all I program in it?
Old 09-07-2009, 12:04 PM   #2
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
/etc/fstab is a configuration file so cannot be executed. You can use the df command to see if all the file systems listed in fstab have been mounted; the ones for removable media will not be listed unless removable media (USB devices, CD and DVDs ...) have been loaded. You can use mount with the -a option to try to mount any file systems listed in fstab and not mounted (or subsequently unmounted with the umount command).
Old 09-07-2009, 12:05 PM   #3
the trooper
Senior Member
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Instead of rebooting try as root:

mount -a
To mount partitions listed in fstab.

Edit:Too slow again!!.

Last edited by the trooper; 09-07-2009 at 12:06 PM.
Old 08-06-2014, 06:27 AM   #4
LQ Newbie
Registered: Apr 2014
Distribution: Archlinux
Posts: 18

Rep: Reputation: Disabled
I know that this thread is old, but I think it would also be useful for any, who got here from Google.
For some reasons the command mount -a doesn't work for all things that is in fstab. I just changed swap partition, and wanted to see, is the syntax right -- alas the mount doesn't did a trick. The swapon does; as I found in it's help message the
swapon -a
enables all swaps from the fstab file.


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
Suse won't boot after fstab changes - fstab not editable baking-a-77 Linux - Newbie 10 06-02-2007 10:51 AM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:20 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