LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-09-2008, 10:48 AM   #1
mokku
Member
 
Registered: Feb 2007
Posts: 197

Rep: Reputation: 30
mounting question


Hi,

If I use mount commant does it check /etc/fstab ? For an example


/dev/hada1 /home

If I jsut type "mount /home" , would it go throught /etc/fstab and mount?

Thanks
mokkan
 
Old 05-09-2008, 10:57 AM   #2
sfjoe
Member
 
Registered: Jun 2007
Location: San Francisco
Distribution: Centos 4, Debian
Posts: 55

Rep: Reputation: 16
exactly

You can give either or both the device and/or the mount point if it is listed in etc/fstab. Also `mount -a` will mount everything in etc/fstab
 
Old 05-09-2008, 10:59 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
According to the man page
Quote:
When mounting a file system mentioned in fstab, it suffices to give only the device, or only the mount point.
so I think the answer to your question is simply yes (to not mention RTFM)
 
Old 05-09-2008, 11:13 AM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,474

Rep: Reputation: 189Reputation: 189
Short answer, yes.
 
  


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
mounting question andy1974 Linux - Hardware 9 04-01-2008 09:31 AM
question about mounting a new hd sunman Slackware 4 11-24-2005 03:13 AM
Mounting Question ZeroX-2 Slackware 4 12-02-2004 08:48 AM
mounting question... hollywoodb Linux - Newbie 4 08-26-2003 04:11 PM
Mounting question? blither Linux - General 3 01-20-2003 01:55 AM


All times are GMT -5. The time now is 12:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration