LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   knowing about partitions in fdisk command (https://www.linuxquestions.org/questions/linux-newbie-8/knowing-about-partitions-in-fdisk-command-4175528979/)

sachin.davra 12-22-2014 01:44 AM

knowing about partitions in fdisk command
 
Hi, i am using centos 6 x64.

Here is my fdisk table

Code:

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1          32      256000  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              32        6560    52428800  83  Linux
/dev/sda3            6560        7082    4194304  82  Linux swap / Solaris
/dev/sda4            7082      14588    60296192    5  Extended
/dev/sda5            7082      14588    60295168  8e  Linux LVM


I want to know where sda5 is mounted.

my mount points are

Code:

[root@swift ~]# mount
/dev/sda2 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/VolGroup-LogVol00 on /home type ext4 (rw)
/dev/mapper/MYSQLDATA-mysqldata on /MYSQL type ext4 (rw)
/dev/mapper/DATA-data on /data type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/sde1 on /mnt type ext3 (rw)


Doc CPU 12-22-2014 02:17 AM

Hi there,

Quote:

Originally Posted by sachin.davra (Post 5288858)
Code:

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1          32      256000  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              32        6560    52428800  83  Linux
/dev/sda3            6560        7082    4194304  82  Linux swap / Solaris
/dev/sda4            7082      14588    60296192    5  Extended
/dev/sda5            7082      14588    60295168  8e  Linux LVM

I want to know where sda5 is mounted.

nowhere, actually, because it isn't a file system of its own. Instead, it's a container for volumes controlled by the LVM, a bit like the extended partition in /dev/sda4, which is also just a container - you won't find /dev/sda4 mounted anywhere. Looking at the list of your mount points, I see:

Code:

/dev/mapper/VolGroup-LogVol00 on /home type ext4 (rw)
/dev/mapper/MYSQLDATA-mysqldata on /MYSQL type ext4 (rw)
/dev/mapper/DATA-data on /data type ext4 (rw)

These seem to be the volumes contained in /dev/sda5.

[X] Doc CPU

sachin.davra 12-22-2014 02:27 AM

Quote:

Originally Posted by Doc CPU (Post 5288862)
Hi there,



nowhere, actually, because it isn't a file system of its own. Instead, it's a container for volumes controlled by the LVM, a bit like the extended partition in /dev/sda4, which is also just a container - you won't find /dev/sda4 mounted anywhere. Looking at the list of your mount points, I see:

Code:

/dev/mapper/VolGroup-LogVol00 on /home type ext4 (rw)
/dev/mapper/MYSQLDATA-mysqldata on /MYSQL type ext4 (rw)
/dev/mapper/DATA-data on /data type ext4 (rw)

These seem to be the volumes contained in /dev/sda5.

[X] Doc CPU



I got your point. Actually there are more couple of disks which are formated as lvm. I checked those. Thanks for your valuable time. It resolved my querry.


All times are GMT -5. The time now is 01:14 PM.