background:
The U disk was damaged a while ago, and it failed to be formatted under the windows system. I wondered whether it could be repaired on linux, so I installed Ubuntu in the virtual machine, and when I used the fdisk command, it showed that there was no permission, so I tried several
passwords su root
. None valid
Solution:
reset Password
Therefore, use the command sudo passwd root
to update the root password;
after entering the user's password, you can set the root password. For convenience, I set the root password to be consistent with the user password.
Try again su root
, enter the password, success.
format u disk
Check the location of the USB flash drive sudo fdisk -l
and format it as Fat32 format. sudo mkfs.vfat /dev/sdb
The interface displays (use -I to override), indicating that the system needs to use the -I parameter to complete the formatting, so after inputting,
enter sudo mkfs.vfat -I /dev/sdb
the umount /dev/sdb
uninstall USB flash drive
and insert it into the window, and it can be used normally. Perfect