测试磁盘

测试磁盘

这是 4 GB 的 USB 笔式驱动器。格式为 NTFS。USB2。在同一台计算机(以及其他计算机)上的 Windows 上可以正常工作。它包含 Windows XP 安装光盘的内容。

...我就是无法安装它。当我连接它时什么也没发生,但我相信 Ubuntu 可以看到它。

以下是一些命令输出


最后几行来自dmesg

[  164.703187] ieee80211 phy0: rt2800usb_txdone: Warning - Got TX status for an empty queue 2, dropping
[  554.953670] usb 1-4: USB disconnect, device number 2
[  565.092026] usb 1-4: new high-speed USB device number 6 using ehci-pci
[  565.227144] usb 1-4: New USB device found, idVendor=0951, idProduct=1641
[  565.227150] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  565.227154] usb 1-4: Product: DataTraveler C10
[  565.227157] usb 1-4: Manufacturer: Kingston
[  565.227160] usb 1-4: SerialNumber: 0019B9087CD7A9C1164B005C
[  565.227564] usb-storage 1-4:1.0: USB Mass Storage device detected
[  565.228288] scsi4 : usb-storage 1-4:1.0
[  566.228802] scsi 4:0:0:0: Direct-Access     Kingston DataTraveler C10 8.20 PQ: 0 ANSI: 2
[  566.229160] sd 4:0:0:0: Attached scsi generic sg2 type 0
[  566.229950] sd 4:0:0:0: [sdb] 7825408 512-byte logical blocks: (4.00 GB/3.73 GiB)
[  566.231158] sd 4:0:0:0: [sdb] Write Protect is off
[  566.231164] sd 4:0:0:0: [sdb] Mode Sense: 23 00 00 00
[  566.231904] sd 4:0:0:0: [sdb] No Caching mode page found
[  566.231910] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[  566.237756] sd 4:0:0:0: [sdb] No Caching mode page found
[  566.237762] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[  567.282038]  sdb: unknown partition table
[  567.287030] sd 4:0:0:0: [sdb] No Caching mode page found
[  567.287036] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[  567.287040] sd 4:0:0:0: [sdb] Attached SCSI removable disk

与设备有关的部件来自sudo fdisk -l

Disk /dev/sdb: 4006 MB, 4006608896 bytes
255 heads, 63 sectors/track, 487 cylinders, total 7825408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0066cd1f

This doesn't look like a partition table
Probably you selected the wrong device.

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   ?          63     7825407     3912672+   7  HPFS/NTFS/exFAT

sudo blkid不显示设备


尝试用这些命令来挂载它:

sudo mount /dev/sdb1 /media/somefolder/someotherfolder但它给出了

mount: special device /dev/sdb1 does not exist

和;

sudo mount -t ntfs /dev/sdb1 /media/somefolder/someotherfolder

ntfs-3g: Failed to access volume '/dev/sdb1': No such file or directory

ntfs-3g 2013.1.13AR.1 external FUSE 29 - Third Generation NTFS Driver
    Configuration type 7, XATTRS are on, POSIX ACLS are on

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2012 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage:    ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options:  ro (read-only mount), windows_names, uid=, gid=,
          umask=, fmask=, dmask=, streams_interface=.
          Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

News, support and information:  http://tuxera.com

sudo ntfs-3g /dev/sdb1 /media/somefolder/someotherfolder给出与上面完全相同的输出。


pmount /dev/sdb1 kingston给予;

Error: device /dev/sdb1 does not exist

请帮忙

编辑!“磁盘”看到了该设备!!(金士顿的设备)...但是接下来呢? 磁盘输出

编辑:输出sudo mount -t ntfs -o loop=/dev/loop3 /dev/sdb /mnt

NTFS signature is missing.
Failed to mount '/dev/loop3': Invalid argument
The device '/dev/loop3' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

答案1

您尝试过磁盘应用程序吗?(按 Super/Win 键,输入磁盘)它列出了 Ubuntu 可以看到的所有设备。从那里您可以看到安装了哪些设备,编辑分区,格式化。

答案2

也许在你必须修复驱动器之前。无论如何你都需要运气。

  1. 检查是否未安装:df
  2. 尝试挂载它,可能类似于sudo mount -t auto /dev/sdb /mnt/。也许可以使用-oloop=/dev/loopandntfsntfs-3gon -t

测试磁盘

  • apt install testdisk
  • 跑步testdisk
  • 选择是否创建日志。
  • 选择设备:

    截屏

  • 分区表类型,可能是Intel。
  • 高级 > NTFS 分区(如果可用) > [启动] > 修复 MFT

ntfs修复

修复常见错误并强制 Windows 检查 NTFS

sudo ntfsfix /dev/sdb

答案3

尝试使用循环选项挂载 /dev/sdb(无分区号)。即将其视为使用环回挂载的文件(当然还有 ntfs 文件系统类型)。由于 fdisk 似乎没有看到分区表,所以也许它没有分区表!

sudo mount -t ntfs  -oloop=/dev/loop /dev/sdb /mnt

检查挂载选项(man mount)。有一个偏移量,这可能会有所帮助,因为起始扇区是 63。您可以使用 dd 将数据块读入文件(再次使用偏移量),然后使用 loop 挂载该文件,或者如果您愿意丢失数据(在 Windows 安装磁盘上,这可能很重要;),您可以尝试使用现有的 63 开始和 7825407 结束来创建一个新的分区表。

答案4

您是否尝试过以只读模式安装?

mount -o ro /dev/sdb1 /media/somefolder/someotherfolder

相关内容