Determining mount point

Discuss the security implications of the various flavors of linux and unix

Determining mount point

Post by AtlasDark on Fri May 22, 2009 5:51 am
([msg=24161]see Determining mount point[/msg])

How would I discover the mount point of a device (sdX, where X represents a numerical value)?
User avatar
AtlasDark
Poster
Poster
 
Posts: 175
Joined: Sun Apr 05, 2009 10:40 pm
Blog: View Blog (0)


Re: Determining mount point

Post by mischief on Fri May 22, 2009 7:40 am
([msg=24173]see Re: Determining mount point[/msg])

Code: Select all
df -h

or
Code: Select all
mount
The whole secret of existence is to have no fear. Never fear what will become of you, depend on no one. Only the moment you reject all help are you freed.
--Buddha
User avatar
mischief
Poster
Poster
 
Posts: 355
Joined: Wed Jan 07, 2009 4:16 pm
Blog: View Blog (0)


Re: Determining mount point

Post by tgoe on Fri May 22, 2009 10:23 am
([msg=24186]see Re: Determining mount point[/msg])

Code: Select all
cat /etc/fstab


That should include mount points of devices that don't happen to be mounted yet.
User avatar
tgoe
Contributor
Contributor
 
Posts: 661
Joined: Sun Sep 28, 2008 2:33 pm
Location: q3dm7
Blog: View Blog (0)


Re: Determining mount point

Post by AtlasDark on Fri May 22, 2009 11:55 am
([msg=24194]see Re: Determining mount point[/msg])

Thanks guys! Worked fine for the little project I had.

I looked around on Google but found nothing on it, probably phrasing my question wrong on there, heh.
User avatar
AtlasDark
Poster
Poster
 
Posts: 175
Joined: Sun Apr 05, 2009 10:40 pm
Blog: View Blog (0)



Return to *nix

Who is online

Users browsing this forum: No registered users and 0 guests