VMware Cloud Community
phoolean
Contributor
Contributor

Error in mounting a RDM disk

Environment: Esxi 6.5U2 on HP microserver gen8 and a ubuntu 18.04 vm.

I used vmkfstools to creat a vmdk link to a harddisk

vmkfstools -z "/vmfs/devices/disks/{diskid-xxxxxxxxx}" "/vmfs/volumes/{mydatastore}/hdd.vmdk"

then I add this vmdk to the ubuntu vm in ESXi Web UI and it can be seen like "/dev/sdb" in ubuntu shell

when I mount /dev/sdb1 ~/data, an error occured like "mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error"

How can I use this disk?

Tags (1)
0 Kudos
4 Replies
phoolean
Contributor
Contributor

"vmkfstools -r" does not work too

0 Kudos
SupreetK
Commander
Commander

Does running the command <vmkfstools -r> throw any error? Are you following the steps as mentioned in the below article?

https://www.experts-exchange.com/articles/9174/HOW-TO-Add-Local-Storage-e-g-a-SATA-disk-as-a-Raw-Dis...

Also, can you mount the disk to a Windows VM and check if you are able to see the drive?

Cheers,

Supreet

0 Kudos
phoolean
Contributor
Contributor

yes, I did it step by step like this article.

No error thrown out when the vmdk file be making, but I cannot mount it.

I'll try again in windows.

0 Kudos
continuum
Immortal
Immortal

Please use fdisk or gdisk to display the partitiontable of the vmdk.
Maybe you simply picked the wrong partition.
Also check if you need to use additional parameters for the mount command.
To check wether the partition is readable at all I would suggest to check the disk via testdisk from Linux.
Trying Windows is a waste of time ....


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos