处理未正确卸载的磁盘



我没有正确卸载我安装的新外部磁盘,如下所示:

jeremy@jr:~$ sudo mount -t exfat /dev/sdc1 /home/jeremy/exfat
FUSE exfat 1.2.3

现在我被困住了——

jeremy@jr:~$ df -h
df: /home/jeremy/exfat: Transport endpoint is not connected
Filesystem      Size  Used Avail Use% Mounted on
udev            3.8G     0  3.8G   0% /dev
tmpfs           765M  9.5M  756M   2% /run
/dev/sda1       213G  200G  2.1G 100% /
tmpfs           3.8G  165M  3.6G   5% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           3.8G     0  3.8G   0% /sys/fs/cgroup
cgmfs           100K     0  100K   0% /run/cgmanager/fs
tmpfs           765M  116K  765M   1% /run/user/1000

我无法前进(装载)或后退(卸载)-

jeremy@jr:~$ sudo mount -t exfat /dev/sdc1 /home/jeremy/exfat
FUSE exfat 1.2.3
fuse: failed to access mountpoint /home/jeremy/exfat: Transport endpoint is not connected

MTAB 文件看起来像

jeremy@jr:~$ more /etc/mtab
....
/dev/sdb1 /home/jeremy/exfat fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0

我对事物的原始把握促使我尝试:

jeremy@jr:~$ ls /mnt
sdb1
jeremy@jr:~$ umount /mnt
umount: /mnt: not mounted
jeremy@jr:~$ umount /mnt/sdb1
umount: /mnt/sdb1: not mounted
jeremy@jr:~$ umount /home/jeremy/exfat 
umount: /home/jeremy/exfat: Transport endpoint is not connected

由于在我拔下/重新插入磁盘后,磁盘现在出现在/sdc1 上,徒劳地希望这会清除我尝试过的/etc/mtab 条目:

jeremy@jr:~$ sudo mount -t exfat /dev/sdc1 /home/jeremy/exfat
FUSE exfat 1.2.3
fuse: failed to access mountpoint /home/jeremy/exfat: Transport endpoint is not connected

Yeesh - 这比交配狗更糟糕

sudo umount -f /home/jeremy/exfat

似乎已经完成了这个技巧,从操作系统向那个方向暗示而不是"未安装"会很棒

相关内容

  • 没有找到相关文章

最新更新