Ram*_*esh 5 partitioning usb mount 14.04
我一直在努力格式化我的 USB 驱动器。我无法格式化。每当我使用磁盘实用程序尝试它时,我都会收到以下错误消息:
Error unmounting /dev/sdc: Command-line `umount "/media/ramvignesh/AGALYA SRI"' exited with non-zero exit status 1: umount: /media/ramvignesh/AGALYA SRI: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
(udisks-error-quark, 14)
Run Code Online (Sandbox Code Playgroud)
每当我尝试使用 GParted 时,它都无法正常打开。我得到以下窗口:
帮助我解决问题并重新使用我的 USB 驱动器。
测试这个:
插入您的 USB 驱动器。
打开终端:
运行:
sudo -i
#Verify that your device is /dev/sdc with fdisk:
fdisk -l
umount /dev/sdc
fdisk /dev/sdc
o ---#Create a new empty partition table
n ---#Create a new partition
w ---#Write the new partition table and exit
#Format partition in ext4 filesystem
mkfs.ext4 /dev/sdc1
Run Code Online (Sandbox Code Playgroud)
fdisk 菜单:
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Run Code Online (Sandbox Code Playgroud)
根据您的评论, USB 驱动器已损坏。看起来好像无法在这种状态下对其进行格式化或写入。
一些能够通过尝试读取驱动器来验证这一点的命令是(假设设备节点是/dev/sdc):
sudo fdisk -l /dev/sdc
sudo dd if=/dev/sdc of=/dev/null bs=1m count=1
Run Code Online (Sandbox Code Playgroud)
如果它们因 I/O 错误而中止,则设备可能已损坏。