LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2008, 06:53 AM   #1
Yogish
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Rep: Reputation: 0
How to list the mounted volume/drive in C.


How to list the mounted volume/drive using C ?
 
Old 09-22-2008, 07:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
please do not mark threads as urgent. they are not urgent for us and is considered rude.

Last edited by acid_kewpie; 09-22-2008 at 07:32 AM.
 
Old 09-22-2008, 08:28 AM   #3
sebstar
LQ Newbie
 
Registered: Feb 2005
Location: Montreal
Distribution: RedHat Enterprise 3 & 4, OS X, IRIX 6.5.28, Ubuntu, TOMSRTBT, Knoppix...
Posts: 7

Rep: Reputation: 0
Can you be a little more specific? I know "df" will list what is mounted and "fdisk -l" may show you what you can mount but your question is a little vague.
 
Old 09-22-2008, 08:30 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
If you want a list of mounted volumes you can look at /etc/mtab or /proc/mounts
 
Old 09-22-2008, 11:40 PM   #5
Yogish
LQ Newbie
 
Registered: Aug 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the reply...
I am looking for the functions which will list the mounted volume in the system.
 
  


Reply



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
File path to a mounted volume? pilot11 Linux - Newbie 4 10-18-2006 06:01 PM
How do I access a mounted volume? royeo Linux - Newbie 2 07-19-2006 01:51 PM
Setting Volume label on mounted vfat drive Endorpheus Linux - Newbie 2 03-03-2006 02:47 AM
Getting CD Volume name of mounted images Darkvater Linux - Software 3 03-16-2005 11:58 AM
mounted volume can only be accessed by root EcceVery Debian 7 08-01-2004 08:45 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:52 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