473,378 Members | 1,078 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Is there any command in UDB/Linux to List all mount points for a given instance?

25
Hi all,
Is there a command or a method of listing all mount points for a given DB2 instance? Any help will be much appreciated.

Thanks
Nov 8 '07 #1
5 2039
docdiesel
297 Expert 100+
Hi,

what do you mean with "mount points"? In Linux jargon these are points in filesystems where you hook in some device (disk, cd, nfs) and add its branch to the filesystem tree. So this is a matter related to the operating system.

Are you talking about the list of open files or activated databases?

Regards, Bernd
Nov 9 '07 #2
okonita
25
Hi and thanks for your response/question. Restating my question, I am interested in finding all mount points for my Linux environments including those in what I may term "sub-directories". Here's why. I issue a mount command and I get:
/dev/sda1 on /ald type ext3 (rw)
/dev/sdb1 on /ali type ext3 (rw)
/dev/sdc1 on /alt type ext3 (rw)
/dev/sdd1 on /bbd type ext3 (rw)
/dev/sde1 on /bbi type ext3 (rw)
/dev/sdf1 on /bbt type ext3 (rw)
/dev/sdg1 on /dmd type ext3 (rw)
/dev/sdh1 on /dmi type ext3 (rw)
/dev/sdi1 on /dmt type ext3 (rw)
/dev/sdj1 on /dwd type ext3 (rw)
/dev/sdk1 on /dwi type ext3 (rw)
/dev/sdl1 on /dwt type ext3 (rw)

I then entered cd /sbin and I am routed to /sbin. Now, looking at the output of mount command, I did not see /sbin listed as a mount point. Why is that?
This is why I am looking for command that will list all mount points regardless of the level in the directory path.

Thanks
Nov 9 '07 #3
docdiesel
297 Expert 100+
Hi okonita,

first, this is clearly a Linux/Unix issue and is not related to DB2. Therefore I'll suggest this thread to be moved to another forum.

Nevertheless, I'll try to answer your question and make things clear.

The mount command doesn't show /sbin because it's no mount point. I'll show you an example (and try to be better at ascii art than Picasso):

Expand|Select|Wrap|Line Numbers
  1. list of mount points:
  2. /dev/sda1     /boot
  3. /dev/sda3     /
  4. /dev/sdb1     /home
  5.  
  6. /  (this is the <root> directory = /dev/sda3)
  7. + bin   (simple directory)
  8. + boot  (mountpoint of /dev/sda1)
  9. + home  (mountpoint of /dev/sdb1)
  10. |    + john
  11. |    + peter
  12. |    + mary
  13. + sbin  (simple directory)
  14.  
There could also be a directory /home/john/deep/down/the/filesystem which is the mountpoint for some remote nfs service.

Furthermore, your list of mountpoint is rather unusual - they don't seem to be system related but are all placed in the root (top) directory. More common is to gather them in a directory on second level.

Regards,

Bernd
Nov 9 '07 #4
Purple
404 Expert 256MB
I am going to move this post to the Linux forum

MODERATOR
Nov 16 '07 #5
numberwhun
3,509 Expert Mod 2GB
Hi okonita,

first, this is clearly a Linux/Unix issue and is not related to DB2. Therefore I'll suggest this thread to be moved to another forum.

Nevertheless, I'll try to answer your question and make things clear.

The mount command doesn't show /sbin because it's no mount point. I'll show you an example (and try to be better at ascii art than Picasso):

Expand|Select|Wrap|Line Numbers
  1. list of mount points:
  2. /dev/sda1     /boot
  3. /dev/sda3     /
  4. /dev/sdb1     /home
  5.  
  6. /  (this is the <root> directory = /dev/sda3)
  7. + bin   (simple directory)
  8. + boot  (mountpoint of /dev/sda1)
  9. + home  (mountpoint of /dev/sdb1)
  10. |    + john
  11. |    + peter
  12. |    + mary
  13. + sbin  (simple directory)
  14.  
There could also be a directory /home/john/deep/down/the/filesystem which is the mountpoint for some remote nfs service.

Furthermore, your list of mountpoint is rather unusual - they don't seem to be system related but are all placed in the root (top) directory. More common is to gather them in a directory on second level.

Regards,

Bernd
Don't know if it would help, but you could do a "df -k" and it will show all the mounted points and also give sizes as well.

Regards,

Jeff
Nov 16 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

26
by: Simon | last post by:
I'm doing a survey. When do you think GNU/Linux will be ready for the average Joe? What obstacles must it overcome first?
11
by: C++fan | last post by:
Suppose that I define the following class: class example_class{ public: example_class(); void funtion_1(); void function_2(); protected:
1
by: Mike Ballard | last post by:
I run an xp program in vmware that uses a postgresql db. I want to back up this db from linux. The cmd I was given to backup the db from within xp is: pg_dump.exe -i -h <server> -p <port> -U...
2
by: Jurgen Haan | last post by:
Hi. I'm running a DB2 8.2 install on a X86_64 SuSE install. The tablespaces and logs are stored on a netapp filer through an NFS mount. Now I came across this article:...
40
by: =?Utf-8?B?Um9iZXJ0IEUuIEZsYWhlcnR5?= | last post by:
What is the C# command to wait for a specified period of time? I am writing a windows service that will process a file once it has beed created or changed. I'm using the fileSystemWatcher to...
3
by: James Egan | last post by:
I'm porting a legacy application from HP-UX to Linux. The va_start macro takes one argument under HP-UX, but takes two under Linux: va_start under HP-UX takes only one var: hp:/home/fredgrep...
0
by: Atos | last post by:
SINGLE-LINKED LIST Let's start with the simplest kind of linked list : the single-linked list which only has one link per node. That node except from the data it contains, which might be...
3
dlite922
by: dlite922 | last post by:
Has anyone done anything that requires PHP to be it's normal user (i.e. apache, and not running as root) but still execute a root level shell command such as mount? Solutions so far that has...
12
by: tvnaidu | last post by:
Trying to mount windows folder on Linux machine, getting this error. I have a folder called "CheckIn" on windows, I made that folder as Network sharing. ON lInux, I tried to access that folder by...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.