如何安装西部数据外置硬盘

如何安装西部数据外置硬盘

我正在使用Debian。我无法在我的系统上安装 Western Digital My Passport Ultra。我努力了sudo mount /dev/sdbx /media/hdd。这对我来说效果很好。但问题是每次重新启动系统时我都必须重复此过程。我的朋友们也很难将它安装到他们的 Linux 机器上。(在 Windows 上运行良好!)

为什么即使将驱动器NTFS从 Linux 重新格式化后它也不会自动安装?永久的解决办法是什么?

答案1

usbmount我已经安装的软件包对我有用。这会调用 udev 来安装和卸载驱动器。

它不适用于我的外部硬盘。我检查了原因,结果发现它只挂载和卸载变量中列出的文件系统FILESYSTEMS,该变量在/etc/usbmount/usbmount.conf.但是,我的驱动器使用 NTFS 文件系统,但ntfs不在该列表中。添加后,驱动器就可以工作了。

另一个看起来很有希望的软件包是udevil。我还没有让它运行。如果我运行了,我会在这里添加有关它的信息。

笔记:

  1. 设置以VERBOSE=yes获取/etc/usbmount/usbmount.conf更多信息。

    # If set to "yes", more information will be logged via the syslog
    # facility.
    VERBOSE=yes
    
  2. udev 很健谈。这是/var/log/syslog 插入驱动器时写入的内容。

    Sep 14 01:26:16 orwell kernel: [733993.628022] usb 4-1: new high-speed USB device number 7 using ehci_hcd
    Sep 14 01:26:17 orwell kernel: [733993.813808] usb 4-1: New USB device found, idVendor=1058, idProduct=0820
    Sep 14 01:26:17 orwell kernel: [733993.813811] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
    Sep 14 01:26:17 orwell kernel: [733993.813813] usb 4-1: Product: My Passport 0820
    Sep 14 01:26:17 orwell kernel: [733993.813814] usb 4-1: Manufacturer: Western Digital
    Sep 14 01:26:17 orwell kernel: [733993.813815] usb 4-1: SerialNumber: 575835314143335739373437
    Sep 14 01:26:17 orwell kernel: [733993.814396] scsi14 : usb-storage 4-1:1.0
    Sep 14 01:26:17 orwell mtp-probe: checking bus 4, device 7: "/sys/devices/pci0000:00/0000:00:16.2/usb4/4-1"
    Sep 14 01:26:17 orwell mtp-probe: bus: 4, device: 7 was not an MTP device
    Sep 14 01:26:18 orwell kernel: [733994.812729] scsi 14:0:0:0: Direct-Access     WD       My Passport 0820 1007 PQ: 0 ANSI: 6
    Sep 14 01:26:18 orwell kernel: [733994.813084] scsi 14:0:0:1: Enclosure         WD       SES Device       1007 PQ: 0 ANSI: 6
    Sep 14 01:26:18 orwell kernel: [733994.813595] sd 14:0:0:0: Attached scsi generic sg5 type 0
    Sep 14 01:26:18 orwell kernel: [733994.813681] ses 14:0:0:1: Attached Enclosure device
    Sep 14 01:26:18 orwell kernel: [733994.813753] ses 14:0:0:1: Attached scsi generic sg6 type 13
    Sep 14 01:26:23 orwell kernel: [733999.846168] sd 14:0:0:0: [sdf] 1953458176 512-byte logical blocks: (1.00 TB/931 GiB)
    Sep 14 01:26:23 orwell kernel: [733999.847672] sd 14:0:0:0: [sdf] Write Protect is off
    Sep 14 01:26:23 orwell kernel: [733999.847675] sd 14:0:0:0: [sdf] Mode Sense: 47 00 10 08
    Sep 14 01:26:23 orwell kernel: [733999.848793] sd 14:0:0:0: [sdf] No Caching mode page found
    Sep 14 01:26:23 orwell kernel: [733999.848795] sd 14:0:0:0: [sdf] Assuming drive cache: write through
    Sep 14 01:26:23 orwell kernel: [733999.853234] sd 14:0:0:0: [sdf] No Caching mode page found
    Sep 14 01:26:23 orwell kernel: [733999.853236] sd 14:0:0:0: [sdf] Assuming drive cache: write through
    Sep 14 01:26:23 orwell kernel: [733999.868615]  sdf: sdf1
    Sep 14 01:26:23 orwell kernel: [733999.873548] sd 14:0:0:0: [sdf] No Caching mode page found
    Sep 14 01:26:23 orwell kernel: [733999.873552] sd 14:0:0:0: [sdf] Assuming drive cache: write through
    Sep 14 01:26:23 orwell kernel: [733999.873554] sd 14:0:0:0: [sdf] Attached SCSI disk
    Sep 14 01:26:23 orwell usbmount[18897]: loaded usbmount configurations
    Sep 14 01:26:23 orwell usbmount[18897]: trying to acquire lock /var/run/usbmount/.mount.lock
    Sep 14 01:26:23 orwell usbmount[18897]: acquired lock /var/run/usbmount/.mount.lock
    Sep 14 01:26:23 orwell usbmount[18897]: /dev/sdf does not contain a filesystem or disklabel
    Sep 14 01:26:23 orwell usbmount[18921]: loaded usbmount configurations
    Sep 14 01:26:23 orwell usbmount[18921]: trying to acquire lock /var/run/usbmount/.mount.lock
    Sep 14 01:26:23 orwell usbmount[18921]: acquired lock /var/run/usbmount/.mount.lock
    Sep 14 01:26:23 orwell usbmount[18921]: /dev/sdf1 contains filesystem type ntfs
    Sep 14 01:26:23 orwell usbmount[18921]: mountpoint /media/usb1 is available for /dev/sdf1
    Sep 14 01:26:23 orwell usbmount[18921]: executing command: mount -tntfs -osync,noexec,nodev,noatime,nodiratime /dev/sdf1 /media/usb1
    Sep 14 01:26:24 orwell ntfs-3g[18952]: Version 2012.1.15AR.5 external FUSE 29
    Sep 14 01:26:24 orwell ntfs-3g[18952]: Mounted /dev/sdf1 (Read-Write, label "My Passport", NTFS 3.1)
    Sep 14 01:26:24 orwell ntfs-3g[18952]: Cmdline options: rw,noexec,nodev,sync,noatime,nodiratime
    Sep 14 01:26:24 orwell ntfs-3g[18952]: Mount options: rw,noexec,nodev,sync,nodiratime,allow_other,nonempty,noatime,fsname=/dev/sdf1,blkdev,blksie=4096
    Sep 14 01:26:24 orwell ntfs-3g[18952]: Ownership and permissions disabled, configuration type 7
    Sep 14 01:26:24 orwell usbmount[18921]: executing command: run-parts /etc/usbmount/mount.d
    Sep 14 01:26:24 orwell usbmount[18921]: usbmount execution finished
    

答案2

使用许多不同的软件进行了多次搜索和尝试..最后我发现在这种情况下..

  • 将元件连接到 USB 端口
  • 打开文件系统 GUI(磁盘/文件夹),选择“其他位置”
  • 对所有 USB 端口重复此操作,无需安装/卸载,因为我的硬盘甚至没有 ID 响应lsusbsudo fdisk -l
  • 返回原始 USB 端口后,会出现 HD

这似乎我还没有尝试一切,我很“幸运”,因为我同意这是一种超级非技术的方式..但我发现它是所有其他谷歌搜索/堆栈搜索等中最一致的..技术,加上无论出于何种原因我不需要sudo mount在终端..?!?

不管怎样,一些不错的选择这里如果这不起作用在你的情况下

dmesg在终端中运行的每个新端口连接在返回到原始 USB 端口尝试之前也会识别出一致的失败

  • 通过每个端口连接高清
[12077.405153] usb 1-1-port4: attempt power cycle
[12078.013009] usb 1-1.4: new full-speed USB device number 12 using ehci-pci
[12078.428897] usb 1-1.4: device not accepting address 12, error -32
[12078.508929] usb 1-1.4: new full-speed USB device number 13 using ehci-pci
[12078.928992] usb 1-1.4: device not accepting address 13, error -32
[12078.929228] usb 1-1-port4: unable to enumerate USB device

重新连接到原来的端口

[12401.860608] usb 4-1: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[12401.884232] usb 4-1: New USB device found, idVendor=1058, idProduct=10b8, bcdDevice=10.12
[12401.884284] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[12401.884289] usb 4-1: Product: Elements 10B8
[12401.884292] usb 4-1: Manufacturer: Western Digital
[12401.884296] usb 4-1: SerialNumber: 575834314142345232535935
[12401.886519] usb-storage 4-1:1.0: USB Mass Storage device detected
[12401.886828] scsi host2: usb-storage 4-1:1.0
[12402.905140] scsi 2:0:0:0: Direct-Access     WD       Elements 10B8    1012 PQ: 0 ANSI: 6
[12402.905620] sd 2:0:0:0: Attached scsi generic sg2 type 0
[12402.907088] sd 2:0:0:0: [sdb] Spinning up disk...
[12403.928367] .....ready
[12408.025013] sd 2:0:0:0: [sdb] 1953458176 512-byte logical blocks: (1.00 TB/931 GiB)
[12408.025568] sd 2:0:0:0: [sdb] Write Protect is off
[12408.025574] sd 2:0:0:0: [sdb] Mode Sense: 47 00 10 08
[12408.026065] sd 2:0:0:0: [sdb] No Caching mode page found
[12408.026076] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[12408.157584] sd 2:0:0:0: [sdb] Attached SCSI disk
[12408.575173] EXT4-fs (sdb): mounted filesystem with ordered data mode. Opts: (null)

相关内容