LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why fdisk is not able to show device centos 6.3 ? (https://www.linuxquestions.org/questions/linux-newbie-8/why-fdisk-is-not-able-to-show-device-centos-6-3-a-4175479542/)

royywalls 10-03-2013 07:03 PM

Why fdisk is not able to show device centos 6.3 ?
 
Hi,

I have a nvme compatible device which has size of almost 2 TB.

I was able to create a file system on this device and print the df -h output.
(please look at the /mnt/pdp/)
Code:

[root@sakplab12 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                      50G  9.7G  37G  21% /
tmpfs                2.9G  224K  2.9G  1% /dev/shm
/dev/sda1            477M  90M  363M  20% /boot
/dev/mapper/VolGroup-lv_home
                      406G  13G  374G  4% /home
sans120nas:/data1/data
                      1.9T  544G  1.4T  29% /data1
/dev/nvme0n1        1008G  72M  957G  1% /mnt/pdp
[root@sakplab12 ~]#

But somehow when I execute fdisk -l it doesn't appear
Code:

[root@sakplab12 work]# fdisk  -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe045e045

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1          64      512000  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64      60802  487873536  8e  Linux LVM

Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_swap: 3154 MB, 3154116608 bytes
255 heads, 63 sectors/track, 383 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_home: 442.7 GB, 442738147328 bytes
255 heads, 63 sectors/track, 53826 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@sakplab12 work]#

Is that the size of the device has to do something with fdisk ?

Regards,
Royy

DaveQB 10-03-2013 07:45 PM

Hey Royy

First, use the code and /code tags to surround console output. Makes it easier to read as it preserves spaces.

How did you create this /dev/nvme0n1 ?

Output of "mount -l" ?

Output of "parted -l" ?

Thanks

chrism01 10-04-2013 02:05 AM

Definitely use code tags https://www.linuxquestions.org/quest...do=bbcode#code and edit your first post (& put a note explaining).
Also, try this cmd
Code:

lsblk

royywalls 10-04-2013 05:15 PM

Posted with code tag

royywalls 10-04-2013 05:17 PM

Posted with code tag.


All times are GMT -5. The time now is 12:09 AM.