LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   what is the difference (https://www.linuxquestions.org/questions/linux-software-2/what-is-the-difference-107863/)

shanenin 10-23-2003 11:11 PM

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).

quatsch 10-23-2003 11:16 PM

#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.

shanenin 10-24-2003 08:42 AM

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

quatsch 10-24-2003 09:08 AM

as I said, the -t option is not necessary if the system can tell what type of file system it is.

shanenin 10-24-2003 09:14 AM

o.k. have not drank my coffee yet today, a little droggy. Thanks


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