LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 07-18-2006, 12:51 PM   #1
rushi
LQ Newbie
 
Registered: Jul 2006
Location: Arlington,Va
Distribution: Fedora 5, Red Hat, Knoppix
Posts: 7

Rep: Reputation: 0
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
Code:
umount /mnt/hda1
or
Code:
umount /dev/hda1
 
Old 07-18-2006, 12:57 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
 
Old 07-18-2006, 01:03 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,550

Rep: Reputation: 6237Reputation: 6237Reputation: 6237Reputation: 6237Reputation: 6237Reputation: 6237Reputation: 6237Reputation: 6237Reputation: 6237Reputation: 6237Reputation: 6237
In reference to the fstab file AFAIK it does not matter using the device ID or mount point.
 
Old 07-18-2006, 01:33 PM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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).
 
Old 07-18-2006, 03:43 PM   #5
rushi
LQ Newbie
 
Registered: Jul 2006
Location: Arlington,Va
Distribution: Fedora 5, Red Hat, Knoppix
Posts: 7

Original Poster
Rep: Reputation: 0
Ah ok. I have my partitions mounted in one place only. That makes it much clearer.
 
  


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
unmounting ipod? sigh_ren Ubuntu 6 11-19-2005 06:42 PM
Unmounting??? DiZASTiX Linux - Newbie 3 05-13-2003 10:04 PM
Unmounting the cd? mrobi Linux - General 3 02-16-2003 01:23 AM
Mounting and unmounting Hidden Dragon Linux - General 20 09-01-2002 08:52 PM
CD unmounting Paul_assheton Linux - General 14 04-16-2002 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:24 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
Open Source Consulting | Domain Registration