我正在尝试使用 java 访问主引导记录扇区,并且我已经在 windows 中完成了它,但是我使用的地址在 ubuntu 中无效。这是我的代码:
File diskRoot = new File("\\\\.\\PhysicalDrive0");
final RandomAccessFile diskAccess = new RandomAccessFile(diskRoot, "r");
byte content[] = new byte[512];
diskAccess.readFully(content);
谁能告诉我应该在 ubuntu 中输入什么而不是“\\.\PhysicalDrive0”?