LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-10-2011, 10:04 AM   #1
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Rep: Reputation: 15
identify the drive


Hi,

I have two drives attached to the system and the system has been partitioned as below:
PHP Code:
/dev/mapper/system-root
                      2.0G  759M  1.2G  40
% /
/
dev/sda1             251M   27M  211M  12% /boot
none                  3.9G     0  3.9G   0
% /dev/shm
/dev/mapper/system-home
                      4.9G  1.3G  3.4G  27
% /home
/dev/mapper/system-usr
                      7.8G  1.8G  5.7G  24
% /usr
/dev/mapper/system-user
                      7.8G  416M  7.0G   6
% /var 
I need to know in which drive does the partition / lie in ? ie, in which of the two drives does root partition belong to.

How do I find it out ? It doesn't show even in the /etc/fstab file.
 
Old 06-10-2011, 10:25 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
vgdisplay -v
should provide clues
 
Old 06-10-2011, 10:27 AM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,334

Rep: Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922
The 'df' should show you. Here is my system with two drives.

Quote:
df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb1 20350640 8800676 10516184 46% /
/dev/sdb5 151921828 12951744 131252864 9% /home
/dev/sdb6 308446680 9320076 283458412 4% /usr
/dev/sda6 137412520 50125104 87287416 37% /mnt/sda6
tmpfs 1510688 0 1510688 0% /dev/shm
tmpfs 1510688 8 1510680 1% /tmp
/dev/sda1 12396968 10102160 1665064 86% /mnt/sda1
The mounted on column shows you the mount point, the first column the partition.
 
Old 06-10-2011, 10:57 AM   #4
sang_froid
Member
 
Registered: Oct 2006
Posts: 179

Original Poster
Rep: Reputation: 15
Nopes...neither it shows that information.


Quote:
Originally Posted by AlucardZero View Post
vgdisplay -v
should provide clues
 
Old 06-10-2011, 12:06 PM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Code:
pvs -o lv_name,pv_name | grep root
 
  


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
Cant identify drive with 'blkid' clifford227 Linux - Newbie 3 08-22-2010 09:28 AM
identify usb drive timl Red Hat 1 08-07-2009 04:03 AM
need better standard drive partition identify method james2b Linux - Newbie 3 12-23-2008 07:49 PM
k3b don't identify the cd record drive hraposo Fedora 2 07-23-2006 02:00 PM
identify hard drive space milesstandish Linux - Hardware 6 03-19-2004 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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