Query regarding /proc/partitions.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Query regarding /proc/partitions.
# 1  
Old 08-05-2010
Query regarding /proc/partitions.

hi whenever i fire cat /proc/partition i get following output.
I can make sense out of first 4 lines but what does dm-* suggests.
Please help.
Code:
# cat /proc/partitions
major minor  #blocks  name

   8     0  142577664 sda
   8     1     104391 sda1
   8     2   41945715 sda2
   8     3   10482412 sda3
 253     2   78150744 dm-2
 253     3   16777216 dm-3
 253     4   66060288 dm-4
 253     7   78156288 dm-7
 253    11   78150744 dm-11
 253    12   78150744 dm-12
 253    13   78150744 dm-13
 253    17   78150744 dm-17
 253    20   31457280 dm-20
 253    21   52449280 dm-21
 253    22   78172290 dm-22
 253    23  244198584 dm-23
 253    24   78125000 dm-24
 253    16   78150744 dm-16
 253    14   78150744 dm-14
 253    15     600218 dm-15
 253    18   78125000 dm-18
 253    19   78150744 dm-19
 253     5   78150744 dm-5
 253     6   78156288 dm-6
 253    10     635952 dm-10
 253     8  244198584 dm-8
 253     0   31457280 dm-0
 253     1   10485760 dm-1

# 2  
Old 08-05-2010
The dm-* devices are Device Mapper (probably LVM) devices. The major/minor numbers should match the "Block device" line in lvdisplay.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

2. UNIX for Dummies Questions & Answers

Partitions.

Hi All, My colleague says . On some boxes we have /var/,/opt are inside root and on some they are not on root they are separately. So please any one explain me what actually the difference is. Thanks is Advance. (3 Replies)
Discussion started by: rama krishna
3 Replies

3. UNIX for Advanced & Expert Users

Partitions

Hello masters, Actually, i am user of Ubuntu, but I want to use Debian too. I have a computer with a product key for w7 so i will use too, only for games... The structure I have thought is the next with 1TiB of capacity. Primary: 50 GB NTFS for W7 Extended: Logical: 20 GB FAT32... (3 Replies)
Discussion started by: albertogarcia
3 Replies

4. Shell Programming and Scripting

Formatting problem with sizes from /proc/partitions

How would i display the output of /proc/partitions in gb representation/ Please help. Also eager to know what is dm-0 and dm-1? # cat /proc/partitions major minor #blocks name 3 0 8388608 hda 3 1 104391 hda1 3 2 8281507 hda2 3 64 102400 hdb ... (7 Replies)
Discussion started by: pinga123
7 Replies

5. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

6. UNIX for Dummies Questions & Answers

Regarding /proc

If you are adding the kernel module without any module parameter passing, it should print out following information to info1 file so that user can make read access to info1 file (via, for example, cat /proc/info1): • Processor type • Kernel version • Total number of the processes currently... (1 Reply)
Discussion started by: shekhar.huded
1 Replies

7. UNIX for Dummies Questions & Answers

_/proc/stat vs /proc/uptime

Hi, I am trying to calculate the CPU Usage by getting the difference between the idle time reported by /proc/stat at 2 different intervals. Now the 4th entry in the first line of /proc/stat will give me the 'idle time'. But I also came across /proc/uptime that gives me 2 entries : 1st one as the... (0 Replies)
Discussion started by: coderd
0 Replies

8. Shell Programming and Scripting

add the output of a query to a variable to be used in another query

I would like to use the result of a query in another query. How do I redirect/add the output to another variable? $result = odbc_exec($connect, $query); while ($row = odbc_fetch_array($result)) { echo $row,"\n"; } odbc_close($connect); ?> This will output hostnames: host1... (0 Replies)
Discussion started by: hazno
0 Replies

9. UNIX for Advanced & Expert Users

partitions

HI. i installed solaris on a x86 machine and i only partition for 4 gig when it suppose to be 8. i only using 4 gig right now how can i start using the other four. please help, thanks in advance Meeh (2 Replies)
Discussion started by: souldier
2 Replies

10. UNIX for Dummies Questions & Answers

about /proc

hi, we all know /proc is about the information of active process, I have just read an artical which said you can use /proc/cpuinfo, /proc/net./proc/meminfo etc. to know about some hardware information .But I want to know how to use with command line? (1 Reply)
Discussion started by: fuqiang1976
1 Replies
Login or Register to Ask a Question