LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-24-2003, 12:11 AM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
what is the difference


To mout my other partitions I always used this syntax #mount -t type device mount_point. I just realized I can just use #mount device location. Is their any reason to use the first format(it is longer).
 
Old 10-24-2003, 12:16 AM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
#mount device only works if there is an entry for the device in /etc/fstab. Also, if you want to mount the filesystem to somewhere other than what's specified in /etc/fstab, you would use
mount dev mountpoint
and use -t in case your system fails to auto-detect the file system type.
 
Old 10-24-2003, 09:42 AM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
That is what I thought. I do not have an entry for my root partition,/dev/hda3, for redhat in my /etc/fstab. But I can still mount it with this command #mount /dev/hda3 /mnt/redhat. Hmm
 
Old 10-24-2003, 10:08 AM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
as I said, the -t option is not necessary if the system can tell what type of file system it is.
 
Old 10-24-2003, 10:14 AM   #5
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
o.k. have not drank my coffee yet today, a little droggy. Thanks
 
  


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
What's the difference between dominionlife Linux - Newbie 5 10-18-2004 09:26 PM
is there any difference/use of su - twice? darkleaf Linux - Software 2 10-12-2004 05:54 PM
what's the difference between ... marlor Slackware 4 06-05-2004 03:38 PM
What is the difference? drewski *BSD 5 05-21-2003 04:13 PM
What's the Difference New2Linux1978 Linux - Newbie 4 05-14-2003 07:58 PM


All times are GMT -5. The time now is 04:49 PM.

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