可以尝试一下partx -a [device],[device]是你的设备名称,比如/dev/sda7,如果这样依旧失败的话,可以尝试reboot
你在建立分区的时候,最后type的是q,意为不保存分区表退出。 partprobe的时候 肯定就找不到sda/sda7啦。所以你在格式化的时候一直提示not such file or directory!