我正在一个实验室工作,它需要我用两个分区格式化SD卡。我已经格式化了SD卡,发现它为sde1,然后在运行之前运行了sudo umount /dev/sde1:
sudo sfdisk /dev/sde1 << EOF
> 1,,0xE,*
> EOF我得到以下错误:
Checking that no-one is using this disk right now ... FAILED
This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
sfdisk: Use the --force flag to overrule all checks.我不知道从这里往哪里走。我对此也很陌生。我读到过,我需要禁用Ubuntu上的automount,并且使用了没有效果的gsettings set org.gnome.desktop.media-handling automount false。我仍然会得到上面的错误。请帮帮忙。
发布于 2019-08-15 03:45:56
在使用sfdisk时,我输入了sudo sfdisk /dev/sde1 << EOF。sde1只是一个分区,这就是它失败的原因。我不得不输入sudo sfdisk /dev/**sde** << EOF。
https://askubuntu.com/questions/1165843
复制相似问题