Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-18-2006, 12:51 PM
|
#1
|
LQ Newbie
Registered: Jul 2006
Location: Arlington,Va
Distribution: Fedora 5, Red Hat, Knoppix
Posts: 7
Rep:
|
Unmounting partitions
Hi
I have a partition mounted in /mnt called hda1 (just an example) and fstab lists it as /dev/hda1
So is there a difference if I do a or
|
|
|
07-18-2006, 12:57 PM
|
#2
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep: 
|
Yes there is. /dev/hda1 is a device file, but /mnt/hda1 is just a directory where the contents of the device /dev/hda1 have been mounted, i.e. a place where you can deal with the content.
If you had mounted /dev/hda1 in multiple places, say into /mnt/hda1 and /mnt/hda1_again, umounting /mnt/hda1 would unmount /dev/hda1 from /mnt/hda1 but (as far as I know) would leave /mnt/hda1_again mounted. If you, instead, umounted /dev/hda1, both /mnt/hda1 and /mnt/hda1_again got unmounted.
|
|
|
07-18-2006, 01:03 PM
|
#3
|
Moderator
Registered: Aug 2002
Posts: 26,550
|
In reference to the fstab file AFAIK it does not matter using the device ID or mount point.
|
|
|
07-18-2006, 01:33 PM
|
#4
|
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep: 
|
It doesn't if you have mounted the device into one place only. But I experienced it did matter when I accidentally happened to mount a device to 2 different mountpoints, though it was some time ago (I think it was some time after kernel version 2 came out).
|
|
|
07-18-2006, 03:43 PM
|
#5
|
LQ Newbie
Registered: Jul 2006
Location: Arlington,Va
Distribution: Fedora 5, Red Hat, Knoppix
Posts: 7
Original Poster
Rep:
|
Ah ok. I have my partitions mounted in one place only. That makes it much clearer.
|
|
|
All times are GMT -5. The time now is 12:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|