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?
"vmkfstools -r" does not work too
Does running the command <vmkfstools -r> throw any error? Are you following the steps as mentioned in the below article?
Also, can you mount the disk to a Windows VM and check if you are able to see the drive?
Cheers,
Supreet
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.
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 ....