I have Oracle Linux on a VM and I'm trying to create partitions on /dev/sda2 of size 30 gigs using fdisk utility. I made four partitions each of size 512M and they appear in the partition table. However, when i try to write (w) table to disk, i get the error as above.
Here's what i've tried so far
- Reboot does not change anything.
fdisk -u -l /dev/sda2shows the 4 created partitions (p1,p2,p3,p4), but
kpartx -a /dev/sda2pxshows
failed to stat() /dev/sda2px
Error: Error informing the kernel about modifications to partition /dev/sda2px - invalid argument. This means Linux won't know about any changes you made to /dev/sda2p1 until you reboot -- so you shouldn't mount it or use it in any way before rebooting
Any ideas will be much appreciated. Thanks in advance.